diff --git a/.apigentools-info b/.apigentools-info index e1b5bd97cf6e..8d595598cfed 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.2", - "regenerated": "2022-02-02 08:53:21.728223", - "spec_repo_commit": "d0d1224" + "regenerated": "2022-02-03 09:45:15.707262", + "spec_repo_commit": "f7a8bd6" }, "v2": { "apigentools_version": "1.6.2", - "regenerated": "2022-02-02 08:53:21.748620", - "spec_repo_commit": "d0d1224" + "regenerated": "2022-02-03 09:45:15.730129", + "spec_repo_commit": "f7a8bd6" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index bcbb981d4064..5a6c4339266c 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -5692,6 +5692,141 @@ components: - FIREFOX_LAPTOP_LARGE - FIREFOX_TABLET - FIREFOX_MOBILE_SMALL + MonitorFormulaAndFunctionEventAggregation: + description: Aggregation methods for event platform queries. + enum: + - count + - cardinality + - median + - pc75 + - pc90 + - pc95 + - pc98 + - pc99 + - sum + - min + - max + - avg + example: avg + type: string + x-enum-varnames: + - COUNT + - CARDINALITY + - MEDIAN + - PC75 + - PC90 + - PC95 + - PC98 + - PC99 + - SUM + - MIN + - MAX + - AVG + MonitorFormulaAndFunctionEventQueryDefinition: + description: A formula and functions events query. + properties: + compute: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventQueryDefinitionCompute' + data_source: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventsDataSource' + group_by: + description: Group by options. + items: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventQueryGroupBy' + type: array + indexes: + description: An array of index names to query in the stream. Omit or use + `[]` to query all indexes at once. + example: + - days-3 + - days-7 + items: + description: A log index set up for your organization. For additional + indexes, see the [multiple indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) + documentation. + type: string + type: array + name: + description: Name of the query for use in formulas. + example: query_errors + type: string + search: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventQueryDefinitionSearch' + required: + - data_source + - compute + - name + type: object + MonitorFormulaAndFunctionEventQueryDefinitionCompute: + description: Compute options. + properties: + aggregation: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventAggregation' + interval: + description: A time interval in milliseconds. + example: 60000 + format: int64 + type: integer + metric: + description: Measurable attribute to compute. + example: '@duration' + type: string + required: + - aggregation + type: object + MonitorFormulaAndFunctionEventQueryDefinitionSearch: + description: Search options. + properties: + query: + description: Events search string. + example: service:query + type: string + required: + - query + type: object + MonitorFormulaAndFunctionEventQueryGroupBy: + description: List of objects used to group by. + properties: + facet: + description: Event facet. + example: status + type: string + limit: + description: Number of groups to return. + example: 10 + format: int64 + type: integer + sort: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventQueryGroupBySort' + required: + - facet + type: object + MonitorFormulaAndFunctionEventQueryGroupBySort: + description: Options for sorting group by results. + properties: + aggregation: + $ref: '#/components/schemas/MonitorFormulaAndFunctionEventAggregation' + metric: + description: Metric used for sorting group by results. + type: string + order: + $ref: '#/components/schemas/QuerySortOrder' + required: + - aggregation + type: object + MonitorFormulaAndFunctionEventsDataSource: + description: Data source for event platform-based queries. + enum: + - rum + example: rum + type: string + x-enum-varnames: + - RUM + MonitorFormulaAndFunctionQueryDefinition: + description: A formula and function query. + oneOf: + - $ref: '#/components/schemas/MonitorFormulaAndFunctionEventQueryDefinition' + type: object MonitorGroupSearchResponse: description: The response of a monitor group search. example: @@ -5976,6 +6111,12 @@ components: format: int64 nullable: true type: integer + variables: + description: List of requests that can be used in the monitor query. **This + feature is currently in beta.** + items: + $ref: '#/components/schemas/MonitorFormulaAndFunctionQueryDefinition' + type: array type: object MonitorOverallStates: description: The different states your monitor can be in. @@ -16095,6 +16236,8 @@ components: global variables for Synthetics. synthetics_private_location_read: The ability to view, search and use in tests the list of private locations available. + synthetics_private_location_write: The ability to create and delete private + locations as well as seeing the associated installation guidelines. synthetics_read: The ability to list and view configured Synthetic tests. synthetics_write: The ability to create, edit, and delete Synthetic tests. timeseries_query: The ability to query Timeseries data. @@ -16699,6 +16842,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get the list of available daily custom reports tags: - Usage Metering @@ -16744,6 +16892,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get specified daily custom reports tags: - Usage Metering @@ -18130,6 +18283,10 @@ paths: description: Forbidden '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: [] summary: Get the total number of active hosts tags: - Hosts @@ -21683,6 +21840,11 @@ paths: description: Monitor Not Found error '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - monitors_read summary: Get all downtimes for a monitor tags: - Downtimes @@ -21741,6 +21903,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get the list of available monthly custom reports tags: - Usage Metering @@ -21792,6 +21959,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get specified monthly custom reports tags: - Usage Metering @@ -21920,6 +22092,10 @@ paths: description: Authentication Error '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: [] summary: Get all notebooks tags: - Notebooks @@ -22087,6 +22263,10 @@ paths: description: Not Found '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: [] summary: Get a notebook tags: - Notebooks @@ -23369,6 +23549,11 @@ paths: description: Batch does not exist. '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_read summary: Get details of batch tags: - Synthetics @@ -23433,6 +23618,11 @@ paths: description: Private locations are not activated for the user '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_private_location_write summary: Create a private location tags: - Synthetics @@ -23468,6 +23658,11 @@ paths: - Private location does not exist' '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_private_location_write summary: Delete a private location tags: - Synthetics @@ -23501,6 +23696,11 @@ paths: - Private location does not exist' '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_private_location_read summary: Get a private location tags: - Synthetics @@ -23541,6 +23741,11 @@ paths: - Private location does not exist' '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_private_location_write summary: Edit a private location tags: - Synthetics @@ -24251,6 +24456,11 @@ paths: description: Bad Request '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_write summary: Trigger Synthetics tests tags: - Synthetics @@ -24291,6 +24501,11 @@ paths: description: JSON format is wrong '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_write summary: Trigger tests from CI/CD pipelines tags: - Synthetics @@ -24332,6 +24547,11 @@ paths: - Test is not owned by the user' '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_read summary: Get a test configuration tags: - Synthetics @@ -24578,6 +24798,11 @@ paths: description: Forbidden '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_global_variable_write summary: Create a global variable tags: - Synthetics @@ -24714,6 +24939,11 @@ paths: description: Forbidden '429': $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - synthetics_global_variable_write summary: Edit a global variable tags: - Synthetics @@ -25173,6 +25403,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get hourly usage for audit logs tags: - Usage Metering @@ -25333,6 +25568,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get hourly usage for CSPM tags: - Usage Metering @@ -25446,6 +25686,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get hourly usage for Database Monitoring tags: - Usage Metering @@ -25981,6 +26226,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get hourly logs usage by retention tags: - Usage Metering @@ -26485,6 +26735,11 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Too many requests + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - usage_read summary: Get hourly usage for Sensitive Data Scanner tags: - Usage Metering diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6517e111460d..0d34ce016f99 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -5599,6 +5599,7 @@ components: security_monitoring_rules_write: The ability to create and edit Detection Rules. security_monitoring_signals_read: The ability to view Security Signals. + usage_read: The ability to view your organization's usage and usage attribution. user_access_invite: The ability to invite other users to your organization. user_access_manage: The ability to disable users, manage user roles, and manage SAML-to-role mappings. @@ -8731,11 +8732,6 @@ paths: $ref: '#/components/responses/NotAuthorizedResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_cws_agent_rules_read summary: Get all Cloud Workload Security Agent rules tags: - Cloud Workload Security @@ -8767,11 +8763,6 @@ paths: $ref: '#/components/responses/ConflictResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_cws_agent_rules_write summary: Create a Cloud Workload Security Agent rule tags: - Cloud Workload Security @@ -8807,11 +8798,6 @@ paths: $ref: '#/components/responses/NotFoundResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_cws_agent_rules_write summary: Delete a Cloud Workload Security Agent rule tags: - Cloud Workload Security @@ -8836,11 +8822,6 @@ paths: $ref: '#/components/responses/NotFoundResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_cws_agent_rules_read summary: Get a Cloud Workload Security Agent rule tags: - Cloud Workload Security @@ -8878,11 +8859,6 @@ paths: $ref: '#/components/responses/ConcurrentModificationResponse' '429': $ref: '#/components/responses/TooManyRequestsResponse' - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_cws_agent_rules_write summary: Update a Cloud Workload Security Agent rule tags: - Cloud Workload Security diff --git a/.generator/src/generator/templates/model_enum.j2 b/.generator/src/generator/templates/model_enum.j2 index 4215428b55a7..ea6459d92c4c 100644 --- a/.generator/src/generator/templates/model_enum.j2 +++ b/.generator/src/generator/templates/model_enum.j2 @@ -4,17 +4,19 @@ {%- endfor %} # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = {{ name }}.constants.select { |c| {{ name }}::const_get(c) == value } constantValues.empty? ? {{ config.moduleName }}::UnparsedObject.new(value) : value end - end \ No newline at end of file + end diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 62fa1ae6b814..57021bf2b363 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -1,5 +1,6 @@ class {{ name }} # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed {%- for attr, definition in model.get("properties", {}).items() %} @@ -8,6 +9,7 @@ {%- endfor %} # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { {%- for attr in model.properties %} @@ -16,12 +18,14 @@ } end - # Returns all the JSON keys this model knows about + # Returns all the JSON keys this model knows about{# TODO add parent #} + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { {%- for attr in model.properties %} @@ -31,13 +35,15 @@ end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `{{ config.moduleName }}::{{ name }}` initialize method" @@ -70,6 +76,7 @@ # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new {%- for attr, definition in model.get("properties", {}).items() %} @@ -85,6 +92,7 @@ # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? {%- for attr, definition in model.get("properties", {}).items() %} {%- if attr in model.get("required", []) %} @@ -95,7 +103,8 @@ end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [{% for attr in model.properties %}{{ attr|attribute_name }}{% if not loop.last %}, {% endif %}{% endfor %}].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000000..7ff6c4a11cba --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,70 @@ +name: docs + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + # Fetch all history for applying timestamps to every page + fetch-depth: 0 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "2.7" + bundler-cache: true + # modify repository secret when there are problems with installing gems + cache-version: ${{ secrets.CACHE_VERSION }} + + - name: Cache yardoc + uses: actions/cache@v2 + with: + path: | + .yardoc + doc + key: yardoc + + - name: Install + run: bundler install + + - name: Build documentation + run: bundler exec rake docs + + - uses: actions/upload-artifact@v2 + with: + name: documentation + path: doc + + publish: + runs-on: ubuntu-latest + + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + needs: + - build + + steps: + - uses: actions/download-artifact@v2 + with: + name: documentation + path: doc + + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./doc + commit_message: ${{ github.event.head_commit.message }} + # Write .nojekyll at the root, see: + # https://help.github.com/en/github/working-with-github-pages/about-github-pages#static-site-generators + enable_jekyll: false + # Only deploy if there were changes + allow_empty_commit: false \ No newline at end of file diff --git a/.gitignore b/.gitignore index b143f86ca50b..8c3450941832 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .bundle .env +.yardoc Gemfile.lock +doc/ failed.txt rerun.txt coverage/ diff --git a/Gemfile b/Gemfile index 2fa14481c43e..a3c992018685 100644 --- a/Gemfile +++ b/Gemfile @@ -7,17 +7,20 @@ gemspec group :development, :test do gem 'activesupport' gem 'cucumber' - gem 'gem-release' gem 'ddtrace', '>=0.51.0' - gem 'rake', '~> 13.0.1' + gem 'gem-release' + gem 'github-markup' gem 'pry-byebug' - gem 'vcr' - gem 'rubocop' + gem 'rake', '~> 13.0.1' + gem 'redcarpet' gem 'reek' gem 'rspec-expectations' + gem 'rubocop' gem 'rufo' gem 'simplecov' gem 'solargraph' gem 'timecop' + gem 'vcr' gem 'webmock' + gem 'yard' end diff --git a/Rakefile b/Rakefile index b7aa5d766e22..491f8f2267da 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,13 @@ require 'rubygems' require 'cucumber' require 'cucumber/rake/task' +require 'yard' Cucumber::Rake::Task.new(:features) + +YARD::Rake::YardocTask.new(:docs) do |t| + t.options += ['--title', "datadog-api-client #{DatadogAPIClient::VERSION} documentation"] + t.options += ['--markup', 'markdown'] + t.options += ['--markup-provider', 'redcarpet'] + t.options += ['--use-cache'] +end diff --git a/cassettes/features/v1/monitors/Create-a-RUM-formula-and-functions-monitor-returns-OK-response.frozen b/cassettes/features/v1/monitors/Create-a-RUM-formula-and-functions-monitor-returns-OK-response.frozen new file mode 100644 index 000000000000..4c68f2b4bd9d --- /dev/null +++ b/cassettes/features/v1/monitors/Create-a-RUM-formula-and-functions-monitor-returns-OK-response.frozen @@ -0,0 +1 @@ +2022-02-02T21:04:10.597Z \ No newline at end of file diff --git a/cassettes/features/v1/monitors/Create-a-RUM-formula-and-functions-monitor-returns-OK-response.yml b/cassettes/features/v1/monitors/Create-a-RUM-formula-and-functions-monitor-returns-OK-response.yml new file mode 100644 index 000000000000..ed89124c884e --- /dev/null +++ b/cassettes/features/v1/monitors/Create-a-RUM-formula-and-functions-monitor-returns-OK-response.yml @@ -0,0 +1,38 @@ +http_interactions: +- recorded_at: Wed, 02 Feb 2022 21:04:10 GMT + request: + body: + encoding: UTF-8 + string: '{"message":"some message Notify: @hipchat-channel","name":"Test-Create_a_RUM_formula_and_functions_monitor_returns_OK_response-1643835850","options":{"thresholds":{"critical":0.8},"variables":[{"compute":{"aggregation":"count"},"data_source":"rum","group_by":[],"indexes":["*"],"name":"query2","search":{"query":""}},{"compute":{"aggregation":"count"},"data_source":"rum","group_by":[],"indexes":["*"],"name":"query1","search":{"query":"status:error"}}]},"priority":3,"query":"formula(\"query2 + / query1 * 100\").last(\"15m\") >= 0.8","tags":["test:testcreatearumformulaandfunctionsmonitorreturnsokresponse1643835850","env:ci"],"type":"rum + alert"}' + headers: + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v1/monitor + response: + body: + encoding: UTF-8 + string: '{"restricted_roles":null,"tags":["test:testcreatearumformulaandfunctionsmonitorreturnsokresponse1643835850","env:ci"],"deleted":null,"query":"formula(\"query2 + / query1 * 100\").last(\"15m\") >= 0.8","message":"some message Notify: @hipchat-channel","id":62683819,"multi":false,"name":"Test-Create_a_RUM_formula_and_functions_monitor_returns_OK_response-1643835850","created":"2022-02-02T21:04:10.947341+00:00","created_at":1643835850000,"creator":{"id":1445416,"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"org_id":321813,"modified":"2022-02-02T21:04:10.947341+00:00","priority":3,"overall_state_modified":null,"overall_state":"No + Data","type":"rum alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"critical":0.8},"new_host_delay":300,"notify_no_data":false,"groupby_simple_monitor":false,"variables":[{"search":{"query":""},"data_source":"rum","compute":{"aggregation":"count"},"name":"query2","indexes":["*"],"group_by":[]},{"search":{"query":"status:error"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"],"group_by":[]}]}}' + status: + code: 200 + message: OK +- recorded_at: Wed, 02 Feb 2022 21:04:10 GMT + request: + body: null + headers: + Content-Type: + - application/json + method: DELETE + uri: https://api.datadoghq.com/api/v1/monitor/62683819 + response: + body: + encoding: UTF-8 + string: '{"deleted_monitor_id":62683819}' + status: + code: 200 + message: OK +recorded_with: VCR 6.0.0 diff --git a/examples/generated/v1/tags/CreateHostTags.rb b/examples/generated/v1/tags/CreateHostTags.rb new file mode 100644 index 000000000000..6e091516824b --- /dev/null +++ b/examples/generated/v1/tags/CreateHostTags.rb @@ -0,0 +1,15 @@ +require 'datadog_api_client' +api_instance = DatadogAPIClient::V1::TagsAPI.new +host_name = 'host_name_example' # String | This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. +body = DatadogAPIClient::V1::HostTags.new # HostTags | Update host tags request body. +opts = { + source: 'chef' # String | The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). +} + +begin + # Add tags to a host + result = api_instance.create_host_tags(host_name, body, opts) + p result +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling TagsAPI->create_host_tags: #{e}" +end diff --git a/examples/generated/v1/tags/DeleteHostTags.rb b/examples/generated/v1/tags/DeleteHostTags.rb new file mode 100644 index 000000000000..34f19286bb04 --- /dev/null +++ b/examples/generated/v1/tags/DeleteHostTags.rb @@ -0,0 +1,13 @@ +require 'datadog_api_client' +api_instance = DatadogAPIClient::V1::TagsAPI.new +host_name = 'host_name_example' # String | This endpoint allows you to remove all user-assigned tags for a single host. +opts = { + source: 'source_example' # String | The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). +} + +begin + # Remove host tags + api_instance.delete_host_tags(host_name, opts) +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling TagsAPI->delete_host_tags: #{e}" +end diff --git a/examples/generated/v1/tags/GetHostTags.rb b/examples/generated/v1/tags/GetHostTags.rb new file mode 100644 index 000000000000..f0ed78cf150b --- /dev/null +++ b/examples/generated/v1/tags/GetHostTags.rb @@ -0,0 +1,14 @@ +require 'datadog_api_client' +api_instance = DatadogAPIClient::V1::TagsAPI.new +host_name = 'host_name_example' # String | When specified, filters list of tags to those tags with the specified source. +opts = { + source: 'source_example' # String | Source to filter. +} + +begin + # Get host tags + result = api_instance.get_host_tags(host_name, opts) + p result +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling TagsAPI->get_host_tags: #{e}" +end diff --git a/examples/generated/v1/tags/ListHostTags.rb b/examples/generated/v1/tags/ListHostTags.rb new file mode 100644 index 000000000000..72200d2b48d1 --- /dev/null +++ b/examples/generated/v1/tags/ListHostTags.rb @@ -0,0 +1,13 @@ +require 'datadog_api_client' +api_instance = DatadogAPIClient::V1::TagsAPI.new +opts = { + source: 'source_example' # String | When specified, filters host list to those tags with the specified source. +} + +begin + # Get Tags + result = api_instance.list_host_tags(opts) + p result +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling TagsAPI->list_host_tags: #{e}" +end diff --git a/examples/generated/v1/tags/UpdateHostTags.rb b/examples/generated/v1/tags/UpdateHostTags.rb new file mode 100644 index 000000000000..5edfc9ef6a92 --- /dev/null +++ b/examples/generated/v1/tags/UpdateHostTags.rb @@ -0,0 +1,15 @@ +require 'datadog_api_client' +api_instance = DatadogAPIClient::V1::TagsAPI.new +host_name = 'host_name_example' # String | This endpoint allows you to update/replace all in an integration source with those supplied in the request. +body = DatadogAPIClient::V1::HostTags.new # HostTags | Add tags to host +opts = { + source: 'source_example' # String | The source of the tags (for example chef, puppet). [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value) +} + +begin + # Update host tags + result = api_instance.update_host_tags(host_name, body, opts) + p result +rescue DatadogAPIClient::V1::APIError => e + puts "Error when calling TagsAPI->update_host_tags: #{e}" +end diff --git a/examples/v1/monitors/CreateMonitor_3883669300.rb b/examples/v1/monitors/CreateMonitor_3883669300.rb new file mode 100644 index 000000000000..c24762aa0a74 --- /dev/null +++ b/examples/v1/monitors/CreateMonitor_3883669300.rb @@ -0,0 +1,52 @@ +# Create a RUM formula and functions monitor returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V1::MonitorsAPI.new + +body = DatadogAPIClient::V1::Monitor.new({ + name: "Example-Create_a_RUM_formula_and_functions_monitor_returns_OK_response", + type: DatadogAPIClient::V1::MonitorType::RUM_ALERT, + query: 'formula("query2 / query1 * 100").last("15m") >= 0.8', + message: "some message Notify: @hipchat-channel", + tags: [ + "test:examplecreatearumformulaandfunctionsmonitorreturnsokresponse", + "env:ci", + ], + priority: 3, + options: DatadogAPIClient::V1::MonitorOptions.new({ + thresholds: DatadogAPIClient::V1::MonitorThresholds.new({ + critical: 0.8, + }), + variables: [ + DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinition.new({ + data_source: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventsDataSource::RUM, + name: "query2", + search: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionSearch.new({ + query: "", + }), + indexes: [ + "*", + ], + compute: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionCompute.new({ + aggregation: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventAggregation::COUNT, + }), + group_by: [], + }), + DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinition.new({ + data_source: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventsDataSource::RUM, + name: "query1", + search: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionSearch.new({ + query: "status:error", + }), + indexes: [ + "*", + ], + compute: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionCompute.new({ + aggregation: DatadogAPIClient::V1::MonitorFormulaAndFunctionEventAggregation::COUNT, + }), + group_by: [], + }), + ], + }), +}) +p api_instance.create_monitor(body) diff --git a/features/v1/monitors.feature b/features/v1/monitors.feature index a9ac078a7c37..af0d00e9cabb 100644 --- a/features/v1/monitors.feature +++ b/features/v1/monitors.feature @@ -30,6 +30,13 @@ Feature: Monitors When the request is sent Then the response status is 200 OK + @team:DataDog/monitor-app + Scenario: Create a RUM formula and functions monitor returns "OK" response + Given new "CreateMonitor" request + And body with value {"name": "{{ unique }}","type": "rum alert","query": "formula(\"query2 / query1 * 100\").last(\"15m\") >= 0.8","message": "some message Notify: @hipchat-channel", "tags": ["test:{{ unique_lower_alnum }}", "env:ci"],"priority": 3,"options":{"thresholds":{"critical":0.8},"variables":[{"data_source": "rum","name": "query2","search": {"query": ""},"indexes": ["*"],"compute": {"aggregation": "count"},"group_by": []}, {"data_source": "rum","name": "query1","search": {"query": "status:error"},"indexes": ["*"],"compute": {"aggregation": "count"},"group_by": []}]}} + When the request is sent + Then the response status is 200 OK + @team:DataDog/monitor-app Scenario: Create a ci-pipelines monitor returns "OK" response Given new "CreateMonitor" request @@ -78,7 +85,7 @@ Feature: Monitors Scenario: Edit a monitor returns "Bad Request" response Given new "UpdateMonitor" request And request contains "monitor_id" parameter from "REPLACE.ME" - And body with value {"message": null, "name": null, "options": {"enable_logs_sample": null, "escalation_message": "none", "evaluation_delay": null, "groupby_simple_monitor": null, "include_tags": true, "locked": null, "min_failure_duration": 0, "min_location_failed": 1, "new_group_delay": null, "new_host_delay": 300, "no_data_timeframe": null, "notify_audit": false, "notify_no_data": false, "renotify_interval": "none", "renotify_occurrences": null, "renotify_statuses": ["alert"], "require_full_window": null, "silenced": null, "synthetics_check_id": null, "threshold_windows": {"recovery_window": null, "trigger_window": null}, "thresholds": {"critical": null, "critical_recovery": null, "ok": null, "unknown": null, "warning": null, "warning_recovery": null}, "timeout_h": "none"}, "priority": null, "query": null, "restricted_roles": [null], "tags": [null], "type": "query alert"} + And body with value {"message": null, "name": null, "options": {"enable_logs_sample": null, "escalation_message": "none", "evaluation_delay": null, "groupby_simple_monitor": null, "include_tags": true, "locked": null, "min_failure_duration": 0, "min_location_failed": 1, "new_group_delay": null, "new_host_delay": 300, "no_data_timeframe": null, "notify_audit": false, "notify_no_data": false, "renotify_interval": "none", "renotify_occurrences": null, "renotify_statuses": ["alert"], "require_full_window": null, "silenced": null, "synthetics_check_id": null, "threshold_windows": {"recovery_window": null, "trigger_window": null}, "thresholds": {"critical": null, "critical_recovery": null, "ok": null, "unknown": null, "warning": null, "warning_recovery": null}, "timeout_h": "none", "variables": [{"compute": {"aggregation": "avg", "interval": 60000, "metric": "@duration"}, "data_source": "rum", "group_by": [{"facet": "status", "limit": 10, "sort": {"aggregation": "avg", "metric": null, "order": "desc"}}], "indexes": ["days-3", "days-7"], "name": "query_errors", "search": {"query": "service:query"}}]}, "priority": null, "query": null, "restricted_roles": [null], "tags": [null], "type": "query alert"} When the request is sent Then the response status is 400 Bad Request diff --git a/lib/datadog_api_client/v1.rb b/lib/datadog_api_client/v1.rb index 79a9874d6884..c6cdfd364af8 100644 --- a/lib/datadog_api_client/v1.rb +++ b/lib/datadog_api_client/v1.rb @@ -263,6 +263,14 @@ require 'datadog_api_client/v1/models/metrics_query_unit' require 'datadog_api_client/v1/models/monitor' require 'datadog_api_client/v1/models/monitor_device_id' +require 'datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation' +require 'datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition' +require 'datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute' +require 'datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search' +require 'datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by' +require 'datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort' +require 'datadog_api_client/v1/models/monitor_formula_and_function_events_data_source' +require 'datadog_api_client/v1/models/monitor_formula_and_function_query_definition' require 'datadog_api_client/v1/models/monitor_group_search_response' require 'datadog_api_client/v1/models/monitor_group_search_response_counts' require 'datadog_api_client/v1/models/monitor_group_search_response_counts_status_item' diff --git a/lib/datadog_api_client/v1/api/downtimes_api.rb b/lib/datadog_api_client/v1/api/downtimes_api.rb index 72060b6a0b9d..7c46db0c1297 100644 --- a/lib/datadog_api_client/v1/api/downtimes_api.rb +++ b/lib/datadog_api_client/v1/api/downtimes_api.rb @@ -449,7 +449,7 @@ def list_monitor_downtimes_with_http_info(monitor_id, opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_monitor_downtimes, diff --git a/lib/datadog_api_client/v1/api/hosts_api.rb b/lib/datadog_api_client/v1/api/hosts_api.rb index 76da0e97a63c..8b850cf3abbc 100644 --- a/lib/datadog_api_client/v1/api/hosts_api.rb +++ b/lib/datadog_api_client/v1/api/hosts_api.rb @@ -77,7 +77,7 @@ def get_host_totals_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'HostTotals' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_host_totals, diff --git a/lib/datadog_api_client/v1/api/notebooks_api.rb b/lib/datadog_api_client/v1/api/notebooks_api.rb index 841ccdeabcc7..402a179951fa 100644 --- a/lib/datadog_api_client/v1/api/notebooks_api.rb +++ b/lib/datadog_api_client/v1/api/notebooks_api.rb @@ -228,7 +228,7 @@ def get_notebook_with_http_info(notebook_id, opts = {}) return_type = opts[:debug_return_type] || 'NotebookResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_notebook, @@ -337,7 +337,7 @@ def list_notebooks_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'NotebooksResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_notebooks, diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 8dd57894bbc6..2254b5db58bc 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -80,7 +80,7 @@ def create_global_variable_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGlobalVariable' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_global_variable, @@ -156,7 +156,7 @@ def create_private_location_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsPrivateLocationCreationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_private_location, @@ -456,7 +456,7 @@ def delete_private_location_with_http_info(location_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_private_location, @@ -615,7 +615,7 @@ def edit_global_variable_with_http_info(variable_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsGlobalVariable' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :edit_global_variable, @@ -1249,7 +1249,7 @@ def get_private_location_with_http_info(location_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsPrivateLocation' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_private_location, @@ -1323,7 +1323,7 @@ def get_synthetics_ci_batch_with_http_info(batch_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsBatchDetails' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_synthetics_ci_batch, @@ -1397,7 +1397,7 @@ def get_test_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsTestDetails' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_test, @@ -1676,7 +1676,7 @@ def trigger_ci_tests_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsTriggerCITestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_ci_tests, @@ -1752,7 +1752,7 @@ def trigger_tests_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsTriggerCITestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_tests, @@ -2001,7 +2001,7 @@ def update_private_location_with_http_info(location_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsPrivateLocation' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_private_location, diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index a72b20b98005..6e4f8c3fdfb5 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -87,7 +87,7 @@ def get_daily_custom_reports_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_daily_custom_reports, @@ -423,7 +423,7 @@ def get_monthly_custom_reports_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_monthly_custom_reports, @@ -600,7 +600,7 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_specified_daily_custom_reports, @@ -674,7 +674,7 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_specified_monthly_custom_reports, @@ -939,7 +939,7 @@ def get_usage_audit_logs_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageAuditLogsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_audit_logs, @@ -1089,7 +1089,7 @@ def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = return_type = opts[:debug_return_type] || 'UsageCloudSecurityPostureManagementResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_cloud_security_posture_management, @@ -1247,7 +1247,7 @@ def get_usage_dbm_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageDBMResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_dbm, @@ -1883,7 +1883,7 @@ def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageLogsByRetentionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_logs_by_retention, @@ -2361,7 +2361,7 @@ def get_usage_sds_with_http_info(start_hr, opts = {}) return_type = opts[:debug_return_type] || 'UsageSDSResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_usage_sds, diff --git a/lib/datadog_api_client/v1/models/access_role.rb b/lib/datadog_api_client/v1/models/access_role.rb index 17ab17e95707..62344439377e 100644 --- a/lib/datadog_api_client/v1/models/access_role.rb +++ b/lib/datadog_api_client/v1/models/access_role.rb @@ -25,15 +25,17 @@ class AccessRole ERROR = "ERROR".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = AccessRole.constants.select { |c| AccessRole::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb index 0c8e63583e85..d7082b840e8a 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Alert graphs are timeseries graphs showing the current status of any monitor defined on your system. class AlertGraphWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the alert to use in the widget. @@ -44,6 +45,7 @@ class AlertGraphWidgetDefinition attr_accessor :viz_type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'alert_id' => :'alert_id', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'alert_id' => :'String', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AlertGraphWidgetDefinition` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @alert_id.nil? @@ -145,6 +152,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @alert_id.nil? return false if @type.nil? @@ -153,7 +161,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -167,20 +176,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [alert_id, time, title, title_align, title_size, type, viz_type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -188,6 +200,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -208,9 +221,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -259,18 +273,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -287,8 +304,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb b/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb index 06b47aa84525..993978ea6da6 100644 --- a/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/alert_graph_widget_definition_type.rb @@ -22,15 +22,17 @@ class AlertGraphWidgetDefinitionType ALERT_GRAPH = "alert_graph".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = AlertGraphWidgetDefinitionType.constants.select { |c| AlertGraphWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb index 3761893a8688..a0dabb51436a 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Alert values are query values showing the current value of the metric in any monitor defined on your system. class AlertValueWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the alert to use in the widget. @@ -47,6 +48,7 @@ class AlertValueWidgetDefinition attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'alert_id' => :'alert_id', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'alert_id' => :'String', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AlertValueWidgetDefinition` initialize method" @@ -137,6 +143,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @alert_id.nil? @@ -151,6 +158,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @alert_id.nil? return false if @type.nil? @@ -158,7 +166,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -173,20 +182,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [alert_id, precision, text_align, title, title_align, title_size, type, unit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -194,6 +206,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -214,9 +227,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -265,18 +279,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -293,8 +310,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb b/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb index 9d950fc2610d..a772a1e9b488 100644 --- a/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/alert_value_widget_definition_type.rb @@ -22,15 +22,17 @@ class AlertValueWidgetDefinitionType ALERT_VALUE = "alert_value".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = AlertValueWidgetDefinitionType.constants.select { |c| AlertValueWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/api_error_response.rb b/lib/datadog_api_client/v1/models/api_error_response.rb index 135424bac829..75bbc07ce039 100644 --- a/lib/datadog_api_client/v1/models/api_error_response.rb +++ b/lib/datadog_api_client/v1/models/api_error_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Error response object. class APIErrorResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of errors returned by the API. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'errors' => :'errors' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'errors' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::APIErrorResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @errors.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @errors.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/api_key.rb b/lib/datadog_api_client/v1/models/api_key.rb index dbd050922ded..52e86eb35864 100644 --- a/lib/datadog_api_client/v1/models/api_key.rb +++ b/lib/datadog_api_client/v1/models/api_key.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Datadog API key. class ApiKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Date of creation of the API key. @@ -35,6 +36,7 @@ class ApiKey attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKey` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, created_by, key, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/api_key_list_response.rb b/lib/datadog_api_client/v1/models/api_key_list_response.rb index faf6f36bc90a..fe0ea4076c60 100644 --- a/lib/datadog_api_client/v1/models/api_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # List of API and application keys available for a given organization. class ApiKeyListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of API keys. attr_accessor :api_keys # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'api_keys' => :'api_keys' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'api_keys' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKeyListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [api_keys].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/api_key_response.rb b/lib/datadog_api_client/v1/models/api_key_response.rb index a8be1695a1de..938598c13a6e 100644 --- a/lib/datadog_api_client/v1/models/api_key_response.rb +++ b/lib/datadog_api_client/v1/models/api_key_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An API key with its associated metadata. class ApiKeyResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Datadog API key. attr_accessor :api_key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'api_key' => :'api_key' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'api_key' => :'ApiKey' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApiKeyResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [api_key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb index f13da106be64..5003123fd885 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Column properties. class ApmStatsQueryColumnType # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A user-assigned alias for the column. @@ -35,6 +36,7 @@ class ApmStatsQueryColumnType attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_alias' => :'alias', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_alias' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApmStatsQueryColumnType` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -110,13 +117,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_alias, cell_display_mode, name, order].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb index ad46fa28cb34..5068321cc2d0 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The APM stats query for table and distributions widgets. class ApmStatsQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Column properties used by the front end for display. @@ -44,6 +45,7 @@ class ApmStatsQueryDefinition attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'columns' => :'columns', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'columns' => :'Array', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApmStatsQueryDefinition` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @env.nil? @@ -151,6 +158,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @env.nil? return false if @name.nil? @@ -161,7 +169,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -175,20 +184,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [columns, env, name, primary_tag, resource, row_type, service].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -196,6 +208,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -216,9 +229,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -267,18 +281,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -295,8 +312,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb b/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb index 79a1e1d09411..bcc3969223e2 100644 --- a/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb +++ b/lib/datadog_api_client/v1/models/apm_stats_query_row_type.rb @@ -24,15 +24,17 @@ class ApmStatsQueryRowType SPAN = "span".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ApmStatsQueryRowType.constants.select { |c| ApmStatsQueryRowType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/application_key.rb b/lib/datadog_api_client/v1/models/application_key.rb index a2b8544f4399..ed09fda45684 100644 --- a/lib/datadog_api_client/v1/models/application_key.rb +++ b/lib/datadog_api_client/v1/models/application_key.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An application key with its associated metadata. class ApplicationKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Hash of an application key. @@ -32,6 +33,7 @@ class ApplicationKey attr_accessor :owner # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hash' => :'hash', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hash' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKey` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hash, name, owner].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/application_key_list_response.rb b/lib/datadog_api_client/v1/models/application_key_list_response.rb index 9d54e708165f..aee48d4928c2 100644 --- a/lib/datadog_api_client/v1/models/application_key_list_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An application key response. class ApplicationKeyListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of application keys. attr_accessor :application_keys # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'application_keys' => :'application_keys' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'application_keys' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKeyListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [application_keys].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/application_key_response.rb b/lib/datadog_api_client/v1/models/application_key_response.rb index 41fedbebf427..ca7ccafe11cf 100644 --- a/lib/datadog_api_client/v1/models/application_key_response.rb +++ b/lib/datadog_api_client/v1/models/application_key_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An application key response. class ApplicationKeyResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An application key with its associated metadata. attr_accessor :application_key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'application_key' => :'application_key' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'application_key' => :'ApplicationKey' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ApplicationKeyResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [application_key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/authentication_validation_response.rb b/lib/datadog_api_client/v1/models/authentication_validation_response.rb index 626ad2fe25c1..ee13bb5b21e6 100644 --- a/lib/datadog_api_client/v1/models/authentication_validation_response.rb +++ b/lib/datadog_api_client/v1/models/authentication_validation_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Represent validation endpoint responses. class AuthenticationValidationResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Return `true` if the authentication response is valid. attr_accessor :valid # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'valid' => :'valid' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'valid' => :'Boolean' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AuthenticationValidationResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [valid].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_account.rb b/lib/datadog_api_client/v1/models/aws_account.rb index 160b1d482f9e..676e272d6ae4 100644 --- a/lib/datadog_api_client/v1/models/aws_account.rb +++ b/lib/datadog_api_client/v1/models/aws_account.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Returns the AWS account associated with this integration. class AWSAccount # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. @@ -64,6 +65,7 @@ class AWSAccount attr_accessor :secret_access_key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'access_key_id' => :'access_key_id', @@ -81,11 +83,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'access_key_id' => :'String', @@ -103,13 +107,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccount` initialize method" @@ -182,6 +188,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -190,12 +197,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -213,20 +222,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -234,6 +246,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -254,9 +267,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -305,18 +319,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -333,8 +350,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb index f96ceb1cc6dd..196e72bea13d 100644 --- a/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # AWS account ID and Lambda ARN. class AWSAccountAndLambdaRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your AWS Account ID without dashes. @@ -29,6 +30,7 @@ class AWSAccountAndLambdaRequest attr_accessor :lambda_arn # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_id' => :'account_id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountAndLambdaRequest` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @account_id.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @account_id.nil? return false if @lambda_arn.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_id, lambda_arn].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_account_create_response.rb b/lib/datadog_api_client/v1/models/aws_account_create_response.rb index 416df5991eb5..1a94fe0651ec 100644 --- a/lib/datadog_api_client/v1/models/aws_account_create_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_create_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The Response returned by the AWS Create Account call. class AWSAccountCreateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # AWS external_id. attr_accessor :external_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'external_id' => :'external_id' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'external_id' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountCreateResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [external_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb index 74bcec406a8f..5c6bb7e3828b 100644 --- a/lib/datadog_api_client/v1/models/aws_account_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_account_delete_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # List of AWS accounts to delete. class AWSAccountDeleteRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your AWS access key ID. Only required if your AWS account is a GovCloud or China account. @@ -32,6 +33,7 @@ class AWSAccountDeleteRequest attr_accessor :role_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'access_key_id' => :'access_key_id', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'access_key_id' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountDeleteRequest` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [access_key_id, account_id, role_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_account_list_response.rb b/lib/datadog_api_client/v1/models/aws_account_list_response.rb index 81b10e1f6baa..eb0a91ff2b0a 100644 --- a/lib/datadog_api_client/v1/models/aws_account_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_account_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # List of enabled AWS accounts. class AWSAccountListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of enabled AWS accounts. attr_accessor :accounts # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'accounts' => :'accounts' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'accounts' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSAccountListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [accounts].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb index da518059c763..bc262dcea294 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_error.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_error.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Description of errors. class AWSLogsAsyncError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Code properties @@ -29,6 +30,7 @@ class AWSLogsAsyncError attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'code' => :'code', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'code' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsAsyncError` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [code, message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb index 33456d39fbc3..9fb91c33d1bc 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_async_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_async_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A list of all Datadog-AWS logs integrations available in your Datadog organization. class AWSLogsAsyncResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of errors. @@ -29,6 +30,7 @@ class AWSLogsAsyncResponse attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'errors' => :'errors', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'errors' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsAsyncResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [errors, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb index f443a5e74839..9e32d06a8b70 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_lambda.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_lambda.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Description of the Lambdas. class AWSLogsLambda # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Available ARN IDs. attr_accessor :arn # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'arn' => :'arn' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'arn' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsLambda` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [arn].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb index e4a9f65a562a..d12ff0e30ca9 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A list of all Datadog-AWS logs integrations available in your Datadog organization. class AWSLogsListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your AWS Account ID without dashes. @@ -32,6 +33,7 @@ class AWSLogsListResponse attr_accessor :services # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_id' => :'account_id', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_id' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsListResponse` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -102,12 +109,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_id, lambdas, services].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb index 683e5d830f09..bbbb7bd7b52b 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_list_services_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The list of current AWS services for which Datadog offers automatic log collection. class AWSLogsListServicesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Key value in returned object. @@ -29,6 +30,7 @@ class AWSLogsListServicesResponse attr_accessor :label # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsListServicesResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, label].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb index bdc0da0f29ac..b986bc81fcf4 100644 --- a/lib/datadog_api_client/v1/models/aws_logs_services_request.rb +++ b/lib/datadog_api_client/v1/models/aws_logs_services_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A list of current AWS services for which Datadog offers automatic log collection. class AWSLogsServicesRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your AWS Account ID without dashes. @@ -29,6 +30,7 @@ class AWSLogsServicesRequest attr_accessor :services # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_id' => :'account_id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSLogsServicesRequest` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @account_id.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @account_id.nil? return false if @services.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_id, services].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_namespace.rb b/lib/datadog_api_client/v1/models/aws_namespace.rb index e165943621ea..f715d0c49f84 100644 --- a/lib/datadog_api_client/v1/models/aws_namespace.rb +++ b/lib/datadog_api_client/v1/models/aws_namespace.rb @@ -28,15 +28,17 @@ class AWSNamespace LAMBDA = "lambda".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = AWSNamespace.constants.select { |c| AWSNamespace::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter.rb b/lib/datadog_api_client/v1/models/aws_tag_filter.rb index ef8fa2fdf157..0e0537e99755 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A tag filter. class AWSTagFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The namespace associated with the tag filter entry. @@ -29,6 +30,7 @@ class AWSTagFilter attr_accessor :tag_filter_str # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'namespace' => :'namespace', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'namespace' => :'AWSNamespace', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilter` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [namespace, tag_filter_str].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb index 54652e3a941e..85b9e60318c0 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_create_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The objects used to set an AWS tag filter. class AWSTagFilterCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your AWS Account ID without dashes. @@ -32,6 +33,7 @@ class AWSTagFilterCreateRequest attr_accessor :tag_filter_str # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_id' => :'account_id', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_id' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterCreateRequest` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_id, namespace, tag_filter_str].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb index bb8d93d07c36..5a41a45fb1df 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_delete_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The objects used to delete an AWS tag filter entry. class AWSTagFilterDeleteRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The unique identifier of your AWS account. @@ -29,6 +30,7 @@ class AWSTagFilterDeleteRequest attr_accessor :namespace # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_id' => :'account_id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterDeleteRequest` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_id, namespace].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb index b837811dc205..6db04aa04ee7 100644 --- a/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb +++ b/lib/datadog_api_client/v1/models/aws_tag_filter_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An array of tag filter rules by `namespace` and tag filter string. class AWSTagFilterListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of tag filters. attr_accessor :filters # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filters' => :'filters' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filters' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AWSTagFilterListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filters].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/azure_account.rb b/lib/datadog_api_client/v1/models/azure_account.rb index 58979cb469d3..f6efd68259a1 100644 --- a/lib/datadog_api_client/v1/models/azure_account.rb +++ b/lib/datadog_api_client/v1/models/azure_account.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Datadog-Azure integrations configured for your organization. class AzureAccount # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Silence monitors for expected Azure VM shutdowns. @@ -48,6 +49,7 @@ class AzureAccount attr_accessor :tenant_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'automute' => :'automute', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'automute' => :'Boolean', @@ -81,13 +85,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AzureAccount` initialize method" @@ -138,6 +144,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -146,12 +153,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -166,20 +175,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [automute, client_id, client_secret, errors, host_filters, new_client_id, new_tenant_name, tenant_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -187,6 +199,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -207,9 +220,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -258,18 +272,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -286,8 +303,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb index 166846a0dc95..548c43b45177 100644 --- a/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +++ b/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Cancel downtimes according to scope. class CancelDowntimesByScopeRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The scope(s) to which the downtime applies. For example, `host:app2`. @@ -28,6 +29,7 @@ class CancelDowntimesByScopeRequest attr_accessor :scope # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'scope' => :'scope' @@ -35,11 +37,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'scope' => :'String' @@ -47,13 +51,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CancelDowntimesByScopeRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @scope.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @scope.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [scope].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb index 97b30a2b3758..5079c04ca514 100644 --- a/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb +++ b/lib/datadog_api_client/v1/models/canceled_downtimes_ids.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object containing array of IDs of canceled downtimes. class CanceledDowntimesIds # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of downtimes that were canceled. attr_accessor :cancelled_ids # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cancelled_ids' => :'cancelled_ids' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cancelled_ids' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CanceledDowntimesIds` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cancelled_ids].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/change_widget_definition.rb b/lib/datadog_api_client/v1/models/change_widget_definition.rb index e1c6ed4ba07d..4ac6c05aec6f 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The Change graph shows you the change in a value over the time period chosen. class ChangeWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -47,6 +48,7 @@ class ChangeWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -60,11 +62,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -78,13 +82,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ChangeWidgetDefinition` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -149,6 +156,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -156,7 +164,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -170,20 +179,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, requests, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -191,6 +203,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -211,9 +224,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -262,18 +276,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -290,8 +307,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/change_widget_definition_type.rb b/lib/datadog_api_client/v1/models/change_widget_definition_type.rb index a2c888807cc2..1ee51ab4e86d 100644 --- a/lib/datadog_api_client/v1/models/change_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/change_widget_definition_type.rb @@ -22,15 +22,17 @@ class ChangeWidgetDefinitionType CHANGE = "change".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ChangeWidgetDefinitionType.constants.select { |c| ChangeWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/change_widget_request.rb b/lib/datadog_api_client/v1/models/change_widget_request.rb index aaf05edb3c0d..db2826951369 100644 --- a/lib/datadog_api_client/v1/models/change_widget_request.rb +++ b/lib/datadog_api_client/v1/models/change_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated change widget. class ChangeWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -77,6 +78,7 @@ class ChangeWidgetRequest attr_accessor :show_present # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -101,11 +103,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -130,13 +134,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ChangeWidgetRequest` initialize method" @@ -229,6 +235,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -237,12 +244,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -267,20 +276,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, change_type, compare_to, event_query, formulas, increase_good, log_query, network_query, order_by, order_dir, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, show_present].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -288,6 +300,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -308,9 +321,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -359,18 +373,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -387,8 +404,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb index d76ed0b85422..30764937f6db 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response of monitor IDs that can or can't be safely deleted. class CheckCanDeleteMonitorResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Wrapper object with the list of monitor IDs. @@ -29,6 +30,7 @@ class CheckCanDeleteMonitorResponse attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'CheckCanDeleteMonitorResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb index fb92b9deb0e1..60a280d2ecc4 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Wrapper object with the list of monitor IDs. class CheckCanDeleteMonitorResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of of Monitor IDs that can be safely deleted. attr_accessor :ok # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'ok' => :'ok' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'ok' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteMonitorResponseData` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [ok].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb index f49f83b9a2e4..83e811454054 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A service level objective response containing the requested object. class CheckCanDeleteSLOResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of service level objective objects. @@ -29,6 +30,7 @@ class CheckCanDeleteSLOResponse attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'CheckCanDeleteSLOResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteSLOResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb index 444e99e8c646..7c53c25f2a41 100644 --- a/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class CheckCanDeleteSLOResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of of SLO IDs that can be safely deleted. attr_accessor :ok # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'ok' => :'ok' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'ok' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckCanDeleteSLOResponseData` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [ok].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb index 60c079b50529..afb7d2ad2890 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Check status shows the current status or number of results for any check performed. class CheckStatusWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the check to use in the widget. @@ -53,6 +54,7 @@ class CheckStatusWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check' => :'check', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check' => :'String', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckStatusWidgetDefinition` initialize method" @@ -159,6 +165,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @check.nil? @@ -176,6 +183,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @check.nil? return false if @grouping.nil? @@ -184,7 +192,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -201,20 +210,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check, group, group_by, grouping, tags, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -222,6 +234,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -242,9 +255,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -293,18 +307,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -321,8 +338,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb b/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb index b1daf2b662b7..c4ed970f3463 100644 --- a/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/check_status_widget_definition_type.rb @@ -22,15 +22,17 @@ class CheckStatusWidgetDefinitionType CHECK_STATUS = "check_status".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = CheckStatusWidgetDefinitionType.constants.select { |c| CheckStatusWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/content_encoding.rb b/lib/datadog_api_client/v1/models/content_encoding.rb index f34ee7cd5acb..4b5a562458a6 100644 --- a/lib/datadog_api_client/v1/models/content_encoding.rb +++ b/lib/datadog_api_client/v1/models/content_encoding.rb @@ -23,15 +23,17 @@ class ContentEncoding DEFLATE = "deflate".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ContentEncoding.constants.select { |c| ContentEncoding::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/creator.rb b/lib/datadog_api_client/v1/models/creator.rb index 528549efed21..b5afc0989046 100644 --- a/lib/datadog_api_client/v1/models/creator.rb +++ b/lib/datadog_api_client/v1/models/creator.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the creator of the shared element. class Creator # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Email of the creator. @@ -32,6 +33,7 @@ class Creator attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'email' => :'email', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'email' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Creator` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [email, handle, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard.rb b/lib/datadog_api_client/v1/models/dashboard.rb index 63c633e653ed..c6b5c5dcc68a 100644 --- a/lib/datadog_api_client/v1/models/dashboard.rb +++ b/lib/datadog_api_client/v1/models/dashboard.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # key performance metrics, which enable you to monitor the health of your infrastructure. class Dashboard # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Identifier of the dashboard author. @@ -74,6 +75,7 @@ class Dashboard attr_accessor :widgets # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'author_handle' => :'author_handle', @@ -96,11 +98,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'author_handle' => :'String', @@ -123,13 +127,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Dashboard` initialize method" @@ -222,6 +228,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @layout_type.nil? @@ -239,6 +246,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @layout_type.nil? return false if @title.nil? @@ -247,7 +255,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -270,20 +279,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [author_handle, author_name, created_at, description, id, is_read_only, layout_type, modified_at, notify_list, reflow_type, restricted_roles, template_variable_presets, template_variables, title, url, widgets].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -291,6 +303,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -311,9 +324,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -362,18 +376,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -390,8 +407,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb index a378ab26af30..87b9786f2bc4 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Dashboard bulk action request data. class DashboardBulkActionData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Dashboard resource ID. @@ -29,6 +30,7 @@ class DashboardBulkActionData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardBulkActionData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb index fdb1554c9be9..fdedaf424fcc 100644 --- a/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Dashboard bulk delete request body. class DashboardBulkDeleteRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboard bulk action request data objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardBulkDeleteRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb index 29e1464ec6f2..91fa53ccab21 100644 --- a/lib/datadog_api_client/v1/models/dashboard_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_delete_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response from the delete dashboard call. class DashboardDeleteResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the deleted dashboard. attr_accessor :deleted_dashboard_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted_dashboard_id' => :'deleted_dashboard_id' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted_dashboard_id' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardDeleteResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted_dashboard_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_layout_type.rb b/lib/datadog_api_client/v1/models/dashboard_layout_type.rb index a5786a44d6f5..074955549e1d 100644 --- a/lib/datadog_api_client/v1/models/dashboard_layout_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_layout_type.rb @@ -23,15 +23,17 @@ class DashboardLayoutType FREE = "free".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = DashboardLayoutType.constants.select { |c| DashboardLayoutType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/dashboard_list.rb b/lib/datadog_api_client/v1/models/dashboard_list.rb index 8966b30b5acb..a17ebea42a69 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Your Datadog Dashboards. class DashboardList # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object describing the creator of the shared element. @@ -47,6 +48,7 @@ class DashboardList attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'author' => :'author', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'author' => :'Creator', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardList` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -146,13 +153,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -167,20 +176,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [author, created, dashboard_count, id, is_favorite, modified, name, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -188,6 +200,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -208,9 +221,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -259,18 +273,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -287,8 +304,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb index 31aa4ef62ac8..bd7c09f6c564 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_delete_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Deleted dashboard details. class DashboardListDeleteResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the deleted dashboard list. attr_accessor :deleted_dashboard_list_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted_dashboard_list_id' => :'deleted_dashboard_list_id' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted_dashboard_list_id' => :'Integer' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardListDeleteResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted_dashboard_list_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb index dd6218d22219..da099302a347 100644 --- a/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb +++ b/lib/datadog_api_client/v1/models/dashboard_list_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Information on your dashboard lists. class DashboardListListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of all your dashboard lists. attr_accessor :dashboard_lists # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboard_lists' => :'dashboard_lists' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboard_lists' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardListListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboard_lists].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb b/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb index c6d9540bd354..10e3442de2d2 100644 --- a/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_reflow_type.rb @@ -25,15 +25,17 @@ class DashboardReflowType FIXED = "fixed".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = DashboardReflowType.constants.select { |c| DashboardReflowType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/dashboard_resource_type.rb b/lib/datadog_api_client/v1/models/dashboard_resource_type.rb index 99698ddc6203..d0ef6dfb3ea6 100644 --- a/lib/datadog_api_client/v1/models/dashboard_resource_type.rb +++ b/lib/datadog_api_client/v1/models/dashboard_resource_type.rb @@ -22,15 +22,17 @@ class DashboardResourceType DASHBOARD = "dashboard".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = DashboardResourceType.constants.select { |c| DashboardResourceType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb index 339bba5c339c..c211d1fc0e61 100644 --- a/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +++ b/lib/datadog_api_client/v1/models/dashboard_restore_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Dashboard restore request body. class DashboardRestoreRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboard bulk action request data objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardRestoreRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_summary.rb b/lib/datadog_api_client/v1/models/dashboard_summary.rb index 570bf3afe36d..44a457920a7c 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Dashboard summary response. class DashboardSummary # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboard definitions. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboards' => :'dashboards' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboards' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummary` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboards].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb index ace4b8c6d676..4bb5ad8f3415 100644 --- a/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +++ b/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Dashboard definition. class DashboardSummaryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Identifier of the dashboard author. @@ -50,6 +51,7 @@ class DashboardSummaryDefinition attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'author_handle' => :'author_handle', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'author_handle' => :'String', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummaryDefinition` initialize method" @@ -144,6 +150,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -152,12 +159,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -173,20 +182,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [author_handle, created_at, description, id, is_read_only, layout_type, modified_at, title, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -194,6 +206,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -214,9 +227,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -265,18 +279,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -293,8 +310,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb index 1fb61086cbf7..b22b1cee0f10 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Template variable. class DashboardTemplateVariable # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The list of values that the template variable drop-down is limited to. @@ -35,6 +36,7 @@ class DashboardTemplateVariable attr_accessor :prefix # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'available_values' => :'available_values', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'available_values' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariable` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [available_values, default, name, prefix].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb index 81ca421a8bdb..834409b6b175 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Template variables saved views. class DashboardTemplateVariablePreset # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The name of the variable. @@ -29,6 +30,7 @@ class DashboardTemplateVariablePreset attr_accessor :template_variables # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariablePreset` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name, template_variables].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb index 3db33d06bd4f..88131ffc72bd 100644 --- a/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +++ b/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Template variables saved views. class DashboardTemplateVariablePresetValue # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The name of the variable. @@ -29,6 +30,7 @@ class DashboardTemplateVariablePresetValue attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardTemplateVariablePresetValue` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/deleted_monitor.rb b/lib/datadog_api_client/v1/models/deleted_monitor.rb index 45f36f30f571..51248f228a80 100644 --- a/lib/datadog_api_client/v1/models/deleted_monitor.rb +++ b/lib/datadog_api_client/v1/models/deleted_monitor.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response from the delete monitor call. class DeletedMonitor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the deleted monitor. attr_accessor :deleted_monitor_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted_monitor_id' => :'deleted_monitor_id' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted_monitor_id' => :'Integer' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DeletedMonitor` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted_monitor_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb index 56493977e725..8ad56d4de33d 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition.rb @@ -22,6 +22,7 @@ module DatadogAPIClient::V1 # Unlike the heat map, a distribution graph’s x-axis is quantity rather than time. class DistributionWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # (Deprecated) The widget legend was replaced by a tooltip and sidebar. @@ -61,6 +62,7 @@ class DistributionWidgetDefinition attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'legend_size' => :'legend_size', @@ -78,11 +80,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'legend_size' => :'String', @@ -100,13 +104,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetDefinition` initialize method" @@ -173,6 +179,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -187,6 +194,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -194,7 +202,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -212,20 +221,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [legend_size, markers, requests, show_legend, time, title, title_align, title_size, type, xaxis, yaxis].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -233,6 +245,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -253,9 +266,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -304,18 +318,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -332,8 +349,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb b/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb index 5a856a6956ac..45eb7c59f9b8 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb @@ -22,15 +22,17 @@ class DistributionWidgetDefinitionType DISTRIBUTION = "distribution".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = DistributionWidgetDefinitionType.constants.select { |c| DistributionWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/distribution_widget_request.rb b/lib/datadog_api_client/v1/models/distribution_widget_request.rb index b9b5b4a85259..d14e88935209 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_request.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated distribution widget. class DistributionWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -56,6 +57,7 @@ class DistributionWidgetRequest attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -73,11 +75,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -95,13 +99,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetRequest` initialize method" @@ -162,6 +168,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -170,12 +177,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -193,20 +202,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, apm_stats_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, rum_query, security_query, style].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -214,6 +226,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -234,9 +247,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -285,18 +299,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -313,8 +330,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb index ae25cb4f2054..b241b4257c59 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # X Axis controls for the distribution widget. class DistributionWidgetXAxis # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # True includes zero. @@ -35,6 +36,7 @@ class DistributionWidgetXAxis attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'include_zero' => :'include_zero', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'include_zero' => :'Boolean', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetXAxis` initialize method" @@ -105,6 +111,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -113,12 +120,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [include_zero, max, min, scale].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb index c4381fd42521..377f558bbac4 100644 --- a/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb +++ b/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Y Axis controls for the distribution widget. class DistributionWidgetYAxis # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # True includes zero. @@ -38,6 +39,7 @@ class DistributionWidgetYAxis attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'include_zero' => :'include_zero', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'include_zero' => :'Boolean', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DistributionWidgetYAxis` initialize method" @@ -114,6 +120,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -122,12 +129,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -139,20 +148,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [include_zero, label, max, min, scale].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -160,6 +172,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -180,9 +193,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -231,18 +245,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -259,8 +276,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/downtime.rb b/lib/datadog_api_client/v1/models/downtime.rb index 37e8ce45df4a..8665028a4446 100644 --- a/lib/datadog_api_client/v1/models/downtime.rb +++ b/lib/datadog_api_client/v1/models/downtime.rb @@ -23,6 +23,7 @@ module DatadogAPIClient::V1 # prevent all alerting related to specified Datadog tags. class Downtime # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If a scheduled downtime currently exists. @@ -89,6 +90,7 @@ class Downtime attr_accessor :updater_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'active' => :'active', @@ -112,11 +114,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'active' => :'Boolean', @@ -140,13 +144,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Downtime` initialize method" @@ -235,6 +241,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -243,12 +250,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -272,20 +281,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [active, active_child, canceled, creator_id, disabled, downtime_type, _end, id, message, monitor_id, monitor_tags, parent_id, recurrence, scope, start, timezone, updater_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -293,6 +305,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -313,9 +326,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -364,18 +378,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -392,8 +409,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/downtime_child.rb b/lib/datadog_api_client/v1/models/downtime_child.rb index 344d67596218..35db3a8faf84 100644 --- a/lib/datadog_api_client/v1/models/downtime_child.rb +++ b/lib/datadog_api_client/v1/models/downtime_child.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # field will only exist on recurring downtimes. class DowntimeChild # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If a scheduled downtime currently exists. @@ -83,6 +84,7 @@ class DowntimeChild attr_accessor :updater_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'active' => :'active', @@ -105,11 +107,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'active' => :'Boolean', @@ -132,13 +136,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DowntimeChild` initialize method" @@ -223,6 +229,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -231,12 +238,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -259,20 +268,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [active, canceled, creator_id, disabled, downtime_type, _end, id, message, monitor_id, monitor_tags, parent_id, recurrence, scope, start, timezone, updater_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -280,6 +292,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -300,9 +313,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -351,18 +365,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -379,8 +396,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/downtime_recurrence.rb b/lib/datadog_api_client/v1/models/downtime_recurrence.rb index 7ab1ed206ef0..39326bb3a4b3 100644 --- a/lib/datadog_api_client/v1/models/downtime_recurrence.rb +++ b/lib/datadog_api_client/v1/models/downtime_recurrence.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An object defining the recurrence of the downtime. class DowntimeRecurrence # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # How often to repeat as an integer. @@ -50,6 +51,7 @@ class DowntimeRecurrence attr_accessor :week_days # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'period' => :'period', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'period' => :'Integer', @@ -79,13 +83,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DowntimeRecurrence` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -136,12 +143,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -154,20 +163,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [period, rrule, type, until_date, until_occurrences, week_days].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -175,6 +187,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -195,9 +208,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -246,18 +260,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -274,8 +291,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event.rb b/lib/datadog_api_client/v1/models/event.rb index 569bda6b699c..73a07c612081 100644 --- a/lib/datadog_api_client/v1/models/event.rb +++ b/lib/datadog_api_client/v1/models/event.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object representing an event. class Event # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If an alert event is enabled, set its type. @@ -70,6 +71,7 @@ class Event attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'alert_type' => :'alert_type', @@ -89,11 +91,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'alert_type' => :'EventAlertType', @@ -113,13 +117,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Event` initialize method" @@ -190,6 +196,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -198,12 +205,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -223,20 +232,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [alert_type, date_happened, device_name, host, id, id_str, payload, priority, source_type_name, tags, text, title, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -244,6 +256,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -264,9 +277,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -315,18 +329,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -343,8 +360,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_alert_type.rb b/lib/datadog_api_client/v1/models/event_alert_type.rb index 5419ca47a8db..fbc781c956db 100644 --- a/lib/datadog_api_client/v1/models/event_alert_type.rb +++ b/lib/datadog_api_client/v1/models/event_alert_type.rb @@ -30,15 +30,17 @@ class EventAlertType SNAPSHOT = "snapshot".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = EventAlertType.constants.select { |c| EventAlertType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/event_create_request.rb b/lib/datadog_api_client/v1/models/event_create_request.rb index 5992e287829d..138fca5fb6fa 100644 --- a/lib/datadog_api_client/v1/models/event_create_request.rb +++ b/lib/datadog_api_client/v1/models/event_create_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object representing an event. class EventCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An arbitrary string to use for aggregation. Limited to 100 characters. @@ -64,6 +65,7 @@ class EventCreateRequest attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation_key' => :'aggregation_key', @@ -81,11 +83,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation_key' => :'String', @@ -103,13 +107,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventCreateRequest` initialize method" @@ -172,6 +178,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @text.nil? @@ -186,6 +193,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @text.nil? return false if @title.nil? @@ -193,7 +201,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -211,20 +220,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation_key, alert_type, date_happened, device_name, host, priority, related_event_id, source_type_name, tags, text, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -232,6 +244,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -252,9 +265,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -303,18 +317,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -331,8 +348,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_create_response.rb b/lib/datadog_api_client/v1/models/event_create_response.rb index 36bc677e8ef3..6d7b3de8e586 100644 --- a/lib/datadog_api_client/v1/models/event_create_response.rb +++ b/lib/datadog_api_client/v1/models/event_create_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing an event response. class EventCreateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If an alert event is enabled, set its type. @@ -71,6 +72,7 @@ class EventCreateResponse attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'alert_type' => :'alert_type', @@ -91,11 +93,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'alert_type' => :'EventAlertType', @@ -116,13 +120,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventCreateResponse` initialize method" @@ -197,6 +203,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -205,12 +212,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -231,20 +240,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [alert_type, date_happened, device_name, host, id, payload, priority, related_event_id, source_type_name, status, tags, text, title, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -252,6 +264,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -272,9 +285,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -323,18 +337,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -351,8 +368,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_list_response.rb b/lib/datadog_api_client/v1/models/event_list_response.rb index e4c793ff616e..8f89c7e76952 100644 --- a/lib/datadog_api_client/v1/models/event_list_response.rb +++ b/lib/datadog_api_client/v1/models/event_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An event list response. class EventListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of events. @@ -29,6 +30,7 @@ class EventListResponse attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'events' => :'events', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'events' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventListResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [events, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_priority.rb b/lib/datadog_api_client/v1/models/event_priority.rb index 4cefe1f54f1e..0a5dd195409e 100644 --- a/lib/datadog_api_client/v1/models/event_priority.rb +++ b/lib/datadog_api_client/v1/models/event_priority.rb @@ -23,15 +23,17 @@ class EventPriority LOW = "low".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = EventPriority.constants.select { |c| EventPriority::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/event_query_definition.rb b/lib/datadog_api_client/v1/models/event_query_definition.rb index 5f11f7f2ea87..fdfc5029d4b5 100644 --- a/lib/datadog_api_client/v1/models/event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/event_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The event query. class EventQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The query being made on the event. @@ -29,6 +30,7 @@ class EventQueryDefinition attr_accessor :tags_execution # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'search' => :'search', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'search' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventQueryDefinition` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @search.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @search.nil? return false if @tags_execution.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [search, tags_execution].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_response.rb b/lib/datadog_api_client/v1/models/event_response.rb index 66d8800ef350..2302c52751c6 100644 --- a/lib/datadog_api_client/v1/models/event_response.rb +++ b/lib/datadog_api_client/v1/models/event_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing an event response. class EventResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object representing an event. @@ -29,6 +30,7 @@ class EventResponse attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'event' => :'event', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'event' => :'Event', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [event, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb index e0daf78315b9..7583b4cf61e2 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # on the Event Stream view. Only available on FREE layout dashboards. class EventStreamWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Size to use to display an event. @@ -48,6 +49,7 @@ class EventStreamWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'event_size' => :'event_size', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'event_size' => :'WidgetEventSize', @@ -81,13 +85,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventStreamWidgetDefinition` initialize method" @@ -138,6 +144,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -152,6 +159,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? return false if @type.nil? @@ -159,7 +167,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -174,20 +183,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [event_size, query, tags_execution, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -195,6 +207,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -215,9 +228,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -266,18 +280,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -294,8 +311,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb index 0b58fbd48fc4..9509f7c379d2 100644 --- a/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/event_stream_widget_definition_type.rb @@ -22,15 +22,17 @@ class EventStreamWidgetDefinitionType EVENT_STREAM = "event_stream".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = EventStreamWidgetDefinitionType.constants.select { |c| EventStreamWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb index 78f6d1a32b13..529c6a127290 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The event timeline is a widget version of the timeline that appears at the top of the Event Stream view. Only available on FREE layout dashboards. class EventTimelineWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Query to filter the event timeline with. @@ -44,6 +45,7 @@ class EventTimelineWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::EventTimelineWidgetDefinition` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -142,6 +149,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? return false if @type.nil? @@ -149,7 +157,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query, tags_execution, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb b/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb index 184aeefec5e8..ed108cc2684f 100644 --- a/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/event_timeline_widget_definition_type.rb @@ -22,15 +22,17 @@ class EventTimelineWidgetDefinitionType EVENT_TIMELINE = "event_timeline".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = EventTimelineWidgetDefinitionType.constants.select { |c| EventTimelineWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb index fe8c4532681c..e6eac1e238a6 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb @@ -28,15 +28,17 @@ class FormulaAndFunctionApmDependencyStatName TOTAL_TRACES_COUNT = "total_traces_count".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionApmDependencyStatName.constants.select { |c| FormulaAndFunctionApmDependencyStatName::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb index 862cecf7770a..e8ac9ddd0db4 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb @@ -22,15 +22,17 @@ class FormulaAndFunctionApmDependencyStatsDataSource APM_DEPENDENCY_STATS = "apm_dependency_stats".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionApmDependencyStatsDataSource.constants.select { |c| FormulaAndFunctionApmDependencyStatsDataSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb index 67cbd29951c9..3b45f8b28da9 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A formula and functions APM dependency stats query. class FormulaAndFunctionApmDependencyStatsQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Data source for APM dependency stats queries. @@ -53,6 +54,7 @@ class FormulaAndFunctionApmDependencyStatsQueryDefinition attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data_source' => :'data_source', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data_source' => :'FormulaAndFunctionApmDependencyStatsDataSource', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmDependencyStatsQueryDefinition` initialize method" @@ -153,6 +159,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? @@ -182,6 +189,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data_source.nil? return false if @env.nil? @@ -194,7 +202,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -211,20 +220,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data_source, env, is_upstream, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -232,6 +244,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -252,9 +265,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -303,18 +317,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -331,8 +348,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb index 733000a9e414..db155790e081 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb @@ -31,15 +31,17 @@ class FormulaAndFunctionApmResourceStatName LATENCY_P99 = "latency_p99".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionApmResourceStatName.constants.select { |c| FormulaAndFunctionApmResourceStatName::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb index e2203be25a8e..cf3b7464bbf9 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb @@ -22,15 +22,17 @@ class FormulaAndFunctionApmResourceStatsDataSource APM_RESOURCE_STATS = "apm_resource_stats".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionApmResourceStatsDataSource.constants.select { |c| FormulaAndFunctionApmResourceStatsDataSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb index fea8330a5138..f71d4634da37 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # APM resource stats query using formulas and functions. class FormulaAndFunctionApmResourceStatsQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Data source for APM resource stats queries. @@ -53,6 +54,7 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition attr_accessor :stat # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data_source' => :'data_source', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data_source' => :'FormulaAndFunctionApmResourceStatsDataSource', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition` initialize method" @@ -155,6 +161,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? @@ -178,6 +185,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data_source.nil? return false if @env.nil? @@ -188,7 +196,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -205,20 +214,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data_source, env, group_by, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -226,6 +238,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -246,9 +259,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -297,18 +311,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -325,8 +342,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb index 695c620486e1..20789ce64963 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_aggregation.rb @@ -33,15 +33,17 @@ class FormulaAndFunctionEventAggregation AVG = "avg".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionEventAggregation.constants.select { |c| FormulaAndFunctionEventAggregation::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb index 6c93ba97586e..75e0f8520c52 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A formula and functions events query. class FormulaAndFunctionEventQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Compute options. @@ -41,6 +42,7 @@ class FormulaAndFunctionEventQueryDefinition attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'compute' => :'compute', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'compute' => :'FormulaAndFunctionEventQueryDefinitionCompute', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition` initialize method" @@ -121,6 +127,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @compute.nil? @@ -138,6 +145,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @compute.nil? return false if @data_source.nil? @@ -146,7 +154,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -159,20 +168,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [compute, data_source, group_by, indexes, name, search].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -180,6 +192,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -200,9 +213,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -251,18 +265,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -279,8 +296,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb index f6667c0a5a5a..7c07f67326b9 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Compute options. class FormulaAndFunctionEventQueryDefinitionCompute # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Aggregation methods for event platform queries. @@ -32,6 +33,7 @@ class FormulaAndFunctionEventQueryDefinitionCompute attr_accessor :metric # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'FormulaAndFunctionEventAggregation', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @aggregation.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, interval, metric].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb index af543a91a315..47f8de4b51b0 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Search options. class FormulaAndFunctionEventQueryDefinitionSearch # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Events search string. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb index 3979eb7fff3d..beefd06aaf6d 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # List of objects used to group by. class FormulaAndFunctionEventQueryGroupBy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Event facet. @@ -32,6 +33,7 @@ class FormulaAndFunctionEventQueryGroupBy attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'facet' => :'facet', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'facet' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBy` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @facet.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [facet, limit, sort].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb index cdf6b4cd3108..06d8516065f6 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Options for sorting group by results. class FormulaAndFunctionEventQueryGroupBySort # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Aggregation methods for event platform queries. @@ -32,6 +33,7 @@ class FormulaAndFunctionEventQueryGroupBySort attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'FormulaAndFunctionEventAggregation', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionEventQueryGroupBySort` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @aggregation.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, metric, order].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb index 554697424e16..381677d193d4 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb @@ -29,15 +29,17 @@ class FormulaAndFunctionEventsDataSource EVENTS = "events".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionEventsDataSource.constants.select { |c| FormulaAndFunctionEventsDataSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb index e8743025834c..8fd5d5177e25 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_aggregation.rb @@ -29,15 +29,17 @@ class FormulaAndFunctionMetricAggregation PERCENTILE = "percentile".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionMetricAggregation.constants.select { |c| FormulaAndFunctionMetricAggregation::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb index c24dcadef30e..a3b2be1fa1f2 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_data_source.rb @@ -22,15 +22,17 @@ class FormulaAndFunctionMetricDataSource METRICS = "metrics".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionMetricDataSource.constants.select { |c| FormulaAndFunctionMetricDataSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb index 79fad545aff2..3d60522621f3 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A formula and functions metrics query. class FormulaAndFunctionMetricQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregation methods available for metrics queries. @@ -35,6 +36,7 @@ class FormulaAndFunctionMetricQueryDefinition attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregator' => :'aggregator', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregator' => :'FormulaAndFunctionMetricAggregation', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? @@ -116,6 +123,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data_source.nil? return false if @name.nil? @@ -124,7 +132,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -135,20 +144,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregator, data_source, name, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -156,6 +168,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -176,9 +189,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -227,18 +241,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -255,8 +272,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb index 1ec4325415ff..66276ecfac26 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_data_source.rb @@ -23,15 +23,17 @@ class FormulaAndFunctionProcessQueryDataSource CONTAINER = "container".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionProcessQueryDataSource.constants.select { |c| FormulaAndFunctionProcessQueryDataSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb index e6529951cd4f..4c2d979a8b47 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Process query using formulas and functions. class FormulaAndFunctionProcessQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregation methods available for metrics queries. @@ -50,6 +51,7 @@ class FormulaAndFunctionProcessQueryDefinition attr_accessor :text_filter # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregator' => :'aggregator', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregator' => :'FormulaAndFunctionMetricAggregation', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionProcessQueryDefinition` initialize method" @@ -148,6 +154,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? @@ -165,6 +172,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data_source.nil? return false if @metric.nil? @@ -173,7 +181,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -189,20 +198,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregator, data_source, is_normalized_cpu, limit, metric, name, sort, tag_filters, text_filter].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -210,6 +222,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -230,9 +243,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -281,18 +295,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -309,8 +326,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb b/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb index e1f253b08671..72f8e32034f5 100644 --- a/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +++ b/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb @@ -23,15 +23,17 @@ class FormulaAndFunctionResponseFormat SCALAR = "scalar".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FormulaAndFunctionResponseFormat.constants.select { |c| FormulaAndFunctionResponseFormat::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb index b794ff734d98..654c8bc6638e 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Free text is a widget that allows you to add headings to your screenboard. Commonly used to state the overall purpose of the dashboard. Only available on FREE layout dashboards. class FreeTextWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Color of the text. @@ -38,6 +39,7 @@ class FreeTextWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'color' => :'color', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'color' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FreeTextWidgetDefinition` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @text.nil? @@ -124,6 +131,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @text.nil? return false if @type.nil? @@ -131,7 +139,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -143,20 +152,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [color, font_size, text, text_align, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -164,6 +176,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -184,9 +197,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -235,18 +249,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -263,8 +280,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb b/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb index deee46f42ae7..8e2d95cc74da 100644 --- a/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/free_text_widget_definition_type.rb @@ -22,15 +22,17 @@ class FreeTextWidgetDefinitionType FREE_TEXT = "free_text".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FreeTextWidgetDefinitionType.constants.select { |c| FreeTextWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/funnel_query.rb b/lib/datadog_api_client/v1/models/funnel_query.rb index 1adbeae5db85..e7cff4a7db2f 100644 --- a/lib/datadog_api_client/v1/models/funnel_query.rb +++ b/lib/datadog_api_client/v1/models/funnel_query.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated funnel widget. class FunnelQuery # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Source from which to query items to display in the funnel. @@ -32,6 +33,7 @@ class FunnelQuery attr_accessor :steps # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data_source' => :'data_source', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data_source' => :'FunnelSource', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelQuery` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? @@ -111,6 +118,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data_source.nil? return false if @query_string.nil? @@ -119,7 +127,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data_source, query_string, steps].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb index 685de2d0add3..ca18a5a91a4d 100644 --- a/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb +++ b/lib/datadog_api_client/v1/models/funnel_query_steps_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The funnel step. class FunnelQueryStepsItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The facet of the step. @@ -29,6 +30,7 @@ class FunnelQueryStepsItem attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'facet' => :'facet', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'facet' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelQueryStepsItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @facet.nil? return false if @value.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [facet, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/funnel_request_type.rb b/lib/datadog_api_client/v1/models/funnel_request_type.rb index 34f79f814def..da3e06c7a65c 100644 --- a/lib/datadog_api_client/v1/models/funnel_request_type.rb +++ b/lib/datadog_api_client/v1/models/funnel_request_type.rb @@ -22,15 +22,17 @@ class FunnelRequestType FUNNEL = "funnel".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FunnelRequestType.constants.select { |c| FunnelRequestType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/funnel_source.rb b/lib/datadog_api_client/v1/models/funnel_source.rb index 509fa959e39f..b214445a6c6a 100644 --- a/lib/datadog_api_client/v1/models/funnel_source.rb +++ b/lib/datadog_api_client/v1/models/funnel_source.rb @@ -22,15 +22,17 @@ class FunnelSource RUM = "rum".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FunnelSource.constants.select { |c| FunnelSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb index a4a5b2b7d5e6..36b22cf7e9ed 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application. class FunnelWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Request payload used to query items. @@ -41,6 +42,7 @@ class FunnelWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'requests' => :'requests', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'requests' => :'Array', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetDefinition` initialize method" @@ -121,6 +127,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -135,6 +142,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -142,7 +150,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -155,20 +164,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [requests, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -176,6 +188,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -196,9 +209,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -247,18 +261,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -275,8 +292,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb b/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb index cfe96f3fa935..cbb65a887ce0 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb @@ -22,15 +22,17 @@ class FunnelWidgetDefinitionType FUNNEL = "funnel".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = FunnelWidgetDefinitionType.constants.select { |c| FunnelWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/funnel_widget_request.rb b/lib/datadog_api_client/v1/models/funnel_widget_request.rb index 85fe4d7a01e7..3bc8768336df 100644 --- a/lib/datadog_api_client/v1/models/funnel_widget_request.rb +++ b/lib/datadog_api_client/v1/models/funnel_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated funnel widget. class FunnelWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Updated funnel widget. @@ -29,6 +30,7 @@ class FunnelWidgetRequest attr_accessor :request_type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'FunnelQuery', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetRequest` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? return false if @request_type.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query, request_type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/gcp_account.rb b/lib/datadog_api_client/v1/models/gcp_account.rb index 656dcca70b07..158b19a84488 100644 --- a/lib/datadog_api_client/v1/models/gcp_account.rb +++ b/lib/datadog_api_client/v1/models/gcp_account.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Your Google Cloud Platform Account. class GCPAccount # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Should be `https://www.googleapis.com/oauth2/v1/certs`. @@ -64,6 +65,7 @@ class GCPAccount attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'auth_provider_x509_cert_url' => :'auth_provider_x509_cert_url', @@ -83,11 +85,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'auth_provider_x509_cert_url' => :'String', @@ -107,13 +111,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GCPAccount` initialize method" @@ -184,6 +190,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -192,12 +199,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -217,20 +226,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [auth_provider_x509_cert_url, auth_uri, automute, client_email, client_id, client_x509_cert_url, errors, host_filters, private_key, private_key_id, project_id, token_uri, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -238,6 +250,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -258,9 +271,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -309,18 +323,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -337,8 +354,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb index fcf2f4c2a88f..5b723ef860cd 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # This visualization displays a series of values by country on a world map. class GeomapWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of custom links. @@ -53,6 +54,7 @@ class GeomapWidgetDefinition attr_accessor :view # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -68,11 +70,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -88,13 +92,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinition` initialize method" @@ -153,6 +159,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -173,6 +180,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @style.nil? @@ -182,7 +190,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -198,20 +207,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, requests, style, time, title, title_align, title_size, type, view].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -219,6 +231,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -239,9 +252,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -290,18 +304,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -318,8 +335,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb index 81874d5df2a5..c7e4f0f5e1a3 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The style to apply to the widget. class GeomapWidgetDefinitionStyle # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The color palette to apply to the widget. @@ -29,6 +30,7 @@ class GeomapWidgetDefinitionStyle attr_accessor :palette_flip # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'palette' => :'palette', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'palette' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinitionStyle` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @palette.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @palette.nil? return false if @palette_flip.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [palette, palette_flip].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb index dcd220b3d3c8..7082cf56ccdc 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_type.rb @@ -22,15 +22,17 @@ class GeomapWidgetDefinitionType GEOMAP = "geomap".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = GeomapWidgetDefinitionType.constants.select { |c| GeomapWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb index f30f1b42de44..db96e3334a2b 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The view of the world that the map should render. class GeomapWidgetDefinitionView # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The 2-letter ISO code of a country to focus the map on. Or `WORLD`. attr_accessor :focus # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'focus' => :'focus' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'focus' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetDefinitionView` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @focus.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @focus.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [focus].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/geomap_widget_request.rb b/lib/datadog_api_client/v1/models/geomap_widget_request.rb index 69ba3a132f27..79dd3d32fe0b 100644 --- a/lib/datadog_api_client/v1/models/geomap_widget_request.rb +++ b/lib/datadog_api_client/v1/models/geomap_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An updated geomap widget. class GeomapWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of formulas that operate on queries. **This feature is currently in beta.** @@ -44,6 +45,7 @@ class GeomapWidgetRequest attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'formulas' => :'formulas', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'formulas' => :'Array', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetRequest` initialize method" @@ -130,6 +136,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -138,12 +145,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -157,20 +166,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [formulas, log_query, q, queries, response_format, rum_query, security_query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -178,6 +190,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -198,9 +211,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -249,18 +263,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -277,8 +294,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/graph_snapshot.rb b/lib/datadog_api_client/v1/models/graph_snapshot.rb index bbfce00242c0..0ecb8cb1f12d 100644 --- a/lib/datadog_api_client/v1/models/graph_snapshot.rb +++ b/lib/datadog_api_client/v1/models/graph_snapshot.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object representing a graph snapshot. class GraphSnapshot # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. @@ -34,6 +35,7 @@ class GraphSnapshot attr_accessor :snapshot_url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'graph_def' => :'graph_def', @@ -43,11 +45,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'graph_def' => :'String', @@ -57,13 +61,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GraphSnapshot` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [graph_def, metric_query, snapshot_url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/group_widget_definition.rb b/lib/datadog_api_client/v1/models/group_widget_definition.rb index 77f9fada62c3..663eb34334f8 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible. class GroupWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Background color of the group title. @@ -47,6 +48,7 @@ class GroupWidgetDefinition attr_accessor :widgets # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'background_color' => :'background_color', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'background_color' => :'String', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GroupWidgetDefinition` initialize method" @@ -141,6 +147,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @layout_type.nil? @@ -158,6 +165,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @layout_type.nil? return false if @type.nil? @@ -166,7 +174,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -181,20 +190,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [background_color, banner_img, layout_type, show_title, title, title_align, type, widgets].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -202,6 +214,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -222,9 +235,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -273,18 +287,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -301,8 +318,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/group_widget_definition_type.rb b/lib/datadog_api_client/v1/models/group_widget_definition_type.rb index 6e734197198c..86687fa34b13 100644 --- a/lib/datadog_api_client/v1/models/group_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/group_widget_definition_type.rb @@ -22,15 +22,17 @@ class GroupWidgetDefinitionType GROUP = "group".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = GroupWidgetDefinitionType.constants.select { |c| GroupWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb index 860bc6b15215..e697696d8d9b 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. class HeatMapWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -56,6 +57,7 @@ class HeatMapWidgetDefinition attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -73,11 +75,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -95,13 +99,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HeatMapWidgetDefinition` initialize method" @@ -170,6 +176,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -184,6 +191,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -191,7 +199,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -209,20 +218,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, events, legend_size, requests, show_legend, time, title, title_align, title_size, type, yaxis].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -230,6 +242,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -250,9 +263,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -301,18 +315,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -329,8 +346,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb index 36884d79fc92..99107c268c4a 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_definition_type.rb @@ -22,15 +22,17 @@ class HeatMapWidgetDefinitionType HEATMAP = "heatmap".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = HeatMapWidgetDefinitionType.constants.select { |c| HeatMapWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb index ec2494dc61a4..c1861f6d12e9 100644 --- a/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/heat_map_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated heat map widget. class HeatMapWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -53,6 +54,7 @@ class HeatMapWidgetRequest attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HeatMapWidgetRequest` initialize method" @@ -153,6 +159,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -161,12 +168,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -183,20 +192,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, rum_query, security_query, style].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -204,6 +216,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -224,9 +237,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -275,18 +289,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -303,8 +320,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host.rb b/lib/datadog_api_client/v1/models/host.rb index c2e96354d229..f2a6044c4ea4 100644 --- a/lib/datadog_api_client/v1/models/host.rb +++ b/lib/datadog_api_client/v1/models/host.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object representing a host. class Host # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Host aliases collected by Datadog. @@ -65,6 +66,7 @@ class Host attr_accessor :up # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aliases' => :'aliases', @@ -85,11 +87,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aliases' => :'Array', @@ -110,13 +114,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Host` initialize method" @@ -195,6 +201,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -203,12 +210,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -229,20 +238,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aliases, apps, aws_name, host_name, id, is_muted, last_reported_time, meta, metrics, mute_timeout, name, sources, tags_by_source, up].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -250,6 +262,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -270,9 +283,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -321,18 +335,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -349,8 +366,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_list_response.rb b/lib/datadog_api_client/v1/models/host_list_response.rb index b5438db43f50..740ebf288bca 100644 --- a/lib/datadog_api_client/v1/models/host_list_response.rb +++ b/lib/datadog_api_client/v1/models/host_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response with Host information from Datadog. class HostListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of hosts. @@ -32,6 +33,7 @@ class HostListResponse attr_accessor :total_returned # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'host_list' => :'host_list', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'host_list' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostListResponse` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [host_list, total_matching, total_returned].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_map_request.rb b/lib/datadog_api_client/v1/models/host_map_request.rb index 7c84bc5bc2fc..183243ba0588 100644 --- a/lib/datadog_api_client/v1/models/host_map_request.rb +++ b/lib/datadog_api_client/v1/models/host_map_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated host map. class HostMapRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -50,6 +51,7 @@ class HostMapRequest attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapRequest` initialize method" @@ -144,6 +150,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -152,12 +159,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -173,20 +182,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, rum_query, security_query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -194,6 +206,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -214,9 +227,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -265,18 +279,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -293,8 +310,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb index e0a7dae6f573..e70f5791686c 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The host map widget graphs any metric across your hosts using the same visualization available from the main Host Map page. class HostMapWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -62,6 +63,7 @@ class HostMapWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -81,11 +83,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -105,13 +109,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinition` initialize method" @@ -188,6 +194,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -202,6 +209,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -209,7 +217,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -229,20 +238,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, group, no_group_hosts, no_metric_hosts, node_type, notes, requests, scope, style, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -250,6 +262,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -270,9 +283,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -321,18 +335,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -349,8 +366,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb index 740b38922d3d..6525a3e02b21 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # List of definitions. class HostMapWidgetDefinitionRequests # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Updated host map. @@ -29,6 +30,7 @@ class HostMapWidgetDefinitionRequests attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'fill' => :'fill', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'fill' => :'HostMapRequest', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionRequests` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [fill, size].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb index b28a199ee227..d09a6b637822 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The style to apply to the widget. class HostMapWidgetDefinitionStyle # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Max value to use to color the map. @@ -35,6 +36,7 @@ class HostMapWidgetDefinitionStyle attr_accessor :palette_flip # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'fill_max' => :'fill_max', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'fill_max' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMapWidgetDefinitionStyle` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [fill_max, fill_min, palette, palette_flip].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb index d6b61d32a1a8..9581beaa0dbd 100644 --- a/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/host_map_widget_definition_type.rb @@ -22,15 +22,17 @@ class HostMapWidgetDefinitionType HOSTMAP = "hostmap".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = HostMapWidgetDefinitionType.constants.select { |c| HostMapWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/host_meta.rb b/lib/datadog_api_client/v1/models/host_meta.rb index 14b07f2ce059..c035db1b9502 100644 --- a/lib/datadog_api_client/v1/models/host_meta.rb +++ b/lib/datadog_api_client/v1/models/host_meta.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Metadata associated with your host. class HostMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of Agent checks running on the host. @@ -68,6 +69,7 @@ class HostMeta attr_accessor :win_v # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agent_checks' => :'agent_checks', @@ -89,11 +91,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agent_checks' => :'Array>', @@ -115,13 +119,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMeta` initialize method" @@ -208,6 +214,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -216,12 +223,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -243,20 +252,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agent_checks, agent_version, cpu_cores, fbsd_v, gohai, install_method, mac_v, machine, nix_v, platform, processor, python_v, socket_fqdn, socket_hostname, win_v].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -264,6 +276,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -284,9 +297,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -335,18 +349,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -363,8 +380,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_meta_install_method.rb b/lib/datadog_api_client/v1/models/host_meta_install_method.rb index 9fe036d48e6b..19ebdfb4806e 100644 --- a/lib/datadog_api_client/v1/models/host_meta_install_method.rb +++ b/lib/datadog_api_client/v1/models/host_meta_install_method.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Agent install method. class HostMetaInstallMethod # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The installer version. @@ -32,6 +33,7 @@ class HostMetaInstallMethod attr_accessor :tool_version # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'installer_version' => :'installer_version', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'installer_version' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMetaInstallMethod` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [installer_version, tool, tool_version].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_metrics.rb b/lib/datadog_api_client/v1/models/host_metrics.rb index 8e948a486180..4f515c8df2d3 100644 --- a/lib/datadog_api_client/v1/models/host_metrics.rb +++ b/lib/datadog_api_client/v1/models/host_metrics.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Host Metrics collected. class HostMetrics # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The percent of CPU used (everything but idle). @@ -32,6 +33,7 @@ class HostMetrics attr_accessor :load # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cpu' => :'cpu', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cpu' => :'Float', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMetrics` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cpu, iowait, load].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_mute_response.rb b/lib/datadog_api_client/v1/models/host_mute_response.rb index 546600d871e6..22ebc801662f 100644 --- a/lib/datadog_api_client/v1/models/host_mute_response.rb +++ b/lib/datadog_api_client/v1/models/host_mute_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response with the list of muted host for your organization. class HostMuteResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Action applied to the hosts. @@ -35,6 +36,7 @@ class HostMuteResponse attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'action' => :'action', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'action' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteResponse` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [action, _end, hostname, message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_mute_settings.rb b/lib/datadog_api_client/v1/models/host_mute_settings.rb index c797d57ef2f5..78633b339676 100644 --- a/lib/datadog_api_client/v1/models/host_mute_settings.rb +++ b/lib/datadog_api_client/v1/models/host_mute_settings.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Combination of settings to mute a host. class HostMuteSettings # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted. @@ -32,6 +33,7 @@ class HostMuteSettings attr_accessor :override # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_end' => :'end', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_end' => :'Integer', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteSettings` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_end, message, override].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_tags.rb b/lib/datadog_api_client/v1/models/host_tags.rb index 361b0413868e..6050defb6fdc 100644 --- a/lib/datadog_api_client/v1/models/host_tags.rb +++ b/lib/datadog_api_client/v1/models/host_tags.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Set of tags to associate with your host. class HostTags # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your host name. @@ -29,6 +30,7 @@ class HostTags attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'host' => :'host', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'host' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostTags` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [host, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/host_totals.rb b/lib/datadog_api_client/v1/models/host_totals.rb index 9bb1263c71e3..d753904f426a 100644 --- a/lib/datadog_api_client/v1/models/host_totals.rb +++ b/lib/datadog_api_client/v1/models/host_totals.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Total number of host currently monitored by Datadog. class HostTotals # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total number of active host (UP and ???) reporting to Datadog. @@ -29,6 +30,7 @@ class HostTotals attr_accessor :total_up # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_active' => :'total_active', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_active' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostTotals` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_active, total_up].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb index 046368f0fd87..5af36e4b77fc 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The usage for one set of tags for one hour. class HourlyUsageAttributionBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -47,6 +48,7 @@ class HourlyUsageAttributionBody attr_accessor :usage_type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionBody` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -143,12 +150,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, org_name, public_id, tag_config_source, tags, total_usage_sum, updated_at, usage_type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb index 398479c846c0..d595c2fa0b02 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_metadata.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The object containing document metadata. class HourlyUsageAttributionMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The metadata for the current pagination. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'pagination' => :'pagination' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'pagination' => :'HourlyUsageAttributionPagination' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionMetadata` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb index 144dde445dd8..7305db9a4cfc 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_pagination.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class HourlyUsageAttributionPagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The cursor to get the next results (if any). To make the next request, use the same parameters and add `next_record_id`. attr_accessor :next_record_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'next_record_id' => :'next_record_id' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'next_record_id' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionPagination` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [next_record_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb index 1fece64d6f9f..b5f09a971348 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response containing the hourly usage attribution by tag(s). class HourlyUsageAttributionResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing document metadata. @@ -29,6 +30,7 @@ class HourlyUsageAttributionResponse attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metadata' => :'metadata', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metadata' => :'HourlyUsageAttributionMetadata', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HourlyUsageAttributionResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metadata, usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb index 7e09043691fc..430e8ebc4ed5 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb @@ -35,15 +35,17 @@ class HourlyUsageAttributionUsageType SNMP_USAGE = "snmp_usage".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = HourlyUsageAttributionUsageType.constants.select { |c| HourlyUsageAttributionUsageType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/http_log_error.rb b/lib/datadog_api_client/v1/models/http_log_error.rb index dc1c299794d5..2c24760d0400 100644 --- a/lib/datadog_api_client/v1/models/http_log_error.rb +++ b/lib/datadog_api_client/v1/models/http_log_error.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Invalid query performed. class HTTPLogError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Error code. @@ -29,6 +30,7 @@ class HTTPLogError attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'code' => :'code', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'code' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HTTPLogError` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @code.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @code.nil? return false if @message.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [code, message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/http_log_item.rb b/lib/datadog_api_client/v1/models/http_log_item.rb index a2b96e352a5d..4a1484f9fb00 100644 --- a/lib/datadog_api_client/v1/models/http_log_item.rb +++ b/lib/datadog_api_client/v1/models/http_log_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Logs that are sent over HTTP. class HTTPLogItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The integration name associated with your log: the technology from which the log originated. @@ -44,6 +45,7 @@ class HTTPLogItem attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'ddsource' => :'ddsource', @@ -55,11 +57,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'ddsource' => :'String', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HTTPLogItem` initialize method" @@ -114,6 +120,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -122,12 +129,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -139,20 +148,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [ddsource, ddtags, hostname, message, service].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -160,6 +172,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -180,9 +193,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -231,18 +245,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -259,8 +276,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/http_method.rb b/lib/datadog_api_client/v1/models/http_method.rb index 1d766b1838e7..4d7052a2fba1 100644 --- a/lib/datadog_api_client/v1/models/http_method.rb +++ b/lib/datadog_api_client/v1/models/http_method.rb @@ -28,15 +28,17 @@ class HTTPMethod OPTIONS = "OPTIONS".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = HTTPMethod.constants.select { |c| HTTPMethod::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb index eaf4ad6d80e7..9ef1b8eaa6f5 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards. class IFrameWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of the iframe widget. @@ -29,6 +30,7 @@ class IFrameWidgetDefinition attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'IFrameWidgetDefinitionType', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IFrameWidgetDefinition` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? return false if @url.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb b/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb index 5e9d51c5a29d..cf08484e72fe 100644 --- a/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/i_frame_widget_definition_type.rb @@ -22,15 +22,17 @@ class IFrameWidgetDefinitionType IFRAME = "iframe".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IFrameWidgetDefinitionType.constants.select { |c| IFrameWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/idp_form_data.rb b/lib/datadog_api_client/v1/models/idp_form_data.rb index 3e7816292960..cdb06f3a133a 100644 --- a/lib/datadog_api_client/v1/models/idp_form_data.rb +++ b/lib/datadog_api_client/v1/models/idp_form_data.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object describing the IdP configuration. class IdpFormData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The path to the XML metadata file you wish to upload. attr_accessor :idp_file # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'idp_file' => :'idp_file' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'idp_file' => :'File' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IdpFormData` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @idp_file.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @idp_file.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [idp_file].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/idp_response.rb b/lib/datadog_api_client/v1/models/idp_response.rb index 3d3da301bc5c..2b4f09b14c26 100644 --- a/lib/datadog_api_client/v1/models/idp_response.rb +++ b/lib/datadog_api_client/v1/models/idp_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The IdP response object. class IdpResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Identity provider response. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'message' => :'message' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'message' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IdpResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @message.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @message.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/image_widget_definition.rb b/lib/datadog_api_client/v1/models/image_widget_definition.rb index bd88d959faaf..f8fb471d12f8 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF. Only available on FREE layout dashboards. class ImageWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether to display a background or not. @@ -52,6 +53,7 @@ class ImageWidgetDefinition attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'has_background' => :'has_background', @@ -67,11 +69,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'has_background' => :'Boolean', @@ -87,13 +91,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ImageWidgetDefinition` initialize method" @@ -152,6 +158,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -166,6 +173,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? return false if @url.nil? @@ -173,7 +181,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -189,20 +198,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [has_background, has_border, horizontal_align, margin, sizing, type, url, url_dark_theme, vertical_align].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -210,6 +222,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -230,9 +243,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -281,18 +295,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -309,8 +326,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/image_widget_definition_type.rb b/lib/datadog_api_client/v1/models/image_widget_definition_type.rb index ad4d21f6274b..3fa1465fafb0 100644 --- a/lib/datadog_api_client/v1/models/image_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/image_widget_definition_type.rb @@ -22,15 +22,17 @@ class ImageWidgetDefinitionType IMAGE = "image".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ImageWidgetDefinitionType.constants.select { |c| ImageWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb index 3603d897c1e7..d91f9340ae29 100644 --- a/lib/datadog_api_client/v1/models/intake_payload_accepted.rb +++ b/lib/datadog_api_client/v1/models/intake_payload_accepted.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The payload accepted for intake. class IntakePayloadAccepted # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The status of the intake payload. attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'status' => :'status' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'status' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IntakePayloadAccepted` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb index fb4d268f2e6b..92cfe6eddf35 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_agents.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Agent endpoints. class IPPrefixesAgents # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -29,6 +30,7 @@ class IPPrefixesAgents attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAgents` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv6].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb index 31073d201e04..19ef767212f0 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_api.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_api.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the API endpoints. class IPPrefixesAPI # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -29,6 +30,7 @@ class IPPrefixesAPI attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAPI` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv6].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb index c6d94ba4e63b..649da5ef6805 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_apm.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the APM endpoints. class IPPrefixesAPM # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -29,6 +30,7 @@ class IPPrefixesAPM attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesAPM` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv6].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb index ef7b9f0f827e..14de7d9f098e 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_logs.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Logs endpoints. class IPPrefixesLogs # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -29,6 +30,7 @@ class IPPrefixesLogs attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesLogs` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv6].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb index d31a27e7d04d..c94ef4541917 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_process.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_process.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Process endpoints. class IPPrefixesProcess # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -29,6 +30,7 @@ class IPPrefixesProcess attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesProcess` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv6].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb index 8fa4094c0d62..4f6b6722ced9 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Synthetics endpoints. class IPPrefixesSynthetics # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -35,6 +36,7 @@ class IPPrefixesSynthetics attr_accessor :prefixes_ipv6_by_location # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesSynthetics` initialize method" @@ -103,6 +109,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -111,12 +118,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv4_by_location, prefixes_ipv6, prefixes_ipv6_by_location].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb index 7ec7e482ac2d..386f48ef06d7 100644 --- a/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb +++ b/lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Available prefix information for the Webhook endpoints. class IPPrefixesWebhooks # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of IPv4 prefixes. @@ -29,6 +30,7 @@ class IPPrefixesWebhooks attr_accessor :prefixes_ipv6 # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'prefixes_ipv4' => :'prefixes_ipv4', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'prefixes_ipv4' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesWebhooks` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [prefixes_ipv4, prefixes_ipv6].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/ip_ranges.rb b/lib/datadog_api_client/v1/models/ip_ranges.rb index 2d07bc7d59e7..6361ff86b023 100644 --- a/lib/datadog_api_client/v1/models/ip_ranges.rb +++ b/lib/datadog_api_client/v1/models/ip_ranges.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # IP ranges. class IPRanges # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Available prefix information for the Agent endpoints. @@ -50,6 +51,7 @@ class IPRanges attr_accessor :webhooks # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agents' => :'agents', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agents' => :'IPPrefixesAgents', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPRanges` initialize method" @@ -144,6 +150,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -152,12 +159,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -173,20 +182,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agents, api, apm, logs, modified, process, synthetics, version, webhooks].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -194,6 +206,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -214,9 +227,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -265,18 +279,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -293,8 +310,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/list_stream_column.rb b/lib/datadog_api_client/v1/models/list_stream_column.rb index 6852ed94ffbb..872e4ea4b7a4 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Widget column. class ListStreamColumn # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Widget column field. @@ -29,6 +30,7 @@ class ListStreamColumn attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'field' => :'field', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'field' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamColumn` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @field.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @field.nil? return false if @width.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [field, width].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/list_stream_column_width.rb b/lib/datadog_api_client/v1/models/list_stream_column_width.rb index ce9437e7e51a..f64abee63a24 100644 --- a/lib/datadog_api_client/v1/models/list_stream_column_width.rb +++ b/lib/datadog_api_client/v1/models/list_stream_column_width.rb @@ -24,15 +24,17 @@ class ListStreamColumnWidth FULL = "full".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ListStreamColumnWidth.constants.select { |c| ListStreamColumnWidth::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/list_stream_query.rb b/lib/datadog_api_client/v1/models/list_stream_query.rb index 18bfbfb8449f..0caa3774b2de 100644 --- a/lib/datadog_api_client/v1/models/list_stream_query.rb +++ b/lib/datadog_api_client/v1/models/list_stream_query.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated list stream widget. class ListStreamQuery # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Source from which to query items to display in the stream. @@ -32,6 +33,7 @@ class ListStreamQuery attr_accessor :query_string # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data_source' => :'data_source', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data_source' => :'ListStreamSource', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamQuery` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data_source.nil? @@ -108,6 +115,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data_source.nil? return false if @query_string.nil? @@ -115,7 +123,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data_source, indexes, query_string].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/list_stream_response_format.rb b/lib/datadog_api_client/v1/models/list_stream_response_format.rb index e02cac34805e..986f1c85cd41 100644 --- a/lib/datadog_api_client/v1/models/list_stream_response_format.rb +++ b/lib/datadog_api_client/v1/models/list_stream_response_format.rb @@ -22,15 +22,17 @@ class ListStreamResponseFormat EVENT_LIST = "event_list".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ListStreamResponseFormat.constants.select { |c| ListStreamResponseFormat::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/list_stream_source.rb b/lib/datadog_api_client/v1/models/list_stream_source.rb index b311e4d9e2d8..74328f3b3e80 100644 --- a/lib/datadog_api_client/v1/models/list_stream_source.rb +++ b/lib/datadog_api_client/v1/models/list_stream_source.rb @@ -24,15 +24,17 @@ class ListStreamSource AUDIT_STREAM = "audit_stream".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ListStreamSource.constants.select { |c| ListStreamSource::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb index 4f61620dc744..065b8b3573ef 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # match a search criteria using user-defined columns. class ListStreamWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Available legend sizes for a widget. Should be one of "0", "2", "4", "8", "16", or "auto". @@ -48,6 +49,7 @@ class ListStreamWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'legend_size' => :'legend_size', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'legend_size' => :'String', @@ -81,13 +85,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamWidgetDefinition` initialize method" @@ -140,6 +146,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -154,6 +161,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -161,7 +169,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -176,20 +185,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [legend_size, requests, show_legend, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -197,6 +209,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -217,9 +230,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -268,18 +282,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -296,8 +313,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb index eeeacf3f79dd..2e1767e2d03c 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_definition_type.rb @@ -22,15 +22,17 @@ class ListStreamWidgetDefinitionType LIST_STREAM = "list_stream".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ListStreamWidgetDefinitionType.constants.select { |c| ListStreamWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb index e4846e1b17fd..08b53b022f56 100644 --- a/lib/datadog_api_client/v1/models/list_stream_widget_request.rb +++ b/lib/datadog_api_client/v1/models/list_stream_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated list stream widget. class ListStreamWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Widget columns. @@ -32,6 +33,7 @@ class ListStreamWidgetRequest attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'columns' => :'columns', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'columns' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamWidgetRequest` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @columns.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @columns.nil? return false if @query.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [columns, query, response_format].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log.rb b/lib/datadog_api_client/v1/models/log.rb index e77fa03a7097..9610dbc4cf5b 100644 --- a/lib/datadog_api_client/v1/models/log.rb +++ b/lib/datadog_api_client/v1/models/log.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing a log after being processed and stored by Datadog. class Log # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # JSON object containing all log attributes and their associated values. @@ -29,6 +30,7 @@ class Log attr_accessor :id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'content' => :'content', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'content' => :'LogContent', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Log` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [content, id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_content.rb b/lib/datadog_api_client/v1/models/log_content.rb index 591f98eda0d3..1f52bb814807 100644 --- a/lib/datadog_api_client/v1/models/log_content.rb +++ b/lib/datadog_api_client/v1/models/log_content.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # JSON object containing all log attributes and their associated values. class LogContent # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # JSON object of attributes from your log. @@ -45,6 +46,7 @@ class LogContent attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'Hash', @@ -74,13 +78,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogContent` initialize method" @@ -121,6 +127,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -129,12 +136,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -147,20 +156,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, host, message, service, tags, timestamp].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -168,6 +180,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -188,9 +201,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -239,18 +253,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -267,8 +284,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_query_definition.rb b/lib/datadog_api_client/v1/models/log_query_definition.rb index c67d218e5773..aa478eee4f68 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The log query. class LogQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Define computation for a log query. @@ -38,6 +39,7 @@ class LogQueryDefinition attr_accessor :search # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'compute' => :'compute', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'compute' => :'LogsQueryCompute', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinition` initialize method" @@ -112,6 +118,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -120,12 +127,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -137,20 +146,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [compute, group_by, index, multi_compute, search].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -158,6 +170,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -178,9 +191,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -229,18 +243,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -257,8 +274,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb index b5b878c1ac62..8cf691b7d2e2 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Defined items in the group. class LogQueryDefinitionGroupBy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Facet name. @@ -32,6 +33,7 @@ class LogQueryDefinitionGroupBy attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'facet' => :'facet', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'facet' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionGroupBy` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @facet.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [facet, limit, sort].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb index e5ab5474b5e0..f269f9786591 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Define a sorting method. class LogQueryDefinitionGroupBySort # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregation method. @@ -32,6 +33,7 @@ class LogQueryDefinitionGroupBySort attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionGroupBySort` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -104,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @aggregation.nil? return false if @order.nil? @@ -111,7 +119,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, facet, order].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_query_definition_search.rb b/lib/datadog_api_client/v1/models/log_query_definition_search.rb index b8f8b44f1f84..ef76ba8763c2 100644 --- a/lib/datadog_api_client/v1/models/log_query_definition_search.rb +++ b/lib/datadog_api_client/v1/models/log_query_definition_search.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The query being made on the logs. class LogQueryDefinitionSearch # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Search value to apply. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogQueryDefinitionSearch` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb index ac9ff8fa45ed..9e075f62125e 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. class LogStreamWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Which columns to display on the widget. @@ -62,6 +63,7 @@ class LogStreamWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'columns' => :'columns', @@ -81,11 +83,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'columns' => :'Array', @@ -105,13 +109,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogStreamWidgetDefinition` initialize method" @@ -186,6 +192,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -197,13 +204,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -223,20 +232,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [columns, indexes, logset, message_display, query, show_date_column, show_message_column, sort, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -244,6 +256,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -264,9 +277,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -315,18 +329,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -343,8 +360,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb b/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb index 7c7a968c098e..b4165c821600 100644 --- a/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/log_stream_widget_definition_type.rb @@ -22,15 +22,17 @@ class LogStreamWidgetDefinitionType LOG_STREAM = "log_stream".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogStreamWidgetDefinitionType.constants.select { |c| LogStreamWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_api_error.rb b/lib/datadog_api_client/v1/models/logs_api_error.rb index 436cf05b90ee..911d98399afc 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Error returned by the Logs API class LogsAPIError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Code identifying the error @@ -32,6 +33,7 @@ class LogsAPIError attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'code' => :'code', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'code' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAPIError` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [code, details, message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_api_error_response.rb b/lib/datadog_api_client/v1/models/logs_api_error_response.rb index c54f4cc7387a..75c3287f97d8 100644 --- a/lib/datadog_api_client/v1/models/logs_api_error_response.rb +++ b/lib/datadog_api_client/v1/models/logs_api_error_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response returned by the Logs API when errors occur. class LogsAPIErrorResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Error returned by the Logs API attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'error' => :'error' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'error' => :'LogsAPIError' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAPIErrorResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [error].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb index ebbbab01cecf..16eb59c6da8b 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb @@ -40,6 +40,7 @@ module DatadogAPIClient::V1 # see [Scale Filter](https://docs.datadoghq.com/logs/log_configuration/parsing/?tab=filter#matcher-and-filter). class LogsArithmeticProcessor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Arithmetic operation between one or more log attributes. @@ -62,6 +63,7 @@ class LogsArithmeticProcessor attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'expression' => :'expression', @@ -74,11 +76,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'expression' => :'String', @@ -91,13 +95,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsArithmeticProcessor` initialize method" @@ -144,6 +150,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @expression.nil? @@ -161,6 +168,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @expression.nil? return false if @target.nil? @@ -169,7 +177,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -182,20 +191,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [expression, is_enabled, is_replace_missing, name, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -203,6 +215,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -223,9 +236,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -274,18 +288,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -302,8 +319,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb b/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb index f50a730e292f..090a49731bf6 100644 --- a/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_arithmetic_processor_type.rb @@ -22,15 +22,17 @@ class LogsArithmeticProcessorType ARITHMETIC_PROCESSOR = "arithmetic-processor".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsArithmeticProcessorType.constants.select { |c| LogsArithmeticProcessorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb index 509600ea3584..eff0335fa131 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb @@ -22,6 +22,7 @@ module DatadogAPIClient::V1 # Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name. class LogsAttributeRemapper # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -57,6 +58,7 @@ class LogsAttributeRemapper attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -73,11 +75,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -94,13 +98,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsAttributeRemapper` initialize method" @@ -171,6 +177,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -188,6 +195,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @target.nil? @@ -196,7 +204,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -213,20 +222,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, override_on_conflict, preserve_source, source_type, sources, target, target_format, target_type, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -234,6 +246,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -254,9 +267,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -305,18 +319,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -333,8 +350,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb index 013a6ebe9789..05ab1260f830 100644 --- a/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_attribute_remapper_type.rb @@ -22,15 +22,17 @@ class LogsAttributeRemapperType ATTRIBUTE_REMAPPER = "attribute-remapper".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsAttributeRemapperType.constants.select { |c| LogsAttributeRemapperType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_by_retention.rb b/lib/datadog_api_client/v1/models/logs_by_retention.rb index 845de7b4b2ca..a09f7e22ced7 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing logs usage data broken down by retention period. class LogsByRetention # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Indexed logs usage summary for each organization for each retention period with usage. @@ -32,6 +33,7 @@ class LogsByRetention attr_accessor :usage_by_month # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'orgs' => :'orgs', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'orgs' => :'LogsByRetentionOrgs', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetention` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [orgs, usage, usage_by_month].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb index 5124596a9fb2..ba8e8872bd30 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing a summary of indexed logs usage by retention period for a single month. class LogsByRetentionMonthlyUsage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The month for the usage. @@ -29,6 +30,7 @@ class LogsByRetentionMonthlyUsage attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'date' => :'date', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'date' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionMonthlyUsage` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [date, usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb index ab6d775539d8..8e0905377731 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Indexed logs usage by retention for a single organization. class LogsByRetentionOrgUsage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Indexed logs usage for each active retention for the organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionOrgUsage` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb index 91555ef7fde7..6f342856da36 100644 --- a/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb +++ b/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Indexed logs usage summary for each organization for each retention period with usage. class LogsByRetentionOrgs # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Indexed logs usage summary for each organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsByRetentionOrgs` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_category_processor.rb b/lib/datadog_api_client/v1/models/logs_category_processor.rb index 49980fdad710..fd6beba5e692 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor.rb @@ -32,6 +32,7 @@ module DatadogAPIClient::V1 # - Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper. class LogsCategoryProcessor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of filters to match or not a log and their @@ -51,6 +52,7 @@ class LogsCategoryProcessor attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'categories' => :'categories', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'categories' => :'Array', @@ -78,13 +82,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsCategoryProcessor` initialize method" @@ -127,6 +133,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @categories.nil? @@ -144,6 +151,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @categories.nil? return false if @target.nil? @@ -152,7 +160,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -164,20 +173,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [categories, is_enabled, name, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -185,6 +197,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -205,9 +218,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -256,18 +270,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -284,8 +301,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb index 8b2b34bb66d1..e3341cf8faf7 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_category.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_category.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the logs filter. class LogsCategoryProcessorCategory # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Filter for logs. @@ -29,6 +30,7 @@ class LogsCategoryProcessorCategory attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'LogsFilter', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsCategoryProcessorCategory` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_category_processor_type.rb b/lib/datadog_api_client/v1/models/logs_category_processor_type.rb index be2609132d1c..cd25dbd6aa38 100644 --- a/lib/datadog_api_client/v1/models/logs_category_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_category_processor_type.rb @@ -22,15 +22,17 @@ class LogsCategoryProcessorType CATEGORY_PROCESSOR = "category-processor".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsCategoryProcessorType.constants.select { |c| LogsCategoryProcessorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper.rb b/lib/datadog_api_client/v1/models/logs_date_remapper.rb index dd5c38f6ec25..c1422ee80c4b 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper.rb @@ -38,6 +38,7 @@ module DatadogAPIClient::V1 # only the first one (according to the pipelines order) is taken into account. class LogsDateRemapper # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -53,6 +54,7 @@ class LogsDateRemapper attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -63,11 +65,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -78,13 +82,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsDateRemapper` initialize method" @@ -123,6 +129,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -137,6 +144,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @type.nil? @@ -144,7 +152,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -155,20 +164,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, sources, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -176,6 +188,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -196,9 +209,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -247,18 +261,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -275,8 +292,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb index 864582f6b3d1..5ee2106b9b25 100644 --- a/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_date_remapper_type.rb @@ -22,15 +22,17 @@ class LogsDateRemapperType DATE_REMAPPER = "date-remapper".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsDateRemapperType.constants.select { |c| LogsDateRemapperType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_exclusion.rb b/lib/datadog_api_client/v1/models/logs_exclusion.rb index 7b5c67001085..4b1deef67dcb 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Represents the index exclusion filter object from configuration API. class LogsExclusion # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. @@ -32,6 +33,7 @@ class LogsExclusion attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'LogsExclusionFilter', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsExclusion` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, is_enabled, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb index c7edc8599511..83f35d3c7e4c 100644 --- a/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle. class LogsExclusionFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Default query is `*`, meaning all logs flowing in the index would be excluded. @@ -31,6 +32,7 @@ class LogsExclusionFilter attr_accessor :sample_rate # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query', @@ -39,11 +41,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String', @@ -52,13 +56,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsExclusionFilter` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sample_rate.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sample_rate.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query, sample_rate].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_filter.rb b/lib/datadog_api_client/v1/models/logs_filter.rb index a75a0abf739d..810c88b5e0fd 100644 --- a/lib/datadog_api_client/v1/models/logs_filter.rb +++ b/lib/datadog_api_client/v1/models/logs_filter.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Filter for logs. class LogsFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The filter query. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsFilter` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb index 6c061184c61b..9e928b750aef 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # the Continent, Country, Subdivision, and City information in the target attribute path. class LogsGeoIPParser # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -39,6 +40,7 @@ class LogsGeoIPParser attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -66,13 +70,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGeoIPParser` initialize method" @@ -119,6 +125,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -136,6 +143,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @target.nil? @@ -144,7 +152,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -156,20 +165,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, sources, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -177,6 +189,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -197,9 +210,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -248,18 +262,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -276,8 +293,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb b/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb index c293d0f476df..46bf8b564d2e 100644 --- a/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_geo_ip_parser_type.rb @@ -22,15 +22,17 @@ class LogsGeoIPParserType GEO_IP_PARSER = "geo-ip-parser".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsGeoIPParserType.constants.select { |c| LogsGeoIPParserType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser.rb b/lib/datadog_api_client/v1/models/logs_grok_parser.rb index 9750a00386a3..f65463bf7f3f 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # For more information, see the [parsing section](https://docs.datadoghq.com/logs/log_configuration/parsing). class LogsGrokParser # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Set of rules for the grok parser. @@ -42,6 +43,7 @@ class LogsGrokParser attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'grok' => :'grok', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'grok' => :'LogsGrokParserRules', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGrokParser` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @grok.nil? @@ -143,6 +150,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @grok.nil? return false if @source.nil? @@ -151,7 +159,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -164,20 +173,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [grok, is_enabled, name, samples, source, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -185,6 +197,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -205,9 +218,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -256,18 +270,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -284,8 +301,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb index 1678a18d9f2c..049f6862edfd 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Set of rules for the grok parser. class LogsGrokParserRules # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of match rules for the grok parser, separated by a new line. @@ -29,6 +30,7 @@ class LogsGrokParserRules attr_accessor :support_rules # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'match_rules' => :'match_rules', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'match_rules' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsGrokParserRules` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @match_rules.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @match_rules.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [match_rules, support_rules].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb b/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb index 01e72072ee5d..42f7ed1c894d 100644 --- a/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_grok_parser_type.rb @@ -22,15 +22,17 @@ class LogsGrokParserType GROK_PARSER = "grok-parser".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsGrokParserType.constants.select { |c| LogsGrokParserType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_index.rb b/lib/datadog_api_client/v1/models/logs_index.rb index 2237bfee8dc5..b399ee731217 100644 --- a/lib/datadog_api_client/v1/models/logs_index.rb +++ b/lib/datadog_api_client/v1/models/logs_index.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing a Datadog Log index. class LogsIndex # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of log events you can send in this index per day before you are rate-limited. @@ -45,6 +46,7 @@ class LogsIndex attr_accessor :num_retention_days # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'daily_limit' => :'daily_limit', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'daily_limit' => :'Integer', @@ -74,13 +78,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndex` initialize method" @@ -123,6 +129,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @filter.nil? @@ -137,6 +144,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @filter.nil? return false if @name.nil? @@ -144,7 +152,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -157,20 +166,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [daily_limit, exclusion_filters, filter, is_rate_limited, name, num_retention_days].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -178,6 +190,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -198,9 +211,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -249,18 +263,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -277,8 +294,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_index_list_response.rb b/lib/datadog_api_client/v1/models/logs_index_list_response.rb index f5534cbdc107..fb45df7f337c 100644 --- a/lib/datadog_api_client/v1/models/logs_index_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_index_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object with all Index configurations for a given organization. class LogsIndexListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of Log index configurations. attr_accessor :indexes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'indexes' => :'indexes' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'indexes' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [indexes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_index_update_request.rb b/lib/datadog_api_client/v1/models/logs_index_update_request.rb index 7eaaf2cd6802..be67702f4068 100644 --- a/lib/datadog_api_client/v1/models/logs_index_update_request.rb +++ b/lib/datadog_api_client/v1/models/logs_index_update_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object for updating a Datadog Log index. class LogsIndexUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of log events you can send in this index per day before you are rate-limited. @@ -46,6 +47,7 @@ class LogsIndexUpdateRequest attr_accessor :num_retention_days # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'daily_limit' => :'daily_limit', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'daily_limit' => :'Integer', @@ -73,13 +77,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexUpdateRequest` initialize method" @@ -118,6 +124,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @filter.nil? @@ -129,13 +136,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @filter.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -147,20 +156,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [daily_limit, disable_daily_limit, exclusion_filters, filter, num_retention_days].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -168,6 +180,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -188,9 +201,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -239,18 +253,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -267,8 +284,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_indexes_order.rb b/lib/datadog_api_client/v1/models/logs_indexes_order.rb index 769ff372f1bf..fcfa9a833681 100644 --- a/lib/datadog_api_client/v1/models/logs_indexes_order.rb +++ b/lib/datadog_api_client/v1/models/logs_indexes_order.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing the ordered list of log index names. class LogsIndexesOrder # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of strings identifying by their name(s) the index(es) of your organization. @@ -28,6 +29,7 @@ class LogsIndexesOrder attr_accessor :index_names # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'index_names' => :'index_names' @@ -35,11 +37,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'index_names' => :'Array' @@ -47,13 +51,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsIndexesOrder` initialize method" @@ -76,6 +82,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @index_names.nil? @@ -87,13 +94,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @index_names.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -101,20 +110,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [index_names].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -122,6 +134,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -142,9 +155,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -193,18 +207,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -221,8 +238,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_list_request.rb b/lib/datadog_api_client/v1/models/logs_list_request.rb index 84be7e05eb82..cb51d1e245fb 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object to send with the request to retrieve a list of logs from your Organization. class LogsListRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log index on which the request is performed. For multi-index organizations, @@ -46,6 +47,7 @@ class LogsListRequest attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'index' => :'index', @@ -58,11 +60,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'index' => :'String', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListRequest` initialize method" @@ -122,6 +128,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @time.nil? @@ -133,13 +140,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @time.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -152,20 +161,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [index, limit, query, sort, start_at, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -173,6 +185,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -193,9 +206,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -244,18 +258,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -272,8 +289,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_list_request_time.rb b/lib/datadog_api_client/v1/models/logs_list_request_time.rb index 32cc8ac2d30c..a80a37772848 100644 --- a/lib/datadog_api_client/v1/models/logs_list_request_time.rb +++ b/lib/datadog_api_client/v1/models/logs_list_request_time.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Timeframe to retrieve the log from. class LogsListRequestTime # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Minimum timestamp for requested logs. @@ -33,6 +34,7 @@ class LogsListRequestTime attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'from' => :'from', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'from' => :'Time', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListRequestTime` initialize method" @@ -91,6 +97,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @from.nil? @@ -105,6 +112,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @from.nil? return false if @to.nil? @@ -112,7 +120,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -122,20 +131,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [from, timezone, to].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -143,6 +155,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -163,9 +176,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -214,18 +228,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -242,8 +259,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_list_response.rb b/lib/datadog_api_client/v1/models/logs_list_response.rb index ca19ac7e5ae5..026c14fa6a83 100644 --- a/lib/datadog_api_client/v1/models/logs_list_response.rb +++ b/lib/datadog_api_client/v1/models/logs_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response object with all logs matching the request and pagination information. class LogsListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of logs matching the request and the `nextLogId` if sent. @@ -33,6 +34,7 @@ class LogsListResponse attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'logs' => :'logs', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'logs' => :'Array', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsListResponse` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -101,12 +108,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -116,20 +125,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [logs, next_log_id, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -137,6 +149,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -157,9 +170,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -208,18 +222,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -236,8 +253,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb index 5afb1183029f..1df9ef709a12 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor.rb @@ -25,6 +25,7 @@ module DatadogAPIClient::V1 # environment belongs to your list of stolen machines. class LogsLookupProcessor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Value to set the target attribute if the source value is not found in the list. @@ -51,6 +52,7 @@ class LogsLookupProcessor attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'default_lookup' => :'default_lookup', @@ -64,11 +66,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'default_lookup' => :'String', @@ -82,13 +86,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsLookupProcessor` initialize method" @@ -139,6 +145,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @lookup_table.nil? @@ -159,6 +166,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @lookup_table.nil? return false if @source.nil? @@ -168,7 +176,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -182,20 +191,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [default_lookup, is_enabled, lookup_table, name, source, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -203,6 +215,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -223,9 +236,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -274,18 +288,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -302,8 +319,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb b/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb index f0efb99a3ebe..0950bf0ee736 100644 --- a/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_lookup_processor_type.rb @@ -22,15 +22,17 @@ class LogsLookupProcessorType LOOKUP_PROCESSOR = "lookup-processor".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsLookupProcessorType.constants.select { |c| LogsLookupProcessorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper.rb b/lib/datadog_api_client/v1/models/logs_message_remapper.rb index 0cee4310c10c..1ed5d313bd74 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper.rb @@ -25,6 +25,7 @@ module DatadogAPIClient::V1 # only the first one (according to the pipeline order) is taken into account. class LogsMessageRemapper # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -40,6 +41,7 @@ class LogsMessageRemapper attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsMessageRemapper` initialize method" @@ -112,6 +118,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -126,6 +133,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @type.nil? @@ -133,7 +141,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -144,20 +153,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, sources, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -165,6 +177,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -185,9 +198,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -236,18 +250,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -264,8 +281,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb index 3b95f5300f04..a05d8a3c705e 100644 --- a/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_message_remapper_type.rb @@ -22,15 +22,17 @@ class LogsMessageRemapperType MESSAGE_REMAPPER = "message-remapper".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsMessageRemapperType.constants.select { |c| LogsMessageRemapperType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_pipeline.rb b/lib/datadog_api_client/v1/models/logs_pipeline.rb index e9e8f13d54b9..1e3ab9e99a12 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline.rb @@ -24,6 +24,7 @@ module DatadogAPIClient::V1 # Make sure to use an application key created by an admin. class LogsPipeline # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Filter for logs. @@ -48,6 +49,7 @@ class LogsPipeline attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'LogsFilter', @@ -79,13 +83,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipeline` initialize method" @@ -132,6 +138,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -143,13 +150,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, id, is_enabled, is_read_only, name, processors, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb index b2740b38ee14..9b71743a2b09 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb @@ -24,6 +24,7 @@ module DatadogAPIClient::V1 # A pipeline can contain Nested Pipelines and Processors whereas a Nested Pipeline can only contain Processors. class LogsPipelineProcessor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Filter for logs. @@ -42,6 +43,7 @@ class LogsPipelineProcessor attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'LogsFilter', @@ -69,13 +73,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelineProcessor` initialize method" @@ -118,6 +124,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -129,13 +136,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -147,20 +156,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, is_enabled, name, processors, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -168,6 +180,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -188,9 +201,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -239,18 +253,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -267,8 +284,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb b/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb index b3bc599a0d22..5ba758b31b63 100644 --- a/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_pipeline_processor_type.rb @@ -22,15 +22,17 @@ class LogsPipelineProcessorType PIPELINE = "pipeline".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsPipelineProcessorType.constants.select { |c| LogsPipelineProcessorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb index 7525d03be60b..57b2ca13a95b 100644 --- a/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +++ b/lib/datadog_api_client/v1/models/logs_pipelines_order.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing the ordered list of pipeline IDs. class LogsPipelinesOrder # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Ordered Array of `` strings, the order of pipeline IDs in the array @@ -27,6 +28,7 @@ class LogsPipelinesOrder attr_accessor :pipeline_ids # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'pipeline_ids' => :'pipeline_ids' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'pipeline_ids' => :'Array' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsPipelinesOrder` initialize method" @@ -75,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @pipeline_ids.nil? @@ -86,13 +93,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @pipeline_ids.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -100,20 +109,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [pipeline_ids].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -121,6 +133,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -141,9 +154,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -192,18 +206,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -220,8 +237,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_query_compute.rb b/lib/datadog_api_client/v1/models/logs_query_compute.rb index 3fbc8f319d61..9df962d9b8a5 100644 --- a/lib/datadog_api_client/v1/models/logs_query_compute.rb +++ b/lib/datadog_api_client/v1/models/logs_query_compute.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Define computation for a log query. class LogsQueryCompute # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregation method. @@ -32,6 +33,7 @@ class LogsQueryCompute attr_accessor :interval # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsQueryCompute` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @aggregation.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, facet, interval].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb index 49e9180706fc..6bd0ec07c5ee 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing indexed logs usage aggregated across organizations and months for a retention period. class LogsRetentionAggSumUsage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total indexed logs for this retention period. @@ -35,6 +36,7 @@ class LogsRetentionAggSumUsage attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'logs_indexed_logs_usage_agg_sum' => :'logs_indexed_logs_usage_agg_sum', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'logs_indexed_logs_usage_agg_sum' => :'Integer', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsRetentionAggSumUsage` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [logs_indexed_logs_usage_agg_sum, logs_live_indexed_logs_usage_agg_sum, logs_rehydrated_indexed_logs_usage_agg_sum, retention].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb index 1b3a25810fa3..9c335353e0c8 100644 --- a/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb +++ b/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing indexed logs usage grouped by retention period and summed. class LogsRetentionSumUsage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total indexed logs for this retention period. @@ -35,6 +36,7 @@ class LogsRetentionSumUsage attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'logs_indexed_logs_usage_sum' => :'logs_indexed_logs_usage_sum', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'logs_indexed_logs_usage_sum' => :'Integer', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsRetentionSumUsage` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [logs_indexed_logs_usage_sum, logs_live_indexed_logs_usage_sum, logs_rehydrated_indexed_logs_usage_sum, retention].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper.rb b/lib/datadog_api_client/v1/models/logs_service_remapper.rb index a8389735499e..895b8c66db05 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper.rb @@ -23,6 +23,7 @@ module DatadogAPIClient::V1 # only the first one (according to the pipeline order) is taken into account. class LogsServiceRemapper # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -38,6 +39,7 @@ class LogsServiceRemapper attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -48,11 +50,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -63,13 +67,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsServiceRemapper` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -122,6 +129,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @type.nil? @@ -129,7 +137,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -140,20 +149,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, sources, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -161,6 +173,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -181,9 +194,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -232,18 +246,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -260,8 +277,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb index 1a636877a7c8..28d2737cb3ee 100644 --- a/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_service_remapper_type.rb @@ -22,15 +22,17 @@ class LogsServiceRemapperType SERVICE_REMAPPER = "service-remapper".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsServiceRemapperType.constants.select { |c| LogsServiceRemapperType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_sort.rb b/lib/datadog_api_client/v1/models/logs_sort.rb index 115058593a76..970a3eb30b37 100644 --- a/lib/datadog_api_client/v1/models/logs_sort.rb +++ b/lib/datadog_api_client/v1/models/logs_sort.rb @@ -23,15 +23,17 @@ class LogsSort TIME_DESCENDING = "desc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsSort.constants.select { |c| LogsSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper.rb b/lib/datadog_api_client/v1/models/logs_status_remapper.rb index 635dc7ad3b93..ea189c7616a3 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper.rb @@ -37,6 +37,7 @@ module DatadogAPIClient::V1 # only the first one (according to the pipelines order) is taken into account. class LogsStatusRemapper # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -52,6 +53,7 @@ class LogsStatusRemapper attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -77,13 +81,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsStatusRemapper` initialize method" @@ -122,6 +128,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -136,6 +143,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @type.nil? @@ -143,7 +151,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -154,20 +163,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, sources, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -175,6 +187,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -195,9 +208,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -246,18 +260,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -274,8 +291,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb index 57542ec44325..61f38b0405a0 100644 --- a/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_status_remapper_type.rb @@ -22,15 +22,17 @@ class LogsStatusRemapperType STATUS_REMAPPER = "status-remapper".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsStatusRemapperType.constants.select { |c| LogsStatusRemapperType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb index 4b323573fe20..e3c688fb8c4f 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb @@ -32,6 +32,7 @@ module DatadogAPIClient::V1 # - Results of the template cannot exceed 256 characters. class LogsStringBuilderProcessor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -54,6 +55,7 @@ class LogsStringBuilderProcessor attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -66,11 +68,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -83,13 +87,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsStringBuilderProcessor` initialize method" @@ -136,6 +142,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @target.nil? @@ -153,6 +160,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @target.nil? return false if @template.nil? @@ -161,7 +169,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -174,20 +183,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, is_replace_missing, name, target, template, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -195,6 +207,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -215,9 +228,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -266,18 +280,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -294,8 +311,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb b/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb index 5385f1ff2c77..8f88cbb4bcda 100644 --- a/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb +++ b/lib/datadog_api_client/v1/models/logs_string_builder_processor_type.rb @@ -22,15 +22,17 @@ class LogsStringBuilderProcessorType STRING_BUILDER_PROCESSOR = "string-builder-processor".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsStringBuilderProcessorType.constants.select { |c| LogsStringBuilderProcessorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb index df5b880717f2..c1bae14fd951 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper.rb @@ -25,6 +25,7 @@ module DatadogAPIClient::V1 # 2. Use the Trace remapper processor to define a log attribute as its associated trace ID. class LogsTraceRemapper # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -40,6 +41,7 @@ class LogsTraceRemapper attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsTraceRemapper` initialize method" @@ -112,6 +118,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -123,13 +130,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -140,20 +149,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, sources, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -161,6 +173,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -181,9 +194,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -232,18 +246,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -260,8 +277,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb b/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb index e0057d7823c1..9578b35f8be2 100644 --- a/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb +++ b/lib/datadog_api_client/v1/models/logs_trace_remapper_type.rb @@ -22,15 +22,17 @@ class LogsTraceRemapperType TRACE_ID_REMAPPER = "trace-id-remapper".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsTraceRemapperType.constants.select { |c| LogsTraceRemapperType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_url_parser.rb b/lib/datadog_api_client/v1/models/logs_url_parser.rb index af89003e0e1c..d2bc6ad519d1 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # This processor extracts query parameters and other important parameters from a URL. class LogsURLParser # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -41,6 +42,7 @@ class LogsURLParser attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsURLParser` initialize method" @@ -129,6 +135,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -146,6 +153,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @target.nil? @@ -154,7 +162,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -167,20 +176,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, name, normalize_ending_slashes, sources, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -188,6 +200,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -208,9 +221,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -259,18 +273,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -287,8 +304,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_url_parser_type.rb b/lib/datadog_api_client/v1/models/logs_url_parser_type.rb index 4d4e93fa4601..f38175c854af 100644 --- a/lib/datadog_api_client/v1/models/logs_url_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_url_parser_type.rb @@ -22,15 +22,17 @@ class LogsURLParserType URL_PARSER = "url-parser".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsURLParserType.constants.select { |c| LogsURLParserType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb index be33aaa35c27..d172b098971a 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # It recognizes major bots like the Google Bot, Yahoo Slurp, and Bing. class LogsUserAgentParser # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the processor is enabled. @@ -42,6 +43,7 @@ class LogsUserAgentParser attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_enabled' => :'is_enabled', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_enabled' => :'Boolean', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::LogsUserAgentParser` initialize method" @@ -130,6 +136,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @sources.nil? @@ -147,6 +154,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @sources.nil? return false if @target.nil? @@ -155,7 +163,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -168,20 +177,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_enabled, is_encoded, name, sources, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -189,6 +201,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -209,9 +222,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -260,18 +274,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -288,8 +305,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb b/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb index c5ec4e70d754..c26254f40b1e 100644 --- a/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb +++ b/lib/datadog_api_client/v1/models/logs_user_agent_parser_type.rb @@ -22,15 +22,17 @@ class LogsUserAgentParserType USER_AGENT_PARSER = "user-agent-parser".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsUserAgentParserType.constants.select { |c| LogsUserAgentParserType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/metric_content_encoding.rb b/lib/datadog_api_client/v1/models/metric_content_encoding.rb index 84f483831ebb..74f3fcd2935a 100644 --- a/lib/datadog_api_client/v1/models/metric_content_encoding.rb +++ b/lib/datadog_api_client/v1/models/metric_content_encoding.rb @@ -22,15 +22,17 @@ class MetricContentEncoding DEFLATE = "deflate".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricContentEncoding.constants.select { |c| MetricContentEncoding::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/metric_metadata.rb b/lib/datadog_api_client/v1/models/metric_metadata.rb index f3944e37b740..80629ee5cd63 100644 --- a/lib/datadog_api_client/v1/models/metric_metadata.rb +++ b/lib/datadog_api_client/v1/models/metric_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with all metric related metadata. class MetricMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Metric description. @@ -44,6 +45,7 @@ class MetricMetadata attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'description' => :'description', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'description' => :'String', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricMetadata` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [description, integration, per_unit, short_name, statsd_interval, type, unit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metric_search_response.rb b/lib/datadog_api_client/v1/models/metric_search_response.rb index 0e0cf9d5b6e0..c77bf9196327 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object containing the list of metrics matching the search query. class MetricSearchResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Search result. attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'results' => :'results' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'results' => :'MetricSearchResponseResults' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricSearchResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [results].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metric_search_response_results.rb b/lib/datadog_api_client/v1/models/metric_search_response_results.rb index 5bb58813fc08..5db328fac9f8 100644 --- a/lib/datadog_api_client/v1/models/metric_search_response_results.rb +++ b/lib/datadog_api_client/v1/models/metric_search_response_results.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Search result. class MetricSearchResponseResults # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of metrics that match the search query. attr_accessor :metrics # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metrics' => :'metrics' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metrics' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricSearchResponseResults` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metrics].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metrics_list_response.rb b/lib/datadog_api_client/v1/models/metrics_list_response.rb index ca1b06175506..6e51aaccaba4 100644 --- a/lib/datadog_api_client/v1/models/metrics_list_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object listing all metric names stored by Datadog since a given time. class MetricsListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Time when the metrics were active, seconds since the Unix epoch. @@ -29,6 +30,7 @@ class MetricsListResponse attr_accessor :metrics # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'from' => :'from', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'from' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsListResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [from, metrics].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metrics_payload.rb b/lib/datadog_api_client/v1/models/metrics_payload.rb index 8fe4d5bd2c1e..de94b6455445 100644 --- a/lib/datadog_api_client/v1/models/metrics_payload.rb +++ b/lib/datadog_api_client/v1/models/metrics_payload.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The metrics' payload. class MetricsPayload # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of time series to submit to Datadog. attr_accessor :series # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'series' => :'series' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'series' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsPayload` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @series.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @series.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [series].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb index 1a937ba9d361..b67731d3f924 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing all metric names returned and their associated metadata. class MetricsQueryMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Aggregation type. @@ -64,6 +65,7 @@ class MetricsQueryMetadata attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggr' => :'aggr', @@ -83,11 +85,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggr' => :'String', @@ -107,13 +111,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryMetadata` initialize method" @@ -188,6 +194,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -196,12 +203,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -221,20 +230,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggr, display_name, _end, expression, interval, length, metric, pointlist, query_index, scope, start, tag_set, unit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -242,6 +254,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -262,9 +275,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -313,18 +327,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -341,8 +358,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metrics_query_response.rb b/lib/datadog_api_client/v1/models/metrics_query_response.rb index c4290cccafdd..a35b0e95e6a8 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_response.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response Object that includes your query and the list of metrics retrieved. class MetricsQueryResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Message indicating the errors if status is not `ok`. @@ -50,6 +51,7 @@ class MetricsQueryResponse attr_accessor :to_date # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'error' => :'error', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'error' => :'String', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryResponse` initialize method" @@ -148,6 +154,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -156,12 +163,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -177,20 +186,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [error, from_date, group_by, message, query, res_type, series, status, to_date].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -198,6 +210,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -218,9 +231,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -269,18 +283,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -297,8 +314,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/metrics_query_unit.rb b/lib/datadog_api_client/v1/models/metrics_query_unit.rb index 735e08187cd0..6f021100b9f9 100644 --- a/lib/datadog_api_client/v1/models/metrics_query_unit.rb +++ b/lib/datadog_api_client/v1/models/metrics_query_unit.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing the metric unit family, scale factor, name, and short name. class MetricsQueryUnit # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Unit family, allows for conversion between units of the same family, for scaling. @@ -38,6 +39,7 @@ class MetricsQueryUnit attr_accessor :short_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'family' => :'family', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'family' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MetricsQueryUnit` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [family, name, plural, scale_factor, short_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor.rb b/lib/datadog_api_client/v1/models/monitor.rb index 1356bd299b5d..5e8772e02efe 100644 --- a/lib/datadog_api_client/v1/models/monitor.rb +++ b/lib/datadog_api_client/v1/models/monitor.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing a monitor. class Monitor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp of the monitor creation. @@ -71,6 +72,7 @@ class Monitor attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -93,11 +95,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'Time', @@ -120,13 +124,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Monitor` initialize method" @@ -211,6 +217,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -225,6 +232,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? return false if @type.nil? @@ -232,7 +240,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -255,20 +264,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -276,6 +288,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -296,9 +309,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -347,18 +361,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -375,8 +392,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_device_id.rb b/lib/datadog_api_client/v1/models/monitor_device_id.rb index 2c7fe3e96c29..7959e197396f 100644 --- a/lib/datadog_api_client/v1/models/monitor_device_id.rb +++ b/lib/datadog_api_client/v1/models/monitor_device_id.rb @@ -30,15 +30,17 @@ class MonitorDeviceID FIREFOX_MOBILE_SMALL = "firefox.mobile_small".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MonitorDeviceID.constants.select { |c| MonitorDeviceID::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb new file mode 100644 index 000000000000..db848afd7e49 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_aggregation.rb @@ -0,0 +1,52 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Aggregation methods for event platform queries. + class MonitorFormulaAndFunctionEventAggregation + COUNT = "count".freeze + CARDINALITY = "cardinality".freeze + MEDIAN = "median".freeze + PC75 = "pc75".freeze + PC90 = "pc90".freeze + PC95 = "pc95".freeze + PC98 = "pc98".freeze + PC99 = "pc99".freeze + SUM = "sum".freeze + MIN = "min".freeze + MAX = "max".freeze + AVG = "avg".freeze + + # Builds the enum from string + # @param value [String] The enum value in the form of the string + # @return [String] The enum value + # @!visibility private + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param value [String] The enum value in the form of the string + # @return [String] The enum value + # @!visibility private + def build_from_hash(value) + constantValues = MonitorFormulaAndFunctionEventAggregation.constants.select { |c| MonitorFormulaAndFunctionEventAggregation::const_get(c) == value } + constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value + end + end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb new file mode 100644 index 000000000000..3589a0fc87c7 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb @@ -0,0 +1,317 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A formula and functions events query. + class MonitorFormulaAndFunctionEventQueryDefinition + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Compute options. + attr_accessor :compute + + # Data source for event platform-based queries. + attr_accessor :data_source + + # Group by options. + attr_accessor :group_by + + # An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. + attr_accessor :indexes + + # Name of the query for use in formulas. + attr_accessor :name + + # Search options. + attr_accessor :search + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'compute' => :'compute', + :'data_source' => :'data_source', + :'group_by' => :'group_by', + :'indexes' => :'indexes', + :'name' => :'name', + :'search' => :'search' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'compute' => :'MonitorFormulaAndFunctionEventQueryDefinitionCompute', + :'data_source' => :'MonitorFormulaAndFunctionEventsDataSource', + :'group_by' => :'Array', + :'indexes' => :'Array', + :'name' => :'String', + :'search' => :'MonitorFormulaAndFunctionEventQueryDefinitionSearch' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinition` 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::MonitorFormulaAndFunctionEventQueryDefinition`. 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?(:'compute') + self.compute = attributes[:'compute'] + end + + if attributes.key?(:'data_source') + self.data_source = attributes[:'data_source'] + end + + if attributes.key?(:'group_by') + if (value = attributes[:'group_by']).is_a?(Array) + self.group_by = value + end + end + + if attributes.key?(:'indexes') + if (value = attributes[:'indexes']).is_a?(Array) + self.indexes = value + end + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'search') + self.search = attributes[:'search'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + if @compute.nil? + invalid_properties.push('invalid value for "compute", compute cannot be nil.') + end + if @data_source.nil? + invalid_properties.push('invalid value for "data_source", data_source cannot be nil.') + end + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @compute.nil? + return false if @data_source.nil? + return false if @name.nil? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + compute == o.compute && + data_source == o.data_source && + group_by == o.group_by && + indexes == o.indexes && + name == o.name && + search == o.search + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [compute, data_source, group_by, indexes, name, search].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param value [Object] Any valid value + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb new file mode 100644 index 000000000000..1d52d9e4ea75 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb @@ -0,0 +1,275 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Compute options. + class MonitorFormulaAndFunctionEventQueryDefinitionCompute + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Aggregation methods for event platform queries. + attr_accessor :aggregation + + # A time interval in milliseconds. + attr_accessor :interval + + # Measurable attribute to compute. + attr_accessor :metric + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'aggregation' => :'aggregation', + :'interval' => :'interval', + :'metric' => :'metric' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'aggregation' => :'MonitorFormulaAndFunctionEventAggregation', + :'interval' => :'Integer', + :'metric' => :'String' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionCompute` 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::MonitorFormulaAndFunctionEventQueryDefinitionCompute`. 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?(:'aggregation') + self.aggregation = attributes[:'aggregation'] + end + + if attributes.key?(:'interval') + self.interval = attributes[:'interval'] + end + + if attributes.key?(:'metric') + self.metric = attributes[:'metric'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + if @aggregation.nil? + invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @aggregation.nil? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + aggregation == o.aggregation && + interval == o.interval && + metric == o.metric + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [aggregation, interval, metric].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param value [Object] Any valid value + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb new file mode 100644 index 000000000000..a45dfe3e0f47 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb @@ -0,0 +1,255 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Search options. + class MonitorFormulaAndFunctionEventQueryDefinitionSearch + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Events search string. + attr_accessor :query + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'query' => :'query' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'query' => :'String' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryDefinitionSearch` 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::MonitorFormulaAndFunctionEventQueryDefinitionSearch`. 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?(:'query') + self.query = attributes[:'query'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + if @query.nil? + invalid_properties.push('invalid value for "query", query cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @query.nil? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + query == o.query + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [query].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param value [Object] Any valid value + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb new file mode 100644 index 000000000000..d554d1571782 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb @@ -0,0 +1,275 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # List of objects used to group by. + class MonitorFormulaAndFunctionEventQueryGroupBy + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Event facet. + attr_accessor :facet + + # Number of groups to return. + attr_accessor :limit + + # Options for sorting group by results. + attr_accessor :sort + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'facet' => :'facet', + :'limit' => :'limit', + :'sort' => :'sort' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'facet' => :'String', + :'limit' => :'Integer', + :'sort' => :'MonitorFormulaAndFunctionEventQueryGroupBySort' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBy` 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::MonitorFormulaAndFunctionEventQueryGroupBy`. 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?(:'facet') + self.facet = attributes[:'facet'] + end + + if attributes.key?(:'limit') + self.limit = attributes[:'limit'] + end + + if attributes.key?(:'sort') + self.sort = attributes[:'sort'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + if @facet.nil? + invalid_properties.push('invalid value for "facet", facet cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @facet.nil? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + facet == o.facet && + limit == o.limit && + sort == o.sort + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [facet, limit, sort].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param value [Object] Any valid value + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb new file mode 100644 index 000000000000..40de53351a2d --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb @@ -0,0 +1,277 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Options for sorting group by results. + class MonitorFormulaAndFunctionEventQueryGroupBySort + # whether the object has unparsed attributes + # @!visibility private + attr_accessor :_unparsed + + # Aggregation methods for event platform queries. + attr_accessor :aggregation + + # Metric used for sorting group by results. + attr_accessor :metric + + # Direction of sort. + attr_accessor :order + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'aggregation' => :'aggregation', + :'metric' => :'metric', + :'order' => :'order' + } + end + + # Returns all the JSON keys this model knows about + # @!visibility private + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'aggregation' => :'MonitorFormulaAndFunctionEventAggregation', + :'metric' => :'String', + :'order' => :'QuerySortOrder' + } + end + + # List of attributes with nullable: true + # @!visibility private + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionEventQueryGroupBySort` 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::MonitorFormulaAndFunctionEventQueryGroupBySort`. 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?(:'aggregation') + self.aggregation = attributes[:'aggregation'] + end + + if attributes.key?(:'metric') + self.metric = attributes[:'metric'] + end + + if attributes.key?(:'order') + self.order = attributes[:'order'] + else + self.order = 'desc' + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + # @!visibility private + def list_invalid_properties + invalid_properties = Array.new + if @aggregation.nil? + invalid_properties.push('invalid value for "aggregation", aggregation cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @aggregation.nil? + true + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + aggregation == o.aggregation && + metric == o.metric && + order == o.order + end + + # @see the `==` method + # @param o [Object] Object to be compared + # @!visibility private + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [aggregation, metric, order].hash + end + + # Builds the object from hash + # @param attributes [Hash] Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def self.build_from_hash(attributes) + new.build_from_hash(attributes) + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + # @!visibility private + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.openapi_types.each_pair do |key, type| + if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) + self.send("#{key}=", nil) + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end + end + + self + end + + # Deserializes the data based on type + # @param type [string] Data type + # @param value [string] Value to be deserialized + # @return [Object] Deserialized data + # @!visibility private + def _deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when :Array + # generic array, return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = DatadogAPIClient::V1.const_get(type) + res = klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + if res.instance_of? DatadogAPIClient::V1::UnparsedObject + self._unparsed = true + end + res + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + # @!visibility private + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param value [Object] Any valid value + # @return [Hash] Returns the value in the form of hash + # @!visibility private + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb new file mode 100644 index 000000000000..5578d28e702f --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb @@ -0,0 +1,41 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # Data source for event platform-based queries. + class MonitorFormulaAndFunctionEventsDataSource + RUM = "rum".freeze + + # Builds the enum from string + # @param value [String] The enum value in the form of the string + # @return [String] The enum value + # @!visibility private + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param value [String] The enum value in the form of the string + # @return [String] The enum value + # @!visibility private + def build_from_hash(value) + constantValues = MonitorFormulaAndFunctionEventsDataSource.constants.select { |c| MonitorFormulaAndFunctionEventsDataSource::const_get(c) == value } + constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value + end + end +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb new file mode 100644 index 000000000000..b21cba978350 --- /dev/null +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb @@ -0,0 +1,115 @@ +=begin +#Datadog API V1 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://datadoghq.com + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V1 + # A formula and function query. + module MonitorFormulaAndFunctionQueryDefinition + class << self + attr_accessor :_unparsed + + # List of class defined in oneOf (OpenAPI v3) + def openapi_one_of + [ + :'MonitorFormulaAndFunctionEventQueryDefinition' + ] + end + # Builds the object + # @param [Mixed] Data to be matched against the list of oneOf items + # @return [Object] Returns the model or the data itself + def build(data) + # Go through the list of oneOf items and attempt to identify the appropriate one. + # Note: + # - We do not attempt to check whether exactly one item matches. + # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 }) + # due to the way the deserialization is made in the base_object template (it just casts without verifying). + # - TODO: scalar values are de facto behaving as if they were nullable. + # - TODO: logging when debugging is set. + openapi_one_of.each do |klass| + begin + next if klass == :AnyType # "nullable: true" + typed_data = find_and_cast_into_type(klass, data) + next if typed_data._unparsed + return typed_data if typed_data + rescue # rescue all errors so we keep iterating even if the current item lookup raises + end + end + + if openapi_one_of.include?(:AnyType) + data + else + self._unparsed = true + DatadogAPIClient::V1::UnparsedObject.new(data) + end + end + + private + + SchemaMismatchError = Class.new(StandardError) + + # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse. + def find_and_cast_into_type(klass, data) + return if data.nil? + + case klass.to_s + when 'Boolean' + return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass) + when 'Float' + return data if data.instance_of?(Float) + when 'Integer' + return data if data.instance_of?(Integer) + when 'Time' + return Time.parse(data) + when 'Date' + return Date.parse(data) + when 'String' + return data if data.instance_of?(String) + when 'Object' # "type: object" + return data if data.instance_of?(Hash) + when /\AArray<(?.+)>\z/ # "type: array" + if data.instance_of?(Array) + sub_type = Regexp.last_match[:sub_type] + return data.map { |item| find_and_cast_into_type(sub_type, item) } + end + when /\AHash.+)>\z/ # "type: object" with "additionalProperties: { ... }" + if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) } + sub_type = Regexp.last_match[:sub_type] + return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) } + end + else # model + const = DatadogAPIClient::V1.const_get(klass) + if const + if const.respond_to?(:openapi_one_of) # nested oneOf model + model = const.build(data) + return model if model + else + # raise if data contains keys that are not known to the model + raise unless (data.keys - const.acceptable_attributes).empty? + model = const.build_from_hash(data) + return model if model && model.valid? + end + end + end + + raise # if no match by now, raise + rescue + raise SchemaMismatchError, "#{data} doesn't match the #{klass} type" + end + end + end + +end \ No newline at end of file diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb index e1e6ca81e41f..28a6c8c6ec33 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The response of a monitor group search. class MonitorGroupSearchResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The counts of monitor groups per different criteria. @@ -32,6 +33,7 @@ class MonitorGroupSearchResponse attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'counts' => :'counts', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'counts' => :'MonitorGroupSearchResponseCounts', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponse` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [counts, groups, metadata].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb index d5e5e37fc9ab..b7f20809d12c 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The counts of monitor groups per different criteria. class MonitorGroupSearchResponseCounts # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Search facets. @@ -29,6 +30,7 @@ class MonitorGroupSearchResponseCounts attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'status' => :'status', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'status' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCounts` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [status, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb index a6341263eb6d..1adc12101a50 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_status_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorGroupSearchResponseCountsStatusItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of found monitors with the listed value. @@ -29,6 +30,7 @@ class MonitorGroupSearchResponseCountsStatusItem attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCountsStatusItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb index 243aefc03344..db27cc64c322 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_response_counts_type_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorGroupSearchResponseCountsTypeItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of found monitors with the listed value. @@ -29,6 +30,7 @@ class MonitorGroupSearchResponseCountsTypeItem attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResponseCountsTypeItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb index dc00692c12af..078a44284a07 100644 --- a/lib/datadog_api_client/v1/models/monitor_group_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_group_search_result.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A single monitor group search result. class MonitorGroupSearchResult # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The name of the group. @@ -44,6 +45,7 @@ class MonitorGroupSearchResult attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'group' => :'group', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'group' => :'String', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorGroupSearchResult` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -136,12 +143,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -155,20 +164,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [group, group_tags, last_nodata_ts, last_triggered_ts, monitor_id, monitor_name, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -176,6 +188,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -196,9 +209,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -247,18 +261,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -275,8 +292,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_options.rb b/lib/datadog_api_client/v1/models/monitor_options.rb index d9af83a8fb6f..986cecbe5a5f 100644 --- a/lib/datadog_api_client/v1/models/monitor_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # List of options associated with your monitor. class MonitorOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of aggregation performed in the monitor query. @@ -118,7 +119,11 @@ class MonitorOptions # The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours. attr_accessor :timeout_h + # List of requests that can be used in the monitor query. **This feature is currently in beta.** + attr_accessor :variables + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -144,16 +149,19 @@ def self.attribute_map :'synthetics_check_id' => :'synthetics_check_id', :'threshold_windows' => :'threshold_windows', :'thresholds' => :'thresholds', - :'timeout_h' => :'timeout_h' + :'timeout_h' => :'timeout_h', + :'variables' => :'variables' } end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'MonitorOptionsAggregation', @@ -179,18 +187,21 @@ def self.openapi_types :'synthetics_check_id' => :'String', :'threshold_windows' => :'MonitorThresholdWindowOptions', :'thresholds' => :'MonitorThresholds', - :'timeout_h' => :'Integer' + :'timeout_h' => :'Integer', + :'variables' => :'Array' } end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptions` initialize method" @@ -321,10 +332,17 @@ def initialize(attributes = {}) else self.timeout_h = 'none' end + + if attributes.key?(:'variables') + if (value = attributes[:'variables']).is_a?(Array) + self.variables = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -333,12 +351,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -365,24 +385,28 @@ def ==(o) synthetics_check_id == o.synthetics_check_id && threshold_windows == o.threshold_windows && thresholds == o.thresholds && - timeout_h == o.timeout_h + timeout_h == o.timeout_h && + variables == o.variables end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash - [aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h].hash + [aggregation, device_ids, enable_logs_sample, escalation_message, evaluation_delay, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_no_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -390,6 +414,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -410,9 +435,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -461,18 +487,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -489,8 +518,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb index 6b8987615781..dc51c5fcfee1 100644 --- a/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb +++ b/lib/datadog_api_client/v1/models/monitor_options_aggregation.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Type of aggregation performed in the monitor query. class MonitorOptionsAggregation # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Group to break down the monitor on. @@ -32,6 +33,7 @@ class MonitorOptionsAggregation attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'group_by' => :'group_by', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'group_by' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorOptionsAggregation` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [group_by, metric, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_overall_states.rb b/lib/datadog_api_client/v1/models/monitor_overall_states.rb index 728a21f8d5dd..8d269e41216b 100644 --- a/lib/datadog_api_client/v1/models/monitor_overall_states.rb +++ b/lib/datadog_api_client/v1/models/monitor_overall_states.rb @@ -28,15 +28,17 @@ class MonitorOverallStates WARN = "Warn".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MonitorOverallStates.constants.select { |c| MonitorOverallStates::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb b/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb index bee5dc453f78..dcea62d74aff 100644 --- a/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb @@ -24,15 +24,17 @@ class MonitorRenotifyStatusType NO_DATA = "no data".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MonitorRenotifyStatusType.constants.select { |c| MonitorRenotifyStatusType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/monitor_search_response.rb b/lib/datadog_api_client/v1/models/monitor_search_response.rb index 86403f65de69..f05a8ac9d0d7 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The response form a monitor search. class MonitorSearchResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The counts of monitors per different criteria. @@ -32,6 +33,7 @@ class MonitorSearchResponse attr_accessor :monitors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'counts' => :'counts', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'counts' => :'MonitorSearchResponseCounts', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponse` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [counts, metadata, monitors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb index 8bfc56f7c8f2..10fc389c6b55 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The counts of monitors per different criteria. class MonitorSearchResponseCounts # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Search facets. @@ -35,6 +36,7 @@ class MonitorSearchResponseCounts attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'muted' => :'muted', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'muted' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCounts` initialize method" @@ -107,6 +113,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -115,12 +122,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [muted, status, tag, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb index 68282890f311..3d43630b5acf 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_muted_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsMutedItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of found monitors with the listed value. @@ -29,6 +30,7 @@ class MonitorSearchResponseCountsMutedItem attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsMutedItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb index 832615a25356..775ea98b3fbe 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_status_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsStatusItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of found monitors with the listed value. @@ -29,6 +30,7 @@ class MonitorSearchResponseCountsStatusItem attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsStatusItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb index ddc9c25817e1..07828666f9a0 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_tag_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsTagItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of found monitors with the listed value. @@ -29,6 +30,7 @@ class MonitorSearchResponseCountsTagItem attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsTagItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb index dad5bc965022..9265803ee8bf 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_counts_type_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A facet item. class MonitorSearchResponseCountsTypeItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of found monitors with the listed value. @@ -29,6 +30,7 @@ class MonitorSearchResponseCountsTypeItem attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseCountsTypeItem` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb index 2d4cc1925658..84c73bf155a1 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_response_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Metadata about the response. class MonitorSearchResponseMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The page to start paginating from. @@ -35,6 +36,7 @@ class MonitorSearchResponseMetadata attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'Integer', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResponseMetadata` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page, page_count, per_page, total_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_result.rb b/lib/datadog_api_client/v1/models/monitor_search_result.rb index 333ba5371e85..b64e3b263df8 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Holds search results. class MonitorSearchResult # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Classification of the monitor. @@ -65,6 +66,7 @@ class MonitorSearchResult attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'classification' => :'classification', @@ -84,11 +86,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'classification' => :'String', @@ -108,13 +112,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResult` initialize method" @@ -191,6 +197,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -199,12 +206,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -224,20 +233,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [classification, creator, id, last_triggered_ts, metrics, name, notifications, org_id, query, scopes, status, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -245,6 +257,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -265,9 +278,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -316,18 +330,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -344,8 +361,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb index 3b4c8d5706c8..8f42f5f9a8f6 100644 --- a/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb +++ b/lib/datadog_api_client/v1/models/monitor_search_result_notification.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A notification triggered by the monitor. class MonitorSearchResultNotification # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The email address that received the notification. @@ -29,6 +30,7 @@ class MonitorSearchResultNotification attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'handle' => :'handle', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'handle' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchResultNotification` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [handle, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_state.rb b/lib/datadog_api_client/v1/models/monitor_state.rb index c85d2d2595e0..89b60d3ce552 100644 --- a/lib/datadog_api_client/v1/models/monitor_state.rb +++ b/lib/datadog_api_client/v1/models/monitor_state.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Wrapper object with the different monitor states. class MonitorState # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Dictionary where the keys are groups (comma separated lists of tags) and the values are @@ -27,6 +28,7 @@ class MonitorState attr_accessor :groups # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'groups' => :'groups' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'groups' => :'Hash' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorState` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [groups].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_state_group.rb b/lib/datadog_api_client/v1/models/monitor_state_group.rb index a5de3b199163..fa65b2eeb337 100644 --- a/lib/datadog_api_client/v1/models/monitor_state_group.rb +++ b/lib/datadog_api_client/v1/models/monitor_state_group.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Monitor state for a single group. class MonitorStateGroup # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Latest timestamp the monitor was in NO_DATA state. @@ -41,6 +42,7 @@ class MonitorStateGroup attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'last_nodata_ts' => :'last_nodata_ts', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'last_nodata_ts' => :'Integer', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorStateGroup` initialize method" @@ -117,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -125,12 +132,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -143,20 +152,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [last_nodata_ts, last_notified_ts, last_resolved_ts, last_triggered_ts, name, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -164,6 +176,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -184,9 +197,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -235,18 +249,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -263,8 +280,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb index 94e54388622b..871e9a01465b 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query. Only available on FREE layout dashboards. class MonitorSummaryWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Which color to use on the widget. @@ -62,6 +63,7 @@ class MonitorSummaryWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'color_preference' => :'color_preference', @@ -81,11 +83,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'color_preference' => :'WidgetColorPreference', @@ -105,13 +109,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSummaryWidgetDefinition` initialize method" @@ -182,6 +188,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -196,6 +203,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? return false if @type.nil? @@ -203,7 +211,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -223,20 +232,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [color_preference, count, display_format, hide_zero_counts, query, show_last_triggered, sort, start, summary_type, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -244,6 +256,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -264,9 +277,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -315,18 +329,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -343,8 +360,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb index 66f370db5589..a37642e2bfdd 100644 --- a/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_summary_widget_definition_type.rb @@ -22,15 +22,17 @@ class MonitorSummaryWidgetDefinitionType MANAGE_STATUS = "manage_status".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MonitorSummaryWidgetDefinitionType.constants.select { |c| MonitorSummaryWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb index e06c51f0836b..f74d47d71b9e 100644 --- a/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb +++ b/lib/datadog_api_client/v1/models/monitor_threshold_window_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Alerting time window options. class MonitorThresholdWindowOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Describes how long an anomalous metric must be normal before the alert recovers. @@ -29,6 +30,7 @@ class MonitorThresholdWindowOptions attr_accessor :trigger_window # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'recovery_window' => :'recovery_window', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'recovery_window' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorThresholdWindowOptions` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [recovery_window, trigger_window].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_thresholds.rb b/lib/datadog_api_client/v1/models/monitor_thresholds.rb index cb60a534e706..b31403063807 100644 --- a/lib/datadog_api_client/v1/models/monitor_thresholds.rb +++ b/lib/datadog_api_client/v1/models/monitor_thresholds.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # List of the different monitor threshold available. class MonitorThresholds # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The monitor `CRITICAL` threshold. @@ -41,6 +42,7 @@ class MonitorThresholds attr_accessor :warning_recovery # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'critical' => :'critical', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'critical' => :'Float', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorThresholds` initialize method" @@ -117,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -125,12 +132,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -143,20 +152,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [critical, critical_recovery, ok, unknown, warning, warning_recovery].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -164,6 +176,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -184,9 +197,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -235,18 +249,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -263,8 +280,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monitor_type.rb b/lib/datadog_api_client/v1/models/monitor_type.rb index b9b278e25cf5..da9a0dbf4664 100644 --- a/lib/datadog_api_client/v1/models/monitor_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_type.rb @@ -35,15 +35,17 @@ class MonitorType CI_PIPELINES_ALERT = "ci-pipelines alert".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MonitorType.constants.select { |c| MonitorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/monitor_update_request.rb b/lib/datadog_api_client/v1/models/monitor_update_request.rb index f0eff6123348..4a26a453865f 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing a monitor update request. class MonitorUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp of the monitor creation. @@ -71,6 +72,7 @@ class MonitorUpdateRequest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -93,11 +95,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'Time', @@ -120,13 +124,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorUpdateRequest` initialize method" @@ -211,6 +217,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -219,12 +226,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -247,20 +256,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -268,6 +280,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -288,9 +301,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -339,18 +353,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -367,8 +384,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb index 891c09aea600..8f9704d7ff62 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Usage Summary by tag for a given organization. class MonthlyUsageAttributionBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. @@ -44,6 +45,7 @@ class MonthlyUsageAttributionBody attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'month' => :'month', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'month' => :'Time', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionBody` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [month, org_name, public_id, tag_config_source, tags, updated_at, values].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb index be677554981d..8c824d6e873f 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class MonthlyUsageAttributionMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of available aggregates. @@ -29,6 +30,7 @@ class MonthlyUsageAttributionMetadata attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregates' => :'aggregates', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregates' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionMetadata` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregates, pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb index c0ee326b9d30..d40ac821093d 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_pagination.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class MonthlyUsageAttributionPagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of the `next_record_id`. attr_accessor :next_record_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'next_record_id' => :'next_record_id' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'next_record_id' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionPagination` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [next_record_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb index f8bb96c8ff63..c443c2624e35 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response containing the monthly Usage Summary by tag(s). class MonthlyUsageAttributionResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing document metadata. @@ -29,6 +30,7 @@ class MonthlyUsageAttributionResponse attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metadata' => :'metadata', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metadata' => :'MonthlyUsageAttributionMetadata', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metadata, usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb index 8951940855ce..e6dc3734878e 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb @@ -50,15 +50,17 @@ class MonthlyUsageAttributionSupportedMetrics ALL = "*".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MonthlyUsageAttributionSupportedMetrics.constants.select { |c| MonthlyUsageAttributionSupportedMetrics::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb index 0d432040fbc0..f8ef15a96e46 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Fields in Usage Summary by tag(s). class MonthlyUsageAttributionValues # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The percentage of synthetic API test usage by tag(s). @@ -107,6 +108,7 @@ class MonthlyUsageAttributionValues attr_accessor :snmp_usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'api_percentage' => :'api_percentage', @@ -141,11 +143,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'api_percentage' => :'Float', @@ -180,13 +184,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonthlyUsageAttributionValues` initialize method" @@ -315,6 +321,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -323,12 +330,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -363,20 +372,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [api_percentage, api_usage, apm_host_percentage, apm_host_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, indexed_logs_percentage, indexed_logs_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -384,6 +396,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -404,9 +417,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -455,18 +469,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -483,8 +500,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/note_widget_definition.rb b/lib/datadog_api_client/v1/models/note_widget_definition.rb index 7989535b9308..519176bf32fb 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The notes and links widget is similar to free text widget, but allows for more formatting options. class NoteWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Background color of the note. @@ -53,6 +54,7 @@ class NoteWidgetDefinition attr_accessor :vertical_align # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'background_color' => :'background_color', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'background_color' => :'String', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NoteWidgetDefinition` initialize method" @@ -157,6 +163,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @content.nil? @@ -171,6 +178,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @content.nil? return false if @type.nil? @@ -178,7 +186,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -195,20 +204,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [background_color, content, font_size, has_padding, show_tick, text_align, tick_edge, tick_pos, type, vertical_align].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -216,6 +228,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -236,9 +249,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -287,18 +301,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -315,8 +332,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/note_widget_definition_type.rb b/lib/datadog_api_client/v1/models/note_widget_definition_type.rb index 98162b60be1e..c50e9f649f4a 100644 --- a/lib/datadog_api_client/v1/models/note_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/note_widget_definition_type.rb @@ -22,15 +22,17 @@ class NoteWidgetDefinitionType NOTE = "note".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NoteWidgetDefinitionType.constants.select { |c| NoteWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb index 953e78978a9d..c8393720903f 100644 --- a/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_absolute_time.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Absolute timeframe. class NotebookAbsoluteTime # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The end time. @@ -32,6 +33,7 @@ class NotebookAbsoluteTime attr_accessor :start # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_end' => :'end', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_end' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookAbsoluteTime` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @_end.nil? @@ -104,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @_end.nil? return false if @start.nil? @@ -111,7 +119,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_end, live, start].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_author.rb b/lib/datadog_api_client/v1/models/notebook_author.rb index 3a689e85c3f5..0f787a07a902 100644 --- a/lib/datadog_api_client/v1/models/notebook_author.rb +++ b/lib/datadog_api_client/v1/models/notebook_author.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Attributes of user object returned by the API. class NotebookAuthor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the user. @@ -50,6 +51,7 @@ class NotebookAuthor attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookAuthor` initialize method" @@ -144,6 +150,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -152,12 +159,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -173,20 +182,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, disabled, email, handle, icon, name, status, title, verified].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -194,6 +206,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -214,9 +227,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -265,18 +279,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -293,8 +310,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb index 4d397ed8aa75..368b9aa2af87 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The description of a notebook cell create request. class NotebookCellCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes of a notebook cell in create cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, @@ -30,6 +31,7 @@ class NotebookCellCreateRequest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebookCellCreateRequestAttributes', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellCreateRequest` initialize method" @@ -84,6 +90,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -98,6 +105,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -105,7 +113,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -114,20 +123,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -135,6 +147,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -155,9 +168,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -206,18 +220,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -234,8 +251,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb b/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb index 530f7944b873..7e0783de2471 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb @@ -22,15 +22,17 @@ class NotebookCellResourceType NOTEBOOK_CELLS = "notebook_cells".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NotebookCellResourceType.constants.select { |c| NotebookCellResourceType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_cell_response.rb b/lib/datadog_api_client/v1/models/notebook_cell_response.rb index df39a0fed6ad..d00bd8e583d1 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The description of a notebook cell response. class NotebookCellResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes of a notebook cell response. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, @@ -33,6 +34,7 @@ class NotebookCellResponse attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebookCellResponseAttributes', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellResponse` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -110,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -118,7 +126,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -128,20 +137,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -149,6 +161,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -169,9 +182,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -220,18 +234,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -248,8 +265,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb index 4264e4676dfd..a0bb6bbac9a0 100644 --- a/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The description of a notebook cell update request. class NotebookCellUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes of a notebook cell in update cell request. Valid cell types are `markdown`, `timeseries`, `toplist`, `heatmap`, `distribution`, @@ -33,6 +34,7 @@ class NotebookCellUpdateRequest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebookCellUpdateRequestAttributes', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCellUpdateRequest` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -110,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -118,7 +126,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -128,20 +137,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -149,6 +161,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -169,9 +182,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -220,18 +234,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -248,8 +265,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_create_data.rb b/lib/datadog_api_client/v1/models/notebook_create_data.rb index 010f94964bbd..643c993e3f3e 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data for a notebook create request. class NotebookCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data attributes of a notebook. @@ -29,6 +30,7 @@ class NotebookCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebookCreateDataAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb index 1354e7073bc5..2592afa0d4a0 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data attributes of a notebook. class NotebookCreateDataAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of cells to display in the notebook. @@ -38,6 +39,7 @@ class NotebookCreateDataAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cells' => :'cells', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cells' => :'Array', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateDataAttributes` initialize method" @@ -112,6 +118,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cells.nil? @@ -129,6 +136,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @cells.nil? return false if @name.nil? @@ -137,7 +145,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -149,20 +158,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cells, metadata, name, status, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -170,6 +182,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -190,9 +203,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -241,18 +255,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -269,8 +286,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_create_request.rb b/lib/datadog_api_client/v1/models/notebook_create_request.rb index d32f64657835..b8e55f6a9630 100644 --- a/lib/datadog_api_client/v1/models/notebook_create_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The description of a notebook create request. class NotebookCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data for a notebook create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'NotebookCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb index 027ec3a9b55e..3924c0d66102 100644 --- a/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `distribution` cell. class NotebookDistributionCellAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The Distribution visualization is another way of showing metrics @@ -37,6 +38,7 @@ class NotebookDistributionCellAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition', @@ -47,11 +49,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'DistributionWidgetDefinition', @@ -62,13 +66,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookDistributionCellAttributes` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition, graph_size, split_by, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_graph_size.rb b/lib/datadog_api_client/v1/models/notebook_graph_size.rb index 5e02f04731d9..73fef67dcf89 100644 --- a/lib/datadog_api_client/v1/models/notebook_graph_size.rb +++ b/lib/datadog_api_client/v1/models/notebook_graph_size.rb @@ -26,15 +26,17 @@ class NotebookGraphSize EXTRA_LARGE = "xl".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NotebookGraphSize.constants.select { |c| NotebookGraphSize::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb index 336e397fd422..76808402ec3f 100644 --- a/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `heatmap` cell. class NotebookHeatMapCellAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The heat map visualization shows metrics aggregated across many tags, such as hosts. The more hosts that have a particular value, the darker that square is. @@ -35,6 +36,7 @@ class NotebookHeatMapCellAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'HeatMapWidgetDefinition', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookHeatMapCellAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -110,13 +117,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition, graph_size, split_by, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb index 3113c56c2651..b0ea2d01b5a1 100644 --- a/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `log_stream` cell. class NotebookLogStreamCellAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards. @@ -32,6 +33,7 @@ class NotebookLogStreamCellAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'LogStreamWidgetDefinition', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookLogStreamCellAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition, graph_size, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb index 12aac4e7ae12..50201b8d81c6 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The attributes of a notebook `markdown` cell. class NotebookMarkdownCellAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Text in a notebook is formatted with [Markdown](https://daringfireball.net/projects/markdown/), which enables the use of headings, subheadings, links, images, lists, and code blocks. attr_accessor :definition # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'NotebookMarkdownCellDefinition' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMarkdownCellAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb index ca430b547f0d..4f3325368507 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Text in a notebook is formatted with [Markdown](https://daringfireball.net/projects/markdown/), which enables the use of headings, subheadings, links, images, lists, and code blocks. class NotebookMarkdownCellDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The markdown content. @@ -29,6 +30,7 @@ class NotebookMarkdownCellDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'text' => :'text', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'text' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMarkdownCellDefinition` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @text.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @text.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [text, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb index fc206a562d84..d42fb5d07c90 100644 --- a/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb @@ -22,15 +22,17 @@ class NotebookMarkdownCellDefinitionType MARKDOWN = "markdown".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NotebookMarkdownCellDefinitionType.constants.select { |c| NotebookMarkdownCellDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_metadata.rb b/lib/datadog_api_client/v1/models/notebook_metadata.rb index eae20cc63a4f..a1a16dd5576c 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Metadata associated with the notebook. class NotebookMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the notebook is a template. @@ -32,6 +33,7 @@ class NotebookMetadata attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_template' => :'is_template', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_template' => :'Boolean', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookMetadata` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -102,12 +109,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_template, take_snapshots, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_metadata_type.rb b/lib/datadog_api_client/v1/models/notebook_metadata_type.rb index cc71b51409ac..b041dbce2c84 100644 --- a/lib/datadog_api_client/v1/models/notebook_metadata_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_metadata_type.rb @@ -26,15 +26,17 @@ class NotebookMetadataType REPORT = "report".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NotebookMetadataType.constants.select { |c| NotebookMetadataType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_relative_time.rb b/lib/datadog_api_client/v1/models/notebook_relative_time.rb index 2764c1ba6706..dfb31e499df2 100644 --- a/lib/datadog_api_client/v1/models/notebook_relative_time.rb +++ b/lib/datadog_api_client/v1/models/notebook_relative_time.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Relative timeframe. class NotebookRelativeTime # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'live_span' => :'live_span' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'live_span' => :'WidgetLiveSpan' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookRelativeTime` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @live_span.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @live_span.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [live_span].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_resource_type.rb b/lib/datadog_api_client/v1/models/notebook_resource_type.rb index e60e41e4b007..ce6d6919fb05 100644 --- a/lib/datadog_api_client/v1/models/notebook_resource_type.rb +++ b/lib/datadog_api_client/v1/models/notebook_resource_type.rb @@ -22,15 +22,17 @@ class NotebookResourceType NOTEBOOKS = "notebooks".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NotebookResourceType.constants.select { |c| NotebookResourceType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_response.rb b/lib/datadog_api_client/v1/models/notebook_response.rb index add48ecade8d..e536998ba7b7 100644 --- a/lib/datadog_api_client/v1/models/notebook_response.rb +++ b/lib/datadog_api_client/v1/models/notebook_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The description of a notebook response. class NotebookResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data for a notebook. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'NotebookResponseData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_response_data.rb b/lib/datadog_api_client/v1/models/notebook_response_data.rb index 45cdc7ba34b6..c0ecae8c5899 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data for a notebook. class NotebookResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes of a notebook. @@ -32,6 +33,7 @@ class NotebookResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebookResponseDataAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponseData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb index 6a72875b37e7..e508cf0132f7 100644 --- a/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook. class NotebookResponseDataAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of user object returned by the API. @@ -47,6 +48,7 @@ class NotebookResponseDataAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'author' => :'author', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'author' => :'NotebookAuthor', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookResponseDataAttributes` initialize method" @@ -139,6 +145,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cells.nil? @@ -156,6 +163,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @cells.nil? return false if @name.nil? @@ -164,7 +172,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -179,20 +188,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [author, cells, created, metadata, modified, name, status, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -200,6 +212,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -220,9 +233,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -271,18 +285,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -299,8 +316,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_split_by.rb b/lib/datadog_api_client/v1/models/notebook_split_by.rb index bc90808694d6..3fe621fb0115 100644 --- a/lib/datadog_api_client/v1/models/notebook_split_by.rb +++ b/lib/datadog_api_client/v1/models/notebook_split_by.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing how to split the graph to display multiple visualizations per request. class NotebookSplitBy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Keys to split on. @@ -29,6 +30,7 @@ class NotebookSplitBy attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'keys' => :'keys', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'keys' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookSplitBy` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @keys.nil? @@ -99,6 +106,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @keys.nil? return false if @tags.nil? @@ -106,7 +114,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [keys, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_status.rb b/lib/datadog_api_client/v1/models/notebook_status.rb index 83e8dbbf674d..1cd6691d00af 100644 --- a/lib/datadog_api_client/v1/models/notebook_status.rb +++ b/lib/datadog_api_client/v1/models/notebook_status.rb @@ -22,15 +22,17 @@ class NotebookStatus PUBLISHED = "published".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = NotebookStatus.constants.select { |c| NotebookStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb index ca98bdfdff68..74e854914114 100644 --- a/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `timeseries` cell. class NotebookTimeseriesCellAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. @@ -35,6 +36,7 @@ class NotebookTimeseriesCellAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'TimeseriesWidgetDefinition', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookTimeseriesCellAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -110,13 +117,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition, graph_size, split_by, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb index ae4140816abc..9d553c1be3b4 100644 --- a/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook `toplist` cell. class NotebookToplistCellAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. @@ -35,6 +36,7 @@ class NotebookToplistCellAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'ToplistWidgetDefinition', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookToplistCellAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -110,13 +117,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition, graph_size, split_by, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_update_data.rb b/lib/datadog_api_client/v1/models/notebook_update_data.rb index e8b1ab8694fe..d2a1fbc6ac80 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data for a notebook update request. class NotebookUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data attributes of a notebook. @@ -29,6 +30,7 @@ class NotebookUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebookUpdateDataAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb index c04a64508967..d07b593dd74c 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data attributes of a notebook. class NotebookUpdateDataAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of cells to display in the notebook. @@ -38,6 +39,7 @@ class NotebookUpdateDataAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cells' => :'cells', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cells' => :'Array', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateDataAttributes` initialize method" @@ -112,6 +118,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cells.nil? @@ -129,6 +136,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @cells.nil? return false if @name.nil? @@ -137,7 +145,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -149,20 +158,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cells, metadata, name, status, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -170,6 +182,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -190,9 +203,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -241,18 +255,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -269,8 +286,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebook_update_request.rb b/lib/datadog_api_client/v1/models/notebook_update_request.rb index f4dcecb192e6..d3faf9b2541d 100644 --- a/lib/datadog_api_client/v1/models/notebook_update_request.rb +++ b/lib/datadog_api_client/v1/models/notebook_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The description of a notebook update request. class NotebookUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data for a notebook update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'NotebookUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebookUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebooks_response.rb b/lib/datadog_api_client/v1/models/notebooks_response.rb index 0d26723d262a..90cbedf5afee 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Notebooks get all response. class NotebooksResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of notebook definitions. @@ -29,6 +30,7 @@ class NotebooksResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data.rb b/lib/datadog_api_client/v1/models/notebooks_response_data.rb index 28adeafb391d..a747d1efe919 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data for a notebook in get all response. class NotebooksResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes of a notebook in get all response. @@ -32,6 +33,7 @@ class NotebooksResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'NotebooksResponseDataAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb index 91f9339c4944..ac210e995f9d 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attributes of a notebook in get all response. class NotebooksResponseDataAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of user object returned by the API. @@ -47,6 +48,7 @@ class NotebooksResponseDataAttributes attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'author' => :'author', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'author' => :'NotebookAuthor', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseDataAttributes` initialize method" @@ -139,6 +145,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -150,13 +157,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -171,20 +180,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [author, cells, created, metadata, modified, name, status, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -192,6 +204,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -212,9 +225,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -263,18 +277,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -291,8 +308,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb index 7a9617c218ab..579ca54441bb 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Searches metadata returned by the API. class NotebooksResponseMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Pagination metadata returned by the API. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'NotebooksResponsePage' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponseMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/notebooks_response_page.rb b/lib/datadog_api_client/v1/models/notebooks_response_page.rb index 3ee00034abd6..c78df722bf9c 100644 --- a/lib/datadog_api_client/v1/models/notebooks_response_page.rb +++ b/lib/datadog_api_client/v1/models/notebooks_response_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Pagination metadata returned by the API. class NotebooksResponsePage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The total number of notebooks that would be returned if the request was not filtered by `start` and `count` parameters. @@ -29,6 +30,7 @@ class NotebooksResponsePage attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_count' => :'total_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponsePage` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_count, total_filtered_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization.rb b/lib/datadog_api_client/v1/models/organization.rb index 95e8aa97f6ec..abd7faa9cd89 100644 --- a/lib/datadog_api_client/v1/models/organization.rb +++ b/lib/datadog_api_client/v1/models/organization.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Create, edit, and manage organizations. class Organization # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A JSON array of billing type. @@ -44,6 +45,7 @@ class Organization attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'billing' => :'billing', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'billing' => :'OrganizationBilling', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Organization` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [billing, created, description, name, public_id, settings, subscription].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_billing.rb b/lib/datadog_api_client/v1/models/organization_billing.rb index f798f68096a4..36aec45ab3bb 100644 --- a/lib/datadog_api_client/v1/models/organization_billing.rb +++ b/lib/datadog_api_client/v1/models/organization_billing.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # A JSON array of billing type. class OrganizationBilling # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The type of billing. Only `parent_billing` is supported. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationBilling` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_create_body.rb b/lib/datadog_api_client/v1/models/organization_create_body.rb index 019be4c0e936..05874433b801 100644 --- a/lib/datadog_api_client/v1/models/organization_create_body.rb +++ b/lib/datadog_api_client/v1/models/organization_create_body.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing an organization to create. class OrganizationCreateBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A JSON array of billing type. @@ -32,6 +33,7 @@ class OrganizationCreateBody attr_accessor :subscription # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'billing' => :'billing', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'billing' => :'OrganizationBilling', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationCreateBody` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [billing, name, subscription].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_create_response.rb b/lib/datadog_api_client/v1/models/organization_create_response.rb index 45b558a72bf3..b837b24c4eca 100644 --- a/lib/datadog_api_client/v1/models/organization_create_response.rb +++ b/lib/datadog_api_client/v1/models/organization_create_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response object for an organization creation. class OrganizationCreateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Datadog API key. @@ -35,6 +36,7 @@ class OrganizationCreateResponse attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'api_key' => :'api_key', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'api_key' => :'ApiKey', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationCreateResponse` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [api_key, application_key, org, user].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_list_response.rb b/lib/datadog_api_client/v1/models/organization_list_response.rb index 8d1f67c2ba6f..ce018d022a3e 100644 --- a/lib/datadog_api_client/v1/models/organization_list_response.rb +++ b/lib/datadog_api_client/v1/models/organization_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response with the list of organizations. class OrganizationListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of organization objects. attr_accessor :orgs # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'orgs' => :'orgs' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'orgs' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [orgs].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_response.rb b/lib/datadog_api_client/v1/models/organization_response.rb index 04d54b8d978e..2c441e11e3af 100644 --- a/lib/datadog_api_client/v1/models/organization_response.rb +++ b/lib/datadog_api_client/v1/models/organization_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response with an organization. class OrganizationResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Create, edit, and manage organizations. attr_accessor :org # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'org' => :'org' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'org' => :'Organization' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [org].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_settings.rb b/lib/datadog_api_client/v1/models/organization_settings.rb index 1eb192394223..6fce13567999 100644 --- a/lib/datadog_api_client/v1/models/organization_settings.rb +++ b/lib/datadog_api_client/v1/models/organization_settings.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A JSON array of settings. class OrganizationSettings # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the organization users can share widgets outside of Datadog. @@ -54,6 +55,7 @@ class OrganizationSettings attr_accessor :saml_strict_mode # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'private_widget_share' => :'private_widget_share', @@ -70,11 +72,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'private_widget_share' => :'Boolean', @@ -91,13 +95,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettings` initialize method" @@ -156,6 +162,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -164,12 +171,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -186,20 +195,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [private_widget_share, saml, saml_autocreate_access_role, saml_autocreate_users_domains, saml_can_be_enabled, saml_idp_endpoint, saml_idp_initiated_login, saml_idp_metadata_uploaded, saml_login_url, saml_strict_mode].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -207,6 +219,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -227,9 +240,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -278,18 +292,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -306,8 +323,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml.rb b/lib/datadog_api_client/v1/models/organization_settings_saml.rb index ad091b036ec9..5f54d4a16e4d 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml.rb @@ -21,12 +21,14 @@ module DatadogAPIClient::V1 # See the SAML documentation for more information about all SAML settings. class OrganizationSettingsSaml # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not SAML is enabled for this organization. attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'enabled' => :'enabled' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'enabled' => :'Boolean' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSaml` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [enabled].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb index 25a85b7d57b7..b8bdea9ced74 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_autocreate_users_domains.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Has two properties, `enabled` (boolean) and `domains`, which is a list of domains without the @ symbol. class OrganizationSettingsSamlAutocreateUsersDomains # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of domains where the SAML automated user creation is enabled. @@ -29,6 +30,7 @@ class OrganizationSettingsSamlAutocreateUsersDomains attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'domains' => :'domains', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'domains' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlAutocreateUsersDomains` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [domains, enabled].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb index 5ac1c254616e..fee2aef44410 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_idp_initiated_login.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Has one property enabled (boolean). class OrganizationSettingsSamlIdpInitiatedLogin # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether SAML IdP initiated login is enabled, learn more @@ -27,6 +28,7 @@ class OrganizationSettingsSamlIdpInitiatedLogin attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'enabled' => :'enabled' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'enabled' => :'Boolean' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlIdpInitiatedLogin` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [enabled].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb index 3dc6d3969322..626ec90ff348 100644 --- a/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb +++ b/lib/datadog_api_client/v1/models/organization_settings_saml_strict_mode.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Has one property enabled (boolean). class OrganizationSettingsSamlStrictMode # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not the SAML strict mode is enabled. If true, all users must log in with SAML. @@ -27,6 +28,7 @@ class OrganizationSettingsSamlStrictMode attr_accessor :enabled # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'enabled' => :'enabled' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'enabled' => :'Boolean' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSettingsSamlStrictMode` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [enabled].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/organization_subscription.rb b/lib/datadog_api_client/v1/models/organization_subscription.rb index 5259fa749575..e26ceacc8112 100644 --- a/lib/datadog_api_client/v1/models/organization_subscription.rb +++ b/lib/datadog_api_client/v1/models/organization_subscription.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Subscription definition. class OrganizationSubscription # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The subscription type. Types available are `trial`, `free`, and `pro`. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::OrganizationSubscription` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/pager_duty_service.rb b/lib/datadog_api_client/v1/models/pager_duty_service.rb index e3c3b74badaf..2ce6d51d40c7 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The PagerDuty service that is available for integration with Datadog. class PagerDutyService # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your service key in PagerDuty. @@ -29,6 +30,7 @@ class PagerDutyService attr_accessor :service_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'service_key' => :'service_key', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'service_key' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyService` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @service_key.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @service_key.nil? return false if @service_name.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [service_key, service_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb index dd19966fac40..48512989b6c2 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_key.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_key.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # PagerDuty service object key. class PagerDutyServiceKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your service key in PagerDuty. attr_accessor :service_key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'service_key' => :'service_key' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'service_key' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyServiceKey` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @service_key.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @service_key.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [service_key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb index 290369258b4f..01ad704774da 100644 --- a/lib/datadog_api_client/v1/models/pager_duty_service_name.rb +++ b/lib/datadog_api_client/v1/models/pager_duty_service_name.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # PagerDuty service object name. class PagerDutyServiceName # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Your service name associated service key in PagerDuty. attr_accessor :service_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'service_name' => :'service_name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'service_name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::PagerDutyServiceName` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @service_name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @service_name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [service_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/pagination.rb b/lib/datadog_api_client/v1/models/pagination.rb index 496333e853e0..6393d31d679a 100644 --- a/lib/datadog_api_client/v1/models/pagination.rb +++ b/lib/datadog_api_client/v1/models/pagination.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Pagination object. class Pagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total count. @@ -29,6 +30,7 @@ class Pagination attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_count' => :'total_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Pagination` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_count, total_filtered_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/process_query_definition.rb b/lib/datadog_api_client/v1/models/process_query_definition.rb index d5d4f32277b0..344cd8468399 100644 --- a/lib/datadog_api_client/v1/models/process_query_definition.rb +++ b/lib/datadog_api_client/v1/models/process_query_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The process query to use in the widget. class ProcessQueryDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of processes. @@ -35,6 +36,7 @@ class ProcessQueryDefinition attr_accessor :search_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter_by' => :'filter_by', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter_by' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ProcessQueryDefinition` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @metric.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @metric.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter_by, limit, metric, search_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/query_sort_order.rb b/lib/datadog_api_client/v1/models/query_sort_order.rb index 4713ed99946a..380e187725d8 100644 --- a/lib/datadog_api_client/v1/models/query_sort_order.rb +++ b/lib/datadog_api_client/v1/models/query_sort_order.rb @@ -23,15 +23,17 @@ class QuerySortOrder DESC = "desc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = QuerySortOrder.constants.select { |c| QuerySortOrder::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb index 488d332794c3..16c7b32f14e2 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Query values display the current value of a given metric, APM, or log query. class QueryValueWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether to use auto-scaling or not. @@ -56,6 +57,7 @@ class QueryValueWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'autoscale' => :'autoscale', @@ -73,11 +75,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'autoscale' => :'Boolean', @@ -95,13 +99,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::QueryValueWidgetDefinition` initialize method" @@ -168,6 +174,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -182,6 +189,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -189,7 +197,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -207,20 +216,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [autoscale, custom_links, custom_unit, precision, requests, text_align, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -228,6 +240,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -248,9 +261,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -299,18 +313,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -327,8 +344,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb b/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb index 132c510c7708..130f13ebd190 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_definition_type.rb @@ -22,15 +22,17 @@ class QueryValueWidgetDefinitionType QUERY_VALUE = "query_value".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = QueryValueWidgetDefinitionType.constants.select { |c| QueryValueWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/query_value_widget_request.rb b/lib/datadog_api_client/v1/models/query_value_widget_request.rb index 55b1f36abecb..414469475c4b 100644 --- a/lib/datadog_api_client/v1/models/query_value_widget_request.rb +++ b/lib/datadog_api_client/v1/models/query_value_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated query value widget. class QueryValueWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Aggregator used for the request. @@ -68,6 +69,7 @@ class QueryValueWidgetRequest attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregator' => :'aggregator', @@ -89,11 +91,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregator' => :'WidgetAggregator', @@ -115,13 +119,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::QueryValueWidgetRequest` initialize method" @@ -204,6 +210,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -212,12 +219,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -239,20 +248,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregator, apm_query, audit_query, conditional_formats, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -260,6 +272,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -280,9 +293,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -331,18 +345,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -359,8 +376,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/response_meta_attributes.rb b/lib/datadog_api_client/v1/models/response_meta_attributes.rb index 0cad22ea3af5..03d87f0c3711 100644 --- a/lib/datadog_api_client/v1/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v1/models/response_meta_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object describing meta attributes of response. class ResponseMetaAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'Pagination' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ResponseMetaAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/scatter_plot_request.rb b/lib/datadog_api_client/v1/models/scatter_plot_request.rb index ebce88577360..4a0e97350ee5 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_request.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated scatter plot. class ScatterPlotRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Aggregator used for the request. @@ -53,6 +54,7 @@ class ScatterPlotRequest attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregator' => :'aggregator', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregator' => :'ScatterplotWidgetAggregator', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotRequest` initialize method" @@ -153,6 +159,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -161,12 +168,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -183,20 +192,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregator, apm_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, rum_query, security_query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -204,6 +216,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -224,9 +237,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -275,18 +289,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -303,8 +320,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb index d972c35b0a52..9f74f5c618ab 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The scatter plot visualization allows you to graph a chosen scope over two different metrics with their respective aggregation. class ScatterPlotWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of groups used for colors. @@ -53,6 +54,7 @@ class ScatterPlotWidgetDefinition attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'color_by_groups' => :'color_by_groups', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'color_by_groups' => :'Array', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotWidgetDefinition` initialize method" @@ -159,6 +165,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -173,6 +180,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -180,7 +188,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -197,20 +206,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [color_by_groups, custom_links, requests, time, title, title_align, title_size, type, xaxis, yaxis].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -218,6 +230,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -238,9 +251,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -289,18 +303,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -317,8 +334,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb index 16e33822da2f..d87bc263bf76 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Widget definition. class ScatterPlotWidgetDefinitionRequests # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Scatterplot request containing formulas and functions. @@ -32,6 +33,7 @@ class ScatterPlotWidgetDefinitionRequests attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'table' => :'table', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'table' => :'ScatterplotTableRequest', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterPlotWidgetDefinitionRequests` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [table, x, y].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb index 922d893d0b30..d0f0faac2f92 100644 --- a/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_type.rb @@ -22,15 +22,17 @@ class ScatterPlotWidgetDefinitionType SCATTERPLOT = "scatterplot".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ScatterPlotWidgetDefinitionType.constants.select { |c| ScatterPlotWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/scatterplot_dimension.rb b/lib/datadog_api_client/v1/models/scatterplot_dimension.rb index 0c7cf42fd238..ecf702e1f5aa 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_dimension.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_dimension.rb @@ -25,15 +25,17 @@ class ScatterplotDimension COLOR = "color".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ScatterplotDimension.constants.select { |c| ScatterplotDimension::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb index 2cfc4c20b29d..3743b9939b4b 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_table_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Scatterplot request containing formulas and functions. class ScatterplotTableRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of Scatterplot formulas that operate on queries. **This feature is currently in beta.** @@ -32,6 +33,7 @@ class ScatterplotTableRequest attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'formulas' => :'formulas', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'formulas' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterplotTableRequest` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -102,12 +109,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [formulas, queries, response_format].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb index 155e706451ba..d34e45825152 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb @@ -26,15 +26,17 @@ class ScatterplotWidgetAggregator SUM = "sum".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ScatterplotWidgetAggregator.constants.select { |c| ScatterplotWidgetAggregator::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb index 03ac69b09d20..16df9ed1df8f 100644 --- a/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +++ b/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Formula to be used in a Scatterplot widget query. class ScatterplotWidgetFormula # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Expression alias. @@ -32,6 +33,7 @@ class ScatterplotWidgetFormula attr_accessor :formula # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_alias' => :'alias', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_alias' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ScatterplotWidgetFormula` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @dimension.nil? @@ -104,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @dimension.nil? return false if @formula.nil? @@ -111,7 +119,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_alias, dimension, formula].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/series.rb b/lib/datadog_api_client/v1/models/series.rb index f8f61622563e..5610a185a2f7 100644 --- a/lib/datadog_api_client/v1/models/series.rb +++ b/lib/datadog_api_client/v1/models/series.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties). class Series # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The name of the host that produced the metric. @@ -42,6 +43,7 @@ class Series attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'host' => :'host', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'host' => :'String', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Series` initialize method" @@ -124,6 +130,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @metric.nil? @@ -138,6 +145,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @metric.nil? return false if @points.nil? @@ -145,7 +153,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -158,20 +167,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [host, interval, metric, points, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -179,6 +191,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -199,9 +212,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -250,18 +264,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -278,8 +295,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_check.rb b/lib/datadog_api_client/v1/models/service_check.rb index b23b709f0806..9a7cef770a45 100644 --- a/lib/datadog_api_client/v1/models/service_check.rb +++ b/lib/datadog_api_client/v1/models/service_check.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An object containing service check and status. class ServiceCheck # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The check. @@ -41,6 +42,7 @@ class ServiceCheck attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check' => :'check', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check' => :'String', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceCheck` initialize method" @@ -119,6 +125,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @check.nil? @@ -139,6 +146,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @check.nil? return false if @host_name.nil? @@ -148,7 +156,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -161,20 +170,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check, host_name, message, status, tags, timestamp].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -182,6 +194,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -202,9 +215,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -253,18 +267,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -281,8 +298,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_check_status.rb b/lib/datadog_api_client/v1/models/service_check_status.rb index 93bf270f07a6..2d4c9c68869e 100644 --- a/lib/datadog_api_client/v1/models/service_check_status.rb +++ b/lib/datadog_api_client/v1/models/service_check_status.rb @@ -25,15 +25,17 @@ class ServiceCheckStatus UNKNOWN = 3.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ServiceCheckStatus.constants.select { |c| ServiceCheckStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/service_level_objective.rb b/lib/datadog_api_client/v1/models/service_level_objective.rb index 479df78be4a9..766a39c2edb9 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class ServiceLevelObjective # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation timestamp (UNIX time in seconds) @@ -87,6 +88,7 @@ class ServiceLevelObjective attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -106,11 +108,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Integer', @@ -130,13 +134,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjective` initialize method" @@ -215,6 +221,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -232,6 +239,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? return false if @thresholds.nil? @@ -240,7 +248,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -260,20 +269,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, creator, description, groups, id, modified_at, monitor_ids, monitor_tags, name, query, tags, thresholds, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -281,6 +293,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -301,9 +314,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -352,18 +366,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -380,8 +397,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_level_objective_query.rb b/lib/datadog_api_client/v1/models/service_level_objective_query.rb index 502e9e391d26..eb88eb85c7b1 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_query.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_query.rb @@ -22,6 +22,7 @@ module DatadogAPIClient::V1 # min of all of those requests. class ServiceLevelObjectiveQuery # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A Datadog metric query for total (valid) events. @@ -31,6 +32,7 @@ class ServiceLevelObjectiveQuery attr_accessor :numerator # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'denominator' => :'denominator', @@ -39,11 +41,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'denominator' => :'String', @@ -52,13 +56,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjectiveQuery` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @denominator.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @denominator.nil? return false if @numerator.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [denominator, numerator].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_level_objective_request.rb b/lib/datadog_api_client/v1/models/service_level_objective_request.rb index 3a4bbbc39d7a..933227e405d5 100644 --- a/lib/datadog_api_client/v1/models/service_level_objective_request.rb +++ b/lib/datadog_api_client/v1/models/service_level_objective_request.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class ServiceLevelObjectiveRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A user-defined description of the service level objective. @@ -61,6 +62,7 @@ class ServiceLevelObjectiveRequest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'description' => :'description', @@ -75,11 +77,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'description' => :'String', @@ -94,13 +98,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceLevelObjectiveRequest` initialize method" @@ -157,6 +163,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -174,6 +181,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? return false if @thresholds.nil? @@ -182,7 +190,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -197,20 +206,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [description, groups, monitor_ids, name, query, tags, thresholds, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -218,6 +230,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -238,9 +251,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -289,18 +303,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -317,8 +334,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb index ea73fc4900b4..ef0a11827fbf 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # This widget displays a map of a service to all of the services that call it, and all of the services that it calls. class ServiceMapWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -44,6 +45,7 @@ class ServiceMapWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceMapWidgetDefinition` initialize method" @@ -132,6 +138,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @filters.nil? @@ -149,6 +156,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @filters.nil? return false if @service.nil? @@ -157,7 +165,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -171,20 +180,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, filters, service, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -192,6 +204,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -212,9 +225,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -263,18 +277,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -291,8 +308,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb index 13e1e650b2f0..8f8f72260e6c 100644 --- a/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/service_map_widget_definition_type.rb @@ -22,15 +22,17 @@ class ServiceMapWidgetDefinitionType SERVICEMAP = "servicemap".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ServiceMapWidgetDefinitionType.constants.select { |c| ServiceMapWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb index 0187cfdd583b..6053d272749a 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The service summary displays the graphs of a chosen service in your screenboard. Only available on FREE layout dashboards. class ServiceSummaryWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Number of columns to display. @@ -71,6 +72,7 @@ class ServiceSummaryWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'display_format' => :'display_format', @@ -93,11 +95,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'display_format' => :'WidgetServiceSummaryDisplayFormat', @@ -120,13 +124,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ServiceSummaryWidgetDefinition` initialize method" @@ -209,6 +215,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @env.nil? @@ -229,6 +236,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @env.nil? return false if @service.nil? @@ -238,7 +246,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -261,20 +270,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [display_format, env, service, show_breakdown, show_distribution, show_errors, show_hits, show_latency, show_resource_list, size_format, span_name, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -282,6 +294,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -302,9 +315,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -353,18 +367,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -381,8 +398,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb b/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb index 6a8e2d488bed..a3728a0958ab 100644 --- a/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/service_summary_widget_definition_type.rb @@ -22,15 +22,17 @@ class ServiceSummaryWidgetDefinitionType TRACE_SERVICE = "trace_service".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ServiceSummaryWidgetDefinitionType.constants.select { |c| ServiceSummaryWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel.rb b/lib/datadog_api_client/v1/models/slack_integration_channel.rb index 5ef6ceaefcf7..76bcfeded124 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The Slack channel configuration. class SlackIntegrationChannel # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration options for what is shown in an alert event message. @@ -29,6 +30,7 @@ class SlackIntegrationChannel attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'display' => :'display', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'display' => :'SlackIntegrationChannelDisplay', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SlackIntegrationChannel` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [display, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb index bef024d84f41..f88ce99f7cf3 100644 --- a/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +++ b/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Configuration options for what is shown in an alert event message. class SlackIntegrationChannelDisplay # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Show the main body of the alert event. @@ -35,6 +36,7 @@ class SlackIntegrationChannelDisplay attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'message' => :'message', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'message' => :'Boolean', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SlackIntegrationChannelDisplay` initialize method" @@ -107,6 +113,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -115,12 +122,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [message, notified, snapshot, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb index 3c301c9b7ee9..723c0a61be0f 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the error. class SLOBulkDeleteError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The ID of the service level objective object associated with @@ -34,6 +35,7 @@ class SLOBulkDeleteError attr_accessor :timeframe # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -43,11 +45,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -57,13 +61,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteError` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @message.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, message, timeframe].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb index 85a87a9660e6..846b3a713432 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response.rb @@ -25,6 +25,7 @@ module DatadogAPIClient::V1 # fields in this response indicate which deletions succeeded and failed. class SLOBulkDeleteResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of service level objective objects. @@ -34,6 +35,7 @@ class SLOBulkDeleteResponse attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SLOBulkDeleteResponseData', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteResponse` initialize method" @@ -88,6 +94,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -96,12 +103,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -110,20 +119,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -131,6 +143,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -151,9 +164,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -202,18 +216,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -230,8 +247,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb index 661923b5fdc7..a370d9dc225c 100644 --- a/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_bulk_delete_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class SLOBulkDeleteResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of service level objective object IDs that indicates @@ -32,6 +33,7 @@ class SLOBulkDeleteResponseData attr_accessor :updated # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted' => :'deleted', @@ -40,11 +42,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted' => :'Array', @@ -53,13 +57,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOBulkDeleteResponseData` initialize method" @@ -88,6 +94,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -96,12 +103,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -110,20 +119,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted, updated].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -131,6 +143,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -151,9 +164,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -202,18 +216,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -230,8 +247,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction.rb b/lib/datadog_api_client/v1/models/slo_correction.rb index ce2f5b330a6f..00ca9de81ede 100644 --- a/lib/datadog_api_client/v1/models/slo_correction.rb +++ b/lib/datadog_api_client/v1/models/slo_correction.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The response object of a list of SLO corrections. class SLOCorrection # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attribute object associated with the SLO correction. @@ -32,6 +33,7 @@ class SLOCorrection attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SLOCorrectionResponseAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrection` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_category.rb b/lib/datadog_api_client/v1/models/slo_correction_category.rb index 66de99edbbba..509c62d82fa3 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_category.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_category.rb @@ -25,15 +25,17 @@ class SLOCorrectionCategory OTHER = "Other".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOCorrectionCategory.constants.select { |c| SLOCorrectionCategory::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb index 3f5813a73d16..f8946e5ad556 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data object associated with the SLO correction to be created. class SLOCorrectionCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attribute object associated with the SLO correction to be created. @@ -29,6 +30,7 @@ class SLOCorrectionCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SLOCorrectionCreateRequestAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb index b2aaf4adf6ea..1f5ca63670c9 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An object that defines a correction to be applied to an SLO. class SLOCorrectionCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data object associated with the SLO correction to be created. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SLOCorrectionCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb index 9f83d2e90400..e992c8ac5fc6 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction to be created. class SLOCorrectionCreateRequestAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Category the SLO correction belongs to. @@ -48,6 +49,7 @@ class SLOCorrectionCreateRequestAttributes attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'category' => :'category', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'category' => :'SLOCorrectionCategory', @@ -81,13 +85,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes` initialize method" @@ -136,6 +142,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @category.nil? @@ -153,6 +160,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @category.nil? return false if @slo_id.nil? @@ -161,7 +169,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -176,20 +185,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [category, description, duration, _end, rrule, slo_id, start, timezone].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -197,6 +209,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -217,9 +230,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -268,18 +282,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -296,8 +313,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb index 0586a925e8fe..939b92e7d59f 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A list of SLO correction objects. class SLOCorrectionListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The list of of SLO corrections objects. @@ -29,6 +30,7 @@ class SLOCorrectionListResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionListResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_response.rb b/lib/datadog_api_client/v1/models/slo_correction_response.rb index b6f70bf60462..f2967046cf20 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The response object of an SLO correction. class SLOCorrectionResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The response object of a list of SLO corrections. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SLOCorrection' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb index 1edd5b553f42..6acbd04f4a81 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction. class SLOCorrectionResponseAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Category the SLO correction belongs to. @@ -60,6 +61,7 @@ class SLOCorrectionResponseAttributes attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'category' => :'category', @@ -78,11 +80,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'category' => :'SLOCorrectionCategory', @@ -101,13 +105,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributes` initialize method" @@ -172,6 +178,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -180,12 +187,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -204,20 +213,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [category, created_at, creator, description, duration, _end, modified_at, modifier, rrule, slo_id, start, timezone].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -225,6 +237,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -245,9 +258,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -296,18 +310,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -324,8 +341,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb index c8f35939b5b4..fc58ef19d4b0 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes_modifier.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Modifier of the object. class SLOCorrectionResponseAttributesModifier # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Email of the Modifier. @@ -32,6 +33,7 @@ class SLOCorrectionResponseAttributesModifier attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'email' => :'email', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'email' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributesModifier` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [email, handle, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_type.rb b/lib/datadog_api_client/v1/models/slo_correction_type.rb index c557dea6433d..13e11a5f4477 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_type.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_type.rb @@ -22,15 +22,17 @@ class SLOCorrectionType CORRECTION = "correction".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOCorrectionType.constants.select { |c| SLOCorrectionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb index fe4e4acee71c..1fb22c871918 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_data.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The data object associated with the SLO correction to be updated. class SLOCorrectionUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attribute object associated with the SLO correction to be updated. @@ -29,6 +30,7 @@ class SLOCorrectionUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SLOCorrectionUpdateRequestAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb index b4094b059e0a..dd3e1531507a 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # An object that defines a correction to be applied to an SLO. class SLOCorrectionUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The data object associated with the SLO correction to be updated. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SLOCorrectionUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb index 2cd184cc3ca5..0b30313c615b 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The attribute object associated with the SLO correction to be updated. class SLOCorrectionUpdateRequestAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Category the SLO correction belongs to. @@ -45,6 +46,7 @@ class SLOCorrectionUpdateRequestAttributes attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'category' => :'category', @@ -58,11 +60,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'category' => :'SLOCorrectionCategory', @@ -76,13 +80,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes` initialize method" @@ -127,6 +133,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -135,12 +142,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -154,20 +163,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [category, description, duration, _end, rrule, start, timezone].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -175,6 +187,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -195,9 +208,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -246,18 +260,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -274,8 +291,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_delete_response.rb b/lib/datadog_api_client/v1/models/slo_delete_response.rb index 175b3869f28e..11de69836091 100644 --- a/lib/datadog_api_client/v1/models/slo_delete_response.rb +++ b/lib/datadog_api_client/v1/models/slo_delete_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A response list of all service level objective deleted. class SLODeleteResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array containing the ID of the deleted service level objective object. @@ -29,6 +30,7 @@ class SLODeleteResponse attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLODeleteResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_error_timeframe.rb b/lib/datadog_api_client/v1/models/slo_error_timeframe.rb index 86d989f27152..35ee0ef2172d 100644 --- a/lib/datadog_api_client/v1/models/slo_error_timeframe.rb +++ b/lib/datadog_api_client/v1/models/slo_error_timeframe.rb @@ -26,15 +26,17 @@ class SLOErrorTimeframe ALL = "all".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOErrorTimeframe.constants.select { |c| SLOErrorTimeframe::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics.rb b/lib/datadog_api_client/v1/models/slo_history_metrics.rb index 79853b7b8215..eb85d889c5cd 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics.rb @@ -22,6 +22,7 @@ module DatadogAPIClient::V1 # This is not included in responses for `monitor` based SLOs. class SLOHistoryMetrics # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A representation of `metric` based SLO time series for the provided queries. @@ -51,6 +52,7 @@ class SLOHistoryMetrics attr_accessor :times # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'denominator' => :'denominator', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'denominator' => :'SLOHistoryMetricsSeries', @@ -84,13 +88,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetrics` initialize method" @@ -141,6 +147,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @denominator.nil? @@ -170,6 +177,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @denominator.nil? return false if @interval.nil? @@ -182,7 +190,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -197,20 +206,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [denominator, interval, message, numerator, query, res_type, resp_version, times].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -218,6 +230,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -238,9 +251,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -289,18 +303,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -317,8 +334,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb index ae9b2baf0096..8bafd7ba67a9 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # This is the same response type from `batch_query` endpoint. class SLOHistoryMetricsSeries # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Count of submitted metrics. @@ -36,6 +37,7 @@ class SLOHistoryMetricsSeries attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -61,13 +65,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeries` initialize method" @@ -102,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @count.nil? @@ -119,6 +126,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @count.nil? return false if @sum.nil? @@ -127,7 +135,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -138,20 +147,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, metadata, sum, values].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -159,6 +171,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -179,9 +192,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -230,18 +244,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -258,8 +275,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb index 24aa3fbcd179..013f6bf01301 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Query metadata. class SLOHistoryMetricsSeriesMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Query aggregator function. @@ -43,6 +44,7 @@ class SLOHistoryMetricsSeriesMetadata attr_accessor :unit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggr' => :'aggr', @@ -55,11 +57,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggr' => :'String', @@ -72,13 +76,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadata` initialize method" @@ -121,6 +127,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -129,12 +136,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -147,20 +156,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggr, expression, metric, query_index, scope, unit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -168,6 +180,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -188,9 +201,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -239,18 +253,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -267,8 +284,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb index f732e377c464..8f2b1bd299ce 100644 --- a/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb +++ b/lib/datadog_api_client/v1/models/slo_history_metrics_series_metadata_unit.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An Object of metric units. class SLOHistoryMetricsSeriesMetadataUnit # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The family of metric unit, for example `bytes` is the family for `kibibyte`, `byte`, and `bit` units. @@ -41,6 +42,7 @@ class SLOHistoryMetricsSeriesMetadataUnit attr_accessor :short_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'family' => :'family', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'family' => :'String', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMetricsSeriesMetadataUnit` initialize method" @@ -117,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -125,12 +132,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -143,20 +152,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [family, id, name, plural, scale_factor, short_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -164,6 +176,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -184,9 +197,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -235,18 +249,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -263,8 +280,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_monitor.rb b/lib/datadog_api_client/v1/models/slo_history_monitor.rb index a07a72fe9ba9..f5696e15151a 100644 --- a/lib/datadog_api_client/v1/models/slo_history_monitor.rb +++ b/lib/datadog_api_client/v1/models/slo_history_monitor.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. class SLOHistoryMonitor # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A mapping of threshold `timeframe` to the remaining error budget. @@ -61,6 +62,7 @@ class SLOHistoryMonitor attr_accessor :uptime # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'error_budget_remaining' => :'error_budget_remaining', @@ -79,11 +81,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'error_budget_remaining' => :'Hash', @@ -102,13 +106,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryMonitor` initialize method" @@ -177,6 +183,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -185,12 +192,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -209,20 +218,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [error_budget_remaining, errors, group, history, monitor_modified, monitor_type, name, precision, preview, sli_value, span_precision, uptime].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -230,6 +242,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -250,9 +263,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -301,18 +315,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -329,8 +346,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_response.rb b/lib/datadog_api_client/v1/models/slo_history_response.rb index 12b80cd00d7f..bc0125db06c5 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A service level objective history response. class SLOHistoryResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of service level objective objects. @@ -29,6 +30,7 @@ class SLOHistoryResponse attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SLOHistoryResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_response_data.rb b/lib/datadog_api_client/v1/models/slo_history_response_data.rb index d8a273add709..043629cb9e2d 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An array of service level objective objects. class SLOHistoryResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The `from` timestamp in epoch seconds. @@ -64,6 +65,7 @@ class SLOHistoryResponseData attr_accessor :type_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'from_ts' => :'from_ts', @@ -80,11 +82,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'from_ts' => :'Integer', @@ -101,13 +105,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseData` initialize method" @@ -170,6 +176,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -178,12 +185,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -200,20 +209,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [from_ts, group_by, groups, monitors, overall, series, thresholds, to_ts, type, type_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -221,6 +233,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -241,9 +254,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -292,18 +306,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -320,8 +337,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error.rb b/lib/datadog_api_client/v1/models/slo_history_response_error.rb index bfadd33f2a8a..6f337dcf1a0b 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # A list of errors while querying the history data for the service level objective. class SLOHistoryResponseError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Human readable error. attr_accessor :error # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'error' => :'error' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'error' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseError` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [error].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb index 9fefa1b2452b..8fffea3f252d 100644 --- a/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb +++ b/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An object describing the error with error type and error message. class SLOHistoryResponseErrorWithType # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A message with more details about the error. @@ -29,6 +30,7 @@ class SLOHistoryResponseErrorWithType attr_accessor :error_type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'error_message' => :'error_message', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'error_message' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistoryResponseErrorWithType` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @error_message.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @error_message.nil? return false if @error_type.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [error_message, error_type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb index 1d760c2fdb4e..fcf73f1b2fd9 100644 --- a/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +++ b/lib/datadog_api_client/v1/models/slo_history_sli_data.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs. class SLOHistorySLIData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A mapping of threshold `timeframe` to the remaining error budget. @@ -61,6 +62,7 @@ class SLOHistorySLIData attr_accessor :uptime # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'error_budget_remaining' => :'error_budget_remaining', @@ -79,11 +81,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'error_budget_remaining' => :'Hash', @@ -102,13 +106,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOHistorySLIData` initialize method" @@ -177,6 +183,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -185,12 +192,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -209,20 +218,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [error_budget_remaining, errors, group, history, monitor_modified, monitor_type, name, precision, preview, sli_value, span_precision, uptime].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -230,6 +242,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -250,9 +263,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -301,18 +315,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -329,8 +346,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_list_response.rb b/lib/datadog_api_client/v1/models/slo_list_response.rb index f79c6cfb9030..6e6f10a7c5fb 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A response with one or more service level objective. class SLOListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of service level objective objects. @@ -33,6 +34,7 @@ class SLOListResponse attr_accessor :metadata # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponse` initialize method" @@ -95,6 +101,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -103,12 +110,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -118,20 +127,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors, metadata].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -139,6 +151,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -159,9 +172,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -210,18 +224,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -238,8 +255,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb index ff947ad9ccdd..ea632d2b92e7 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The metadata object containing additional information about the list of SLOs. class SLOListResponseMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing information about the pages of the list of SLOs. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'SLOListResponseMetadataPage' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponseMetadata` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb index 0db5d6098d18..31f7e75ec75d 100644 --- a/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb +++ b/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The object containing information about the pages of the list of SLOs. class SLOListResponseMetadataPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The total number of resources that could be retrieved ignoring the parameters and filters in the request. @@ -29,6 +30,7 @@ class SLOListResponseMetadataPage attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_count' => :'total_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOListResponseMetadataPage` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_count, total_filtered_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_response.rb b/lib/datadog_api_client/v1/models/slo_response.rb index 7a33eacefdcf..83c9faec0f6a 100644 --- a/lib/datadog_api_client/v1/models/slo_response.rb +++ b/lib/datadog_api_client/v1/models/slo_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # A service level objective response containing a single service level objective. class SLOResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A service level objective object includes a service level indicator, thresholds @@ -31,6 +32,7 @@ class SLOResponse attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -39,11 +41,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SLOResponseData', @@ -52,13 +56,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOResponse` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_response_data.rb b/lib/datadog_api_client/v1/models/slo_response_data.rb index 032b9a9bcaef..d4327d02cb46 100644 --- a/lib/datadog_api_client/v1/models/slo_response_data.rb +++ b/lib/datadog_api_client/v1/models/slo_response_data.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # for one or more timeframes, and metadata (`name`, `description`, `tags`, etc.). class SLOResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of SLO monitors IDs that reference this SLO. This field is returned only when `with_configured_alert_ids` parameter is true in query. @@ -90,6 +91,7 @@ class SLOResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'configured_alert_ids' => :'configured_alert_ids', @@ -110,11 +112,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'configured_alert_ids' => :'Array', @@ -135,13 +139,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOResponseData` initialize method" @@ -226,6 +232,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -234,12 +241,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -260,20 +269,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [configured_alert_ids, created_at, creator, description, groups, id, modified_at, monitor_ids, monitor_tags, name, query, tags, thresholds, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -281,6 +293,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -301,9 +314,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -352,18 +366,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -380,8 +397,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_threshold.rb b/lib/datadog_api_client/v1/models/slo_threshold.rb index c18ed37056c8..c9bc103327b1 100644 --- a/lib/datadog_api_client/v1/models/slo_threshold.rb +++ b/lib/datadog_api_client/v1/models/slo_threshold.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # SLO thresholds (target and optionally warning) for a single time window. class SLOThreshold # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The target value for the service level indicator within the corresponding @@ -47,6 +48,7 @@ class SLOThreshold attr_accessor :warning_display # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'target' => :'target', @@ -58,11 +60,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'target' => :'Float', @@ -74,13 +78,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOThreshold` initialize method" @@ -117,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @target.nil? @@ -131,6 +138,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @target.nil? return false if @timeframe.nil? @@ -138,7 +146,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -150,20 +159,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [target, target_display, timeframe, warning, warning_display].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -171,6 +183,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -191,9 +204,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -242,18 +256,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -270,8 +287,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_timeframe.rb b/lib/datadog_api_client/v1/models/slo_timeframe.rb index 8498cb06b071..f8490bf15693 100644 --- a/lib/datadog_api_client/v1/models/slo_timeframe.rb +++ b/lib/datadog_api_client/v1/models/slo_timeframe.rb @@ -25,15 +25,17 @@ class SLOTimeframe CUSTOM = "custom".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOTimeframe.constants.select { |c| SLOTimeframe::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slo_type.rb b/lib/datadog_api_client/v1/models/slo_type.rb index 01bc2523eccc..ca5623cb8e00 100644 --- a/lib/datadog_api_client/v1/models/slo_type.rb +++ b/lib/datadog_api_client/v1/models/slo_type.rb @@ -23,15 +23,17 @@ class SLOType MONITOR = "monitor".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOType.constants.select { |c| SLOType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slo_type_numeric.rb b/lib/datadog_api_client/v1/models/slo_type_numeric.rb index bc9a4be14ce6..bc5e751a4261 100644 --- a/lib/datadog_api_client/v1/models/slo_type_numeric.rb +++ b/lib/datadog_api_client/v1/models/slo_type_numeric.rb @@ -25,15 +25,17 @@ class SLOTypeNumeric METRIC = 1.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOTypeNumeric.constants.select { |c| SLOTypeNumeric::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition.rb b/lib/datadog_api_client/v1/models/slo_widget_definition.rb index 4940a1dd62af..cec643add9e0 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on screenboards and timeboards. class SLOWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Defined global time target. @@ -53,6 +54,7 @@ class SLOWidgetDefinition attr_accessor :view_type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'global_time_target' => :'global_time_target', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'global_time_target' => :'String', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOWidgetDefinition` initialize method" @@ -159,6 +165,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -173,6 +180,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? return false if @view_type.nil? @@ -180,7 +188,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -197,20 +206,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [global_time_target, show_error_budget, slo_id, time_windows, title, title_align, title_size, type, view_mode, view_type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -218,6 +230,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -238,9 +251,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -289,18 +303,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -317,8 +334,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb b/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb index 53420591ff98..de7648e72912 100644 --- a/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/slo_widget_definition_type.rb @@ -22,15 +22,17 @@ class SLOWidgetDefinitionType SLO = "slo".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SLOWidgetDefinitionType.constants.select { |c| SLOWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb index 4fbd304e42ec..64f9c4f141e2 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Sunbursts are spot on to highlight how groups contribute to the total of a query. class SunburstWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -50,6 +51,7 @@ class SunburstWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetDefinition` initialize method" @@ -150,6 +156,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -164,6 +171,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -171,7 +179,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -187,20 +196,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, hide_total, legend, requests, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -208,6 +220,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -228,9 +241,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -279,18 +293,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -307,8 +324,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb index 9b0cf81da4b8..f2779f77b96a 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_definition_type.rb @@ -22,15 +22,17 @@ class SunburstWidgetDefinitionType SUNBURST = "sunburst".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SunburstWidgetDefinitionType.constants.select { |c| SunburstWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb index 1dd55b8bc837..3b7e87a0b881 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Configuration of inline or automatic legends. class SunburstWidgetLegendInlineAutomatic # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether to hide the percentages of the groups. @@ -32,6 +33,7 @@ class SunburstWidgetLegendInlineAutomatic attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hide_percent' => :'hide_percent', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hide_percent' => :'Boolean', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetLegendInlineAutomatic` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hide_percent, hide_value, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb index 2be7f95e086e..849d26227439 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic_type.rb @@ -23,15 +23,17 @@ class SunburstWidgetLegendInlineAutomaticType AUTOMATIC = "automatic".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SunburstWidgetLegendInlineAutomaticType.constants.select { |c| SunburstWidgetLegendInlineAutomaticType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb index 9213637adf58..7b1c569343ca 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Configuration of table-based legend. class SunburstWidgetLegendTable # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Whether or not to show a table legend. attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'SunburstWidgetLegendTableType' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetLegendTable` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb index 5a641af6dbd6..820591a3b3b3 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_legend_table_type.rb @@ -23,15 +23,17 @@ class SunburstWidgetLegendTableType NONE = "none".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SunburstWidgetLegendTableType.constants.select { |c| SunburstWidgetLegendTableType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb index 84ee65a9954e..38501207e7e5 100644 --- a/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +++ b/lib/datadog_api_client/v1/models/sunburst_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Request definition of sunburst widget. class SunburstWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -62,6 +63,7 @@ class SunburstWidgetRequest attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -81,11 +83,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -105,13 +109,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SunburstWidgetRequest` initialize method" @@ -184,6 +190,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -192,12 +199,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -217,20 +226,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, audit_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -238,6 +250,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -258,9 +271,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -309,18 +323,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -337,8 +354,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step.rb b/lib/datadog_api_client/v1/models/synthetics_api_step.rb index 4cb457b9c967..93371a5139c2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The steps used in a Synthetics multistep API test. class SyntheticsAPIStep # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Determines whether or not to continue with test if this step fails. @@ -48,6 +49,7 @@ class SyntheticsAPIStep attr_accessor :subtype # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'allow_failure' => :'allowFailure', @@ -62,11 +64,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'allow_failure' => :'Boolean', @@ -81,13 +85,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPIStep` initialize method" @@ -142,6 +148,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @assertions.nil? @@ -162,6 +169,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @assertions.nil? return false if @name.nil? @@ -171,7 +179,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -186,20 +195,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [allow_failure, assertions, extracted_values, is_critical, name, request, _retry, subtype].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -207,6 +219,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -227,9 +240,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -278,18 +292,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -306,8 +323,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb index ac1e5eedb2c6..f68eac367b98 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb @@ -22,15 +22,17 @@ class SyntheticsAPIStepSubtype HTTP = "http".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsAPIStepSubtype.constants.select { |c| SyntheticsAPIStepSubtype::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test.rb b/lib/datadog_api_client/v1/models/synthetics_api_test.rb index ffef1b76307e..e9c2c9cb43c2 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing details about a Synthetic API test. class SyntheticsAPITest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration object for a Synthetic API test. @@ -58,6 +59,7 @@ class SyntheticsAPITest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'config' => :'config', @@ -75,11 +77,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'config' => :'SyntheticsAPITestConfig', @@ -97,13 +101,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITest` initialize method" @@ -170,6 +176,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? @@ -193,6 +200,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @config.nil? return false if @locations.nil? @@ -203,7 +211,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -221,20 +230,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [config, locations, message, monitor_id, name, options, public_id, status, subtype, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -242,6 +254,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -262,9 +275,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -313,18 +327,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -341,8 +358,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb index aba31c351e8c..38150a6ceb48 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic API test. class SyntheticsAPITestConfig # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of assertions used for the test. Required for single API tests. @@ -35,6 +36,7 @@ class SyntheticsAPITestConfig attr_accessor :steps # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'assertions' => :'assertions', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'assertions' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestConfig` initialize method" @@ -107,6 +113,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -115,12 +122,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [assertions, config_variables, request, steps].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb index 764dfabf222b..693f51eece98 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_failure_code.rb @@ -47,15 +47,17 @@ class SyntheticsApiTestFailureCode INTERNAL_ERROR = "INTERNAL_ERROR".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsApiTestFailureCode.constants.select { |c| SyntheticsApiTestFailureCode::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb index ccbefd08de14..2459cd8629cf 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing results for your Synthetic API test. class SyntheticsAPITestResultData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object describing the SSL certificate used for a Synthetic test. @@ -51,6 +52,7 @@ class SyntheticsAPITestResultData attr_accessor :timings # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cert' => :'cert', @@ -66,11 +68,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cert' => :'SyntheticsSSLCertificate', @@ -86,13 +90,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultData` initialize method" @@ -145,6 +151,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -153,12 +160,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -174,20 +183,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cert, event_type, failure, http_status_code, request_headers, response_body, response_headers, response_size, timings].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -195,6 +207,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -215,9 +228,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -266,18 +280,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -294,8 +311,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb index b584e5a2fb0e..09080cd184d5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_failure.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The API test failure details. class SyntheticsApiTestResultFailure # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Error code that can be returned by a Synthetic test. @@ -29,6 +30,7 @@ class SyntheticsApiTestResultFailure attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'code' => :'code', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'code' => :'SyntheticsApiTestFailureCode', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsApiTestResultFailure` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [code, message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb index a4bf0af85e24..1c13d078a14c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object returned describing a API test result. class SyntheticsAPITestResultFull # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object describing the API test configuration. @@ -47,6 +48,7 @@ class SyntheticsAPITestResultFull attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check' => :'check', @@ -60,11 +62,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check' => :'SyntheticsAPITestResultFullCheck', @@ -78,13 +82,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFull` initialize method" @@ -129,6 +135,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -137,12 +144,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -156,20 +165,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check, check_time, check_version, probe_dc, result, result_id, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -177,6 +189,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -197,9 +210,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -248,18 +262,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -276,8 +293,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb index 0f16d45e4905..87aa711f8701 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object describing the API test configuration. class SyntheticsAPITestResultFullCheck # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'config' => :'config' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'config' => :'SyntheticsTestConfig' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultFullCheck` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @config.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [config].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb index 3c9ea64688b9..8466a6f0c633 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with the results of a single Synthetic API test. class SyntheticsAPITestResultShort # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Last time the API test was performed. @@ -41,6 +42,7 @@ class SyntheticsAPITestResultShort attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check_time' => :'check_time', @@ -52,11 +54,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check_time' => :'Float', @@ -68,13 +72,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultShort` initialize method" @@ -111,6 +117,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -119,12 +126,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -136,20 +145,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check_time, probe_dc, result, result_id, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -157,6 +169,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -177,9 +190,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -228,18 +242,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -256,8 +273,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb index 8e1dbb193fe1..b40f51bd118d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Result of the last API test run. class SyntheticsAPITestResultShortResult # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Describes if the test run has passed or failed. @@ -30,6 +31,7 @@ class SyntheticsAPITestResultShortResult attr_accessor :timings # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'passed' => :'passed', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'passed' => :'Boolean', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPITestResultShortResult` initialize method" @@ -82,6 +88,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -90,12 +97,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -104,20 +113,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [passed, timings].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -125,6 +137,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -145,9 +158,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -196,18 +210,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -224,8 +241,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb index b55a9339433c..6faa09885d36 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_type.rb @@ -22,15 +22,17 @@ class SyntheticsAPITestType API = "api".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsAPITestType.constants.select { |c| SyntheticsAPITestType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb index f876dc6073db..4f0e0a307beb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_operator.rb @@ -22,15 +22,17 @@ class SyntheticsAssertionJSONPathOperator VALIDATES_JSON_PATH = "validatesJSONPath".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsAssertionJSONPathOperator.constants.select { |c| SyntheticsAssertionJSONPathOperator::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb index db7960221765..b9749c5fa283 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An assertion for the `validatesJSONPath` operator. class SyntheticsAssertionJSONPathTarget # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Assertion operator to apply. @@ -35,6 +36,7 @@ class SyntheticsAssertionJSONPathTarget attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'operator' => :'operator', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'operator' => :'SyntheticsAssertionJSONPathOperator', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTarget` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @operator.nil? @@ -113,6 +120,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @operator.nil? return false if @type.nil? @@ -120,7 +128,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [operator, property, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb index 456261e4d8d4..ea9347071247 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Composed target for `validatesJSONPath` operator. class SyntheticsAssertionJSONPathTargetTarget # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The JSON path to assert. @@ -32,6 +33,7 @@ class SyntheticsAssertionJSONPathTargetTarget attr_accessor :target_value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'json_path' => :'jsonPath', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'json_path' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONPathTargetTarget` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [json_path, operator, target_value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb index 3c302dc374d4..b031e03e5d16 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb @@ -34,15 +34,17 @@ class SyntheticsAssertionOperator IS_IN_LESS_DAYS_THAN = "isInLessThan".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsAssertionOperator.constants.select { |c| SyntheticsAssertionOperator::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb index e323651d1313..d6a9b8a2085d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An assertion which uses a simple target. class SyntheticsAssertionTarget # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Assertion operator to apply. @@ -35,6 +36,7 @@ class SyntheticsAssertionTarget attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'operator' => :'operator', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'operator' => :'SyntheticsAssertionOperator', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionTarget` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @operator.nil? @@ -116,6 +123,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @operator.nil? return false if @target.nil? @@ -124,7 +132,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -135,20 +144,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [operator, property, target, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -156,6 +168,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -176,9 +189,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -227,18 +241,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -255,8 +272,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb b/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb index 94b49944e4d5..4767e05ec6a3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb @@ -36,15 +36,17 @@ class SyntheticsAssertionType RECEIVED_MESSAGE = "receivedMessage".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsAssertionType.constants.select { |c| SyntheticsAssertionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb index a7be4384e1d8..77ad26bf4700 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object to handle `NTLM` authentication when performing the test. class SyntheticsBasicAuthNTLM # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Domain for the authentication to use when performing the test. @@ -38,6 +39,7 @@ class SyntheticsBasicAuthNTLM attr_accessor :workstation # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'domain' => :'domain', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'domain' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthNTLM` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -121,13 +128,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -139,20 +148,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [domain, password, type, username, workstation].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -160,6 +172,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -180,9 +193,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -231,18 +245,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -259,8 +276,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb index 416bf78f83d9..d16f3fdade07 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb @@ -22,15 +22,17 @@ class SyntheticsBasicAuthNTLMType NTLM = "ntlm".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBasicAuthNTLMType.constants.select { |c| SyntheticsBasicAuthNTLMType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb index 8124bbdff745..d358c2c33fdd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object to handle `SIGV4` authentication when performing the test. class SyntheticsBasicAuthSigv4 # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Access key for the `SIGV4` authentication. @@ -41,6 +42,7 @@ class SyntheticsBasicAuthSigv4 attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'access_key' => :'accessKey', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'access_key' => :'String', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthSigv4` initialize method" @@ -119,6 +125,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @access_key.nil? @@ -136,6 +143,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @access_key.nil? return false if @secret_key.nil? @@ -144,7 +152,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -157,20 +166,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [access_key, region, secret_key, service_name, session_token, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -178,6 +190,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -198,9 +211,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -249,18 +263,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -277,8 +294,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb index f3f9e502747f..ebf987d8a7e6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4_type.rb @@ -22,15 +22,17 @@ class SyntheticsBasicAuthSigv4Type SIGV4 = "sigv4".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBasicAuthSigv4Type.constants.select { |c| SyntheticsBasicAuthSigv4Type::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb index 59a33e581c7a..001a60842925 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object to handle basic authentication when performing the test. class SyntheticsBasicAuthWeb # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Password to use for the basic authentication. @@ -32,6 +33,7 @@ class SyntheticsBasicAuthWeb attr_accessor :username # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'password' => :'password', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'password' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBasicAuthWeb` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @password.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @password.nil? return false if @type.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [password, type, username].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb index 2a1967ab8347..f0f77cec7405 100644 --- a/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_basic_auth_web_type.rb @@ -22,15 +22,17 @@ class SyntheticsBasicAuthWebType WEB = "web".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBasicAuthWebType.constants.select { |c| SyntheticsBasicAuthWebType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb index 3cd8e522e732..dd6b30dca291 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Details about a batch response. class SyntheticsBatchDetails # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Wrapper object that contains the details of a batch. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SyntheticsBatchDetailsData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchDetails` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb index e6fb4eab8bf0..52bc4d96036d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Wrapper object that contains the details of a batch. class SyntheticsBatchDetailsData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Metadata for the Synthetics tests run. @@ -32,6 +33,7 @@ class SyntheticsBatchDetailsData attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metadata' => :'metadata', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metadata' => :'SyntheticsCIBatchMetadata', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchDetailsData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metadata, results, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb index e37e36391814..21e8679f7de9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with the results of a Synthetics batch. class SyntheticsBatchResult # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The device ID. @@ -53,6 +54,7 @@ class SyntheticsBatchResult attr_accessor :test_type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'device' => :'device', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'device' => :'SyntheticsDeviceID', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBatchResult` initialize method" @@ -153,6 +159,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -161,12 +168,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -183,20 +192,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [device, duration, execution_rule, location, result_id, retries, status, test_name, test_public_id, test_type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -204,6 +216,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -224,9 +237,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -275,18 +289,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -303,8 +320,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb index 079c87e666a7..6651b651b09f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Error response object for a browser test. class SyntheticsBrowserError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Description of the error. @@ -35,6 +36,7 @@ class SyntheticsBrowserError attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'description' => :'description', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'description' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserError` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @description.nil? @@ -116,6 +123,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @description.nil? return false if @name.nil? @@ -124,7 +132,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -135,20 +144,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [description, name, status, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -156,6 +168,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -176,9 +189,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -227,18 +241,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -255,8 +272,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb index c53d04331107..b79b926438fc 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_error_type.rb @@ -23,15 +23,17 @@ class SyntheticsBrowserErrorType JS = "js".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBrowserErrorType.constants.select { |c| SyntheticsBrowserErrorType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb index de05e0d3fbf9..14f298e5f42f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing details about a Synthetic browser test. class SyntheticsBrowserTest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration object for a Synthetic browser test. @@ -57,6 +58,7 @@ class SyntheticsBrowserTest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'config' => :'config', @@ -74,11 +76,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'config' => :'SyntheticsBrowserTestConfig', @@ -96,13 +100,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTest` initialize method" @@ -171,6 +177,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? @@ -194,6 +201,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @config.nil? return false if @locations.nil? @@ -204,7 +212,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -222,20 +231,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [config, locations, message, monitor_id, name, options, public_id, status, steps, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -243,6 +255,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -263,9 +276,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -314,18 +328,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -342,8 +359,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb index 10655abb4e76..a96ddf30cc9f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic browser test. class SyntheticsBrowserTestConfig # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of assertions used for the test. @@ -38,6 +39,7 @@ class SyntheticsBrowserTestConfig attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'assertions' => :'assertions', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'assertions' => :'Array', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestConfig` initialize method" @@ -116,6 +122,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @assertions.nil? @@ -130,6 +137,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @assertions.nil? return false if @request.nil? @@ -137,7 +145,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -149,20 +158,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [assertions, config_variables, request, set_cookie, variables].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -170,6 +182,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -190,9 +203,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -241,18 +255,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -269,8 +286,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb index 93a8ee0ed6a1..a9c9bf8853c5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb @@ -54,15 +54,17 @@ class SyntheticsBrowserTestFailureCode UPLOAD_FILES_NAME = "UPLOAD_FILES_NAME".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBrowserTestFailureCode.constants.select { |c| SyntheticsBrowserTestFailureCode::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb index 39100479ed38..62a315555b78 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing results for your Synthetic browser test. class SyntheticsBrowserTestResultData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of browser device used for the browser test. @@ -60,6 +61,7 @@ class SyntheticsBrowserTestResultData attr_accessor :time_to_interactive # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'browser_type' => :'browserType', @@ -78,11 +80,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'browser_type' => :'String', @@ -101,13 +105,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultData` initialize method" @@ -174,6 +180,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -182,12 +189,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -206,20 +215,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [browser_type, browser_version, device, duration, error, failure, passed, received_email_count, start_url, step_details, thumbnails_bucket_key, time_to_interactive].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -227,6 +239,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -247,9 +260,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -298,18 +312,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -326,8 +343,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb index b14777e57a0c..11ae37c24a70 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_failure.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The browser test failure details. class SyntheticsBrowserTestResultFailure # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Error code that can be returned by a Synthetic test. @@ -29,6 +30,7 @@ class SyntheticsBrowserTestResultFailure attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'code' => :'code', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'code' => :'SyntheticsBrowserTestFailureCode', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFailure` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [code, message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb index 535614ee366a..c06b7a7987e6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object returned describing a browser test result. class SyntheticsBrowserTestResultFull # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object describing the browser test configuration. @@ -47,6 +48,7 @@ class SyntheticsBrowserTestResultFull attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check' => :'check', @@ -60,11 +62,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check' => :'SyntheticsBrowserTestResultFullCheck', @@ -78,13 +82,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFull` initialize method" @@ -129,6 +135,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -137,12 +144,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -156,20 +165,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check, check_time, check_version, probe_dc, result, result_id, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -177,6 +189,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -197,9 +210,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -248,18 +262,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -276,8 +293,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb index a1ec4462effa..b0d7e4375e22 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object describing the browser test configuration. class SyntheticsBrowserTestResultFullCheck # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration object for a Synthetic test. attr_accessor :config # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'config' => :'config' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'config' => :'SyntheticsTestConfig' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultFullCheck` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @config.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @config.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [config].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb index 614e386734d8..9db20d9ec0a8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with the results of a single Synthetic browser test. class SyntheticsBrowserTestResultShort # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Last time the browser test was performed. @@ -41,6 +42,7 @@ class SyntheticsBrowserTestResultShort attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check_time' => :'check_time', @@ -52,11 +54,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check_time' => :'Float', @@ -68,13 +72,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShort` initialize method" @@ -111,6 +117,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -119,12 +126,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -136,20 +145,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check_time, probe_dc, result, result_id, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -157,6 +169,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -177,9 +190,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -228,18 +242,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -256,8 +273,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb index 76fe9fe6dfb6..648d65a23557 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_result_short_result.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with the result of the last browser test run. class SyntheticsBrowserTestResultShortResult # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object describing the device used to perform the Synthetic test. @@ -38,6 +39,7 @@ class SyntheticsBrowserTestResultShortResult attr_accessor :step_count_total # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'device' => :'device', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'device' => :'SyntheticsDevice', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestResultShortResult` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [device, duration, error_count, step_count_completed, step_count_total].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb index e71fe74772c4..c6c6febe1bdd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_test_type.rb @@ -22,15 +22,17 @@ class SyntheticsBrowserTestType BROWSER = "browser".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBrowserTestType.constants.select { |c| SyntheticsBrowserTestType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb index fb5d8a195a9f..1c0479d475a3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # Learn more in the [Browser test Actions documentation](https://docs.datadoghq.com/synthetics/browser_tests/actions#variable). class SyntheticsBrowserVariable # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Example for the variable. @@ -39,6 +40,7 @@ class SyntheticsBrowserVariable attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'example' => :'example', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'example' => :'String', @@ -66,13 +70,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserVariable` initialize method" @@ -109,6 +115,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -123,6 +130,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? return false if @type.nil? @@ -130,7 +138,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -142,20 +151,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [example, id, name, pattern, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -163,6 +175,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -183,9 +196,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -234,18 +248,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -262,8 +279,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb b/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb index 961ad950fc00..e5aa4d9bb282 100644 --- a/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb @@ -26,15 +26,17 @@ class SyntheticsBrowserVariableType TEXT = "text".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsBrowserVariableType.constants.select { |c| SyntheticsBrowserVariableType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_check_type.rb b/lib/datadog_api_client/v1/models/synthetics_check_type.rb index ba8a82b834bf..8719674b04a1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_check_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_check_type.rb @@ -35,15 +35,17 @@ class SyntheticsCheckType NOT_IS_EMPTY = "notIsEmpty".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsCheckType.constants.select { |c| SyntheticsCheckType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb index edad5a0d1ed2..6b0f2f2329fa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Metadata for the Synthetics tests run. class SyntheticsCIBatchMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Description of the CI provider. @@ -29,6 +30,7 @@ class SyntheticsCIBatchMetadata attr_accessor :git # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'ci' => :'ci', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'ci' => :'SyntheticsCIBatchMetadataCI', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadata` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [ci, git].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb index e5cbaa32e71d..1a670dd911b4 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_ci.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Description of the CI provider. class SyntheticsCIBatchMetadataCI # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Description of the CI pipeline. @@ -29,6 +30,7 @@ class SyntheticsCIBatchMetadataCI attr_accessor :provider # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'pipeline' => :'pipeline', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'pipeline' => :'SyntheticsCIBatchMetadataPipeline', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataCI` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [pipeline, provider].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb index 829c1f43cd38..e9b3fd4d0aab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_git.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Git information. class SyntheticsCIBatchMetadataGit # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Branch name. @@ -29,6 +30,7 @@ class SyntheticsCIBatchMetadataGit attr_accessor :commit_sha # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'branch' => :'branch', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'branch' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataGit` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [branch, commit_sha].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb index c4c3413db63b..e420e1a5f302 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_pipeline.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Description of the CI pipeline. class SyntheticsCIBatchMetadataPipeline # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # URL of the pipeline. attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'url' => :'url' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'url' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataPipeline` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb index 69c8837c6fc9..50a4ea397cb3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_batch_metadata_provider.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Description of the CI provider. class SyntheticsCIBatchMetadataProvider # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the CI provider. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCIBatchMetadataProvider` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb index c49aab552716..d855665bd078 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Test configuration for Synthetics CI class SyntheticsCITest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Disable certificate checks in API tests. @@ -65,6 +66,7 @@ class SyntheticsCITest attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'allow_insecure_certificates' => :'allowInsecureCertificates', @@ -85,11 +87,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'allow_insecure_certificates' => :'Boolean', @@ -110,13 +114,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITest` initialize method" @@ -193,6 +199,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @public_id.nil? @@ -204,13 +211,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @public_id.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -231,20 +240,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [allow_insecure_certificates, basic_auth, body, body_type, cookies, device_ids, follow_redirects, headers, locations, metadata, public_id, _retry, start_url, variables].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -252,6 +264,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -272,9 +285,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -323,18 +337,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -351,8 +368,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb index f228c051c766..82460a977e24 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object describing the synthetics tests to trigger. class SyntheticsCITestBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Individual synthetics test. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'tests' => :'tests' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'tests' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCITestBody` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [tests].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb index ba4dad53f996..4a7ae93cb4f6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object defining a variable that can be used in your test configuration. class SyntheticsConfigVariable # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Example for the variable. @@ -38,6 +39,7 @@ class SyntheticsConfigVariable attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'example' => :'example', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'example' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsConfigVariable` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -122,6 +129,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? return false if @type.nil? @@ -129,7 +137,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -141,20 +150,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [example, id, name, pattern, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -162,6 +174,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -182,9 +195,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -233,18 +247,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -261,8 +278,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb b/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb index 6e629c02517d..cb7339f5a456 100644 --- a/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb @@ -23,15 +23,17 @@ class SyntheticsConfigVariableType TEXT = "text".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsConfigVariableType.constants.select { |c| SyntheticsConfigVariableType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb index ffbef96a2241..c431f7a8a85f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb +++ b/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Core Web Vitals attached to a browser test step. class SyntheticsCoreWebVitals # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Cumulative Layout Shift. @@ -32,6 +33,7 @@ class SyntheticsCoreWebVitals attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cls' => :'cls', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cls' => :'Integer', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsCoreWebVitals` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cls, lcp, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb index 0731b0c6fd53..83a67fc0e495 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb @@ -21,12 +21,14 @@ module DatadogAPIClient::V1 # to delete. class SyntheticsDeleteTestsPayload # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of Synthetic test IDs you want to delete. attr_accessor :public_ids # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'public_ids' => :'public_ids' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'public_ids' => :'Array' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeleteTestsPayload` initialize method" @@ -75,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -83,12 +90,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -96,20 +105,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [public_ids].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -117,6 +129,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -137,9 +150,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -188,18 +202,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -216,8 +233,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb index 1cc5df65745b..16ba16f4e27d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response object for deleting Synthetic tests. class SyntheticsDeleteTestsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of objects containing a deleted Synthetic test ID with @@ -27,6 +28,7 @@ class SyntheticsDeleteTestsResponse attr_accessor :deleted_tests # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted_tests' => :'deleted_tests' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted_tests' => :'Array' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeleteTestsResponse` initialize method" @@ -75,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -83,12 +90,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -96,20 +105,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted_tests].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -117,6 +129,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -137,9 +150,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -188,18 +202,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -216,8 +233,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb index 04643eb16ade..71cd347c636a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_deleted_test.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # deletion timestamp. class SyntheticsDeletedTest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Deletion timestamp of the Synthetic test ID. @@ -30,6 +31,7 @@ class SyntheticsDeletedTest attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted_at' => :'deleted_at', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted_at' => :'Time', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDeletedTest` initialize method" @@ -82,6 +88,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -90,12 +97,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -104,20 +113,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted_at, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -125,6 +137,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -145,9 +158,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -196,18 +210,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -224,8 +241,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_device.rb b/lib/datadog_api_client/v1/models/synthetics_device.rb index 0f44ba54b808..014e4a345d6f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the device used to perform the Synthetic test. class SyntheticsDevice # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Screen height of the device. @@ -38,6 +39,7 @@ class SyntheticsDevice attr_accessor :width # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'height' => :'height', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'height' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsDevice` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @height.nil? @@ -128,6 +135,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @height.nil? return false if @id.nil? @@ -137,7 +145,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -149,20 +158,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [height, id, is_mobile, name, width].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -170,6 +182,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -190,9 +203,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -241,18 +255,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -269,8 +286,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_device_id.rb b/lib/datadog_api_client/v1/models/synthetics_device_id.rb index a839c3eeefe3..fd3972eedfdf 100644 --- a/lib/datadog_api_client/v1/models/synthetics_device_id.rb +++ b/lib/datadog_api_client/v1/models/synthetics_device_id.rb @@ -33,15 +33,17 @@ class SyntheticsDeviceID EDGE_MOBILE_SMALL = "edge.mobile_small".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsDeviceID.constants.select { |c| SyntheticsDeviceID::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb index 23883c240662..275c61ae8400 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_api_test_latest_results_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with the latest Synthetic API test run. class SyntheticsGetAPITestLatestResultsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp of the latest API test run. @@ -29,6 +30,7 @@ class SyntheticsGetAPITestLatestResultsResponse attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'last_timestamp_fetched' => :'last_timestamp_fetched', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'last_timestamp_fetched' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGetAPITestLatestResultsResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [last_timestamp_fetched, results].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb index 67e0046092ad..fb3775ce2c32 100644 --- a/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_get_browser_test_latest_results_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object with the latest Synthetic browser test run. class SyntheticsGetBrowserTestLatestResultsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp of the latest browser test run. @@ -29,6 +30,7 @@ class SyntheticsGetBrowserTestLatestResultsResponse attr_accessor :results # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'last_timestamp_fetched' => :'last_timestamp_fetched', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'last_timestamp_fetched' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGetBrowserTestLatestResultsResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [last_timestamp_fetched, results].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb index 77b12c5f59e8..1336a3a1aa36 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Synthetics global variable. class SyntheticsGlobalVariable # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the global variable. @@ -47,6 +48,7 @@ class SyntheticsGlobalVariable attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SyntheticsGlobalVariableAttributes', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariable` initialize method" @@ -137,6 +143,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @description.nil? @@ -157,6 +164,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @description.nil? return false if @name.nil? @@ -166,7 +174,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -181,20 +190,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, description, id, name, parse_test_options, parse_test_public_id, tags, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -202,6 +214,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -222,9 +235,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -273,18 +287,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -301,8 +318,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb index 8e083ff32eba..2a7ecd13db84 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Attributes of the global variable. class SyntheticsGlobalVariableAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of role identifiers that can be pulled from the Roles API. attr_accessor :restricted_roles # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'restricted_roles' => :'restricted_roles' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'restricted_roles' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableAttributes` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [restricted_roles].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb index 39c20be0bf1e..c48348dbcbff 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Parser options to use for retrieving a Synthetics global variable from a Synthetics Test. Used in conjunction with `parse_test_public_id`. class SyntheticsGlobalVariableParseTestOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # When type is `http_header`, name of the header to use to extract the value. @@ -32,6 +33,7 @@ class SyntheticsGlobalVariableParseTestOptions attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'field' => :'field', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'field' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @parser.nil? @@ -104,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @parser.nil? return false if @type.nil? @@ -111,7 +119,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [field, parser, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb index c08ff63b9069..3f3f16b6ec8b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb @@ -23,15 +23,17 @@ class SyntheticsGlobalVariableParseTestOptionsType HTTP_HEADER = "http_header".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsGlobalVariableParseTestOptionsType.constants.select { |c| SyntheticsGlobalVariableParseTestOptionsType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb index 41d2b0fade28..5c57b450d28d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parser_type.rb @@ -25,15 +25,17 @@ class SyntheticsGlobalVariableParserType X_PATH = "x_path".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsGlobalVariableParserType.constants.select { |c| SyntheticsGlobalVariableParserType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb index 7ef5d627e1ad..2beaf006e9c0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_value.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Value of the global variable. class SyntheticsGlobalVariableValue # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Determines if the value of the variable is hidden. @@ -30,6 +31,7 @@ class SyntheticsGlobalVariableValue attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'secure' => :'secure', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'secure' => :'Boolean', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsGlobalVariableValue` initialize method" @@ -82,6 +88,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -90,12 +97,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -104,20 +113,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [secure, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -125,6 +137,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -145,9 +158,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -196,18 +210,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -224,8 +241,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb index 61c7e3ae0589..0a0a2d96cef1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_global_variables_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object containing an array of Synthetic global variables. class SyntheticsListGlobalVariablesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of Synthetic global variables. attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'variables' => :'variables' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'variables' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsListGlobalVariablesResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [variables].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb index fc919b3fcff7..a95cf68177f5 100644 --- a/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object containing an array of Synthetic tests configuration. class SyntheticsListTestsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of Synthetic tests configuration. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'tests' => :'tests' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'tests' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsListTestsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [tests].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_location.rb b/lib/datadog_api_client/v1/models/synthetics_location.rb index 9841f97b456c..bc4cfae06c56 100644 --- a/lib/datadog_api_client/v1/models/synthetics_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_location.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # test. class SyntheticsLocation # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Unique identifier of the location. @@ -30,6 +31,7 @@ class SyntheticsLocation attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsLocation` initialize method" @@ -82,6 +88,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -90,12 +97,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -104,20 +113,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -125,6 +137,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -145,9 +158,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -196,18 +210,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -224,8 +241,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_locations.rb b/lib/datadog_api_client/v1/models/synthetics_locations.rb index 6b8553bd4060..e351447a2345 100644 --- a/lib/datadog_api_client/v1/models/synthetics_locations.rb +++ b/lib/datadog_api_client/v1/models/synthetics_locations.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # List of Synthetics locations. class SyntheticsLocations # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of Synthetics locations. attr_accessor :locations # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'locations' => :'locations' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'locations' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsLocations` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [locations].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb index 5a1dcb2c50ff..9f70b7ec73d6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_parsing_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Parsing options for variables to extract. class SyntheticsParsingOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # When type is `http_header`, name of the header to use to extract the value. @@ -35,6 +36,7 @@ class SyntheticsParsingOptions attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'field' => :'field', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'field' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsParsingOptions` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [field, name, parser, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb b/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb index 7f940173d978..6928e8075d38 100644 --- a/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb +++ b/lib/datadog_api_client/v1/models/synthetics_playing_tab.rb @@ -26,15 +26,17 @@ class SyntheticsPlayingTab TAB_3 = 3.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsPlayingTab.constants.select { |c| SyntheticsPlayingTab::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location.rb b/lib/datadog_api_client/v1/models/synthetics_private_location.rb index d18128086273..d437c20f3420 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing information about the private location to create. class SyntheticsPrivateLocation # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Description of the private location. @@ -38,6 +39,7 @@ class SyntheticsPrivateLocation attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'description' => :'description', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'description' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocation` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @description.nil? @@ -127,6 +134,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @description.nil? return false if @name.nil? @@ -135,7 +143,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -147,20 +156,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [description, id, name, secrets, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -168,6 +180,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -188,9 +201,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -239,18 +253,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -267,8 +284,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb index 951849319b36..29e6e5546af8 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object that contains the new private location, the public key for result encryption, and the configuration skeleton. class SyntheticsPrivateLocationCreationResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration skeleton for the private location. See installation instructions of the private location on how to use this configuration. @@ -32,6 +33,7 @@ class SyntheticsPrivateLocationCreationResponse attr_accessor :result_encryption # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'config' => :'config', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'config' => :'Object', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponse` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [config, private_location, result_encryption].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb index 29d86873b87d..453ec6caa2cb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_creation_response_result_encryption.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Public key for the result encryption. class SyntheticsPrivateLocationCreationResponseResultEncryption # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Fingerprint for the encryption key. @@ -29,6 +30,7 @@ class SyntheticsPrivateLocationCreationResponseResultEncryption attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationCreationResponseResultEncryption` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb index 10851590d661..c33509b5ee07 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Secrets for the private location. Only present in the response when creating the private location. class SyntheticsPrivateLocationSecrets # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Authentication part of the secrets. @@ -29,6 +30,7 @@ class SyntheticsPrivateLocationSecrets attr_accessor :config_decryption # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'authentication' => :'authentication', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'authentication' => :'SyntheticsPrivateLocationSecretsAuthentication', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecrets` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [authentication, config_decryption].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb index 5a4f777359d5..11b448c42522 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_authentication.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Authentication part of the secrets. class SyntheticsPrivateLocationSecretsAuthentication # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Access key for the private location. @@ -29,6 +30,7 @@ class SyntheticsPrivateLocationSecretsAuthentication attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsAuthentication` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb index 5930c3c29f36..0dcc27ea87bd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_secrets_config_decryption.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Private key for the private location. class SyntheticsPrivateLocationSecretsConfigDecryption # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Private key for the private location. attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'key' => :'key' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'key' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsPrivateLocationSecretsConfigDecryption` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb index 5d7bff3352ad..62eeb092c65e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the SSL certificate used for a Synthetic test. class SyntheticsSSLCertificate # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Cipher used for the connection. @@ -59,6 +60,7 @@ class SyntheticsSSLCertificate attr_accessor :valid_to # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cipher' => :'cipher', @@ -77,11 +79,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cipher' => :'String', @@ -100,13 +104,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificate` initialize method" @@ -173,6 +179,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -181,12 +188,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -205,20 +214,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cipher, exponent, ext_key_usage, fingerprint, fingerprint256, issuer, modulus, protocol, serial_number, subject, valid_from, valid_to].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -226,6 +238,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -246,9 +259,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -297,18 +311,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -325,8 +342,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb index b9bc17a49c40..2895b9f15638 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_issuer.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the issuer of a SSL certificate. class SyntheticsSSLCertificateIssuer # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Country Name that issued the certificate. @@ -41,6 +42,7 @@ class SyntheticsSSLCertificateIssuer attr_accessor :st # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'c' => :'C', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'c' => :'String', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificateIssuer` initialize method" @@ -117,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -125,12 +132,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -143,20 +152,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [c, cn, l, o, ou, st].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -164,6 +176,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -184,9 +197,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -235,18 +249,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -263,8 +280,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb index d213cdf4b88c..a0418049f47a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb +++ b/lib/datadog_api_client/v1/models/synthetics_ssl_certificate_subject.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the SSL certificate used for the test. class SyntheticsSSLCertificateSubject # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Country Name associated with the certificate. @@ -44,6 +45,7 @@ class SyntheticsSSLCertificateSubject attr_accessor :alt_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'c' => :'C', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'c' => :'String', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsSSLCertificateSubject` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [c, cn, l, o, ou, st, alt_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_status.rb b/lib/datadog_api_client/v1/models/synthetics_status.rb index 42d3a1617890..0fd9f95c8798 100644 --- a/lib/datadog_api_client/v1/models/synthetics_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_status.rb @@ -24,15 +24,17 @@ class SyntheticsStatus failed = "failed".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsStatus.constants.select { |c| SyntheticsStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_step.rb b/lib/datadog_api_client/v1/models/synthetics_step.rb index 8f9a26c350a8..fc234c442c6c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The steps used in a Synthetics browser test. class SyntheticsStep # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A boolean set to allow this step to fail. @@ -38,6 +39,7 @@ class SyntheticsStep attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'allow_failure' => :'allowFailure', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'allow_failure' => :'Boolean', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStep` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [allow_failure, name, params, timeout, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb index eca311eb165c..b5db59c996ab 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing a step for a Synthetic test. class SyntheticsStepDetail # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of errors collected for a browser test. @@ -75,6 +76,7 @@ class SyntheticsStepDetail attr_accessor :warnings # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'browser_errors' => :'browserErrors', @@ -98,11 +100,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'browser_errors' => :'Array', @@ -126,13 +130,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStepDetail` initialize method" @@ -225,6 +231,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -233,12 +240,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -262,20 +271,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [browser_errors, check_type, description, duration, error, playing_tab, screenshot_bucket_key, skipped, snapshot_bucket_key, step_id, sub_test_step_details, time_to_interactive, type, url, value, vitals_metrics, warnings].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -283,6 +295,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -303,9 +316,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -354,18 +368,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -382,8 +399,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb index 95038be778ee..1e56fd4eee60 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object collecting warnings for a given step. class SyntheticsStepDetailWarning # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Message for the warning. @@ -29,6 +30,7 @@ class SyntheticsStepDetailWarning attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'message' => :'message', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'message' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsStepDetailWarning` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @message.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @message.nil? return false if @type.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [message, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_step_type.rb b/lib/datadog_api_client/v1/models/synthetics_step_type.rb index 268d0a39a964..5c000e7b5932 100644 --- a/lib/datadog_api_client/v1/models/synthetics_step_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_step_type.rb @@ -46,15 +46,17 @@ class SyntheticsStepType WAIT = "wait".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsStepType.constants.select { |c| SyntheticsStepType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_config.rb b/lib/datadog_api_client/v1/models/synthetics_test_config.rb index ed8a5771e3ed..cda5ab0d4885 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_config.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_config.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Configuration object for a Synthetic test. class SyntheticsTestConfig # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of assertions used for the test. Required for single API tests. @@ -35,6 +36,7 @@ class SyntheticsTestConfig attr_accessor :variables # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'assertions' => :'assertions', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'assertions' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestConfig` initialize method" @@ -107,6 +113,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -115,12 +122,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [assertions, config_variables, request, variables].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details.rb b/lib/datadog_api_client/v1/models/synthetics_test_details.rb index 5c5fb6da01d0..8b1a77b1e42b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing details about your Synthetic test. class SyntheticsTestDetails # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Configuration object for a Synthetic test. @@ -64,6 +65,7 @@ class SyntheticsTestDetails attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'config' => :'config', @@ -83,11 +85,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'config' => :'SyntheticsTestConfig', @@ -107,13 +111,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestDetails` initialize method" @@ -188,6 +194,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -196,12 +203,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -221,20 +230,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [config, creator, locations, message, monitor_id, name, options, public_id, status, steps, subtype, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -242,6 +254,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -262,9 +275,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -313,18 +327,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -341,8 +358,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb index 060ab3e7b09b..5a2bcff61a58 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb @@ -30,15 +30,17 @@ class SyntheticsTestDetailsSubType WEBSOCKET = "websocket".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsTestDetailsSubType.constants.select { |c| SyntheticsTestDetailsSubType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb b/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb index ba375be2cfc7..129047823a3a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb @@ -23,15 +23,17 @@ class SyntheticsTestDetailsType BROWSER = "browser".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsTestDetailsType.constants.select { |c| SyntheticsTestDetailsType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb b/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb index e1d8d8eab73c..b66cdacf3c55 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb @@ -24,15 +24,17 @@ class SyntheticsTestExecutionRule SKIPPED = "skipped".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsTestExecutionRule.constants.select { |c| SyntheticsTestExecutionRule::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb index 3d0c8b28f0ec..6144e2de6e36 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_monitor_status.rb @@ -27,15 +27,17 @@ class SyntheticsTestMonitorStatus NO_DATA = 2.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsTestMonitorStatus.constants.select { |c| SyntheticsTestMonitorStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index ca14249ca84d..31ae81455bfe 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the extra options for a Synthetic test. class SyntheticsTestOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # For SSL test, whether or not the test should allow self signed @@ -65,6 +66,7 @@ class SyntheticsTestOptions attr_accessor :tick_every # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'accept_self_signed' => :'accept_self_signed', @@ -84,11 +86,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'accept_self_signed' => :'Boolean', @@ -108,13 +112,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptions` initialize method" @@ -185,6 +191,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -193,12 +200,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -218,20 +227,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [accept_self_signed, allow_insecure, device_ids, disable_cors, follow_redirects, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, _retry, tick_every].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -239,6 +251,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -259,9 +272,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -310,18 +324,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -338,8 +355,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb index 6d015b8c347f..0e78b7091a0a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # (for example, renotification). class SyntheticsTestOptionsMonitorOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Time interval before renotifying if the test is still failing @@ -28,6 +29,7 @@ class SyntheticsTestOptionsMonitorOptions attr_accessor :renotify_interval # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'renotify_interval' => :'renotify_interval' @@ -35,11 +37,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'renotify_interval' => :'Integer' @@ -47,13 +51,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsMonitorOptions` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [renotify_interval].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb index d077af7a9c96..9085feab27cb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options_retry.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the retry strategy to apply to a Synthetic test. class SyntheticsTestOptionsRetry # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Number of times a test needs to be retried before marking a @@ -31,6 +32,7 @@ class SyntheticsTestOptionsRetry attr_accessor :interval # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -39,11 +41,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -52,13 +56,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestOptionsRetry` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, interval].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb index 75a029fa0a99..6a3273eeecb6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb @@ -24,15 +24,17 @@ class SyntheticsTestPauseStatus PAUSED = "paused".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsTestPauseStatus.constants.select { |c| SyntheticsTestPauseStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb b/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb index 7e7760bb3400..46f88f100dd3 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb @@ -26,15 +26,17 @@ class SyntheticsTestProcessStatus FINISHED_WITH_ERROR = "finished_with_error".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsTestProcessStatus.constants.select { |c| SyntheticsTestProcessStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request.rb b/lib/datadog_api_client/v1/models/synthetics_test_request.rb index 2c2fe5baedf4..930b8f9d8bcc 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object describing the Synthetic test request. class SyntheticsTestRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Allows loading insecure content for an HTTP request in a multistep test step. @@ -85,6 +86,7 @@ class SyntheticsTestRequest attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'allow_insecure' => :'allow_insecure', @@ -111,11 +113,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'allow_insecure' => :'Boolean', @@ -142,13 +146,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequest` initialize method" @@ -245,6 +251,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -253,12 +260,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -285,20 +294,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [allow_insecure, basic_auth, body, certificate, dns_server, dns_server_port, follow_redirects, headers, host, message, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, should_track_hops, timeout, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -306,6 +318,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -326,9 +339,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -377,18 +391,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -405,8 +422,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb index 8993516c00a6..bf84d5ab38dd 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Client certificate to use when performing the test request. class SyntheticsTestRequestCertificate # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Define a request certificate. @@ -29,6 +30,7 @@ class SyntheticsTestRequestCertificate attr_accessor :key # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cert' => :'cert', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cert' => :'SyntheticsTestRequestCertificateItem', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestCertificate` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cert, key].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb index 6c16b45e948f..e202fc84c904 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Define a request certificate. class SyntheticsTestRequestCertificateItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Content of the certificate or key. @@ -32,6 +33,7 @@ class SyntheticsTestRequestCertificateItem attr_accessor :updated_at # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'content' => :'content', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'content' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [content, filename, updated_at].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb index 2ef59d47216b..1c423d1f2c6f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The proxy to perform the test. class SyntheticsTestRequestProxy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Headers to include when performing the test. @@ -29,6 +30,7 @@ class SyntheticsTestRequestProxy attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'headers' => :'headers', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'headers' => :'Hash', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestProxy` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @url.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @url.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [headers, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_timing.rb b/lib/datadog_api_client/v1/models/synthetics_timing.rb index 61adf0131d10..c2b62aab52c1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_timing.rb +++ b/lib/datadog_api_client/v1/models/synthetics_timing.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # Learn more about those metrics in [Synthetics documentation](https://docs.datadoghq.com/synthetics/#metrics). class SyntheticsTiming # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The duration in millisecond of the DNS lookup. @@ -51,6 +52,7 @@ class SyntheticsTiming attr_accessor :wait # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dns' => :'dns', @@ -66,11 +68,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dns' => :'Float', @@ -86,13 +90,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTiming` initialize method" @@ -145,6 +151,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -153,12 +160,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -174,20 +183,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dns, download, first_byte, handshake, redirect, ssl, tcp, total, wait].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -195,6 +207,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -215,9 +228,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -266,18 +280,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -294,8 +311,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb index 667885e9c5a1..7046433af5fa 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Object describing the synthetics tests to trigger. class SyntheticsTriggerBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Individual synthetics test. attr_accessor :tests # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'tests' => :'tests' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'tests' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerBody` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @tests.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @tests.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [tests].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb index 7840ede037be..3e73b0a314a6 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_location.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Synthetics location. class SyntheticsTriggerCITestLocation # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Unique identifier of the location. @@ -29,6 +30,7 @@ class SyntheticsTriggerCITestLocation attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestLocation` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb index 5c846c5e75e1..8e16bcbd57d9 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_test_run_result.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Information about a single test run. class SyntheticsTriggerCITestRunResult # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The device ID. @@ -35,6 +36,7 @@ class SyntheticsTriggerCITestRunResult attr_accessor :result_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'device' => :'device', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'device' => :'SyntheticsDeviceID', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestRunResult` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [device, location, public_id, result_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb index 5caff05d4c97..004bcafc78d1 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_ci_tests_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object containing information about the tests triggered. class SyntheticsTriggerCITestsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The public ID of the batch triggered. @@ -35,6 +36,7 @@ class SyntheticsTriggerCITestsResponse attr_accessor :triggered_check_ids # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'batch_id' => :'batch_id', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'batch_id' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerCITestsResponse` initialize method" @@ -105,6 +111,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -113,12 +120,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [batch_id, locations, results, triggered_check_ids].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb index 3bf2958990bd..1c2822764e76 100644 --- a/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +++ b/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Test configuration for Synthetics class SyntheticsTriggerTest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Metadata for the Synthetics tests run. @@ -29,6 +30,7 @@ class SyntheticsTriggerTest attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metadata' => :'metadata', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metadata' => :'SyntheticsCIBatchMetadata', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTriggerTest` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @public_id.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @public_id.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metadata, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb index 83a9aa52d9aa..86d4ee46b726 100644 --- a/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_update_test_pause_status_payload.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Object to start or pause an existing Synthetic test. class SyntheticsUpdateTestPauseStatusPayload # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Define whether you want to start (`live`) or pause (`paused`) a @@ -27,6 +28,7 @@ class SyntheticsUpdateTestPauseStatusPayload attr_accessor :new_status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'new_status' => :'new_status' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'new_status' => :'SyntheticsTestPauseStatus' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [new_status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb index ab8c7ceb054b..f4421a27e76b 100644 --- a/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +++ b/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Details of the parser to use for the global variable. class SyntheticsVariableParser # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of parser for a Synthetics global variable from a synthetics test. @@ -29,6 +30,7 @@ class SyntheticsVariableParser attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'SyntheticsGlobalVariableParserType', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsVariableParser` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/synthetics_warning_type.rb b/lib/datadog_api_client/v1/models/synthetics_warning_type.rb index 803d9e18af0b..071168be212d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_warning_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_warning_type.rb @@ -22,15 +22,17 @@ class SyntheticsWarningType USER_LOCATOR = "user_locator".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SyntheticsWarningType.constants.select { |c| SyntheticsWarningType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb b/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb index 53c485ec9f4f..93907dbd6f7e 100644 --- a/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb +++ b/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb @@ -23,15 +23,17 @@ class TableWidgetCellDisplayMode BAR = "bar".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TableWidgetCellDisplayMode.constants.select { |c| TableWidgetCellDisplayMode::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/table_widget_definition.rb b/lib/datadog_api_client/v1/models/table_widget_definition.rb index 2867e841ef60..33485382fa27 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The table visualization is available on timeboards and screenboards. It displays columns of metrics grouped by tag key. class TableWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -47,6 +48,7 @@ class TableWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetDefinition` initialize method" @@ -141,6 +147,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -155,6 +162,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -162,7 +170,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -177,20 +186,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, has_search_bar, requests, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -198,6 +210,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -218,9 +231,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -269,18 +283,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -297,8 +314,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/table_widget_definition_type.rb b/lib/datadog_api_client/v1/models/table_widget_definition_type.rb index a1af92f4e47b..03d54492f07a 100644 --- a/lib/datadog_api_client/v1/models/table_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/table_widget_definition_type.rb @@ -22,15 +22,17 @@ class TableWidgetDefinitionType QUERY_TABLE = "query_table".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TableWidgetDefinitionType.constants.select { |c| TableWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb b/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb index 2379e8526cf1..1930053dca0e 100644 --- a/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb +++ b/lib/datadog_api_client/v1/models/table_widget_has_search_bar.rb @@ -24,15 +24,17 @@ class TableWidgetHasSearchBar AUTO = "auto".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TableWidgetHasSearchBar.constants.select { |c| TableWidgetHasSearchBar::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/table_widget_request.rb b/lib/datadog_api_client/v1/models/table_widget_request.rb index 321b3c41aaca..a3d57165cfe4 100644 --- a/lib/datadog_api_client/v1/models/table_widget_request.rb +++ b/lib/datadog_api_client/v1/models/table_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated table widget. class TableWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Aggregator used for the request. @@ -80,6 +81,7 @@ class TableWidgetRequest attr_accessor :security_query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregator' => :'aggregator', @@ -105,11 +107,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregator' => :'WidgetAggregator', @@ -135,13 +139,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TableWidgetRequest` initialize method" @@ -242,6 +248,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -250,12 +257,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -281,20 +290,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregator, _alias, apm_query, apm_stats_query, cell_display_mode, conditional_formats, event_query, formulas, limit, log_query, network_query, order, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -302,6 +314,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -322,9 +335,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -373,18 +387,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -401,8 +418,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/tag_to_hosts.rb b/lib/datadog_api_client/v1/models/tag_to_hosts.rb index 24b61f40d613..614c620de6d1 100644 --- a/lib/datadog_api_client/v1/models/tag_to_hosts.rb +++ b/lib/datadog_api_client/v1/models/tag_to_hosts.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # In this object, the key is the tag, the value is a list of host names that are reporting that tag. class TagToHosts # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of tags to apply to the host. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'tags' => :'tags' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'tags' => :'Hash>' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TagToHosts` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/target_format_type.rb b/lib/datadog_api_client/v1/models/target_format_type.rb index 8389897ccf8c..057c2d156e6a 100644 --- a/lib/datadog_api_client/v1/models/target_format_type.rb +++ b/lib/datadog_api_client/v1/models/target_format_type.rb @@ -27,15 +27,17 @@ class TargetFormatType DOUBLE = "double".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TargetFormatType.constants.select { |c| TargetFormatType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb index 7ef33d6934d0..23b43dca773a 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time. class TimeseriesWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -68,6 +69,7 @@ class TimeseriesWidgetDefinition attr_accessor :yaxis # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -89,11 +91,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -115,13 +119,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetDefinition` initialize method" @@ -210,6 +216,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -224,6 +231,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -231,7 +239,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -253,20 +262,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, events, legend_columns, legend_layout, legend_size, markers, requests, right_yaxis, show_legend, time, title, title_align, title_size, type, yaxis].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -274,6 +286,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -294,9 +307,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -345,18 +359,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -373,8 +390,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb b/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb index f048111616b8..9b2f716806fe 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_definition_type.rb @@ -22,15 +22,17 @@ class TimeseriesWidgetDefinitionType TIMESERIES = "timeseries".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TimeseriesWidgetDefinitionType.constants.select { |c| TimeseriesWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb index 1200db973855..26aa9eb2a2e8 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Define an expression alias. class TimeseriesWidgetExpressionAlias # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Expression alias. @@ -29,6 +30,7 @@ class TimeseriesWidgetExpressionAlias attr_accessor :expression # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'alias_name' => :'alias_name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'alias_name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetExpressionAlias` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @expression.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @expression.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [alias_name, expression].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb b/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb index 89f1024b38e4..f7b43102f46e 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_legend_column.rb @@ -26,15 +26,17 @@ class TimeseriesWidgetLegendColumn MAX = "max".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TimeseriesWidgetLegendColumn.constants.select { |c| TimeseriesWidgetLegendColumn::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb b/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb index 91f2529afe1e..e9066d1a1b5e 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_legend_layout.rb @@ -24,15 +24,17 @@ class TimeseriesWidgetLegendLayout VERTICAL = "vertical".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TimeseriesWidgetLegendLayout.constants.select { |c| TimeseriesWidgetLegendLayout::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb index 56d13ddb01c8..880950a27668 100644 --- a/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +++ b/lib/datadog_api_client/v1/models/timeseries_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated timeseries widget. class TimeseriesWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -74,6 +75,7 @@ class TimeseriesWidgetRequest attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -97,11 +99,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -125,13 +129,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TimeseriesWidgetRequest` initialize method" @@ -222,6 +228,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -230,12 +237,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -259,20 +268,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, audit_query, display_type, event_query, formulas, log_query, metadata, network_query, on_right_yaxis, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, style].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -280,6 +292,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -300,9 +313,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -351,18 +365,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -379,8 +396,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb index 07e8eb4c85f8..1ef49473d8bd 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The top list visualization enables you to display a list of Tag value like hostname or service with the most or least of any metric value, such as highest consumers of CPU, hosts with the least disk space, etc. class ToplistWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of custom links. @@ -44,6 +45,7 @@ class ToplistWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_links' => :'custom_links', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_links' => :'Array', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetDefinition` initialize method" @@ -132,6 +138,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -146,6 +153,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -153,7 +161,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -167,20 +176,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_links, requests, time, title, title_align, title_size, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -188,6 +200,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -208,9 +221,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -259,18 +273,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -287,8 +304,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb b/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb index a6114ec9b1dd..d8d9d3059293 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_definition_type.rb @@ -22,15 +22,17 @@ class ToplistWidgetDefinitionType TOPLIST = "toplist".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ToplistWidgetDefinitionType.constants.select { |c| ToplistWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/toplist_widget_request.rb b/lib/datadog_api_client/v1/models/toplist_widget_request.rb index 8562758d8dce..bb9fd4d0bb32 100644 --- a/lib/datadog_api_client/v1/models/toplist_widget_request.rb +++ b/lib/datadog_api_client/v1/models/toplist_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Updated top list widget. class ToplistWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log query. @@ -68,6 +69,7 @@ class ToplistWidgetRequest attr_accessor :style # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_query' => :'apm_query', @@ -89,11 +91,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_query' => :'LogQueryDefinition', @@ -115,13 +119,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ToplistWidgetRequest` initialize method" @@ -204,6 +210,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -212,12 +219,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -239,20 +248,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_query, audit_query, conditional_formats, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, style].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -260,6 +272,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -280,9 +293,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -331,18 +345,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -359,8 +376,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/tree_map_color_by.rb b/lib/datadog_api_client/v1/models/tree_map_color_by.rb index 3dc8e63e1377..9303c7576a1e 100644 --- a/lib/datadog_api_client/v1/models/tree_map_color_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_color_by.rb @@ -22,15 +22,17 @@ class TreeMapColorBy USER = "user".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TreeMapColorBy.constants.select { |c| TreeMapColorBy::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/tree_map_group_by.rb b/lib/datadog_api_client/v1/models/tree_map_group_by.rb index e13cc3e03408..40c4593b8b23 100644 --- a/lib/datadog_api_client/v1/models/tree_map_group_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_group_by.rb @@ -24,15 +24,17 @@ class TreeMapGroupBy PROCESS = "process".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TreeMapGroupBy.constants.select { |c| TreeMapGroupBy::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/tree_map_size_by.rb b/lib/datadog_api_client/v1/models/tree_map_size_by.rb index c57cb01275ba..2d648ee10e29 100644 --- a/lib/datadog_api_client/v1/models/tree_map_size_by.rb +++ b/lib/datadog_api_client/v1/models/tree_map_size_by.rb @@ -23,15 +23,17 @@ class TreeMapSizeBy PCT_MEM = "pct_mem".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TreeMapSizeBy.constants.select { |c| TreeMapSizeBy::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb index 5411b37a69b9..b50dcb5700f7 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The treemap visualization found on the Host Dashboards comes from the output of `ps auxww`. This is not continuously run on your hosts. Instead, it’s run once on Agent start/restart. The treemap is only supported for process data on a single host dashboard — this may not be reused in other dashboards or for other metrics. class TreeMapWidgetDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attribute used to determine color in the widget. @@ -41,6 +42,7 @@ class TreeMapWidgetDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'color_by' => :'color_by', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'color_by' => :'TreeMapColorBy', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TreeMapWidgetDefinition` initialize method" @@ -123,6 +129,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @requests.nil? @@ -137,6 +144,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @requests.nil? return false if @type.nil? @@ -144,7 +152,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -157,20 +166,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [color_by, group_by, requests, size_by, title, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -178,6 +190,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -198,9 +211,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -249,18 +263,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -277,8 +294,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb b/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb index 8da611db9c71..4307ad62289d 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_definition_type.rb @@ -22,15 +22,17 @@ class TreeMapWidgetDefinitionType TREEMAP = "treemap".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = TreeMapWidgetDefinitionType.constants.select { |c| TreeMapWidgetDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb index 57c92653357d..dd35248a81e4 100644 --- a/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +++ b/lib/datadog_api_client/v1/models/tree_map_widget_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # An updated treemap widget. class TreeMapWidgetRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of formulas that operate on queries. **This feature is currently in beta.** @@ -35,6 +36,7 @@ class TreeMapWidgetRequest attr_accessor :response_format # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'formulas' => :'formulas', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'formulas' => :'Array', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TreeMapWidgetRequest` initialize method" @@ -103,6 +109,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -111,12 +118,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [formulas, q, queries, response_format].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb index 1fac294d535e..e41e75c4d02e 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The number of analyzed logs for each hour for a given organization. class UsageAnalyzedLogsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of analyzed logs. @@ -35,6 +36,7 @@ class UsageAnalyzedLogsHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'analyzed_logs' => :'analyzed_logs', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'analyzed_logs' => :'Integer', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAnalyzedLogsHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [analyzed_logs, hour, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb index 2e4f3084658a..f50851c29d41 100644 --- a/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # A response containing the number of analyzed logs for each hour for a given organization. class UsageAnalyzedLogsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for analyzed logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAnalyzedLogsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb index 33f0141e732d..f2e7d21e3ac8 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The object containing the aggregates. class UsageAttributionAggregatesBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregate type. @@ -32,6 +33,7 @@ class UsageAttributionAggregatesBody attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agg_type' => :'agg_type', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agg_type' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionAggregatesBody` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agg_type, field, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_attribution_body.rb b/lib/datadog_api_client/v1/models/usage_attribution_body.rb index 1f2b9041878a..6de070e14034 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_body.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_body.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Usage Summary by tag for a given organization. class UsageAttributionBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]. @@ -44,6 +45,7 @@ class UsageAttributionBody attr_accessor :values # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'month' => :'month', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'month' => :'Time', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionBody` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [month, org_name, public_id, tag_config_source, tags, updated_at, values].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb index ebb5e33203ad..d612a2ce55f5 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageAttributionMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of available aggregates. @@ -29,6 +30,7 @@ class UsageAttributionMetadata attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregates' => :'aggregates', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregates' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionMetadata` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregates, pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb index 881a478f6e71..86de1a054e9d 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_pagination.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The metadata for the current pagination. class UsageAttributionPagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Maximum amount of records to be returned. @@ -38,6 +39,7 @@ class UsageAttributionPagination attr_accessor :total_number_of_records # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'limit' => :'limit', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'limit' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionPagination` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [limit, offset, sort_direction, sort_name, total_number_of_records].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_attribution_response.rb b/lib/datadog_api_client/v1/models/usage_attribution_response.rb index 6b02a5161dc0..3a20dfce8c5c 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_response.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response containing the Usage Summary by tag(s). class UsageAttributionResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing document metadata. @@ -29,6 +30,7 @@ class UsageAttributionResponse attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metadata' => :'metadata', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metadata' => :'UsageAttributionMetadata', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metadata, usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb index b9db81fbac7a..e96c5b70824f 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_sort.rb @@ -43,15 +43,17 @@ class UsageAttributionSort LAMBDA_PERCENTAGE = "lambda_percentage".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsageAttributionSort.constants.select { |c| UsageAttributionSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb index 1eca7fa6df86..84beddec0765 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb @@ -56,15 +56,17 @@ class UsageAttributionSupportedMetrics ALL = "*".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsageAttributionSupportedMetrics.constants.select { |c| UsageAttributionSupportedMetrics::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/usage_attribution_values.rb b/lib/datadog_api_client/v1/models/usage_attribution_values.rb index 303feddd5f5e..d2e5370ead12 100644 --- a/lib/datadog_api_client/v1/models/usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/usage_attribution_values.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Fields in Usage Summary by tag(s). class UsageAttributionValues # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The percentage of synthetic API test usage by tag(s). @@ -147,6 +148,7 @@ class UsageAttributionValues attr_accessor :snmp_usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'api_percentage' => :'api_percentage', @@ -193,11 +195,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'api_percentage' => :'Float', @@ -244,13 +248,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionValues` initialize method" @@ -427,6 +433,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -435,12 +442,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -487,20 +496,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [api_percentage, api_usage, apm_host_percentage, apm_host_usage, browser_percentage, browser_usage, container_percentage, container_usage, cspm_container_percentage, cspm_container_usage, cspm_host_percentage, cspm_host_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_container_percentage, cws_container_usage, cws_host_percentage, cws_host_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, lambda_percentage, lambda_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -508,6 +520,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -528,9 +541,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -579,18 +593,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -607,8 +624,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb index 547ad580a783..f46886078e70 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Audit logs usage for a given organization for a given hour. class UsageAuditLogsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageAuditLogsHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAuditLogsHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, lines_indexed, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb index dc15c0fbb1a8..0cc0ace7b693 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the audit logs usage for each hour for a given organization. class UsageAuditLogsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for audit logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAuditLogsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb index 380a401a4502..0bd83557a699 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response with properties for each aggregated usage type. class UsageBillableSummaryBody # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The total account usage. @@ -44,6 +45,7 @@ class UsageBillableSummaryBody attr_accessor :usage_unit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_billable_usage' => :'account_billable_usage', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_billable_usage' => :'Integer', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryBody` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_billable_usage, elapsed_usage_hours, first_billable_usage_hour, last_billable_usage_hour, org_billable_usage, percentage_in_account, usage_unit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb index 0b3af5efaeb9..5c9570c3a969 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response with monthly summary of data billed by Datadog. class UsageBillableSummaryHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The billing plan. @@ -47,6 +48,7 @@ class UsageBillableSummaryHour attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'billing_plan' => :'billing_plan', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'billing_plan' => :'String', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryHour` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -143,12 +150,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [billing_plan, end_date, num_orgs, org_name, public_id, ratio_in_month, start_date, usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb index 2675f7fb27d7..d7593738bf6b 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response with aggregated usage types. class UsageBillableSummaryKeys # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Response with properties for each aggregated usage type. @@ -119,6 +120,7 @@ class UsageBillableSummaryKeys attr_accessor :timeseries_average # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'apm_host_sum' => :'apm_host_sum', @@ -157,11 +159,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'apm_host_sum' => :'UsageBillableSummaryBody', @@ -200,13 +204,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryKeys` initialize method" @@ -351,6 +357,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -359,12 +366,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -403,20 +412,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [apm_host_sum, apm_host_top99p, apm_trace_search_sum, fargate_container_average, infra_container_sum, infra_host_sum, infra_host_top99p, iot_top99p, lambda_function_average, logs_indexed_15day_sum, logs_indexed_180day_sum, logs_indexed_30day_sum, logs_indexed_3day_sum, logs_indexed_45day_sum, logs_indexed_60day_sum, logs_indexed_7day_sum, logs_indexed_90day_sum, logs_indexed_custom_retention_sum, logs_indexed_sum, logs_ingested_sum, network_device_top99p, npm_flow_sum, npm_host_sum, npm_host_top99p, prof_container_sum, prof_host_top99p, rum_sum, serverless_invocation_sum, siem_sum, synthetics_api_tests_sum, synthetics_browser_checks_sum, timeseries_average].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -424,6 +436,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -444,9 +457,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -495,18 +509,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -523,8 +540,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb index 4810b037e998..5904fbccce27 100644 --- a/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_billable_summary_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response with monthly summary of data billed by Datadog. class UsageBillableSummaryResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of objects regarding usage of billable summary. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageBillableSummaryResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb index 363e46488c4a..110252109bd8 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Cloud Security Posture Management usage for a given organization for a given hour. class UsageCloudSecurityPostureManagementHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of Cloud Security Posture Management Azure app services hosts during a given hour. @@ -47,6 +48,7 @@ class UsageCloudSecurityPostureManagementHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aas_host_count' => :'aas_host_count', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aas_host_count' => :'Float', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementHour` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -143,12 +150,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aas_host_count, azure_host_count, compliance_host_count, container_count, host_count, hour, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb index cef30d658e40..48244420aaed 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The response containing the Cloud Security Posture Management usage for each hour for a given organization. class UsageCloudSecurityPostureManagementResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Cloud Security Posture Management. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCloudSecurityPostureManagementResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb index fe3e762c6dfb..fee2f5f33173 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The response containing attributes for custom reports. class UsageCustomReportsAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The date the specified custom report was computed. @@ -38,6 +39,7 @@ class UsageCustomReportsAttributes attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'computed_on' => :'computed_on', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'computed_on' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsAttributes` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -118,12 +125,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -135,20 +144,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [computed_on, end_date, size, start_date, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -156,6 +168,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -176,9 +189,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -227,18 +241,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -255,8 +272,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb index e2ad24d5bc88..8deaa65f8190 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The response containing the date and type for custom reports. class UsageCustomReportsData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The response containing attributes for custom reports. @@ -32,6 +33,7 @@ class UsageCustomReportsData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'UsageCustomReportsAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb index 8fd770764543..68a5439ab0a6 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageCustomReportsMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing page total count. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'UsageCustomReportsPage' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb index dffa5b8e133b..964b0e28101b 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_page.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The object containing page total count. class UsageCustomReportsPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total page count. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_count' => :'total_count' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_count' => :'Integer' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsPage` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb index 27208dc0b868..a4f457b69aec 100644 --- a/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_custom_reports_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response containing available custom reports. class UsageCustomReportsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of available custom reports. @@ -29,6 +30,7 @@ class UsageCustomReportsResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCustomReportsResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_cws_hour.rb b/lib/datadog_api_client/v1/models/usage_cws_hour.rb index 56a2ce58481c..08d22558b62a 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Cloud Workload Security usage for a given organization for a given hour. class UsageCWSHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. @@ -38,6 +39,7 @@ class UsageCWSHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cws_container_count' => :'cws_container_count', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cws_container_count' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCWSHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cws_container_count, cws_host_count, hour, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_cws_response.rb b/lib/datadog_api_client/v1/models/usage_cws_response.rb index f175068af529..8d1643b7daf5 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_response.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the Cloud Workload Security usage for each hour for a given organization. class UsageCWSResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Cloud Workload Security. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageCWSResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb index 77e0ac8758e7..39215c8ee399 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Database Monitoring usage for a given organization for a given hour. class UsageDBMHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. @@ -38,6 +39,7 @@ class UsageDBMHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dbm_host_count' => :'dbm_host_count', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dbm_host_count' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageDBMHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dbm_host_count, dbm_queries_count, hour, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_dbm_response.rb b/lib/datadog_api_client/v1/models/usage_dbm_response.rb index 00e7c69ca061..a42acf4ae312 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_response.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the Database Monitoring usage for each hour for a given organization. class UsageDBMResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Database Monitoring attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageDBMResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb index 6951e01e0983..cb9916d94eb6 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of Fargate tasks run and hourly usage. class UsageFargateHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The average profiled task count for Fargate Profiling. @@ -38,6 +39,7 @@ class UsageFargateHour attr_accessor :tasks_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'avg_profiled_fargate_tasks' => :'avg_profiled_fargate_tasks', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'avg_profiled_fargate_tasks' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageFargateHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [avg_profiled_fargate_tasks, hour, org_name, public_id, tasks_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_fargate_response.rb b/lib/datadog_api_client/v1/models/usage_fargate_response.rb index bfd04d517501..efeba61c966d 100644 --- a/lib/datadog_api_client/v1/models/usage_fargate_response.rb +++ b/lib/datadog_api_client/v1/models/usage_fargate_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of Fargate tasks run and hourly usage. class UsageFargateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array with the number of hourly Fargate tasks recorded for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageFargateResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_host_hour.rb b/lib/datadog_api_client/v1/models/usage_host_hour.rb index 64fff3d96ff3..08c588b280cc 100644 --- a/lib/datadog_api_client/v1/models/usage_host_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_host_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of hosts/containers recorded for each hour for a given organization. class UsageHostHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the total number of infrastructure hosts reporting @@ -74,6 +75,7 @@ class UsageHostHour attr_accessor :vsphere_host_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agent_host_count' => :'agent_host_count', @@ -94,11 +96,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agent_host_count' => :'Integer', @@ -119,13 +123,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageHostHour` initialize method" @@ -198,6 +204,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -206,12 +213,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -232,20 +241,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agent_host_count, alibaba_host_count, apm_azure_app_service_host_count, apm_host_count, aws_host_count, azure_host_count, container_count, gcp_host_count, heroku_host_count, host_count, hour, infra_azure_app_service, opentelemetry_host_count, vsphere_host_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -253,6 +265,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -273,9 +286,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -324,18 +338,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -352,8 +369,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_hosts_response.rb index 377a1bcf0084..e37536784993 100644 --- a/lib/datadog_api_client/v1/models/usage_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_hosts_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Host usage response. class UsageHostsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of objects related to host usage. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageHostsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb index b2fe89ff24a0..75d25b9ca94f 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Incident management usage for a given organization for a given hour. class UsageIncidentManagementHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageIncidentManagementHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIncidentManagementHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, monthly_active_users, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb index 052e06b28e64..fb4157a981fa 100644 --- a/lib/datadog_api_client/v1/models/usage_incident_management_response.rb +++ b/lib/datadog_api_client/v1/models/usage_incident_management_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the incident management usage for each hour for a given organization. class UsageIncidentManagementResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for incident management. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIncidentManagementResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb index 0a57d8f2a7d6..484da4484842 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The hours of indexed spans usage. class UsageIndexedSpansHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageIndexedSpansHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIndexedSpansHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, indexed_events_count, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb index 0bf06d76a851..334ea951009d 100644 --- a/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_indexed_spans_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # A response containing indexed spans usage. class UsageIndexedSpansResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array with the number of hourly traces indexed for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIndexedSpansResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb index 5d2a39190cda..681c1d1cdabc 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Ingested spans usage for a given organization for a given hour. class UsageIngestedSpansHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageIngestedSpansHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIngestedSpansHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, ingested_events_bytes, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb index af309df06aeb..57e2bfe1b11f 100644 --- a/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb +++ b/lib/datadog_api_client/v1/models/usage_ingested_spans_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the ingested spans usage for each hour for a given organization. class UsageIngestedSpansResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for ingested spans. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIngestedSpansResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb index 74a6b5b96bf1..b95eb60e8d3e 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # IoT usage for a given organization for a given hour. class UsageIoTHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageIoTHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIoTHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, iot_device_count, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_io_t_response.rb b/lib/datadog_api_client/v1/models/usage_io_t_response.rb index 0f2ad4ccd9c2..0a8c5054a90f 100644 --- a/lib/datadog_api_client/v1/models/usage_io_t_response.rb +++ b/lib/datadog_api_client/v1/models/usage_io_t_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the IoT usage for each hour for a given organization. class UsageIoTResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for IoT. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageIoTResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb index e807e87792bf..4cef89295e74 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_hour.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V1 # for each hour for a given organization. class UsageLambdaHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of different functions for each region and AWS account. @@ -33,6 +34,7 @@ class UsageLambdaHour attr_accessor :invocations_sum # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'func_count' => :'func_count', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'func_count' => :'Integer', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLambdaHour` initialize method" @@ -91,6 +97,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -99,12 +106,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -114,20 +123,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [func_count, hour, invocations_sum].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -135,6 +147,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -155,9 +168,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -206,18 +220,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -234,8 +251,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_lambda_response.rb b/lib/datadog_api_client/v1/models/usage_lambda_response.rb index 21600c361bfa..fbb894d1b43d 100644 --- a/lib/datadog_api_client/v1/models/usage_lambda_response.rb +++ b/lib/datadog_api_client/v1/models/usage_lambda_response.rb @@ -21,12 +21,14 @@ module DatadogAPIClient::V1 # for each hour for a given organization. class UsageLambdaResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Lambda. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLambdaResponse` initialize method" @@ -75,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -83,12 +90,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -96,20 +105,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -117,6 +129,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -137,9 +150,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -188,18 +202,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -216,8 +233,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb index 903118d9fd3e..49f40372cb58 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of indexed logs for each hour and index for a given organization. class UsageLogsByIndexHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The total number of indexed logs for the queried hour. @@ -38,6 +39,7 @@ class UsageLogsByIndexHour attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'event_count' => :'event_count', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'event_count' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByIndexHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [event_count, hour, index_id, index_name, retention].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb index caef4179df3b..f5e9e9353faa 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_index_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of indexed logs for each hour and index for a given organization. class UsageLogsByIndexResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of objects regarding hourly usage of logs by index response. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByIndexResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb index 7b55b54cbc00..01919bfe238f 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The number of indexed logs for each hour for a given organization broken down by retention period. class UsageLogsByRetentionHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total logs indexed with this retention period during a given hour. @@ -35,6 +36,7 @@ class UsageLogsByRetentionHour attr_accessor :retention # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'indexed_events_count' => :'indexed_events_count', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'indexed_events_count' => :'Integer', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByRetentionHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [indexed_events_count, live_indexed_events_count, rehydrated_indexed_events_count, retention].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb index a21289dac2eb..b49fea13d6ff 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the indexed logs usage broken down by retention period for an organization during a given hour. class UsageLogsByRetentionResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for indexed logs by retention period. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsByRetentionResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_logs_hour.rb index 70a9fdd6084d..394f6d6f1de1 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Hour usage for logs. class UsageLogsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of billable log bytes ingested. @@ -47,6 +48,7 @@ class UsageLogsHour attr_accessor :logs_rehydrated_ingested_bytes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'billable_ingested_bytes' => :'billable_ingested_bytes', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'billable_ingested_bytes' => :'Integer', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsHour` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -143,12 +150,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [billable_ingested_bytes, hour, indexed_events_count, ingested_events_bytes, logs_live_indexed_count, logs_live_ingested_bytes, logs_rehydrated_indexed_count, logs_rehydrated_ingested_bytes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_logs_response.rb b/lib/datadog_api_client/v1/models/usage_logs_response.rb index dffcf207f1e3..b9e579831f11 100644 --- a/lib/datadog_api_client/v1/models/usage_logs_response.rb +++ b/lib/datadog_api_client/v1/models/usage_logs_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of logs for each hour. class UsageLogsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of objects regarding hourly usage of logs. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageLogsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_metric_category.rb b/lib/datadog_api_client/v1/models/usage_metric_category.rb index c93a57962537..6b786d75bc8a 100644 --- a/lib/datadog_api_client/v1/models/usage_metric_category.rb +++ b/lib/datadog_api_client/v1/models/usage_metric_category.rb @@ -23,15 +23,17 @@ class UsageMetricCategory CUSTOM = "custom".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsageMetricCategory.constants.select { |c| UsageMetricCategory::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb index a1731964e297..f21672c3eaf9 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of netflow events indexed for each hour for a given organization. class UsageNetworkFlowsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -29,6 +30,7 @@ class UsageNetworkFlowsHour attr_accessor :indexed_events_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkFlowsHour` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, indexed_events_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb index 48af8f64aa8d..ce2b4ada6e8e 100644 --- a/lib/datadog_api_client/v1/models/usage_network_flows_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_flows_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of netflow events indexed for each hour for a given organization. class UsageNetworkFlowsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Network Flows. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkFlowsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb index 323ae7d90759..66cd8080c39b 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of active NPM hosts for each hour for a given organization. class UsageNetworkHostsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of active NPM hosts. @@ -29,6 +30,7 @@ class UsageNetworkHostsHour attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'host_count' => :'host_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'host_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkHostsHour` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [host_count, hour].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb index daa1b5490def..d363d7abe736 100644 --- a/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb +++ b/lib/datadog_api_client/v1/models/usage_network_hosts_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of active NPM hosts for each hour for a given organization. class UsageNetworkHostsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for NPM hosts. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageNetworkHostsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb index d76c179c53ec..b214317078c5 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The number of profiled hosts for each hour for a given organization. class UsageProfilingHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get average number of container agents for that hour. @@ -38,6 +39,7 @@ class UsageProfilingHour attr_accessor :public_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'avg_container_agent_count' => :'avg_container_agent_count', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'avg_container_agent_count' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageProfilingHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [avg_container_agent_count, host_count, hour, org_name, public_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_profiling_response.rb b/lib/datadog_api_client/v1/models/usage_profiling_response.rb index 5c052fb3335c..9bb1e95074f4 100644 --- a/lib/datadog_api_client/v1/models/usage_profiling_response.rb +++ b/lib/datadog_api_client/v1/models/usage_profiling_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of profiled hosts for each hour for a given organization. class UsageProfilingResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for profiled hosts. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageProfilingResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_reports_type.rb b/lib/datadog_api_client/v1/models/usage_reports_type.rb index ebe06e86dc3f..94e54d88ab0f 100644 --- a/lib/datadog_api_client/v1/models/usage_reports_type.rb +++ b/lib/datadog_api_client/v1/models/usage_reports_type.rb @@ -22,15 +22,17 @@ class UsageReportsType REPORTS = "reports".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsageReportsType.constants.select { |c| UsageReportsType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb index 239886e5fd97..cb461e17d1f1 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of RUM Sessions recorded for each hour for a given organization. class UsageRumSessionsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -44,6 +45,7 @@ class UsageRumSessionsHour attr_accessor :session_count_ios # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumSessionsHour` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, org_name, public_id, replay_session_count, session_count, session_count_android, session_count_ios].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb index e27b8a277aaa..b48c2b8ee037 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of RUM Sessions for each hour for a given organization. class UsageRumSessionsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for RUM Sessions. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumSessionsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb index 909335ffa8ba..608aeb4f7317 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of RUM Units used for each hour for a given organization (data available as of November 1, 2021). class UsageRumUnitsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The number of browser RUM units. @@ -38,6 +39,7 @@ class UsageRumUnitsHour attr_accessor :rum_units # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'browser_rum_units' => :'browser_rum_units', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'browser_rum_units' => :'Integer', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [browser_rum_units, mobile_rum_units, org_name, public_id, rum_units].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb index 86cf4e7a87b8..a20fd8b82ca0 100644 --- a/lib/datadog_api_client/v1/models/usage_rum_units_response.rb +++ b/lib/datadog_api_client/v1/models/usage_rum_units_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of RUM Units for each hour for a given organization. class UsageRumUnitsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for RUM Units. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageRumUnitsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_sds_hour.rb b/lib/datadog_api_client/v1/models/usage_sds_hour.rb index e674aa9114ca..9312abba62bf 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Sensitive Data Scanner usage for a given organization for a given hour. class UsageSDSHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -38,6 +39,7 @@ class UsageSDSHour attr_accessor :total_scanned_bytes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSDSHour` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, logs_scanned_bytes, org_name, public_id, total_scanned_bytes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_sds_response.rb b/lib/datadog_api_client/v1/models/usage_sds_response.rb index b2efeef53930..07f41315c6c0 100644 --- a/lib/datadog_api_client/v1/models/usage_sds_response.rb +++ b/lib/datadog_api_client/v1/models/usage_sds_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the Sensitive Data Scanner usage for each hour for a given organization. class UsageSDSResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Sensitive Data Scanner. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSDSResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb index 1be8ca0babe2..8e3405ce29a9 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The number of SNMP devices for each hour for a given organization. class UsageSNMPHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageSNMPHour attr_accessor :snmp_devices # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSNMPHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, org_name, public_id, snmp_devices].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_snmp_response.rb b/lib/datadog_api_client/v1/models/usage_snmp_response.rb index 3582663d9c48..daea46e83950 100644 --- a/lib/datadog_api_client/v1/models/usage_snmp_response.rb +++ b/lib/datadog_api_client/v1/models/usage_snmp_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of SNMP devices for each hour for a given organization. class UsageSNMPResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for SNMP devices. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSNMPResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_sort.rb b/lib/datadog_api_client/v1/models/usage_sort.rb index ee034537b3c2..dbb448056812 100644 --- a/lib/datadog_api_client/v1/models/usage_sort.rb +++ b/lib/datadog_api_client/v1/models/usage_sort.rb @@ -25,15 +25,17 @@ class UsageSort END_DATE = "end_date".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsageSort.constants.select { |c| UsageSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/usage_sort_direction.rb b/lib/datadog_api_client/v1/models/usage_sort_direction.rb index 5f942f7170dd..2d297e787738 100644 --- a/lib/datadog_api_client/v1/models/usage_sort_direction.rb +++ b/lib/datadog_api_client/v1/models/usage_sort_direction.rb @@ -23,15 +23,17 @@ class UsageSortDirection ASC = "asc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsageSortDirection.constants.select { |c| UsageSortDirection::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb index 1853fe6e2f8e..e45a32aab2dd 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The response containing attributes for specified custom reports. class UsageSpecifiedCustomReportsAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The date the specified custom report was computed. @@ -41,6 +42,7 @@ class UsageSpecifiedCustomReportsAttributes attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'computed_on' => :'computed_on', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'computed_on' => :'String', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsAttributes` initialize method" @@ -119,6 +125,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -127,12 +134,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -145,20 +154,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [computed_on, end_date, location, size, start_date, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -166,6 +178,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -186,9 +199,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -237,18 +251,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -265,8 +282,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb index 0fb5c584dd68..77b91d005a22 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response containing date and type for specified custom reports. class UsageSpecifiedCustomReportsData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The response containing attributes for specified custom reports. @@ -32,6 +33,7 @@ class UsageSpecifiedCustomReportsData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'UsageSpecifiedCustomReportsAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb index 2e7d9453feeb..f4bc933bf075 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageSpecifiedCustomReportsMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing page total count for specified ID. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'UsageSpecifiedCustomReportsPage' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb index a6d78ec91cfd..36b2a7d6244d 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_page.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # The object containing page total count for specified ID. class UsageSpecifiedCustomReportsPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total page count. attr_accessor :total_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_count' => :'total_count' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_count' => :'Integer' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsPage` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb index 43ee75d57a4d..d3b3816f273f 100644 --- a/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb +++ b/lib/datadog_api_client/v1/models/usage_specified_custom_reports_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Returns available specified custom reports. class UsageSpecifiedCustomReportsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Response containing date and type for specified custom reports. @@ -29,6 +30,7 @@ class UsageSpecifiedCustomReportsResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'UsageSpecifiedCustomReportsData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSpecifiedCustomReportsResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index 95416c1a68a2..0be022f08d42 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response with hourly report of all data billed by Datadog all organizations. class UsageSummaryDate # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. @@ -194,6 +195,7 @@ class UsageSummaryDate attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agent_host_top99p' => :'agent_host_top99p', @@ -257,11 +259,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agent_host_top99p' => :'Integer', @@ -325,13 +329,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDate` initialize method" @@ -578,6 +584,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -586,12 +593,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -655,20 +664,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, container_avg, container_hwm, cspm_aas_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, date, dbm_host_top99p, dbm_queries_count_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, orgs, profiling_host_top99p, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -676,6 +688,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -696,9 +709,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -747,18 +761,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -775,8 +792,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index ca603c93de39..20fea35e72ff 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Global hourly report of all data billed by Datadog for a given organization. class UsageSummaryDateOrg # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. @@ -197,6 +198,7 @@ class UsageSummaryDateOrg attr_accessor :vsphere_host_top99p # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agent_host_top99p' => :'agent_host_top99p', @@ -261,11 +263,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agent_host_top99p' => :'Integer', @@ -330,13 +334,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryDateOrg` initialize method" @@ -585,6 +591,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -593,12 +600,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -663,20 +672,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agent_host_top99p, apm_azure_app_service_host_top99p, apm_host_top99p, audit_logs_lines_indexed_sum, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, container_avg, container_hwm, cspm_aas_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_host_top99p, dbm_host_top99p_sum, dbm_queries_avg_sum, fargate_tasks_count_avg, fargate_tasks_count_hwm, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, indexed_events_count_sum, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, netflow_indexed_events_count_sum, npm_host_top99p, opentelemetry_host_top99p, profiling_host_top99p, public_id, rum_browser_and_mobile_session_count, rum_session_count_sum, rum_total_session_count_sum, rum_units_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, vsphere_host_top99p].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -684,6 +696,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -704,9 +717,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -755,18 +769,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -783,8 +800,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index 5ae690b58b18..dbd7126a4885 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response summarizing all usage aggregated across the months in the request for all organizations, and broken down by month and by organization. class UsageSummaryResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations. @@ -221,6 +222,7 @@ class UsageSummaryResponse attr_accessor :vsphere_host_top99p_sum # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'agent_host_top99p_sum' => :'agent_host_top99p_sum', @@ -293,11 +295,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'agent_host_top99p_sum' => :'Integer', @@ -370,13 +374,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSummaryResponse` initialize method" @@ -659,6 +665,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -667,12 +674,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -745,20 +754,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_host_top99p_sum, audit_logs_lines_indexed_agg_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, container_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_logs_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, usage, vsphere_host_top99p_sum].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -766,6 +778,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -786,9 +799,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -837,18 +851,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -865,8 +882,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb index a2c44df43747..b1dca16fa8ab 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsAPIHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of Synthetics API tests run. @@ -29,6 +30,7 @@ class UsageSyntheticsAPIHour attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check_calls_count' => :'check_calls_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check_calls_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsAPIHour` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check_calls_count, hour].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb index 9906f4d73404..2e8bed6bba98 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_api_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsAPIResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Synthetics API tests. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsAPIResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb index 39bd5b1a23d5..6c5c8d560e7d 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of Synthetics Browser tests run for each hour for a given organization. class UsageSyntheticsBrowserHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of Synthetics Browser tests run. @@ -29,6 +30,7 @@ class UsageSyntheticsBrowserHour attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'browser_check_calls_count' => :'browser_check_calls_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'browser_check_calls_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsBrowserHour` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [browser_check_calls_count, hour].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb index 5b01eb6312ca..916e2ad5a61f 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_browser_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics Browser tests run for each hour for a given organization. class UsageSyntheticsBrowserResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Get hourly usage for Synthetics Browser tests. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsBrowserResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb index 607465077d6e..ef281e6ccbe2 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The number of synthetics tests run for each hour for a given organization. class UsageSyntheticsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Contains the number of Synthetics API tests run. @@ -29,6 +30,7 @@ class UsageSyntheticsHour attr_accessor :hour # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'check_calls_count' => :'check_calls_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'check_calls_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsHour` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [check_calls_count, hour].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb index 8f8bd0b7ed32..e588b3059ff9 100644 --- a/lib/datadog_api_client/v1/models/usage_synthetics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_synthetics_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing the number of Synthetics API tests run for each hour for a given organization. class UsageSyntheticsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array with the number of hourly Synthetics test run for a given organization. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageSyntheticsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb index 05d1e2133866..ee21d8f4605c 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The hourly usage of timeseries. class UsageTimeseriesHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The hour for the usage. @@ -35,6 +36,7 @@ class UsageTimeseriesHour attr_accessor :num_custom_timeseries # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'hour' => :'hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'hour' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTimeseriesHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [hour, num_custom_input_timeseries, num_custom_output_timeseries, num_custom_timeseries].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb index 391afb0eec79..647a0ca56fee 100644 --- a/lib/datadog_api_client/v1/models/usage_timeseries_response.rb +++ b/lib/datadog_api_client/v1/models/usage_timeseries_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Response containing hourly usage of timeseries. class UsageTimeseriesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of objects regarding hourly usage of timeseries. attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'usage' => :'usage' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'usage' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTimeseriesResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb index 612cbcc71d7c..0a84c094143f 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_hour.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Number of hourly recorded custom metrics for a given organization. class UsageTopAvgMetricsHour # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Average number of timeseries per hour in which the metric occurs. @@ -35,6 +36,7 @@ class UsageTopAvgMetricsHour attr_accessor :metric_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'avg_metric_hour' => :'avg_metric_hour', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'avg_metric_hour' => :'Integer', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsHour` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [avg_metric_hour, max_metric_hour, metric_category, metric_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb index bb2c5486cded..e1b5d10c517d 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The object containing document metadata. class UsageTopAvgMetricsMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The day value from the user request that contains the returned usage data. (If day was used the request) @@ -32,6 +33,7 @@ class UsageTopAvgMetricsMetadata attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'day' => :'day', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'day' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsMetadata` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [day, month, pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb index bf25f33dc196..0a184a0ec678 100644 --- a/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb +++ b/lib/datadog_api_client/v1/models/usage_top_avg_metrics_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Response containing the number of hourly recorded custom metrics for a given organization. class UsageTopAvgMetricsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing document metadata. @@ -29,6 +30,7 @@ class UsageTopAvgMetricsResponse attr_accessor :usage # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'metadata' => :'metadata', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'metadata' => :'UsageTopAvgMetricsMetadata', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageTopAvgMetricsResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [metadata, usage].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/user.rb b/lib/datadog_api_client/v1/models/user.rb index 7721e1b0b2d2..88290a413169 100644 --- a/lib/datadog_api_client/v1/models/user.rb +++ b/lib/datadog_api_client/v1/models/user.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Create, edit, and disable users. class User # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The access role of the user. Options are **st** (standard user), **adm** (admin user), or **ro** (read-only user). @@ -44,6 +45,7 @@ class User attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'access_role' => :'access_role', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'access_role' => :'AccessRole', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::User` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -136,12 +143,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -155,20 +164,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [access_role, disabled, email, handle, icon, name, verified].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -176,6 +188,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -196,9 +209,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -247,18 +261,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -275,8 +292,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/user_disable_response.rb b/lib/datadog_api_client/v1/models/user_disable_response.rb index a16cdd190843..a45d4dd08240 100644 --- a/lib/datadog_api_client/v1/models/user_disable_response.rb +++ b/lib/datadog_api_client/v1/models/user_disable_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Array of user disabled for a given organization. class UserDisableResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Information pertaining to a user disabled for a given organization. attr_accessor :message # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'message' => :'message' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'message' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserDisableResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [message].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/user_list_response.rb b/lib/datadog_api_client/v1/models/user_list_response.rb index 9583007db6f3..6af893117830 100644 --- a/lib/datadog_api_client/v1/models/user_list_response.rb +++ b/lib/datadog_api_client/v1/models/user_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Array of Datadog users for a given organization. class UserListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of users. attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'users' => :'users' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'users' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [users].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/user_response.rb b/lib/datadog_api_client/v1/models/user_response.rb index 4e1c0186f1bf..fc48c82f4d4b 100644 --- a/lib/datadog_api_client/v1/models/user_response.rb +++ b/lib/datadog_api_client/v1/models/user_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # A Datadog User. class UserResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Create, edit, and disable users. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'user' => :'user' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'user' => :'User' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UserResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [user].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/webhooks_integration.rb b/lib/datadog_api_client/v1/models/webhooks_integration.rb index 81f325b78f60..8f7e92c31e5d 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Datadog-Webhooks integration. class WebhooksIntegration # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If `null`, uses no header. @@ -44,6 +45,7 @@ class WebhooksIntegration attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_headers' => :'custom_headers', @@ -55,11 +57,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_headers' => :'String', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegration` initialize method" @@ -116,6 +122,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -130,6 +137,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? return false if @url.nil? @@ -137,7 +145,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -149,20 +158,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_headers, encode_as, name, payload, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -170,6 +182,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -190,9 +203,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -241,18 +255,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -269,8 +286,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb index 9977b277e8b1..942ff556b238 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Custom variable for Webhook integration. class WebhooksIntegrationCustomVariable # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Make custom variable is secret or not. @@ -33,6 +34,7 @@ class WebhooksIntegrationCustomVariable attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_secret' => :'is_secret', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_secret' => :'Boolean', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariable` initialize method" @@ -91,6 +97,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @is_secret.nil? @@ -108,6 +115,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @is_secret.nil? return false if @name.nil? @@ -116,7 +124,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -126,20 +135,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_secret, name, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -147,6 +159,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -167,9 +180,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -218,18 +232,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -246,8 +263,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb index 7f6e3867e598..7783744b5b09 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Custom variable for Webhook integration. class WebhooksIntegrationCustomVariableResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Make custom variable is secret or not. @@ -33,6 +34,7 @@ class WebhooksIntegrationCustomVariableResponse attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_secret' => :'is_secret', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_secret' => :'Boolean', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableResponse` initialize method" @@ -91,6 +97,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @is_secret.nil? @@ -105,6 +112,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @is_secret.nil? return false if @name.nil? @@ -112,7 +120,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -122,20 +131,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_secret, name, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -143,6 +155,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -163,9 +176,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -214,18 +228,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -242,8 +259,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb index e7f49c5f06cf..f4adadb7c9fc 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_update_request.rb @@ -22,6 +22,7 @@ module DatadogAPIClient::V1 # *All properties are optional.* class WebhooksIntegrationCustomVariableUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Make custom variable is secret or not. @@ -35,6 +36,7 @@ class WebhooksIntegrationCustomVariableUpdateRequest attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_secret' => :'is_secret', @@ -44,11 +46,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_secret' => :'Boolean', @@ -58,13 +62,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationCustomVariableUpdateRequest` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -101,12 +108,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -116,20 +125,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_secret, name, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -137,6 +149,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -157,9 +170,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -208,18 +222,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -236,8 +253,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb b/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb index 57919b97378c..9ad095fda47c 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_encoding.rb @@ -23,15 +23,17 @@ class WebhooksIntegrationEncoding FORM = "form".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WebhooksIntegrationEncoding.constants.select { |c| WebhooksIntegrationEncoding::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb index decd0c13c968..2c9a4034bd88 100644 --- a/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb +++ b/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb @@ -22,6 +22,7 @@ module DatadogAPIClient::V1 # *All properties are optional.* class WebhooksIntegrationUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If `null`, uses no header. @@ -46,6 +47,7 @@ class WebhooksIntegrationUpdateRequest attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'custom_headers' => :'custom_headers', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'custom_headers' => :'String', @@ -73,13 +77,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WebhooksIntegrationUpdateRequest` initialize method" @@ -118,6 +124,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -126,12 +133,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -143,20 +152,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [custom_headers, encode_as, name, payload, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -164,6 +176,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -184,9 +197,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -235,18 +249,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -263,8 +280,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget.rb b/lib/datadog_api_client/v1/models/widget.rb index 4a45186b3ecf..80efdfa28340 100644 --- a/lib/datadog_api_client/v1/models/widget.rb +++ b/lib/datadog_api_client/v1/models/widget.rb @@ -25,6 +25,7 @@ module DatadogAPIClient::V1 # - If `reflow_type` is `auto`, `layout` should not be set. class Widget # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # [Definition of the widget](https://docs.datadoghq.com/dashboards/widgets/). @@ -37,6 +38,7 @@ class Widget attr_accessor :layout # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'definition' => :'definition', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'definition' => :'WidgetDefinition', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::Widget` initialize method" @@ -95,6 +101,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @definition.nil? @@ -106,13 +113,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @definition.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -122,20 +131,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [definition, id, layout].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -143,6 +155,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -163,9 +176,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -214,18 +228,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -242,8 +259,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_aggregator.rb b/lib/datadog_api_client/v1/models/widget_aggregator.rb index 6e252ecf1396..532a59f702c5 100644 --- a/lib/datadog_api_client/v1/models/widget_aggregator.rb +++ b/lib/datadog_api_client/v1/models/widget_aggregator.rb @@ -27,15 +27,17 @@ class WidgetAggregator PERCENTILE = "percentile".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetAggregator.constants.select { |c| WidgetAggregator::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_axis.rb b/lib/datadog_api_client/v1/models/widget_axis.rb index 043757936500..1c3111c8539d 100644 --- a/lib/datadog_api_client/v1/models/widget_axis.rb +++ b/lib/datadog_api_client/v1/models/widget_axis.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Axis controls for the widget. class WidgetAxis # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # True includes zero. @@ -38,6 +39,7 @@ class WidgetAxis attr_accessor :scale # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'include_zero' => :'include_zero', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'include_zero' => :'Boolean', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetAxis` initialize method" @@ -114,6 +120,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -122,12 +129,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -139,20 +148,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [include_zero, label, max, min, scale].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -160,6 +172,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -180,9 +193,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -231,18 +245,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -259,8 +276,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_change_type.rb b/lib/datadog_api_client/v1/models/widget_change_type.rb index 7747a7726be4..2da35d9d8075 100644 --- a/lib/datadog_api_client/v1/models/widget_change_type.rb +++ b/lib/datadog_api_client/v1/models/widget_change_type.rb @@ -23,15 +23,17 @@ class WidgetChangeType RELATIVE = "relative".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetChangeType.constants.select { |c| WidgetChangeType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_color_preference.rb b/lib/datadog_api_client/v1/models/widget_color_preference.rb index c076e35fbe41..d3528ceabeb8 100644 --- a/lib/datadog_api_client/v1/models/widget_color_preference.rb +++ b/lib/datadog_api_client/v1/models/widget_color_preference.rb @@ -23,15 +23,17 @@ class WidgetColorPreference TEXT = "text".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetColorPreference.constants.select { |c| WidgetColorPreference::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_comparator.rb b/lib/datadog_api_client/v1/models/widget_comparator.rb index a09f0d902112..0556dc0eb578 100644 --- a/lib/datadog_api_client/v1/models/widget_comparator.rb +++ b/lib/datadog_api_client/v1/models/widget_comparator.rb @@ -25,15 +25,17 @@ class WidgetComparator LESS_THAN_OR_EQUAL_TO = "<=".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetComparator.constants.select { |c| WidgetComparator::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_compare_to.rb b/lib/datadog_api_client/v1/models/widget_compare_to.rb index 5e88c0c87e93..18e2f426341f 100644 --- a/lib/datadog_api_client/v1/models/widget_compare_to.rb +++ b/lib/datadog_api_client/v1/models/widget_compare_to.rb @@ -25,15 +25,17 @@ class WidgetCompareTo MONTH_BEFORE = "month_before".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetCompareTo.constants.select { |c| WidgetCompareTo::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_conditional_format.rb b/lib/datadog_api_client/v1/models/widget_conditional_format.rb index d5766e5b00f6..d82abf3d5e99 100644 --- a/lib/datadog_api_client/v1/models/widget_conditional_format.rb +++ b/lib/datadog_api_client/v1/models/widget_conditional_format.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Define a conditional format for the widget. class WidgetConditionalFormat # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Comparator to apply. @@ -50,6 +51,7 @@ class WidgetConditionalFormat attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'comparator' => :'comparator', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'comparator' => :'WidgetComparator', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetConditionalFormat` initialize method" @@ -144,6 +150,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @comparator.nil? @@ -161,6 +168,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @comparator.nil? return false if @palette.nil? @@ -169,7 +177,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -185,20 +194,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [comparator, custom_bg_color, custom_fg_color, hide_value, image_url, metric, palette, timeframe, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -206,6 +218,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -226,9 +239,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -277,18 +291,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -305,8 +322,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_custom_link.rb b/lib/datadog_api_client/v1/models/widget_custom_link.rb index 4894c8ff914b..e2b4c8cba362 100644 --- a/lib/datadog_api_client/v1/models/widget_custom_link.rb +++ b/lib/datadog_api_client/v1/models/widget_custom_link.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Custom links help you connect a data value to a URL, like a Datadog page or your AWS console. class WidgetCustomLink # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The flag for toggling context menu link visibility. @@ -35,6 +36,7 @@ class WidgetCustomLink attr_accessor :override_label # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'is_hidden' => :'is_hidden', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'is_hidden' => :'Boolean', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetCustomLink` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [is_hidden, label, link, override_label].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_display_type.rb b/lib/datadog_api_client/v1/models/widget_display_type.rb index aa089f74ed65..9b9ddffdaa5e 100644 --- a/lib/datadog_api_client/v1/models/widget_display_type.rb +++ b/lib/datadog_api_client/v1/models/widget_display_type.rb @@ -24,15 +24,17 @@ class WidgetDisplayType LINE = "line".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetDisplayType.constants.select { |c| WidgetDisplayType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_event.rb b/lib/datadog_api_client/v1/models/widget_event.rb index a6000fb9d200..542b4ad78bb6 100644 --- a/lib/datadog_api_client/v1/models/widget_event.rb +++ b/lib/datadog_api_client/v1/models/widget_event.rb @@ -23,6 +23,7 @@ module DatadogAPIClient::V1 # to learn how to build the ``. class WidgetEvent # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Query definition. @@ -32,6 +33,7 @@ class WidgetEvent attr_accessor :tags_execution # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'q' => :'q', @@ -40,11 +42,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'q' => :'String', @@ -53,13 +57,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetEvent` initialize method" @@ -84,6 +90,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @q.nil? @@ -95,13 +102,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @q.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -110,20 +119,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [q, tags_execution].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -131,6 +143,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -151,9 +164,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -202,18 +216,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -230,8 +247,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_event_size.rb b/lib/datadog_api_client/v1/models/widget_event_size.rb index b8112f812cb0..a79ee4762044 100644 --- a/lib/datadog_api_client/v1/models/widget_event_size.rb +++ b/lib/datadog_api_client/v1/models/widget_event_size.rb @@ -23,15 +23,17 @@ class WidgetEventSize LARGE = "l".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetEventSize.constants.select { |c| WidgetEventSize::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_field_sort.rb b/lib/datadog_api_client/v1/models/widget_field_sort.rb index 5026b6cf19a7..4c7507e8923f 100644 --- a/lib/datadog_api_client/v1/models/widget_field_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_field_sort.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Which column and order to sort by class WidgetFieldSort # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Facet path for the column @@ -29,6 +30,7 @@ class WidgetFieldSort attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'column' => :'column', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'column' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFieldSort` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @column.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @column.nil? return false if @order.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [column, order].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_formula.rb b/lib/datadog_api_client/v1/models/widget_formula.rb index c5290376e483..b95b2eb5c270 100644 --- a/lib/datadog_api_client/v1/models/widget_formula.rb +++ b/lib/datadog_api_client/v1/models/widget_formula.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Formula to be used in a widget query. class WidgetFormula # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Expression alias. @@ -38,6 +39,7 @@ class WidgetFormula attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_alias' => :'alias', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_alias' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormula` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @formula.nil? @@ -121,13 +128,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @formula.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -139,20 +148,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_alias, cell_display_mode, conditional_formats, formula, limit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -160,6 +172,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -180,9 +193,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -231,18 +245,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -259,8 +276,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_formula_limit.rb b/lib/datadog_api_client/v1/models/widget_formula_limit.rb index 60f3ea48cc53..bf718d740c2d 100644 --- a/lib/datadog_api_client/v1/models/widget_formula_limit.rb +++ b/lib/datadog_api_client/v1/models/widget_formula_limit.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Options for limiting results returned. class WidgetFormulaLimit # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Number of results to return. @@ -29,6 +30,7 @@ class WidgetFormulaLimit attr_accessor :order # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'count' => :'count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormulaLimit` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [count, order].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_grouping.rb b/lib/datadog_api_client/v1/models/widget_grouping.rb index ed17ec9386d6..57fb5c3f164a 100644 --- a/lib/datadog_api_client/v1/models/widget_grouping.rb +++ b/lib/datadog_api_client/v1/models/widget_grouping.rb @@ -23,15 +23,17 @@ class WidgetGrouping CLUSTER = "cluster".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetGrouping.constants.select { |c| WidgetGrouping::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_horizontal_align.rb b/lib/datadog_api_client/v1/models/widget_horizontal_align.rb index 4501418b0597..6ba3e59dfed5 100644 --- a/lib/datadog_api_client/v1/models/widget_horizontal_align.rb +++ b/lib/datadog_api_client/v1/models/widget_horizontal_align.rb @@ -24,15 +24,17 @@ class WidgetHorizontalAlign RIGHT = "right".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetHorizontalAlign.constants.select { |c| WidgetHorizontalAlign::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_image_sizing.rb b/lib/datadog_api_client/v1/models/widget_image_sizing.rb index e4bfb7389fdf..ed0d394c2d3b 100644 --- a/lib/datadog_api_client/v1/models/widget_image_sizing.rb +++ b/lib/datadog_api_client/v1/models/widget_image_sizing.rb @@ -30,15 +30,17 @@ class WidgetImageSizing CENTER = "center".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetImageSizing.constants.select { |c| WidgetImageSizing::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_layout.rb b/lib/datadog_api_client/v1/models/widget_layout.rb index 3b6cb7bb5574..b7aecc3699a3 100644 --- a/lib/datadog_api_client/v1/models/widget_layout.rb +++ b/lib/datadog_api_client/v1/models/widget_layout.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # The layout for a widget on a `free` or **new dashboard layout** dashboard. class WidgetLayout # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The height of the widget. Should be a non-negative integer. @@ -39,6 +40,7 @@ class WidgetLayout attr_accessor :y # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'height' => :'height', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'height' => :'Integer', @@ -66,13 +70,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetLayout` initialize method" @@ -109,6 +115,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @height.nil? @@ -129,6 +136,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @height.nil? return false if @width.nil? @@ -138,7 +146,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -150,20 +159,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [height, is_column_break, width, x, y].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -171,6 +183,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -191,9 +204,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -242,18 +256,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -270,8 +287,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_layout_type.rb b/lib/datadog_api_client/v1/models/widget_layout_type.rb index 45a213cc3f3b..6c392799bf12 100644 --- a/lib/datadog_api_client/v1/models/widget_layout_type.rb +++ b/lib/datadog_api_client/v1/models/widget_layout_type.rb @@ -22,15 +22,17 @@ class WidgetLayoutType ORDERED = "ordered".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetLayoutType.constants.select { |c| WidgetLayoutType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_line_type.rb b/lib/datadog_api_client/v1/models/widget_line_type.rb index 9b9f806f60d2..fa6552f16e1f 100644 --- a/lib/datadog_api_client/v1/models/widget_line_type.rb +++ b/lib/datadog_api_client/v1/models/widget_line_type.rb @@ -24,15 +24,17 @@ class WidgetLineType SOLID = "solid".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetLineType.constants.select { |c| WidgetLineType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_line_width.rb b/lib/datadog_api_client/v1/models/widget_line_width.rb index 1bb86837fcff..f2dcc8c79454 100644 --- a/lib/datadog_api_client/v1/models/widget_line_width.rb +++ b/lib/datadog_api_client/v1/models/widget_line_width.rb @@ -24,15 +24,17 @@ class WidgetLineWidth THIN = "thin".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetLineWidth.constants.select { |c| WidgetLineWidth::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_live_span.rb b/lib/datadog_api_client/v1/models/widget_live_span.rb index d236db21e2be..1febae6213f2 100644 --- a/lib/datadog_api_client/v1/models/widget_live_span.rb +++ b/lib/datadog_api_client/v1/models/widget_live_span.rb @@ -36,15 +36,17 @@ class WidgetLiveSpan ALERT = "alert".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetLiveSpan.constants.select { |c| WidgetLiveSpan::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_margin.rb b/lib/datadog_api_client/v1/models/widget_margin.rb index 37090d558b64..fb8bcfabecee 100644 --- a/lib/datadog_api_client/v1/models/widget_margin.rb +++ b/lib/datadog_api_client/v1/models/widget_margin.rb @@ -27,15 +27,17 @@ class WidgetMargin LARGE = "large".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetMargin.constants.select { |c| WidgetMargin::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_marker.rb b/lib/datadog_api_client/v1/models/widget_marker.rb index 7bf4a28642ca..9cce7877780d 100644 --- a/lib/datadog_api_client/v1/models/widget_marker.rb +++ b/lib/datadog_api_client/v1/models/widget_marker.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Markers allow you to add visual conditional formatting for your graphs. class WidgetMarker # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Combination of: @@ -39,6 +40,7 @@ class WidgetMarker attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'display_type' => :'display_type', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'display_type' => :'String', @@ -64,13 +68,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetMarker` initialize method" @@ -103,6 +109,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @value.nil? @@ -114,13 +121,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @value.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [display_type, label, time, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_message_display.rb b/lib/datadog_api_client/v1/models/widget_message_display.rb index b37a6e6d03ec..be54dee22180 100644 --- a/lib/datadog_api_client/v1/models/widget_message_display.rb +++ b/lib/datadog_api_client/v1/models/widget_message_display.rb @@ -24,15 +24,17 @@ class WidgetMessageDisplay EXPANDED_LARGE = "expanded-lg".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetMessageDisplay.constants.select { |c| WidgetMessageDisplay::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb b/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb index 241762ba6ea7..a9d5b0f5b4d9 100644 --- a/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb +++ b/lib/datadog_api_client/v1/models/widget_monitor_summary_display_format.rb @@ -24,15 +24,17 @@ class WidgetMonitorSummaryDisplayFormat LIST = "list".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetMonitorSummaryDisplayFormat.constants.select { |c| WidgetMonitorSummaryDisplayFormat::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb b/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb index b482591c902f..08c1b93d1f8f 100644 --- a/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb @@ -36,15 +36,17 @@ class WidgetMonitorSummarySort TRIGGERED_DESCENDING = "triggered,desc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetMonitorSummarySort.constants.select { |c| WidgetMonitorSummarySort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_node_type.rb b/lib/datadog_api_client/v1/models/widget_node_type.rb index 520909dd8a27..bb301f959b19 100644 --- a/lib/datadog_api_client/v1/models/widget_node_type.rb +++ b/lib/datadog_api_client/v1/models/widget_node_type.rb @@ -23,15 +23,17 @@ class WidgetNodeType CONTAINER = "container".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetNodeType.constants.select { |c| WidgetNodeType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_order_by.rb b/lib/datadog_api_client/v1/models/widget_order_by.rb index 3a420eb0af6a..3aa93007b5bc 100644 --- a/lib/datadog_api_client/v1/models/widget_order_by.rb +++ b/lib/datadog_api_client/v1/models/widget_order_by.rb @@ -25,15 +25,17 @@ class WidgetOrderBy PAST = "past".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetOrderBy.constants.select { |c| WidgetOrderBy::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_palette.rb b/lib/datadog_api_client/v1/models/widget_palette.rb index 0e2348d0d6f0..00473a776ec2 100644 --- a/lib/datadog_api_client/v1/models/widget_palette.rb +++ b/lib/datadog_api_client/v1/models/widget_palette.rb @@ -40,15 +40,17 @@ class WidgetPalette BLACK_ON_LIGHT_RED = "black_on_light_red".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetPalette.constants.select { |c| WidgetPalette::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_request_style.rb b/lib/datadog_api_client/v1/models/widget_request_style.rb index 74cf2486fe7d..c6eaa4fbd190 100644 --- a/lib/datadog_api_client/v1/models/widget_request_style.rb +++ b/lib/datadog_api_client/v1/models/widget_request_style.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V1 # Define request widget style. class WidgetRequestStyle # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of lines displayed. @@ -32,6 +33,7 @@ class WidgetRequestStyle attr_accessor :palette # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'line_type' => :'line_type', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'line_type' => :'WidgetLineType', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetRequestStyle` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [line_type, line_width, palette].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb b/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb index 4af2dbd934f5..514d78dfbe84 100644 --- a/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb +++ b/lib/datadog_api_client/v1/models/widget_service_summary_display_format.rb @@ -24,15 +24,17 @@ class WidgetServiceSummaryDisplayFormat THREE_COLUMN = "three_column".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetServiceSummaryDisplayFormat.constants.select { |c| WidgetServiceSummaryDisplayFormat::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_size_format.rb b/lib/datadog_api_client/v1/models/widget_size_format.rb index 3470ea5e28d7..4fd10f6b2db6 100644 --- a/lib/datadog_api_client/v1/models/widget_size_format.rb +++ b/lib/datadog_api_client/v1/models/widget_size_format.rb @@ -24,15 +24,17 @@ class WidgetSizeFormat LARGE = "large".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetSizeFormat.constants.select { |c| WidgetSizeFormat::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_sort.rb b/lib/datadog_api_client/v1/models/widget_sort.rb index 7a013355bbf7..e4092db6ebf5 100644 --- a/lib/datadog_api_client/v1/models/widget_sort.rb +++ b/lib/datadog_api_client/v1/models/widget_sort.rb @@ -23,15 +23,17 @@ class WidgetSort DESCENDING = "desc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetSort.constants.select { |c| WidgetSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_style.rb b/lib/datadog_api_client/v1/models/widget_style.rb index ef7bc0dc116d..9764b0dea248 100644 --- a/lib/datadog_api_client/v1/models/widget_style.rb +++ b/lib/datadog_api_client/v1/models/widget_style.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Widget style definition. class WidgetStyle # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Color palette to apply to the widget. attr_accessor :palette # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'palette' => :'palette' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'palette' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetStyle` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [palette].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_summary_type.rb b/lib/datadog_api_client/v1/models/widget_summary_type.rb index 36db3d332669..3330ac155c4e 100644 --- a/lib/datadog_api_client/v1/models/widget_summary_type.rb +++ b/lib/datadog_api_client/v1/models/widget_summary_type.rb @@ -24,15 +24,17 @@ class WidgetSummaryType COMBINED = "combined".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetSummaryType.constants.select { |c| WidgetSummaryType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_text_align.rb b/lib/datadog_api_client/v1/models/widget_text_align.rb index 02766588f1ab..21800bfd5cb1 100644 --- a/lib/datadog_api_client/v1/models/widget_text_align.rb +++ b/lib/datadog_api_client/v1/models/widget_text_align.rb @@ -24,15 +24,17 @@ class WidgetTextAlign RIGHT = "right".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetTextAlign.constants.select { |c| WidgetTextAlign::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_tick_edge.rb b/lib/datadog_api_client/v1/models/widget_tick_edge.rb index 8223601a64e8..f8ca2b4881ff 100644 --- a/lib/datadog_api_client/v1/models/widget_tick_edge.rb +++ b/lib/datadog_api_client/v1/models/widget_tick_edge.rb @@ -25,15 +25,17 @@ class WidgetTickEdge TOP = "top".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetTickEdge.constants.select { |c| WidgetTickEdge::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_time.rb b/lib/datadog_api_client/v1/models/widget_time.rb index 2a7362211bfc..9a881808d3bb 100644 --- a/lib/datadog_api_client/v1/models/widget_time.rb +++ b/lib/datadog_api_client/v1/models/widget_time.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V1 # Time setting for the widget. class WidgetTime # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The available timeframes depend on the widget you are using. attr_accessor :live_span # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'live_span' => :'live_span' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'live_span' => :'WidgetLiveSpan' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetTime` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [live_span].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v1/models/widget_time_windows.rb b/lib/datadog_api_client/v1/models/widget_time_windows.rb index 82df9af89e29..13e88426e44d 100644 --- a/lib/datadog_api_client/v1/models/widget_time_windows.rb +++ b/lib/datadog_api_client/v1/models/widget_time_windows.rb @@ -29,15 +29,17 @@ class WidgetTimeWindows GLOBAL_TIME = "global_time".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetTimeWindows.constants.select { |c| WidgetTimeWindows::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_vertical_align.rb b/lib/datadog_api_client/v1/models/widget_vertical_align.rb index 72f565ba583f..56dad12741f2 100644 --- a/lib/datadog_api_client/v1/models/widget_vertical_align.rb +++ b/lib/datadog_api_client/v1/models/widget_vertical_align.rb @@ -24,15 +24,17 @@ class WidgetVerticalAlign BOTTOM = "bottom".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetVerticalAlign.constants.select { |c| WidgetVerticalAlign::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_view_mode.rb b/lib/datadog_api_client/v1/models/widget_view_mode.rb index 59e50c958155..da91e59e9e2c 100644 --- a/lib/datadog_api_client/v1/models/widget_view_mode.rb +++ b/lib/datadog_api_client/v1/models/widget_view_mode.rb @@ -24,15 +24,17 @@ class WidgetViewMode BOTH = "both".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetViewMode.constants.select { |c| WidgetViewMode::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v1/models/widget_viz_type.rb b/lib/datadog_api_client/v1/models/widget_viz_type.rb index 8a52b5339c2c..a02e8cdaf4e5 100644 --- a/lib/datadog_api_client/v1/models/widget_viz_type.rb +++ b/lib/datadog_api_client/v1/models/widget_viz_type.rb @@ -23,15 +23,17 @@ class WidgetVizType TOPLIST = "toplist".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = WidgetVizType.constants.select { |c| WidgetVizType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb b/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb index 98b478b31102..9abdb6cb6704 100644 --- a/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb @@ -80,7 +80,7 @@ def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] new_options = opts.merge( :operation => :create_cloud_workload_security_agent_rule, @@ -154,7 +154,7 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] new_options = opts.merge( :operation => :delete_cloud_workload_security_agent_rule, @@ -299,7 +299,7 @@ def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] new_options = opts.merge( :operation => :get_cloud_workload_security_agent_rule, @@ -366,7 +366,7 @@ def list_cloud_workload_security_agent_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRulesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] new_options = opts.merge( :operation => :list_cloud_workload_security_agent_rules, @@ -451,7 +451,7 @@ def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] new_options = opts.merge( :operation => :update_cloud_workload_security_agent_rule, diff --git a/lib/datadog_api_client/v2/models/api_error_response.rb b/lib/datadog_api_client/v2/models/api_error_response.rb index 2f79b31db2ab..3b6a4c32bd55 100644 --- a/lib/datadog_api_client/v2/models/api_error_response.rb +++ b/lib/datadog_api_client/v2/models/api_error_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # API error response. class APIErrorResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of errors. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'errors' => :'errors' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'errors' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIErrorResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @errors.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @errors.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb index 5e080331fe57..02cc52e3511b 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Attributes used to create an API Key. class APIKeyCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_create_data.rb b/lib/datadog_api_client/v2/models/api_key_create_data.rb index 1247d0e79ae7..a3585c6c6088 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object used to create an API key. class APIKeyCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes used to create an API Key. @@ -29,6 +30,7 @@ class APIKeyCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'APIKeyCreateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_create_request.rb b/lib/datadog_api_client/v2/models/api_key_create_request.rb index 8fdd9982933f..4ce02d1c4bb0 100644 --- a/lib/datadog_api_client/v2/models/api_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request used to create an API key. class APIKeyCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object used to create an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'APIKeyCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_relationships.rb b/lib/datadog_api_client/v2/models/api_key_relationships.rb index 3bf12364f17d..da17c3695978 100644 --- a/lib/datadog_api_client/v2/models/api_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/api_key_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Resources related to the API key. class APIKeyRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. @@ -29,6 +30,7 @@ class APIKeyRelationships attr_accessor :modified_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_by' => :'created_by', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_by' => :'RelationshipToUser', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyRelationships` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_by, modified_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_response.rb b/lib/datadog_api_client/v2/models/api_key_response.rb index 4b57b5defea1..d2385f042701 100644 --- a/lib/datadog_api_client/v2/models/api_key_response.rb +++ b/lib/datadog_api_client/v2/models/api_key_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response for retrieving an API key. class APIKeyResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Datadog API key. @@ -29,6 +30,7 @@ class APIKeyResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'FullAPIKey', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb index 26efcf6ee3b4..8e12a0966498 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Attributes used to update an API Key. class APIKeyUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the API key. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_update_data.rb b/lib/datadog_api_client/v2/models/api_key_update_data.rb index 868ff31dd668..b774f7975163 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object used to update an API key. class APIKeyUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes used to update an API Key. @@ -32,6 +33,7 @@ class APIKeyUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'APIKeyUpdateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_key_update_request.rb b/lib/datadog_api_client/v2/models/api_key_update_request.rb index 76f2a30ffe5d..25d1757641d8 100644 --- a/lib/datadog_api_client/v2/models/api_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/api_key_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request used to update an API key. class APIKeyUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object used to update an API key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'APIKeyUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeyUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_keys_response.rb b/lib/datadog_api_client/v2/models/api_keys_response.rb index 31eaad93573a..ac621d417eff 100644 --- a/lib/datadog_api_client/v2/models/api_keys_response.rb +++ b/lib/datadog_api_client/v2/models/api_keys_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response for a list of API keys. class APIKeysResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of API keys. @@ -29,6 +30,7 @@ class APIKeysResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::APIKeysResponse` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/api_keys_sort.rb b/lib/datadog_api_client/v2/models/api_keys_sort.rb index b41ed3560fcc..d6fbf7ce51a8 100644 --- a/lib/datadog_api_client/v2/models/api_keys_sort.rb +++ b/lib/datadog_api_client/v2/models/api_keys_sort.rb @@ -29,15 +29,17 @@ class APIKeysSort NAME_DESCENDING = "-name".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = APIKeysSort.constants.select { |c| APIKeysSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/api_keys_type.rb b/lib/datadog_api_client/v2/models/api_keys_type.rb index 381d72b9178e..7319e971546c 100644 --- a/lib/datadog_api_client/v2/models/api_keys_type.rb +++ b/lib/datadog_api_client/v2/models/api_keys_type.rb @@ -22,15 +22,17 @@ class APIKeysType API_KEYS = "api_keys".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = APIKeysType.constants.select { |c| APIKeysType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb index fcacb473f990..abd950f523f7 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes used to create an application Key. class ApplicationKeyCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the application key. @@ -29,6 +30,7 @@ class ApplicationKeyCreateAttributes attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateAttributes` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name, scopes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_create_data.rb b/lib/datadog_api_client/v2/models/application_key_create_data.rb index 86058ecda5a4..ad70fe1302f0 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object used to create an application key. class ApplicationKeyCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes used to create an application Key. @@ -29,6 +30,7 @@ class ApplicationKeyCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'ApplicationKeyCreateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_create_request.rb b/lib/datadog_api_client/v2/models/application_key_create_request.rb index 7e15f1a57399..f3ed488e1030 100644 --- a/lib/datadog_api_client/v2/models/application_key_create_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request used to create an application key. class ApplicationKeyCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object used to create an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'ApplicationKeyCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_relationships.rb b/lib/datadog_api_client/v2/models/application_key_relationships.rb index a1d4d07b4046..12e7468e8944 100644 --- a/lib/datadog_api_client/v2/models/application_key_relationships.rb +++ b/lib/datadog_api_client/v2/models/application_key_relationships.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Resources related to the application key. class ApplicationKeyRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. attr_accessor :owned_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'owned_by' => :'owned_by' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'owned_by' => :'RelationshipToUser' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyRelationships` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [owned_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_response.rb b/lib/datadog_api_client/v2/models/application_key_response.rb index 4897c24689ef..a4d029355dbf 100644 --- a/lib/datadog_api_client/v2/models/application_key_response.rb +++ b/lib/datadog_api_client/v2/models/application_key_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response for retrieving an application key. class ApplicationKeyResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Datadog application key. @@ -29,6 +30,7 @@ class ApplicationKeyResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'FullApplicationKey', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb index ab1d114d48ef..e5cae8f44e4d 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes used to update an application Key. class ApplicationKeyUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the application key. @@ -29,6 +30,7 @@ class ApplicationKeyUpdateAttributes attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateAttributes` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name, scopes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_update_data.rb b/lib/datadog_api_client/v2/models/application_key_update_data.rb index df5c5756e618..b84834d2f010 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_data.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object used to update an application key. class ApplicationKeyUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes used to update an application Key. @@ -32,6 +33,7 @@ class ApplicationKeyUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'ApplicationKeyUpdateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_key_update_request.rb b/lib/datadog_api_client/v2/models/application_key_update_request.rb index d32201e610d0..11a1d7a72a79 100644 --- a/lib/datadog_api_client/v2/models/application_key_update_request.rb +++ b/lib/datadog_api_client/v2/models/application_key_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request used to update an application key. class ApplicationKeyUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object used to update an application key. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'ApplicationKeyUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ApplicationKeyUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/application_keys_sort.rb b/lib/datadog_api_client/v2/models/application_keys_sort.rb index de482276eafd..5498895ccf47 100644 --- a/lib/datadog_api_client/v2/models/application_keys_sort.rb +++ b/lib/datadog_api_client/v2/models/application_keys_sort.rb @@ -27,15 +27,17 @@ class ApplicationKeysSort NAME_DESCENDING = "-name".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ApplicationKeysSort.constants.select { |c| ApplicationKeysSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/application_keys_type.rb b/lib/datadog_api_client/v2/models/application_keys_type.rb index 9a890831acaa..667fafe0401a 100644 --- a/lib/datadog_api_client/v2/models/application_keys_type.rb +++ b/lib/datadog_api_client/v2/models/application_keys_type.rb @@ -22,15 +22,17 @@ class ApplicationKeysType APPLICATION_KEYS = "application_keys".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ApplicationKeysType.constants.select { |c| ApplicationKeysType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb index f5ee645b51bc..653894de2d73 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A Cloud Workload Security Agent rule returned by the API. class CloudWorkloadSecurityAgentRuleAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The category of the Agent rule. @@ -56,6 +57,7 @@ class CloudWorkloadSecurityAgentRuleAttributes attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'category' => :'category', @@ -73,11 +75,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'category' => :'String', @@ -95,13 +99,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes` initialize method" @@ -162,6 +168,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -170,12 +177,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -193,20 +202,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [category, creation_date, creator, default_rule, description, enabled, expression, name, updated_at, updater, version].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -214,6 +226,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -234,9 +247,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -285,18 +299,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -313,8 +330,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb index 91171a00c1c5..76b552d67d4b 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Create a new Cloud Workload Security Agent rule. class CloudWorkloadSecurityAgentRuleCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The description of the Agent rule. @@ -35,6 +36,7 @@ class CloudWorkloadSecurityAgentRuleCreateAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'description' => :'description', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'description' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @expression.nil? @@ -113,6 +120,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @expression.nil? return false if @name.nil? @@ -120,7 +128,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [description, enabled, expression, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb index acd4711054a1..7143ef616f75 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Create a new Cloud Workload Security Agent rule. @@ -29,6 +30,7 @@ class CloudWorkloadSecurityAgentRuleCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'CloudWorkloadSecurityAgentRuleCreateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb index 0269cf3f6c96..6849cc5d1710 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request object that includes the Agent rule to create. class CloudWorkloadSecurityAgentRuleCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'CloudWorkloadSecurityAgentRuleCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb index 9e78a7dca102..bfb9788ab765 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The attributes of the user who created the Agent rule. class CloudWorkloadSecurityAgentRuleCreatorAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The handle of the user. @@ -29,6 +30,7 @@ class CloudWorkloadSecurityAgentRuleCreatorAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'handle' => :'handle', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'handle' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreatorAttributes` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [handle, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb index cd5be9e8215a..a041082d10b7 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A Cloud Workload Security Agent rule returned by the API. @@ -32,6 +33,7 @@ class CloudWorkloadSecurityAgentRuleData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'CloudWorkloadSecurityAgentRuleAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb index 37ee03e2db4a..d355a33e18f9 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response object that includes an Agent rule. class CloudWorkloadSecurityAgentRuleResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'CloudWorkloadSecurityAgentRuleData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb index f5fcc0f5d758..b65690a634e5 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb @@ -22,15 +22,17 @@ class CloudWorkloadSecurityAgentRuleType AGENT_RULE = "agent_rule".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = CloudWorkloadSecurityAgentRuleType.constants.select { |c| CloudWorkloadSecurityAgentRuleType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb index 7c3e00238e82..350fba235365 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Update an existing Cloud Workload Security Agent rule. class CloudWorkloadSecurityAgentRuleUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The description of the Agent rule. @@ -32,6 +33,7 @@ class CloudWorkloadSecurityAgentRuleUpdateAttributes attr_accessor :expression # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'description' => :'description', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'description' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [description, enabled, expression].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb index 595cd076eb4d..c7d746ca6c22 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single Agent rule. class CloudWorkloadSecurityAgentRuleUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Update an existing Cloud Workload Security Agent rule. @@ -29,6 +30,7 @@ class CloudWorkloadSecurityAgentRuleUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'CloudWorkloadSecurityAgentRuleUpdateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb index f548b8aede79..cce71c6604ef 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request object that includes the Agent rule with the attributes to update. class CloudWorkloadSecurityAgentRuleUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single Agent rule. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'CloudWorkloadSecurityAgentRuleUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb index dab6ee4fb52d..4f91cd495835 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The attributes of the user who last updated the Agent rule. class CloudWorkloadSecurityAgentRuleUpdaterAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The handle of the user. @@ -29,6 +30,7 @@ class CloudWorkloadSecurityAgentRuleUpdaterAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'handle' => :'handle', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'handle' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleUpdaterAttributes` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [handle, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb index 510a1ca69c5f..265afa1f3a1d 100644 --- a/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +++ b/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response object that includes a list of Agent rule. class CloudWorkloadSecurityAgentRulesListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of Agent rules objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRulesListResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/content_encoding.rb b/lib/datadog_api_client/v2/models/content_encoding.rb index c276b8c4bba7..d71a44786d89 100644 --- a/lib/datadog_api_client/v2/models/content_encoding.rb +++ b/lib/datadog_api_client/v2/models/content_encoding.rb @@ -23,15 +23,17 @@ class ContentEncoding DEFLATE = "deflate".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ContentEncoding.constants.select { |c| ContentEncoding::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/creator.rb b/lib/datadog_api_client/v2/models/creator.rb index 6b9b08ad307c..b47cd9553f9c 100644 --- a/lib/datadog_api_client/v2/models/creator.rb +++ b/lib/datadog_api_client/v2/models/creator.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Creator of the object. class Creator # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Email of the creator. @@ -32,6 +33,7 @@ class Creator attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'email' => :'email', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'email' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Creator` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [email, handle, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb index 9936e1af7db4..dabe41474a93 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request containing a list of dashboards to add. class DashboardListAddItemsRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards to add the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboards' => :'dashboards' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboards' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListAddItemsRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboards].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb index ba3eff4d0b39..b038c6f85376 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_add_items_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response containing a list of added dashboards. class DashboardListAddItemsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards added to the dashboard list. attr_accessor :added_dashboards_to_list # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'added_dashboards_to_list' => :'added_dashboards_to_list' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'added_dashboards_to_list' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListAddItemsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [added_dashboards_to_list].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb index 1a92c9a111f2..ba6d53eefe06 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request containing a list of dashboards to delete. class DashboardListDeleteItemsRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards to delete from the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboards' => :'dashboards' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboards' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboards].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb index b2581aef88b7..2c322ddf6de6 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_delete_items_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response containing a list of deleted dashboards. class DashboardListDeleteItemsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards deleted from the dashboard list. attr_accessor :deleted_dashboards_from_list # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'deleted_dashboards_from_list' => :'deleted_dashboards_from_list' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'deleted_dashboards_from_list' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListDeleteItemsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [deleted_dashboards_from_list].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item.rb b/lib/datadog_api_client/v2/models/dashboard_list_item.rb index 5e304b106546..2fa76f3189d2 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creator of the object. @@ -59,6 +60,7 @@ class DashboardListItem attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'author' => :'author', @@ -77,11 +79,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'author' => :'Creator', @@ -100,13 +104,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItem` initialize method" @@ -171,6 +177,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -185,6 +192,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -192,7 +200,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -211,20 +220,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [author, created, icon, id, is_favorite, is_read_only, is_shared, modified, popularity, title, type, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -232,6 +244,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -252,9 +265,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -303,18 +317,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -331,8 +348,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb index d88a15b5c257..58af7dfdd7c9 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItemRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the dashboard. @@ -29,6 +30,7 @@ class DashboardListItemRequest attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItemRequest` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb index f73c61cab59d..cbd99578bc41 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A dashboard within a list. class DashboardListItemResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the dashboard. @@ -29,6 +30,7 @@ class DashboardListItemResponse attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItemResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_items.rb b/lib/datadog_api_client/v2/models/dashboard_list_items.rb index 0a1697feff69..e2e4f2656bbc 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_items.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_items.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Dashboards within a list. class DashboardListItems # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards in the dashboard list. @@ -29,6 +30,7 @@ class DashboardListItems attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboards' => :'dashboards', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboards' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListItems` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @dashboards.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @dashboards.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboards, total].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb index db53f169ea4c..6be2fc02cc0c 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request containing the list of dashboards to update to. class DashboardListUpdateItemsRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards to update the dashboard list to. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboards' => :'dashboards' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboards' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListUpdateItemsRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboards].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb index 1ecf779a1526..fa394c2154b4 100644 --- a/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb +++ b/lib/datadog_api_client/v2/models/dashboard_list_update_items_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response containing a list of updated dashboards. class DashboardListUpdateItemsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of dashboards in the dashboard list. attr_accessor :dashboards # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'dashboards' => :'dashboards' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'dashboards' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DashboardListUpdateItemsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [dashboards].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/dashboard_type.rb b/lib/datadog_api_client/v2/models/dashboard_type.rb index a5cb418c6077..70c9c4b132bf 100644 --- a/lib/datadog_api_client/v2/models/dashboard_type.rb +++ b/lib/datadog_api_client/v2/models/dashboard_type.rb @@ -26,15 +26,17 @@ class DashboardType HOST_TIMEBOARD = "host_timeboard".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = DashboardType.constants.select { |c| DashboardType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/full_api_key.rb b/lib/datadog_api_client/v2/models/full_api_key.rb index bbb719d077a3..c7578c6b8f46 100644 --- a/lib/datadog_api_client/v2/models/full_api_key.rb +++ b/lib/datadog_api_client/v2/models/full_api_key.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Datadog API key. class FullAPIKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of a full API key. @@ -35,6 +36,7 @@ class FullAPIKey attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'FullAPIKeyAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullAPIKey` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb index 5077fc41e8a5..b567ba1a5c72 100644 --- a/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_api_key_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of a full API key. class FullAPIKeyAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation date of the API key. @@ -38,6 +39,7 @@ class FullAPIKeyAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullAPIKeyAttributes` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, key, last4, modified_at, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/full_application_key.rb b/lib/datadog_api_client/v2/models/full_application_key.rb index 139750e2ae12..97c5d069393e 100644 --- a/lib/datadog_api_client/v2/models/full_application_key.rb +++ b/lib/datadog_api_client/v2/models/full_application_key.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Datadog application key. class FullApplicationKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of a full application key. @@ -35,6 +36,7 @@ class FullApplicationKey attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'FullApplicationKeyAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullApplicationKey` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb index 545a273619f0..7d8f846ed363 100644 --- a/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/full_application_key_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of a full application key. class FullApplicationKeyAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation date of the application key. @@ -38,6 +39,7 @@ class FullApplicationKeyAttributes attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'String', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FullApplicationKeyAttributes` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -118,12 +125,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -135,20 +144,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, key, last4, name, scopes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -156,6 +168,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -176,9 +189,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -227,18 +241,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -255,8 +272,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/http_log_error.rb b/lib/datadog_api_client/v2/models/http_log_error.rb index 7e981140734f..30533510a0de 100644 --- a/lib/datadog_api_client/v2/models/http_log_error.rb +++ b/lib/datadog_api_client/v2/models/http_log_error.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # List of errors. class HTTPLogError # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Error message. @@ -32,6 +33,7 @@ class HTTPLogError attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'detail' => :'detail', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'detail' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogError` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [detail, status, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/http_log_errors.rb b/lib/datadog_api_client/v2/models/http_log_errors.rb index 322e32c1bf76..2155e4c6280a 100644 --- a/lib/datadog_api_client/v2/models/http_log_errors.rb +++ b/lib/datadog_api_client/v2/models/http_log_errors.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Invalid query performed. class HTTPLogErrors # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Structured errors. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'errors' => :'errors' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'errors' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogErrors` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [errors].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/http_log_item.rb b/lib/datadog_api_client/v2/models/http_log_item.rb index bc6c94ffecfd..649e1f790918 100644 --- a/lib/datadog_api_client/v2/models/http_log_item.rb +++ b/lib/datadog_api_client/v2/models/http_log_item.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Logs that are sent over HTTP. class HTTPLogItem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The integration name associated with your log: the technology from which the log originated. @@ -44,6 +45,7 @@ class HTTPLogItem attr_accessor :service # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'ddsource' => :'ddsource', @@ -55,11 +57,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'ddsource' => :'String', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPLogItem` initialize method" @@ -114,6 +120,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -122,12 +129,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -139,20 +148,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [ddsource, ddtags, hostname, message, service].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -160,6 +172,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -180,9 +193,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -231,18 +245,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -259,8 +276,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_create_attributes.rb index 39198de64139..d8e1464ab599 100644 --- a/lib/datadog_api_client/v2/models/incident_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident's attributes for a create request. class IncidentCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A flag indicating whether the incident caused customer impact. @@ -38,6 +39,7 @@ class IncidentCreateAttributes attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'customer_impacted' => :'customer_impacted', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'customer_impacted' => :'Boolean', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateAttributes` initialize method" @@ -112,6 +118,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @customer_impacted.nil? @@ -126,6 +133,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @customer_impacted.nil? return false if @title.nil? @@ -133,7 +141,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -145,20 +154,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [customer_impacted, fields, initial_cells, notification_handles, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -166,6 +178,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -186,9 +199,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -237,18 +251,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -265,8 +282,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_create_data.rb b/lib/datadog_api_client/v2/models/incident_create_data.rb index 3226ae02cfb6..fd57f5b7ef34 100644 --- a/lib/datadog_api_client/v2/models/incident_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident data for a create request. class IncidentCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident's attributes for a create request. @@ -32,6 +33,7 @@ class IncidentCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -106,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -113,7 +121,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_create_relationships.rb b/lib/datadog_api_client/v2/models/incident_create_relationships.rb index 6e3da50319ef..b1df1f8c4c5f 100644 --- a/lib/datadog_api_client/v2/models/incident_create_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_create_relationships.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The relationships the incident will have with other resources once created. class IncidentCreateRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. attr_accessor :commander # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'commander' => :'commander' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'commander' => :'RelationshipToUser' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateRelationships` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @commander.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @commander.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [commander].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_create_request.rb b/lib/datadog_api_client/v2/models/incident_create_request.rb index 8a81c406eb2e..1bb2f75e2e3b 100644 --- a/lib/datadog_api_client/v2/models/incident_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Create request for an incident. class IncidentCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb index 2e675093b804..191a2ec3d14c 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A field with potentially multiple values selected. class IncidentFieldAttributesMultipleValue # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of the multiple value field definitions. @@ -29,6 +30,7 @@ class IncidentFieldAttributesMultipleValue attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'IncidentFieldAttributesValueType', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentFieldAttributesMultipleValue` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb index 2ca6d7a8f17b..966d644e45cf 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A field with a single value selected. class IncidentFieldAttributesSingleValue # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of the single value field definitions. @@ -29,6 +30,7 @@ class IncidentFieldAttributesSingleValue attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'type' => :'type', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'type' => :'IncidentFieldAttributesSingleValueType', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentFieldAttributesSingleValue` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [type, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb index b598eff0de16..de8348dc3015 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_single_value_type.rb @@ -23,15 +23,17 @@ class IncidentFieldAttributesSingleValueType TEXTBOX = "textbox".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentFieldAttributesSingleValueType.constants.select { |c| IncidentFieldAttributesSingleValueType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb b/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb index 636678543c6c..f4e955e459ad 100644 --- a/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb +++ b/lib/datadog_api_client/v2/models/incident_field_attributes_value_type.rb @@ -25,15 +25,17 @@ class IncidentFieldAttributesValueType AUTOCOMPLETE = "autocomplete".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentFieldAttributesValueType.constants.select { |c| IncidentFieldAttributesValueType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb b/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb index 9c86eda32d8f..3298c8ff8d1e 100644 --- a/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb +++ b/lib/datadog_api_client/v2/models/incident_integration_metadata_type.rb @@ -22,15 +22,17 @@ class IncidentIntegrationMetadataType INCIDENT_INTEGRATIONS = "incident_integrations".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentIntegrationMetadataType.constants.select { |c| IncidentIntegrationMetadataType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_notification_handle.rb b/lib/datadog_api_client/v2/models/incident_notification_handle.rb index e664ef6dafac..db12660a575b 100644 --- a/lib/datadog_api_client/v2/models/incident_notification_handle.rb +++ b/lib/datadog_api_client/v2/models/incident_notification_handle.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A notification handle that will be notified at incident creation. class IncidentNotificationHandle # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The name of the notified handle. @@ -29,6 +30,7 @@ class IncidentNotificationHandle attr_accessor :handle # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'display_name' => :'display_name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'display_name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentNotificationHandle` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [display_name, handle].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_postmortem_type.rb b/lib/datadog_api_client/v2/models/incident_postmortem_type.rb index b64eaa634d04..a741da36500e 100644 --- a/lib/datadog_api_client/v2/models/incident_postmortem_type.rb +++ b/lib/datadog_api_client/v2/models/incident_postmortem_type.rb @@ -22,15 +22,17 @@ class IncidentPostmortemType INCIDENT_POSTMORTEMS = "incident_postmortems".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentPostmortemType.constants.select { |c| IncidentPostmortemType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_related_object.rb b/lib/datadog_api_client/v2/models/incident_related_object.rb index 271f05eede69..b452fc97098f 100644 --- a/lib/datadog_api_client/v2/models/incident_related_object.rb +++ b/lib/datadog_api_client/v2/models/incident_related_object.rb @@ -22,15 +22,17 @@ class IncidentRelatedObject USERS = "users".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentRelatedObject.constants.select { |c| IncidentRelatedObject::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_response.rb b/lib/datadog_api_client/v2/models/incident_response.rb index 129d417cd97b..14ecc26180ac 100644 --- a/lib/datadog_api_client/v2/models/incident_response.rb +++ b/lib/datadog_api_client/v2/models/incident_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response with an incident. class IncidentResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident data from a response. @@ -29,6 +30,7 @@ class IncidentResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_response_attributes.rb index 06cfe5a176d9..788521c70d7d 100644 --- a/lib/datadog_api_client/v2/models/incident_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_response_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident's attributes from a response. class IncidentResponseAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp when the incident was created. @@ -79,6 +80,7 @@ class IncidentResponseAttributes attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -103,11 +105,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'Time', @@ -132,13 +136,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseAttributes` initialize method" @@ -229,6 +235,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @title.nil? @@ -240,13 +247,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @title.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -271,20 +280,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, customer_impact_duration, customer_impact_end, customer_impact_scope, customer_impact_start, customer_impacted, detected, fields, modified, notification_handles, postmortem_id, public_id, resolved, time_to_detect, time_to_internal_response, time_to_repair, time_to_resolve, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -292,6 +304,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -312,9 +325,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -363,18 +377,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -391,8 +408,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_response_data.rb b/lib/datadog_api_client/v2/models/incident_response_data.rb index 7d8f43feef90..5723b5f87582 100644 --- a/lib/datadog_api_client/v2/models/incident_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident data from a response. class IncidentResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident's attributes from a response. @@ -35,6 +36,7 @@ class IncidentResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentResponseAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -115,6 +122,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -122,7 +130,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_response_relationships.rb b/lib/datadog_api_client/v2/models/incident_response_relationships.rb index 95b904001219..6912c4d1225e 100644 --- a/lib/datadog_api_client/v2/models/incident_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_response_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident's relationships from a response. class IncidentResponseRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. @@ -38,6 +39,7 @@ class IncidentResponseRelationships attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'commander_user' => :'commander_user', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'commander_user' => :'RelationshipToUser', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentResponseRelationships` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [commander_user, created_by_user, integrations, last_modified_by_user, postmortem].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb index 4b5115397d53..a80c9a04d39f 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The incident service's attributes for a create request. class IncidentServiceCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_create_data.rb b/lib/datadog_api_client/v2/models/incident_service_create_data.rb index 925ffc7c27b4..ab4748d622c1 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident Service payload for create requests. class IncidentServiceCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident service's attributes for a create request. @@ -32,6 +33,7 @@ class IncidentServiceCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentServiceCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_create_request.rb b/lib/datadog_api_client/v2/models/incident_service_create_request.rb index 71bd7ab4acc6..8a580a9bf9c6 100644 --- a/lib/datadog_api_client/v2/models/incident_service_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Create request with an incident service payload. class IncidentServiceCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident Service payload for create requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentServiceCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_relationships.rb b/lib/datadog_api_client/v2/models/incident_service_relationships.rb index be36ee9a0862..87edd051ce3a 100644 --- a/lib/datadog_api_client/v2/models/incident_service_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_service_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident service's relationships. class IncidentServiceRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. @@ -29,6 +30,7 @@ class IncidentServiceRelationships attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_by' => :'created_by', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_by' => :'RelationshipToUser', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceRelationships` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_by, last_modified_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_response.rb b/lib/datadog_api_client/v2/models/incident_service_response.rb index 399233635b3a..a62189ecf174 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response with an incident service payload. class IncidentServiceResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident Service data from responses. @@ -29,6 +30,7 @@ class IncidentServiceResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentServiceResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb index b080dec1ddc7..5f1e91995cfc 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident service's attributes from a response. class IncidentServiceResponseAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp of when the incident service was created. @@ -32,6 +33,7 @@ class IncidentServiceResponseAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponseAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, modified, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_response_data.rb b/lib/datadog_api_client/v2/models/incident_service_response_data.rb index 7f951fe52910..3da24d34f4d1 100644 --- a/lib/datadog_api_client/v2/models/incident_service_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident Service data from responses. class IncidentServiceResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident service's attributes from a response. @@ -35,6 +36,7 @@ class IncidentServiceResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentServiceResponseAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceResponseData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -115,6 +122,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -122,7 +130,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_type.rb b/lib/datadog_api_client/v2/models/incident_service_type.rb index a9ef79e28b37..652543913a87 100644 --- a/lib/datadog_api_client/v2/models/incident_service_type.rb +++ b/lib/datadog_api_client/v2/models/incident_service_type.rb @@ -22,15 +22,17 @@ class IncidentServiceType SERVICES = "services".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentServiceType.constants.select { |c| IncidentServiceType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb index 75035e7dfbe8..f968df2a2057 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The incident service's attributes for an update request. class IncidentServiceUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the incident service. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_update_data.rb b/lib/datadog_api_client/v2/models/incident_service_update_data.rb index bc92cf48e848..40ea72fca4cd 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident Service payload for update requests. class IncidentServiceUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident service's attributes for an update request. @@ -35,6 +36,7 @@ class IncidentServiceUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentServiceUpdateAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_service_update_request.rb b/lib/datadog_api_client/v2/models/incident_service_update_request.rb index 27a96e1dab2b..ab2417810fe7 100644 --- a/lib/datadog_api_client/v2/models/incident_service_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_service_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Update request with an incident service payload. class IncidentServiceUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident Service payload for update requests. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentServiceUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServiceUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_services_response.rb b/lib/datadog_api_client/v2/models/incident_services_response.rb index 74106cbc1e2c..427386f812a5 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response with a list of incident service payloads. class IncidentServicesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of incident services. @@ -32,6 +33,7 @@ class IncidentServicesResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponse` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -105,13 +112,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb index 60cbb6c16caf..dafe3df0f765 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentServicesResponseMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'pagination' => :'pagination' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'pagination' => :'IncidentServicesResponseMetaPagination' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponseMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb index 36eb5a711cdf..86b00d99a41b 100644 --- a/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_services_response_meta_pagination.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentServicesResponseMetaPagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The index of the first element in the next page of results. Equal to page size added to the current offset. @@ -32,6 +33,7 @@ class IncidentServicesResponseMetaPagination attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'next_offset' => :'next_offset', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'next_offset' => :'Integer', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentServicesResponseMetaPagination` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [next_offset, offset, size].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb index f29323e83eed..06d297f6d9f8 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The incident team's attributes for a create request. class IncidentTeamCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_create_data.rb b/lib/datadog_api_client/v2/models/incident_team_create_data.rb index 214aafc9f803..ed6b0bb74746 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident Team data for a create request. class IncidentTeamCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident team's attributes for a create request. @@ -32,6 +33,7 @@ class IncidentTeamCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentTeamCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_create_request.rb b/lib/datadog_api_client/v2/models/incident_team_create_request.rb index e73ef163c504..c8abe813ed6d 100644 --- a/lib/datadog_api_client/v2/models/incident_team_create_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Create request with an incident team payload. class IncidentTeamCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident Team data for a create request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentTeamCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_relationships.rb b/lib/datadog_api_client/v2/models/incident_team_relationships.rb index 595494bfd068..c8eb98c19996 100644 --- a/lib/datadog_api_client/v2/models/incident_team_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_team_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident team's relationships. class IncidentTeamRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. @@ -29,6 +30,7 @@ class IncidentTeamRelationships attr_accessor :last_modified_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_by' => :'created_by', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_by' => :'RelationshipToUser', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamRelationships` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_by, last_modified_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_response.rb b/lib/datadog_api_client/v2/models/incident_team_response.rb index 15b6a833f2be..28f6e08080eb 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response with an incident team payload. class IncidentTeamResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident Team data from a response. @@ -29,6 +30,7 @@ class IncidentTeamResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentTeamResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb index 4720225fd1d6..400bfd846b02 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident team's attributes from a response. class IncidentTeamResponseAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp of when the incident team was created. @@ -32,6 +33,7 @@ class IncidentTeamResponseAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponseAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, modified, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_response_data.rb b/lib/datadog_api_client/v2/models/incident_team_response_data.rb index 579846d88552..22fd6501bd28 100644 --- a/lib/datadog_api_client/v2/models/incident_team_response_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident Team data from a response. class IncidentTeamResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident team's attributes from a response. @@ -35,6 +36,7 @@ class IncidentTeamResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentTeamResponseAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamResponseData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_type.rb b/lib/datadog_api_client/v2/models/incident_team_type.rb index 272ddde708fb..bd70db5a9164 100644 --- a/lib/datadog_api_client/v2/models/incident_team_type.rb +++ b/lib/datadog_api_client/v2/models/incident_team_type.rb @@ -22,15 +22,17 @@ class IncidentTeamType TEAMS = "teams".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentTeamType.constants.select { |c| IncidentTeamType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb index 990dc6735311..5f9e45ba9767 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The incident team's attributes for an update request. class IncidentTeamUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the incident team. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_update_data.rb b/lib/datadog_api_client/v2/models/incident_team_update_data.rb index 5f688a6f5d01..01862f0f74c7 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident Team data for an update request. class IncidentTeamUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident team's attributes for an update request. @@ -35,6 +36,7 @@ class IncidentTeamUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentTeamUpdateAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_team_update_request.rb b/lib/datadog_api_client/v2/models/incident_team_update_request.rb index 2bfbe6353557..f647088c9f18 100644 --- a/lib/datadog_api_client/v2/models/incident_team_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_team_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Update request with an incident team payload. class IncidentTeamUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident Team data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentTeamUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_teams_response.rb b/lib/datadog_api_client/v2/models/incident_teams_response.rb index 2e704dcb88ef..bcbafb965a7e 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response with a list of incident team payloads. class IncidentTeamsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of incident teams. @@ -32,6 +33,7 @@ class IncidentTeamsResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponse` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -105,13 +112,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb index 10c390461c3a..b3106a05f2ed 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentTeamsResponseMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'pagination' => :'pagination' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'pagination' => :'IncidentTeamsResponseMetaPagination' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponseMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb index 6227cabddbd7..c798474996bf 100644 --- a/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incident_teams_response_meta_pagination.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentTeamsResponseMetaPagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The index of the first element in the next page of results. Equal to page size added to the current offset. @@ -32,6 +33,7 @@ class IncidentTeamsResponseMetaPagination attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'next_offset' => :'next_offset', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'next_offset' => :'Integer', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTeamsResponseMetaPagination` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [next_offset, offset, size].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb index d0afc7041c90..02858390f687 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_content_type.rb @@ -22,15 +22,17 @@ class IncidentTimelineCellMarkdownContentType MARKDOWN = "markdown".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentTimelineCellMarkdownContentType.constants.select { |c| IncidentTimelineCellMarkdownContentType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb index b629b7a79808..3b845b24183a 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Timeline cell data for Markdown timeline cells for a create request. class IncidentTimelineCellMarkdownCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Type of the Markdown timeline cell. @@ -32,6 +33,7 @@ class IncidentTimelineCellMarkdownCreateAttributes attr_accessor :important # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cell_type' => :'cell_type', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cell_type' => :'IncidentTimelineCellMarkdownContentType', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cell_type.nil? @@ -108,6 +115,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @cell_type.nil? return false if @content.nil? @@ -115,7 +123,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cell_type, content, important].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb index 9d513077c503..6c3f323a21b7 100644 --- a/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb +++ b/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes_content.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The Markdown timeline cell contents. class IncidentTimelineCellMarkdownCreateAttributesContent # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The Markdown content of the cell. attr_accessor :content # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'content' => :'content' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'content' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributesContent` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [content].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_type.rb b/lib/datadog_api_client/v2/models/incident_type.rb index 0fb946aeafc9..d8a16dbec949 100644 --- a/lib/datadog_api_client/v2/models/incident_type.rb +++ b/lib/datadog_api_client/v2/models/incident_type.rb @@ -22,15 +22,17 @@ class IncidentType INCIDENTS = "incidents".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = IncidentType.constants.select { |c| IncidentType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/incident_update_attributes.rb b/lib/datadog_api_client/v2/models/incident_update_attributes.rb index bd51c2c825ca..e05f4ad9c638 100644 --- a/lib/datadog_api_client/v2/models/incident_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/incident_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident's attributes for an update request. class IncidentUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Timestamp when customers were no longer impacted by the incident. @@ -50,6 +51,7 @@ class IncidentUpdateAttributes attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'customer_impact_end' => :'customer_impact_end', @@ -65,11 +67,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'customer_impact_end' => :'Time', @@ -85,13 +89,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateAttributes` initialize method" @@ -146,6 +152,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -154,12 +161,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -175,20 +184,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [customer_impact_end, customer_impact_scope, customer_impact_start, customer_impacted, detected, fields, notification_handles, resolved, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -196,6 +208,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -216,9 +229,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -267,18 +281,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -295,8 +312,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_update_data.rb b/lib/datadog_api_client/v2/models/incident_update_data.rb index b39192503d70..3411b56972b6 100644 --- a/lib/datadog_api_client/v2/models/incident_update_data.rb +++ b/lib/datadog_api_client/v2/models/incident_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Incident data for an update request. class IncidentUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The incident's attributes for an update request. @@ -35,6 +36,7 @@ class IncidentUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'IncidentUpdateAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -115,6 +122,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -122,7 +130,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_update_relationships.rb b/lib/datadog_api_client/v2/models/incident_update_relationships.rb index 4d598d3a6a69..f0a336ce72bf 100644 --- a/lib/datadog_api_client/v2/models/incident_update_relationships.rb +++ b/lib/datadog_api_client/v2/models/incident_update_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The incident's relationships for an update request. class IncidentUpdateRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. @@ -38,6 +39,7 @@ class IncidentUpdateRelationships attr_accessor :postmortem # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'commander_user' => :'commander_user', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'commander_user' => :'RelationshipToUser', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateRelationships` initialize method" @@ -108,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -116,12 +123,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [commander_user, created_by_user, integrations, last_modified_by_user, postmortem].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incident_update_request.rb b/lib/datadog_api_client/v2/models/incident_update_request.rb index 91da52d3b545..01aa812813df 100644 --- a/lib/datadog_api_client/v2/models/incident_update_request.rb +++ b/lib/datadog_api_client/v2/models/incident_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Update request for an incident. class IncidentUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Incident data for an update request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'IncidentUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incidents_response.rb b/lib/datadog_api_client/v2/models/incidents_response.rb index ed1e65f017d9..aa1b8a942872 100644 --- a/lib/datadog_api_client/v2/models/incidents_response.rb +++ b/lib/datadog_api_client/v2/models/incidents_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response with a list of incidents. class IncidentsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of incidents. @@ -32,6 +33,7 @@ class IncidentsResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponse` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -105,13 +112,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -121,20 +130,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -142,6 +154,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -162,9 +175,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -213,18 +227,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -241,8 +258,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta.rb b/lib/datadog_api_client/v2/models/incidents_response_meta.rb index 59439e95b802..66edab9587dc 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The metadata object containing pagination metadata. class IncidentsResponseMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Pagination properties. attr_accessor :pagination # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'pagination' => :'pagination' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'pagination' => :'IncidentsResponseMetaPagination' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponseMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [pagination].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb index 3e6b0b6497ef..1306a7927379 100644 --- a/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb +++ b/lib/datadog_api_client/v2/models/incidents_response_meta_pagination.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Pagination properties. class IncidentsResponseMetaPagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The index of the first element in the next page of results. Equal to page size added to the current offset. @@ -32,6 +33,7 @@ class IncidentsResponseMetaPagination attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'next_offset' => :'next_offset', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'next_offset' => :'Integer', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentsResponseMetaPagination` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [next_offset, offset, size].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/list_application_keys_response.rb b/lib/datadog_api_client/v2/models/list_application_keys_response.rb index 6dcc22ddeb7d..da3a802f50cc 100644 --- a/lib/datadog_api_client/v2/models/list_application_keys_response.rb +++ b/lib/datadog_api_client/v2/models/list_application_keys_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response for a list of application keys. class ListApplicationKeysResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of application keys. @@ -29,6 +30,7 @@ class ListApplicationKeysResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListApplicationKeysResponse` initialize method" @@ -85,6 +91,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -93,12 +100,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/log.rb b/lib/datadog_api_client/v2/models/log.rb index 43a6c131f36f..e52176e746e1 100644 --- a/lib/datadog_api_client/v2/models/log.rb +++ b/lib/datadog_api_client/v2/models/log.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object description of a log after being processed and stored by Datadog. class Log # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # JSON object containing all log attributes and their associated values. @@ -32,6 +33,7 @@ class Log attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Log` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/log_attributes.rb b/lib/datadog_api_client/v2/models/log_attributes.rb index 370d69cfa699..bd1570e5b47d 100644 --- a/lib/datadog_api_client/v2/models/log_attributes.rb +++ b/lib/datadog_api_client/v2/models/log_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # JSON object containing all log attributes and their associated values. class LogAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # JSON object of attributes from your log. @@ -48,6 +49,7 @@ class LogAttributes attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'Hash', @@ -79,13 +83,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogAttributes` initialize method" @@ -132,6 +138,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -140,12 +147,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -159,20 +168,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, host, message, service, status, tags, timestamp].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -180,6 +192,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -200,9 +213,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -251,18 +265,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -279,8 +296,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/log_type.rb b/lib/datadog_api_client/v2/models/log_type.rb index 2fd6463b7486..f6b7052f2f9e 100644 --- a/lib/datadog_api_client/v2/models/log_type.rb +++ b/lib/datadog_api_client/v2/models/log_type.rb @@ -22,15 +22,17 @@ class LogType LOG = "log".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogType.constants.select { |c| LogType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb index 367ee2f5a27e..dfc5729dfff0 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A bucket values class LogsAggregateBucket # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The key, value pairs for each group by @@ -29,6 +30,7 @@ class LogsAggregateBucket attr_accessor :computes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'by' => :'by', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'by' => :'Hash', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateBucket` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [by, computes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb index c133fe54edd3..eb0160beb303 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value_timeseries_point.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A timeseries point class LogsAggregateBucketValueTimeseriesPoint # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The time value for this point @@ -29,6 +30,7 @@ class LogsAggregateBucketValueTimeseriesPoint attr_accessor :value # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'time' => :'time', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'time' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateBucketValueTimeseriesPoint` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [time, value].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb index 5a54e417e5e9..7d0320eb7c3b 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The object sent with the request to retrieve a list of logs from your organization. class LogsAggregateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The list of metrics or timeseries to compute for the retrieved buckets. @@ -39,6 +40,7 @@ class LogsAggregateRequest attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'compute' => :'compute', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'compute' => :'Array', @@ -66,13 +70,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateRequest` initialize method" @@ -113,6 +119,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -121,12 +128,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -138,20 +147,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [compute, filter, group_by, options, page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -159,6 +171,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -179,9 +192,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -230,18 +244,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -258,8 +275,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb index 8b57723ea333..d8e9075b0182 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Paging settings class LogsAggregateRequestPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The returned paging point to use to get the next results attr_accessor :cursor # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cursor' => :'cursor' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cursor' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateRequestPage` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cursor].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb index 5b8c407bc9be..0b7331812d75 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The response object for the logs aggregate API endpoint class LogsAggregateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The query results @@ -29,6 +30,7 @@ class LogsAggregateResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsAggregateResponseData', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb index 995fba74fb4d..e43857f8916f 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_data.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The query results class LogsAggregateResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The list of matching buckets, one item per bucket attr_accessor :buckets # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'buckets' => :'buckets' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'buckets' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateResponseData` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [buckets].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb b/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb index 2cf00c73d0c0..2ec01a36fd21 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_response_status.rb @@ -23,15 +23,17 @@ class LogsAggregateResponseStatus TIMEOUT = "timeout".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsAggregateResponseStatus.constants.select { |c| LogsAggregateResponseStatus::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb index e4a7492b4778..795eff284e53 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A sort rule class LogsAggregateSort # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An aggregation function @@ -35,6 +36,7 @@ class LogsAggregateSort attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'LogsAggregationFunction', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsAggregateSort` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, metric, order, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb b/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb index ebec16374d07..51eab4640251 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregate_sort_type.rb @@ -23,15 +23,17 @@ class LogsAggregateSortType MEASURE = "measure".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsAggregateSortType.constants.select { |c| LogsAggregateSortType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_aggregation_function.rb b/lib/datadog_api_client/v2/models/logs_aggregation_function.rb index 539e3c224630..e2dedbad0224 100644 --- a/lib/datadog_api_client/v2/models/logs_aggregation_function.rb +++ b/lib/datadog_api_client/v2/models/logs_aggregation_function.rb @@ -32,15 +32,17 @@ class LogsAggregationFunction AVG = "avg".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsAggregationFunction.constants.select { |c| LogsAggregationFunction::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_archive.rb b/lib/datadog_api_client/v2/models/logs_archive.rb index 268fb8cb70b9..51feda721f1d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive.rb +++ b/lib/datadog_api_client/v2/models/logs_archive.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The logs archive. class LogsArchive # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsArchiveDefinition' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchive` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb index 254da3a6fdee..35b04e9d4af6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The attributes associated with the archive. class LogsArchiveAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An archive's destination. @@ -42,6 +43,7 @@ class LogsArchiveAttributes attr_accessor :state # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'destination' => :'destination', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'destination' => :'LogsArchiveDestination', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveAttributes` initialize method" @@ -122,6 +128,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @destination.nil? @@ -139,6 +146,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @destination.nil? return false if @name.nil? @@ -147,7 +155,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -160,20 +169,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [destination, include_tags, name, query, rehydration_tags, state].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -181,6 +193,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -201,9 +214,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -252,18 +266,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -280,8 +297,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb index 63b1e8a6701d..7ac3f448a10a 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The logs archive. class LogsArchiveCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The definition of an archive. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsArchiveCreateRequestDefinition' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb index 73b2a05e0331..679eece7b426 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The attributes associated with the archive. class LogsArchiveCreateRequestAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An archive's destination. @@ -39,6 +40,7 @@ class LogsArchiveCreateRequestAttributes attr_accessor :rehydration_tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'destination' => :'destination', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'destination' => :'LogsArchiveCreateRequestDestination', @@ -66,13 +70,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes` initialize method" @@ -113,6 +119,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @destination.nil? @@ -130,6 +137,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @destination.nil? return false if @name.nil? @@ -138,7 +146,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -150,20 +159,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [destination, include_tags, name, query, rehydration_tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -171,6 +183,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -191,9 +204,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -242,18 +256,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -270,8 +287,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb index 10ea9f72de85..1c9a36ab2764 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The definition of an archive. class LogsArchiveCreateRequestDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes associated with the archive. @@ -29,6 +30,7 @@ class LogsArchiveCreateRequestDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogsArchiveCreateRequestAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -94,13 +101,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -109,20 +118,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -130,6 +142,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -150,9 +163,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -201,18 +215,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -229,8 +246,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_definition.rb index 4f5cc442a37a..c037be8fc12d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The definition of an archive. class LogsArchiveDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes associated with the archive. @@ -32,6 +33,7 @@ class LogsArchiveDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogsArchiveAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDefinition` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb index 450a57b42de8..30bb3af1e746 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The Azure archive destination. class LogsArchiveDestinationAzure # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The container where the archive will be stored. @@ -41,6 +42,7 @@ class LogsArchiveDestinationAzure attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'container' => :'container', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'container' => :'String', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationAzure` initialize method" @@ -119,6 +125,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @container.nil? @@ -139,6 +146,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @container.nil? return false if @integration.nil? @@ -148,7 +156,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -161,20 +170,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [container, integration, path, region, storage_account, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -182,6 +194,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -202,9 +215,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -253,18 +267,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -281,8 +298,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb index 536ffc7cefe9..636b6f40894d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_azure_type.rb @@ -22,15 +22,17 @@ class LogsArchiveDestinationAzureType AZURE = "azure".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsArchiveDestinationAzureType.constants.select { |c| LogsArchiveDestinationAzureType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb index ac377314c5b6..8cc36446d96d 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The GCS archive destination. class LogsArchiveDestinationGCS # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The bucket where the archive will be stored. @@ -35,6 +36,7 @@ class LogsArchiveDestinationGCS attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'bucket' => :'bucket', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'bucket' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationGCS` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @bucket.nil? @@ -118,6 +125,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @bucket.nil? return false if @integration.nil? @@ -126,7 +134,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -137,20 +146,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [bucket, integration, path, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -158,6 +170,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -178,9 +191,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -229,18 +243,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -257,8 +274,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb index ac9355629efe..e7187135ba3e 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_gcs_type.rb @@ -22,15 +22,17 @@ class LogsArchiveDestinationGCSType GCS = "gcs".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsArchiveDestinationGCSType.constants.select { |c| LogsArchiveDestinationGCSType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb index 4f60bdc8a829..abcca2796c0b 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The S3 archive destination. class LogsArchiveDestinationS3 # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The bucket where the archive will be stored. @@ -35,6 +36,7 @@ class LogsArchiveDestinationS3 attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'bucket' => :'bucket', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'bucket' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveDestinationS3` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @bucket.nil? @@ -118,6 +125,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @bucket.nil? return false if @integration.nil? @@ -126,7 +134,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -137,20 +146,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [bucket, integration, path, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -158,6 +170,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -178,9 +191,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -229,18 +243,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -257,8 +274,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb b/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb index 7f4bdce86733..39e4f517cbdd 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_destination_s3_type.rb @@ -22,15 +22,17 @@ class LogsArchiveDestinationS3Type S3 = "s3".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsArchiveDestinationS3Type.constants.select { |c| LogsArchiveDestinationS3Type::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb index d266dc1939ca..0496e0d47322 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The Azure archive's integration destination. class LogsArchiveIntegrationAzure # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A client ID. @@ -29,6 +30,7 @@ class LogsArchiveIntegrationAzure attr_accessor :tenant_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'client_id' => :'client_id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'client_id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationAzure` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @client_id.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @client_id.nil? return false if @tenant_id.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [client_id, tenant_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb index 9e4f571b7211..7f87c854f2f6 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The GCS archive's integration destination. class LogsArchiveIntegrationGCS # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A client email. @@ -29,6 +30,7 @@ class LogsArchiveIntegrationGCS attr_accessor :project_id # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'client_email' => :'client_email', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'client_email' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationGCS` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @client_email.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @client_email.nil? return false if @project_id.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [client_email, project_id].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb index 28b454445a9f..6ce20a41ac6c 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The S3 Archive's integration destination. class LogsArchiveIntegrationS3 # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The account ID for the integration. @@ -29,6 +30,7 @@ class LogsArchiveIntegrationS3 attr_accessor :role_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'account_id' => :'account_id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'account_id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveIntegrationS3` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @account_id.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @account_id.nil? return false if @role_name.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [account_id, role_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_order.rb b/lib/datadog_api_client/v2/models/logs_archive_order.rb index 6b4993efa92d..e980ca710752 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # A ordered list of archive IDs. class LogsArchiveOrder # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The definition of an archive order. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsArchiveOrderDefinition' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrder` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb index ee20c1d5d5d6..874b9b1c1147 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The attributes associated with the archive order. class LogsArchiveOrderAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An ordered array of `` strings, the order of archive IDs in the array @@ -27,6 +28,7 @@ class LogsArchiveOrderAttributes attr_accessor :archive_ids # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'archive_ids' => :'archive_ids' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'archive_ids' => :'Array' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrderAttributes` initialize method" @@ -75,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @archive_ids.nil? @@ -86,13 +93,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @archive_ids.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -100,20 +109,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [archive_ids].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -121,6 +133,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -141,9 +154,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -192,18 +206,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -220,8 +237,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb index 3241065882f8..bbbdadbecf6e 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The definition of an archive order. class LogsArchiveOrderDefinition # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The attributes associated with the archive order. @@ -29,6 +30,7 @@ class LogsArchiveOrderDefinition attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogsArchiveOrderAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchiveOrderDefinition` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb b/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb index 2db9530d9a6f..2b243028ab97 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_order_definition_type.rb @@ -22,15 +22,17 @@ class LogsArchiveOrderDefinitionType ARCHIVE_ORDER = "archive_order".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsArchiveOrderDefinitionType.constants.select { |c| LogsArchiveOrderDefinitionType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_archive_state.rb b/lib/datadog_api_client/v2/models/logs_archive_state.rb index 8c7caac97fda..7c55832acea3 100644 --- a/lib/datadog_api_client/v2/models/logs_archive_state.rb +++ b/lib/datadog_api_client/v2/models/logs_archive_state.rb @@ -25,15 +25,17 @@ class LogsArchiveState WORKING_AUTH_LEGACY = "WORKING_AUTH_LEGACY".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsArchiveState.constants.select { |c| LogsArchiveState::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_archives.rb b/lib/datadog_api_client/v2/models/logs_archives.rb index 88e1cea2aab6..e1f4f9f28e04 100644 --- a/lib/datadog_api_client/v2/models/logs_archives.rb +++ b/lib/datadog_api_client/v2/models/logs_archives.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The available archives. class LogsArchives # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of archives. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsArchives` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_compute.rb b/lib/datadog_api_client/v2/models/logs_compute.rb index 7284212a9fbc..82ac13b07770 100644 --- a/lib/datadog_api_client/v2/models/logs_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_compute.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A compute rule to compute metrics or timeseries class LogsCompute # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An aggregation function @@ -36,6 +37,7 @@ class LogsCompute attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'LogsAggregationFunction', @@ -61,13 +65,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsCompute` initialize method" @@ -102,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation.nil? @@ -113,13 +120,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @aggregation.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -130,20 +139,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, interval, metric, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -151,6 +163,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -171,9 +184,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -222,18 +236,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -250,8 +267,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_compute_type.rb b/lib/datadog_api_client/v2/models/logs_compute_type.rb index 0d4abbee7e82..769fe6550a0f 100644 --- a/lib/datadog_api_client/v2/models/logs_compute_type.rb +++ b/lib/datadog_api_client/v2/models/logs_compute_type.rb @@ -23,15 +23,17 @@ class LogsComputeType TOTAL = "total".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsComputeType.constants.select { |c| LogsComputeType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_group_by.rb b/lib/datadog_api_client/v2/models/logs_group_by.rb index 1d2c90eddf1e..89e99195f78a 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A group by rule class LogsGroupBy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The name of the facet to use (required) @@ -42,6 +43,7 @@ class LogsGroupBy attr_accessor :total # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'facet' => :'facet', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'facet' => :'String', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsGroupBy` initialize method" @@ -122,6 +128,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @facet.nil? @@ -133,13 +140,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @facet.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -152,20 +161,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [facet, histogram, limit, missing, sort, total].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -173,6 +185,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -193,9 +206,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -244,18 +258,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -272,8 +289,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb index bf14e0cc2cdf..4e60b934c742 100644 --- a/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +++ b/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V2 # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. class LogsGroupByHistogram # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The bin size of the histogram buckets @@ -35,6 +36,7 @@ class LogsGroupByHistogram attr_accessor :min # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'interval' => :'interval', @@ -44,11 +46,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'interval' => :'Float', @@ -58,13 +62,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsGroupByHistogram` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @interval.nil? @@ -110,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @interval.nil? return false if @max.nil? @@ -118,7 +126,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -128,20 +137,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [interval, max, min].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -149,6 +161,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -169,9 +182,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -220,18 +234,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -248,8 +265,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_list_request.rb b/lib/datadog_api_client/v2/models/logs_list_request.rb index 960a7b6c6f56..46f1bf788e36 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The request for a logs list. class LogsListRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The search and filter query settings @@ -36,6 +37,7 @@ class LogsListRequest attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'LogsQueryFilter', @@ -61,13 +65,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListRequest` initialize method" @@ -100,6 +106,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -108,12 +115,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -124,20 +133,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, options, page, sort].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -145,6 +157,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -165,9 +178,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -216,18 +230,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -244,8 +261,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_list_request_page.rb b/lib/datadog_api_client/v2/models/logs_list_request_page.rb index b803ae028cc8..2697d22721a1 100644 --- a/lib/datadog_api_client/v2/models/logs_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/logs_list_request_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Paging attributes for listing logs. class LogsListRequestPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List following results with a cursor provided in the previous query. @@ -29,6 +30,7 @@ class LogsListRequestPage attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cursor' => :'cursor', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cursor' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListRequestPage` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cursor, limit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_list_response.rb b/lib/datadog_api_client/v2/models/logs_list_response.rb index 2443900b3595..bd6462a51609 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response object with all logs matching the request and pagination information. class LogsListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of logs matching the request. @@ -32,6 +33,7 @@ class LogsListResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListResponse` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, links, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_list_response_links.rb b/lib/datadog_api_client/v2/models/logs_list_response_links.rb index b42d5490e9fe..c51bdc2396b1 100644 --- a/lib/datadog_api_client/v2/models/logs_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/logs_list_response_links.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Links attributes. class LogsListResponseLinks # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Link for the next set of results. Note that the request can also be made using the @@ -27,6 +28,7 @@ class LogsListResponseLinks attr_accessor :_next # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_next' => :'next' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_next' => :'String' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsListResponseLinks` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_next].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_compute.rb index de6fcea8b5ef..c65151b1abe3 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The compute rule to compute the log-based metric. class LogsMetricCompute # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The type of aggregation to use. @@ -29,6 +30,7 @@ class LogsMetricCompute attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation_type' => :'aggregation_type', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation_type' => :'LogsMetricComputeAggregationType', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCompute` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @aggregation_type.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @aggregation_type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation_type, path].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb b/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb index 74c951de1bd9..0680bd7e87f6 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_compute_aggregation_type.rb @@ -23,15 +23,17 @@ class LogsMetricComputeAggregationType DISTRIBUTION = "distribution".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsMetricComputeAggregationType.constants.select { |c| LogsMetricComputeAggregationType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb index 3ef608c6f748..747c585cc2da 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The object describing the Datadog log-based metric to create. class LogsMetricCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The compute rule to compute the log-based metric. @@ -32,6 +33,7 @@ class LogsMetricCreateAttributes attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'compute' => :'compute', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'compute' => :'LogsMetricCompute', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateAttributes` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @compute.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @compute.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [compute, filter, group_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb index 345656429eb5..f373900f9231 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The new log-based metric properties. class LogsMetricCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object describing the Datadog log-based metric to create. @@ -32,6 +33,7 @@ class LogsMetricCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogsMetricCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb index 63a5a981b3e4..675bc59027d9 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_create_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The new log-based metric body. class LogsMetricCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsMetricCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_filter.rb index ee3e2a89a50d..08283711643e 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_filter.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The log-based metric filter. Logs matching this filter will be aggregated in this metric. class LogsMetricFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The search query - following the log search syntax. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricFilter` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb index ab7f3a73a480..e1e3d350a213 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_group_by.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A group by rule. class LogsMetricGroupBy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The path to the value the log-based metric will be aggregated over. @@ -29,6 +30,7 @@ class LogsMetricGroupBy attr_accessor :tag_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'path' => :'path', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'path' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricGroupBy` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @path.nil? @@ -92,13 +99,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @path.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -107,20 +116,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [path, tag_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -128,6 +140,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -148,9 +161,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -199,18 +213,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -227,8 +244,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_response.rb b/lib/datadog_api_client/v2/models/logs_metric_response.rb index 37039713b6cd..458f016f5a6c 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The log-based metric object. class LogsMetricResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsMetricResponseData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb index 12ab2124cb64..840d412e24ac 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The object describing a Datadog log-based metric. class LogsMetricResponseAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The compute rule to compute the log-based metric. @@ -32,6 +33,7 @@ class LogsMetricResponseAttributes attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'compute' => :'compute', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'compute' => :'LogsMetricResponseCompute', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseAttributes` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [compute, filter, group_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb index 08e56230f83b..462a669bf5b7 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The compute rule to compute the log-based metric. class LogsMetricResponseCompute # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The type of aggregation to use. @@ -29,6 +30,7 @@ class LogsMetricResponseCompute attr_accessor :path # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation_type' => :'aggregation_type', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation_type' => :'LogsMetricResponseComputeAggregationType', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseCompute` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation_type, path].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb b/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb index a20015269cc2..36e309077c99 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_compute_aggregation_type.rb @@ -23,15 +23,17 @@ class LogsMetricResponseComputeAggregationType DISTRIBUTION = "distribution".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsMetricResponseComputeAggregationType.constants.select { |c| LogsMetricResponseComputeAggregationType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb index c540e9604917..b75cc293ddc0 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The log-based metric properties. class LogsMetricResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object describing a Datadog log-based metric. @@ -32,6 +33,7 @@ class LogsMetricResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogsMetricResponseAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb index e37e4c499611..fd5806eca8c7 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_filter.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The log-based metric filter. Logs matching this filter will be aggregated in this metric. class LogsMetricResponseFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The search query - following the log search syntax. attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'query' => :'query' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'query' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseFilter` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb index 6d3fea29e0a5..00be31e0ac78 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_response_group_by.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A group by rule. class LogsMetricResponseGroupBy # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The path to the value the log-based metric will be aggregated over. @@ -29,6 +30,7 @@ class LogsMetricResponseGroupBy attr_accessor :tag_name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'path' => :'path', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'path' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricResponseGroupBy` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [path, tag_name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_type.rb b/lib/datadog_api_client/v2/models/logs_metric_type.rb index 3138b9a8ee5e..7da42a1c51b2 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_type.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_type.rb @@ -22,15 +22,17 @@ class LogsMetricType LOGS_METRICS = "logs_metrics".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsMetricType.constants.select { |c| LogsMetricType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb index 041fa87eceb5..4ae7211b4fa7 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The log-based metric properties that will be updated. class LogsMetricUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log-based metric filter. Logs matching this filter will be aggregated in this metric. @@ -29,6 +30,7 @@ class LogsMetricUpdateAttributes attr_accessor :group_by # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'LogsMetricFilter', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateAttributes` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, group_by].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb index 88c01606d9b9..81cce766645a 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_data.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The new log-based metric properties. class LogsMetricUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The log-based metric properties that will be updated. @@ -29,6 +30,7 @@ class LogsMetricUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'LogsMetricUpdateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb index 8d26cbac022b..7cb824471341 100644 --- a/lib/datadog_api_client/v2/models/logs_metric_update_request.rb +++ b/lib/datadog_api_client/v2/models/logs_metric_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The new log-based metric body. class LogsMetricUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The new log-based metric properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'LogsMetricUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_metrics_response.rb b/lib/datadog_api_client/v2/models/logs_metrics_response.rb index b17d87fc6430..885985b717b6 100644 --- a/lib/datadog_api_client/v2/models/logs_metrics_response.rb +++ b/lib/datadog_api_client/v2/models/logs_metrics_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # All the available log-based metric objects. class LogsMetricsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of log-based metric objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsMetricsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_query_filter.rb b/lib/datadog_api_client/v2/models/logs_query_filter.rb index 0b7114cd3a86..99cf82edf6c8 100644 --- a/lib/datadog_api_client/v2/models/logs_query_filter.rb +++ b/lib/datadog_api_client/v2/models/logs_query_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The search and filter query settings class LogsQueryFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The minimum time for the requested logs, supports date math and regular timestamps (milliseconds). @@ -35,6 +36,7 @@ class LogsQueryFilter attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'from' => :'from', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'from' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryFilter` initialize method" @@ -109,6 +115,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -117,12 +124,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -133,20 +142,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [from, indexes, query, to].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -154,6 +166,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -174,9 +187,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -225,18 +239,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -253,8 +270,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_query_options.rb b/lib/datadog_api_client/v2/models/logs_query_options.rb index 6d42939777c6..5cdc66756b03 100644 --- a/lib/datadog_api_client/v2/models/logs_query_options.rb +++ b/lib/datadog_api_client/v2/models/logs_query_options.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V2 # Note: You should only supply timezone or time offset but not both otherwise the query will fail. class LogsQueryOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The time offset (in seconds) to apply to the query. @@ -30,6 +31,7 @@ class LogsQueryOptions attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'time_offset' => :'timeOffset', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'time_offset' => :'Integer', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsQueryOptions` initialize method" @@ -84,6 +90,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -92,12 +99,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -106,20 +115,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [time_offset, timezone].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -127,6 +139,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -147,9 +160,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -198,18 +212,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -226,8 +243,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata.rb b/lib/datadog_api_client/v2/models/logs_response_metadata.rb index fe9ea7f73b00..c1c39e212fe4 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The metadata associated with a request class LogsResponseMetadata # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The time elapsed in milliseconds @@ -39,6 +40,7 @@ class LogsResponseMetadata attr_accessor :warnings # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'elapsed' => :'elapsed', @@ -50,11 +52,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'elapsed' => :'Integer', @@ -66,13 +70,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsResponseMetadata` initialize method" @@ -111,6 +117,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -119,12 +126,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -136,20 +145,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [elapsed, page, request_id, status, warnings].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -157,6 +169,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -177,9 +190,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -228,18 +242,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -256,8 +273,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb index cf1afaa0f01f..dfa1dcd7c5f2 100644 --- a/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +++ b/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Paging attributes. class LogsResponseMetadataPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The cursor to use to get the next results, if any. To make the next request, use the same. @@ -27,6 +28,7 @@ class LogsResponseMetadataPage attr_accessor :after # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'after' => :'after' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'after' => :'String' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsResponseMetadataPage` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [after].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/logs_sort.rb b/lib/datadog_api_client/v2/models/logs_sort.rb index 364ae6483bf9..e39479b50d37 100644 --- a/lib/datadog_api_client/v2/models/logs_sort.rb +++ b/lib/datadog_api_client/v2/models/logs_sort.rb @@ -23,15 +23,17 @@ class LogsSort TIMESTAMP_DESCENDING = "-timestamp".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsSort.constants.select { |c| LogsSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_sort_order.rb b/lib/datadog_api_client/v2/models/logs_sort_order.rb index d2f6e5cd03b4..a3a7d378b5f5 100644 --- a/lib/datadog_api_client/v2/models/logs_sort_order.rb +++ b/lib/datadog_api_client/v2/models/logs_sort_order.rb @@ -23,15 +23,17 @@ class LogsSortOrder DESCENDING = "desc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = LogsSortOrder.constants.select { |c| LogsSortOrder::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/logs_warning.rb b/lib/datadog_api_client/v2/models/logs_warning.rb index 8c2fc6f88ce2..6e831d3a79f2 100644 --- a/lib/datadog_api_client/v2/models/logs_warning.rb +++ b/lib/datadog_api_client/v2/models/logs_warning.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A warning message indicating something that went wrong with the query class LogsWarning # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A unique code for this type of warning @@ -32,6 +33,7 @@ class LogsWarning attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'code' => :'code', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'code' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::LogsWarning` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [code, detail, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric.rb b/lib/datadog_api_client/v2/models/metric.rb index 283aa2b89dfa..024ab928cf92 100644 --- a/lib/datadog_api_client/v2/models/metric.rb +++ b/lib/datadog_api_client/v2/models/metric.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single metric tag configuration. class Metric # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The metric name for this resource. @@ -29,6 +30,7 @@ class Metric attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Metric` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_all_tags.rb b/lib/datadog_api_client/v2/models/metric_all_tags.rb index ef60ac9966ed..583060b84e45 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single metric's indexed tags. class MetricAllTags # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the definition of a metric's tags. @@ -32,6 +33,7 @@ class MetricAllTags attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'MetricAllTagsAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTags` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb index c8e80a4b2c18..b079705614db 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's tags. class MetricAllTagsAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of indexed tag value pairs. attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'tags' => :'tags' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'tags' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTagsAttributes` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb index 60992e306b2e..e6f7b0d87d1c 100644 --- a/lib/datadog_api_client/v2/models/metric_all_tags_response.rb +++ b/lib/datadog_api_client/v2/models/metric_all_tags_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response object that includes a single metric's indexed tags. class MetricAllTagsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single metric's indexed tags. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'MetricAllTags' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricAllTagsResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb index 01b335e767c8..8ad6fd3c9b60 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A time and space aggregation combination for use in query. class MetricCustomAggregation # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A space aggregation for use in query. @@ -29,6 +30,7 @@ class MetricCustomAggregation attr_accessor :time # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'space' => :'space', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'space' => :'MetricCustomSpaceAggregation', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricCustomAggregation` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @space.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @space.nil? return false if @time.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [space, time].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb index 54622b0d408c..554c45dfc054 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_space_aggregation.rb @@ -25,15 +25,17 @@ class MetricCustomSpaceAggregation SUM = "sum".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricCustomSpaceAggregation.constants.select { |c| MetricCustomSpaceAggregation::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb b/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb index 862ac11b7251..eed760aae9b1 100644 --- a/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb +++ b/lib/datadog_api_client/v2/models/metric_custom_time_aggregation.rb @@ -26,15 +26,17 @@ class MetricCustomTimeAggregation SUM = "sum".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricCustomTimeAggregation.constants.select { |c| MetricCustomTimeAggregation::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb index 3b95d94f2b71..d9e5f35aabe4 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single metric's distinct volume. class MetricDistinctVolume # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the definition of a metric's distinct volume. @@ -32,6 +33,7 @@ class MetricDistinctVolume attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'MetricDistinctVolumeAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDistinctVolume` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb index 45d15823e61a..e805948e2031 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's distinct volume. class MetricDistinctVolumeAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Distinct volume for the given metric. attr_accessor :distinct_volume # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'distinct_volume' => :'distinct_volume' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'distinct_volume' => :'Integer' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricDistinctVolumeAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [distinct_volume].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb b/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb index bf9997fc2439..c71531a13f1c 100644 --- a/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb +++ b/lib/datadog_api_client/v2/models/metric_distinct_volume_type.rb @@ -22,15 +22,17 @@ class MetricDistinctVolumeType DISTINCT_METRIC_VOLUMES = "distinct_metric_volumes".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricDistinctVolumeType.constants.select { |c| MetricDistinctVolumeType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb index 7d9f69970b73..8aa91c5c95db 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single metric's ingested and indexed volume. class MetricIngestedIndexedVolume # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the definition of a metric's ingested and indexed volume. @@ -32,6 +33,7 @@ class MetricIngestedIndexedVolume attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'MetricIngestedIndexedVolumeAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricIngestedIndexedVolume` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb index f73a4c603540..e035c5863a73 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric's ingested and indexed volume. class MetricIngestedIndexedVolumeAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Indexed volume for the given metric. @@ -29,6 +30,7 @@ class MetricIngestedIndexedVolumeAttributes attr_accessor :ingested_volume # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'indexed_volume' => :'indexed_volume', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'indexed_volume' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricIngestedIndexedVolumeAttributes` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [indexed_volume, ingested_volume].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb index 91c1900d0459..f087dee7931c 100644 --- a/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb +++ b/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_type.rb @@ -22,15 +22,17 @@ class MetricIngestedIndexedVolumeType METRIC_VOLUMES = "metric_volumes".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricIngestedIndexedVolumeType.constants.select { |c| MetricIngestedIndexedVolumeType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb index 0ffae26b99fa..121f55b4e7d1 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single metric tag configuration. class MetricTagConfiguration # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the definition of a metric tag configuration attributes. @@ -32,6 +33,7 @@ class MetricTagConfiguration attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'MetricTagConfigurationAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfiguration` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb index 39a0b65c8424..5fcb099d94b2 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration attributes. class MetricTagConfigurationAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of queryable aggregation combinations for a count, rate, or gauge metric. @@ -57,6 +58,7 @@ class MetricTagConfigurationAttributes attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregations' => :'aggregations', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregations' => :'Array', @@ -86,13 +90,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationAttributes` initialize method" @@ -139,6 +145,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -147,12 +154,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -165,20 +174,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregations, created_at, include_percentiles, metric_type, modified_at, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -186,6 +198,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -206,9 +219,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -257,18 +271,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -285,8 +302,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb index 2b5801106a2d..9343ca17da0a 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration to be created. class MetricTagConfigurationCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of queryable aggregation combinations for a count, rate, or gauge metric. @@ -51,6 +52,7 @@ class MetricTagConfigurationCreateAttributes attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregations' => :'aggregations', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregations' => :'Array', @@ -76,13 +80,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateAttributes` initialize method" @@ -125,6 +131,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @metric_type.nil? @@ -139,6 +146,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @metric_type.nil? return false if @tags.nil? @@ -146,7 +154,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -157,20 +166,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregations, include_percentiles, metric_type, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -178,6 +190,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -198,9 +211,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -249,18 +263,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -277,8 +294,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb index 867238a4a390..3c95683546ea 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single metric to be configure tags on. class MetricTagConfigurationCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the definition of a metric tag configuration to be created. @@ -32,6 +33,7 @@ class MetricTagConfigurationCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'MetricTagConfigurationCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -106,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -113,7 +121,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb index e6bdff52e867..586da3c32f17 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request object that includes the metric that you would like to configure tags for. class MetricTagConfigurationCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single metric to be configure tags on. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'MetricTagConfigurationCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb index 6ba54e83e5d3..84dd3c9eb8c0 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb @@ -25,15 +25,17 @@ class MetricTagConfigurationMetricTypes DISTRIBUTION = "distribution".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricTagConfigurationMetricTypes.constants.select { |c| MetricTagConfigurationMetricTypes::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb index c4a883f35ddc..0900bb344342 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response object which includes a single metric's tag configuration. class MetricTagConfigurationResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single metric tag configuration. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'MetricTagConfiguration' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb index e14186ee7c3c..0119177a8695 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_type.rb @@ -22,15 +22,17 @@ class MetricTagConfigurationType MANAGE_TAGS = "manage_tags".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricTagConfigurationType.constants.select { |c| MetricTagConfigurationType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb index 854897aa5839..6df5af7938bb 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object containing the definition of a metric tag configuration to be updated. class MetricTagConfigurationUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of queryable aggregation combinations for a count, rate, or gauge metric. @@ -48,6 +49,7 @@ class MetricTagConfigurationUpdateAttributes attr_accessor :tags # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregations' => :'aggregations', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregations' => :'Array', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateAttributes` initialize method" @@ -114,6 +120,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -122,12 +129,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -137,20 +146,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregations, include_percentiles, tags].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -158,6 +170,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -178,9 +191,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -229,18 +243,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -257,8 +274,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb index abdd074eba7e..ec84eee6ac70 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single tag configuration to be edited. class MetricTagConfigurationUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the definition of a metric tag configuration to be updated. @@ -32,6 +33,7 @@ class MetricTagConfigurationUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'MetricTagConfigurationUpdateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -106,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -113,7 +121,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb index be141ad0ea9b..9d3a6a96aa64 100644 --- a/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb +++ b/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request object that includes the metric that you would like to edit the tag configuration on. class MetricTagConfigurationUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single tag configuration to be edited. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'MetricTagConfigurationUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricTagConfigurationUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metric_type.rb b/lib/datadog_api_client/v2/models/metric_type.rb index b07b89fa2330..a67016053111 100644 --- a/lib/datadog_api_client/v2/models/metric_type.rb +++ b/lib/datadog_api_client/v2/models/metric_type.rb @@ -22,15 +22,17 @@ class MetricType METRICS = "metrics".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = MetricType.constants.select { |c| MetricType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/metric_volumes_response.rb b/lib/datadog_api_client/v2/models/metric_volumes_response.rb index f17f6ff33416..e871db64aac2 100644 --- a/lib/datadog_api_client/v2/models/metric_volumes_response.rb +++ b/lib/datadog_api_client/v2/models/metric_volumes_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response object which includes a single metric's volume. class MetricVolumesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Possible response objects for a metric's volume. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'MetricVolumes' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricVolumesResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb index 80673cb44ddb..047f1041db4f 100644 --- a/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +++ b/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response object that includes metrics and metric tag configurations. class MetricsAndMetricTagConfigurationsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of metrics and metric tag configurations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MetricsAndMetricTagConfigurationsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/organization.rb b/lib/datadog_api_client/v2/models/organization.rb index 0dbd4fa2d67c..212820cc0b07 100644 --- a/lib/datadog_api_client/v2/models/organization.rb +++ b/lib/datadog_api_client/v2/models/organization.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Organization object. class Organization # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the organization. @@ -32,6 +33,7 @@ class Organization attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'OrganizationAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Organization` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/organization_attributes.rb b/lib/datadog_api_client/v2/models/organization_attributes.rb index 0213c4fd03ba..558c854ccfcd 100644 --- a/lib/datadog_api_client/v2/models/organization_attributes.rb +++ b/lib/datadog_api_client/v2/models/organization_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the organization. class OrganizationAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the organization. @@ -47,6 +48,7 @@ class OrganizationAttributes attr_accessor :url # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OrganizationAttributes` initialize method" @@ -135,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -143,12 +150,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -163,20 +172,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, description, disabled, modified_at, name, public_id, sharing, url].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -184,6 +196,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -204,9 +217,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -255,18 +269,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -283,8 +300,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/organizations_type.rb b/lib/datadog_api_client/v2/models/organizations_type.rb index 354f1d558b09..3a02a987ff89 100644 --- a/lib/datadog_api_client/v2/models/organizations_type.rb +++ b/lib/datadog_api_client/v2/models/organizations_type.rb @@ -22,15 +22,17 @@ class OrganizationsType ORGS = "orgs".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = OrganizationsType.constants.select { |c| OrganizationsType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/pagination.rb b/lib/datadog_api_client/v2/models/pagination.rb index 3b2db21315b1..e0cd2a4fae46 100644 --- a/lib/datadog_api_client/v2/models/pagination.rb +++ b/lib/datadog_api_client/v2/models/pagination.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Pagination object. class Pagination # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Total count. @@ -29,6 +30,7 @@ class Pagination attr_accessor :total_filtered_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'total_count' => :'total_count', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'total_count' => :'Integer', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Pagination` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [total_count, total_filtered_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/partial_api_key.rb b/lib/datadog_api_client/v2/models/partial_api_key.rb index 3221aa92666b..467c6c894e0c 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Partial Datadog API key. class PartialAPIKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of a partial API key. @@ -35,6 +36,7 @@ class PartialAPIKey attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'PartialAPIKeyAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialAPIKey` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb index 6d266174347a..dc059eff5348 100644 --- a/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of a partial API key. class PartialAPIKeyAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation date of the API key. @@ -35,6 +36,7 @@ class PartialAPIKeyAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialAPIKeyAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, last4, modified_at, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/partial_application_key.rb b/lib/datadog_api_client/v2/models/partial_application_key.rb index 027957cffb26..40022fc79ce4 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Partial Datadog application key. class PartialApplicationKey # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of a partial application key. @@ -35,6 +36,7 @@ class PartialApplicationKey attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'PartialApplicationKeyAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKey` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb index 8ee55ed9f5cf..99798fa42b37 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of a partial application key. class PartialApplicationKeyAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation date of the application key. @@ -35,6 +36,7 @@ class PartialApplicationKeyAttributes attr_accessor :scopes # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKeyAttributes` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, last4, name, scopes].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/partial_application_key_response.rb b/lib/datadog_api_client/v2/models/partial_application_key_response.rb index 4c5f32d6be02..3ccce1ac4a7b 100644 --- a/lib/datadog_api_client/v2/models/partial_application_key_response.rb +++ b/lib/datadog_api_client/v2/models/partial_application_key_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response for retrieving a partial application key. class PartialApplicationKeyResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Partial Datadog application key. @@ -29,6 +30,7 @@ class PartialApplicationKeyResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'PartialApplicationKey', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PartialApplicationKeyResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/permission.rb b/lib/datadog_api_client/v2/models/permission.rb index ad160e3bbf66..fc6baaccfecc 100644 --- a/lib/datadog_api_client/v2/models/permission.rb +++ b/lib/datadog_api_client/v2/models/permission.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Permission object. class Permission # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of a permission. @@ -32,6 +33,7 @@ class Permission attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'PermissionAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Permission` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/permission_attributes.rb b/lib/datadog_api_client/v2/models/permission_attributes.rb index fb4534990b3d..0142873bd3de 100644 --- a/lib/datadog_api_client/v2/models/permission_attributes.rb +++ b/lib/datadog_api_client/v2/models/permission_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of a permission. class PermissionAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the permission. @@ -44,6 +45,7 @@ class PermissionAttributes attr_accessor :restricted # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created' => :'created', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created' => :'Time', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionAttributes` initialize method" @@ -126,6 +132,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -134,12 +141,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -153,20 +162,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created, description, display_name, display_type, group_name, name, restricted].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -174,6 +186,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -194,9 +207,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -245,18 +259,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -273,8 +290,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/permissions_response.rb b/lib/datadog_api_client/v2/models/permissions_response.rb index 77b713be26be..6121197c388c 100644 --- a/lib/datadog_api_client/v2/models/permissions_response.rb +++ b/lib/datadog_api_client/v2/models/permissions_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Payload with API-returned permissions. class PermissionsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of permissions. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PermissionsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/permissions_type.rb b/lib/datadog_api_client/v2/models/permissions_type.rb index 0a2c3c0b59ca..7a87d3115447 100644 --- a/lib/datadog_api_client/v2/models/permissions_type.rb +++ b/lib/datadog_api_client/v2/models/permissions_type.rb @@ -22,15 +22,17 @@ class PermissionsType PERMISSIONS = "permissions".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = PermissionsType.constants.select { |c| PermissionsType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta.rb b/lib/datadog_api_client/v2/models/process_summaries_meta.rb index 9955087409b0..38995baa3d43 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response metadata object. class ProcessSummariesMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'ProcessSummariesMetaPage' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb index bf416a70b7a7..0146e3c369f1 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Paging attributes. class ProcessSummariesMetaPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The cursor used to get the next results, if any. To make the next request, use the same @@ -30,6 +31,7 @@ class ProcessSummariesMetaPage attr_accessor :size # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'after' => :'after', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'after' => :'String', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesMetaPage` initialize method" @@ -82,6 +88,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -90,12 +97,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -104,20 +113,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [after, size].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -125,6 +137,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -145,9 +158,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -196,18 +210,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -224,8 +241,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/process_summaries_response.rb b/lib/datadog_api_client/v2/models/process_summaries_response.rb index 914561cad845..28c4d5a16b73 100644 --- a/lib/datadog_api_client/v2/models/process_summaries_response.rb +++ b/lib/datadog_api_client/v2/models/process_summaries_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # List of process summaries. class ProcessSummariesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of process summary objects. @@ -29,6 +30,7 @@ class ProcessSummariesResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummariesResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/process_summary.rb b/lib/datadog_api_client/v2/models/process_summary.rb index de901d04214e..6c425197ab9a 100644 --- a/lib/datadog_api_client/v2/models/process_summary.rb +++ b/lib/datadog_api_client/v2/models/process_summary.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Process summary object. class ProcessSummary # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes for a process summary. @@ -32,6 +33,7 @@ class ProcessSummary attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'ProcessSummaryAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummary` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/process_summary_attributes.rb b/lib/datadog_api_client/v2/models/process_summary_attributes.rb index 9791826f716c..0e28228b00ee 100644 --- a/lib/datadog_api_client/v2/models/process_summary_attributes.rb +++ b/lib/datadog_api_client/v2/models/process_summary_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes for a process summary. class ProcessSummaryAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Process command line. @@ -47,6 +48,7 @@ class ProcessSummaryAttributes attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cmdline' => :'cmdline', @@ -61,11 +63,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cmdline' => :'String', @@ -80,13 +84,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ProcessSummaryAttributes` initialize method" @@ -137,6 +143,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -145,12 +152,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -165,20 +174,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cmdline, host, pid, ppid, start, tags, timestamp, user].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -186,6 +198,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -206,9 +219,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -257,18 +271,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -285,8 +302,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/process_summary_type.rb b/lib/datadog_api_client/v2/models/process_summary_type.rb index a791efc21725..3b6a959056dc 100644 --- a/lib/datadog_api_client/v2/models/process_summary_type.rb +++ b/lib/datadog_api_client/v2/models/process_summary_type.rb @@ -22,15 +22,17 @@ class ProcessSummaryType PROCESS = "process".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = ProcessSummaryType.constants.select { |c| ProcessSummaryType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/query_sort_order.rb b/lib/datadog_api_client/v2/models/query_sort_order.rb index 86dc9dce760a..e2ff9504cb0c 100644 --- a/lib/datadog_api_client/v2/models/query_sort_order.rb +++ b/lib/datadog_api_client/v2/models/query_sort_order.rb @@ -23,15 +23,17 @@ class QuerySortOrder DESC = "desc".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = QuerySortOrder.constants.select { |c| QuerySortOrder::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb index de40bde21ca0..cfa2523e7178 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A relationship reference for an integration metadata object. class RelationshipToIncidentIntegrationMetadataData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A unique identifier that represents the integration metadata. @@ -29,6 +30,7 @@ class RelationshipToIncidentIntegrationMetadataData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadataData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb index 7d1f263c359c..2a3d65f4ed80 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # A relationship reference for multiple integration metadata objects. class RelationshipToIncidentIntegrationMetadatas # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The integration metadata relationship array attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentIntegrationMetadatas` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb index 3ef7f8dd92b9..eeaca9d756a2 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # A relationship reference for postmortems. class RelationshipToIncidentPostmortem # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The postmortem relationship data. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RelationshipToIncidentPostmortemData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentPostmortem` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb index c7d60f01ee48..bb91d4360bff 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The postmortem relationship data. class RelationshipToIncidentPostmortemData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A unique identifier that represents the postmortem. @@ -29,6 +30,7 @@ class RelationshipToIncidentPostmortemData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToIncidentPostmortemData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization.rb b/lib/datadog_api_client/v2/models/relationship_to_organization.rb index 44cb57cc2c9f..44def1fa38c8 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to an organization. class RelationshipToOrganization # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to organization object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RelationshipToOrganizationData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganization` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb index 8f273e510c05..ce34122fe61e 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Relationship to organization object. class RelationshipToOrganizationData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the organization. @@ -29,6 +30,7 @@ class RelationshipToOrganizationData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganizationData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb index 606da0717b7d..b5816a1ce5b2 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_organizations.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to organizations. class RelationshipToOrganizations # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationships to organization objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToOrganizations` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission.rb b/lib/datadog_api_client/v2/models/relationship_to_permission.rb index 1c6f7c162896..36fd6719cc02 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to a permissions object. class RelationshipToPermission # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to permission object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RelationshipToPermissionData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermission` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb index f5cc4d3be4f5..c82ac167a01c 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permission_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Relationship to permission object. class RelationshipToPermissionData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the permission. @@ -29,6 +30,7 @@ class RelationshipToPermissionData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermissionData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb index 4e2a0fe7b676..eef08cc2c3a3 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_permissions.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_permissions.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to multiple permissions objects. class RelationshipToPermissions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationships to permission objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToPermissions` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_role.rb b/lib/datadog_api_client/v2/models/relationship_to_role.rb index 3ea21f7e1828..0907f8da0525 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to role. class RelationshipToRole # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to role object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RelationshipToRoleData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRole` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb index 158f78892490..26605dc81868 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_role_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_role_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Relationship to role object. class RelationshipToRoleData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # ID of the role. @@ -29,6 +30,7 @@ class RelationshipToRoleData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRoleData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_roles.rb b/lib/datadog_api_client/v2/models/relationship_to_roles.rb index d33b2ceaafc9..b2fd2a645999 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_roles.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_roles.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to roles. class RelationshipToRoles # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array containing type and ID of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToRoles` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_user.rb b/lib/datadog_api_client/v2/models/relationship_to_user.rb index d44ea4fb99a0..e63199cf5a04 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to user. class RelationshipToUser # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user object. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RelationshipToUserData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUser` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb index c0af78f03cfd..d0eaa26d871d 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_user_data.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_user_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Relationship to user object. class RelationshipToUserData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A unique identifier that represents the user. @@ -29,6 +30,7 @@ class RelationshipToUserData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'id' => :'id', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'id' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUserData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @id.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @id.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/relationship_to_users.rb b/lib/datadog_api_client/v2/models/relationship_to_users.rb index 3c4aee1025f7..63f76b47c9c7 100644 --- a/lib/datadog_api_client/v2/models/relationship_to_users.rb +++ b/lib/datadog_api_client/v2/models/relationship_to_users.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationship to users. class RelationshipToUsers # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationships to user objects. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RelationshipToUsers` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/response_meta_attributes.rb b/lib/datadog_api_client/v2/models/response_meta_attributes.rb index 4825e98cdf47..f4cd54f391e7 100644 --- a/lib/datadog_api_client/v2/models/response_meta_attributes.rb +++ b/lib/datadog_api_client/v2/models/response_meta_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Object describing meta attributes of response. class ResponseMetaAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Pagination object. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'Pagination' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ResponseMetaAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role.rb b/lib/datadog_api_client/v2/models/role.rb index 4b1826635320..14e47853f1d8 100644 --- a/lib/datadog_api_client/v2/models/role.rb +++ b/lib/datadog_api_client/v2/models/role.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Role object returned by the API. class Role # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the role. @@ -35,6 +36,7 @@ class Role attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'RoleAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Role` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_attributes.rb b/lib/datadog_api_client/v2/models/role_attributes.rb index b0974c672af9..a8cf4752686b 100644 --- a/lib/datadog_api_client/v2/models/role_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the role. class RoleAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the role. @@ -35,6 +36,7 @@ class RoleAttributes attr_accessor :user_count # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, modified_at, name, user_count].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_clone.rb b/lib/datadog_api_client/v2/models/role_clone.rb index 16fffbcaf222..e0aa3d48f9b8 100644 --- a/lib/datadog_api_client/v2/models/role_clone.rb +++ b/lib/datadog_api_client/v2/models/role_clone.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Data for the clone role request. class RoleClone # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes required to create a new role by cloning an existing one. @@ -29,6 +30,7 @@ class RoleClone attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'RoleCloneAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleClone` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_clone_attributes.rb b/lib/datadog_api_client/v2/models/role_clone_attributes.rb index 61e8436b7868..91a931edff82 100644 --- a/lib/datadog_api_client/v2/models/role_clone_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_clone_attributes.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Attributes required to create a new role by cloning an existing one. class RoleCloneAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Name of the new role that is cloned. attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCloneAttributes` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_clone_request.rb b/lib/datadog_api_client/v2/models/role_clone_request.rb index f6f9ddbc5ed5..fc13438b18c9 100644 --- a/lib/datadog_api_client/v2/models/role_clone_request.rb +++ b/lib/datadog_api_client/v2/models/role_clone_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request to create a role by cloning an existing role. class RoleCloneRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Data for the clone role request. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RoleClone' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCloneRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_create_attributes.rb b/lib/datadog_api_client/v2/models/role_create_attributes.rb index f3deca341f3f..3dfe3e153147 100644 --- a/lib/datadog_api_client/v2/models/role_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the created role. class RoleCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the role. @@ -32,6 +33,7 @@ class RoleCreateAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, modified_at, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_create_data.rb b/lib/datadog_api_client/v2/models/role_create_data.rb index b0ca5b42abbe..834d37680e5b 100644 --- a/lib/datadog_api_client/v2/models/role_create_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Data related to the creation of a role. class RoleCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the created role. @@ -32,6 +33,7 @@ class RoleCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'RoleCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -103,13 +110,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -119,20 +128,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -140,6 +152,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -160,9 +173,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -211,18 +225,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -239,8 +256,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_create_request.rb b/lib/datadog_api_client/v2/models/role_create_request.rb index c6aaa4536d8b..bf3d91a12821 100644 --- a/lib/datadog_api_client/v2/models/role_create_request.rb +++ b/lib/datadog_api_client/v2/models/role_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Create a role. class RoleCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Data related to the creation of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RoleCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_create_response.rb b/lib/datadog_api_client/v2/models/role_create_response.rb index f0594121746a..ab4aea5d178c 100644 --- a/lib/datadog_api_client/v2/models/role_create_response.rb +++ b/lib/datadog_api_client/v2/models/role_create_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response containing information about a created role. class RoleCreateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RoleCreateResponseData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_create_response_data.rb b/lib/datadog_api_client/v2/models/role_create_response_data.rb index 68823f3b8c25..82f7ba02ecd9 100644 --- a/lib/datadog_api_client/v2/models/role_create_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_create_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Role object returned by the API. class RoleCreateResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the created role. @@ -35,6 +36,7 @@ class RoleCreateResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'RoleCreateAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleCreateResponseData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_relationships.rb b/lib/datadog_api_client/v2/models/role_relationships.rb index 78469fda1fc6..2899f863614e 100644 --- a/lib/datadog_api_client/v2/models/role_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Relationships of the role object. class RoleRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to multiple permissions objects. @@ -29,6 +30,7 @@ class RoleRelationships attr_accessor :users # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'permissions' => :'permissions', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'permissions' => :'RelationshipToPermissions', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleRelationships` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [permissions, users].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_response.rb b/lib/datadog_api_client/v2/models/role_response.rb index 714ba4361fc7..aa2136e2b2ff 100644 --- a/lib/datadog_api_client/v2/models/role_response.rb +++ b/lib/datadog_api_client/v2/models/role_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response containing information about a single role. class RoleResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Role' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_response_relationships.rb b/lib/datadog_api_client/v2/models/role_response_relationships.rb index 328c357e0f99..3670cd66b035 100644 --- a/lib/datadog_api_client/v2/models/role_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/role_response_relationships.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationships of the role object returned by the API. class RoleResponseRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to multiple permissions objects. attr_accessor :permissions # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'permissions' => :'permissions' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'permissions' => :'RelationshipToPermissions' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleResponseRelationships` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [permissions].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_update_attributes.rb b/lib/datadog_api_client/v2/models/role_update_attributes.rb index 3be18846fe32..ecbf193ac08a 100644 --- a/lib/datadog_api_client/v2/models/role_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/role_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the role. class RoleUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the role. @@ -32,6 +33,7 @@ class RoleUpdateAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, modified_at, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_update_data.rb b/lib/datadog_api_client/v2/models/role_update_data.rb index f19b3827e229..b01cdf54f0d6 100644 --- a/lib/datadog_api_client/v2/models/role_update_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Data related to the update of a role. class RoleUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the role. @@ -32,6 +33,7 @@ class RoleUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'RoleUpdateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_update_request.rb b/lib/datadog_api_client/v2/models/role_update_request.rb index 200b3cc973b3..d00fe67dc75e 100644 --- a/lib/datadog_api_client/v2/models/role_update_request.rb +++ b/lib/datadog_api_client/v2/models/role_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Update a role. class RoleUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Data related to the update of a role. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RoleUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_update_response.rb b/lib/datadog_api_client/v2/models/role_update_response.rb index a1304dbebf43..efc95755b4c3 100644 --- a/lib/datadog_api_client/v2/models/role_update_response.rb +++ b/lib/datadog_api_client/v2/models/role_update_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Response containing information about an updated role. class RoleUpdateResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Role object returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'RoleUpdateResponseData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/role_update_response_data.rb b/lib/datadog_api_client/v2/models/role_update_response_data.rb index c05a32def7fe..56dc0206dbb5 100644 --- a/lib/datadog_api_client/v2/models/role_update_response_data.rb +++ b/lib/datadog_api_client/v2/models/role_update_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Role object returned by the API. class RoleUpdateResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the role. @@ -35,6 +36,7 @@ class RoleUpdateResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'RoleUpdateAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RoleUpdateResponseData` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @type.nil? @@ -112,13 +119,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @type.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -129,20 +138,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -150,6 +162,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -170,9 +183,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -221,18 +235,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -249,8 +266,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/roles_response.rb b/lib/datadog_api_client/v2/models/roles_response.rb index f366cc376959..b25e4038be84 100644 --- a/lib/datadog_api_client/v2/models/roles_response.rb +++ b/lib/datadog_api_client/v2/models/roles_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response containing information about multiple roles. class RolesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of returned roles. @@ -29,6 +30,7 @@ class RolesResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RolesResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/roles_sort.rb b/lib/datadog_api_client/v2/models/roles_sort.rb index 00cf2274f5a0..aed57853b775 100644 --- a/lib/datadog_api_client/v2/models/roles_sort.rb +++ b/lib/datadog_api_client/v2/models/roles_sort.rb @@ -27,15 +27,17 @@ class RolesSort USER_COUNT_DESCENDING = "-user_count".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = RolesSort.constants.select { |c| RolesSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/roles_type.rb b/lib/datadog_api_client/v2/models/roles_type.rb index bf1f1fe4bc0f..0b394fe6915e 100644 --- a/lib/datadog_api_client/v2/models/roles_type.rb +++ b/lib/datadog_api_client/v2/models/roles_type.rb @@ -22,15 +22,17 @@ class RolesType ROLES = "roles".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = RolesType.constants.select { |c| RolesType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_filter.rb b/lib/datadog_api_client/v2/models/security_filter.rb index deb10b207baf..78d64b05d756 100644 --- a/lib/datadog_api_client/v2/models/security_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The security filter's properties. class SecurityFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object describing a security filter. @@ -32,6 +33,7 @@ class SecurityFilter attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SecurityFilterAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilter` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_attributes.rb index 9ddcab4fae51..ea79d5bb0880 100644 --- a/lib/datadog_api_client/v2/models/security_filter_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The object describing a security filter. class SecurityFilterAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The list of exclusion filters applied in this security filter. @@ -44,6 +45,7 @@ class SecurityFilterAttributes attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'exclusion_filters' => :'exclusion_filters', @@ -57,11 +59,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'exclusion_filters' => :'Array', @@ -75,13 +79,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterAttributes` initialize method" @@ -128,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -136,12 +143,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -155,20 +164,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [exclusion_filters, filtered_data_type, is_builtin, is_enabled, name, query, version].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -176,6 +188,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -196,9 +209,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -247,18 +261,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -275,8 +292,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb index d4cbf19fc17f..92bedd938b11 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object containing the attributes of the security filter to be created. class SecurityFilterCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Exclusion filters to exclude some logs from the security filter. @@ -38,6 +39,7 @@ class SecurityFilterCreateAttributes attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'exclusion_filters' => :'exclusion_filters', @@ -49,11 +51,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'exclusion_filters' => :'Array', @@ -65,13 +69,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateAttributes` initialize method" @@ -110,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @exclusion_filters.nil? @@ -133,6 +140,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @exclusion_filters.nil? return false if @filtered_data_type.nil? @@ -143,7 +151,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -155,20 +164,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [exclusion_filters, filtered_data_type, is_enabled, name, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -176,6 +188,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -196,9 +209,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -247,18 +261,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -275,8 +292,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_create_data.rb b/lib/datadog_api_client/v2/models/security_filter_create_data.rb index 38722d0d1f4e..b44134a245cc 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object for a single security filter. class SecurityFilterCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object containing the attributes of the security filter to be created. @@ -29,6 +30,7 @@ class SecurityFilterCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SecurityFilterCreateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_create_request.rb b/lib/datadog_api_client/v2/models/security_filter_create_request.rb index 51724f38ba69..7608f3c5a04a 100644 --- a/lib/datadog_api_client/v2/models/security_filter_create_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Request object that includes the security filter that you would like to create. class SecurityFilterCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object for a single security filter. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SecurityFilterCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb index 53d055a6de45..2d0214a975d7 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Exclusion filter for the security filter. class SecurityFilterExclusionFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Exclusion filter name. @@ -29,6 +30,7 @@ class SecurityFilterExclusionFilter attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterExclusionFilter` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @name.nil? @@ -95,6 +102,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @name.nil? return false if @query.nil? @@ -102,7 +110,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -111,20 +120,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -132,6 +144,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -152,9 +165,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -203,18 +217,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -231,8 +248,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb index 0150dd67fd04..b16f74eb2f49 100644 --- a/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_exclusion_filter_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # A single exclusion filter. class SecurityFilterExclusionFilterResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The exclusion filter name. @@ -29,6 +30,7 @@ class SecurityFilterExclusionFilterResponse attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'name' => :'name', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'name' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterExclusionFilterResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [name, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb b/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb index f3ee88fcb6d1..43f6a30b771b 100644 --- a/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb +++ b/lib/datadog_api_client/v2/models/security_filter_filtered_data_type.rb @@ -22,15 +22,17 @@ class SecurityFilterFilteredDataType LOGS = "logs".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityFilterFilteredDataType.constants.select { |c| SecurityFilterFilteredDataType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_filter_meta.rb b/lib/datadog_api_client/v2/models/security_filter_meta.rb index c537f7b0b606..182cbe03930c 100644 --- a/lib/datadog_api_client/v2/models/security_filter_meta.rb +++ b/lib/datadog_api_client/v2/models/security_filter_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Optional metadata associated to the response. class SecurityFilterMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A warning message. attr_accessor :warning # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'warning' => :'warning' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'warning' => :'String' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [warning].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_response.rb b/lib/datadog_api_client/v2/models/security_filter_response.rb index 532a55a52d6e..35132d71d1bf 100644 --- a/lib/datadog_api_client/v2/models/security_filter_response.rb +++ b/lib/datadog_api_client/v2/models/security_filter_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response object which includes a single security filter. class SecurityFilterResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The security filter's properties. @@ -29,6 +30,7 @@ class SecurityFilterResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SecurityFilter', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterResponse` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_type.rb b/lib/datadog_api_client/v2/models/security_filter_type.rb index 8a0432df774a..acaf1c35343e 100644 --- a/lib/datadog_api_client/v2/models/security_filter_type.rb +++ b/lib/datadog_api_client/v2/models/security_filter_type.rb @@ -22,15 +22,17 @@ class SecurityFilterType SECURITY_FILTERS = "security_filters".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityFilterType.constants.select { |c| SecurityFilterType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb index 3580a097ce3a..8d1a05b23241 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The security filters properties to be updated. class SecurityFilterUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Exclusion filters to exclude some logs from the security filter. @@ -41,6 +42,7 @@ class SecurityFilterUpdateAttributes attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'exclusion_filters' => :'exclusion_filters', @@ -53,11 +55,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'exclusion_filters' => :'Array', @@ -70,13 +74,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateAttributes` initialize method" @@ -119,6 +125,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -127,12 +134,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -145,20 +154,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [exclusion_filters, filtered_data_type, is_enabled, name, query, version].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -166,6 +178,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -186,9 +199,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -237,18 +251,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -265,8 +282,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_update_data.rb b/lib/datadog_api_client/v2/models/security_filter_update_data.rb index 169bb7ac5bbf..56d3423f0d5c 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_data.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The new security filter properties. class SecurityFilterUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The security filters properties to be updated. @@ -29,6 +30,7 @@ class SecurityFilterUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SecurityFilterUpdateAttributes', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filter_update_request.rb b/lib/datadog_api_client/v2/models/security_filter_update_request.rb index ef337ddd443c..4c68aa6286d5 100644 --- a/lib/datadog_api_client/v2/models/security_filter_update_request.rb +++ b/lib/datadog_api_client/v2/models/security_filter_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # The new security filter body. class SecurityFilterUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The new security filter properties. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'SecurityFilterUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFilterUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_filters_response.rb b/lib/datadog_api_client/v2/models/security_filters_response.rb index 25316441a759..6b3f645b5d4a 100644 --- a/lib/datadog_api_client/v2/models/security_filters_response.rb +++ b/lib/datadog_api_client/v2/models/security_filters_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # All the available security filters objects. class SecurityFiltersResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of security filters objects. @@ -29,6 +30,7 @@ class SecurityFiltersResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityFiltersResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb index 417d30776bfb..915895d27b32 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The rule's suppression filter. class SecurityMonitoringFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The type of filtering action. @@ -29,6 +30,7 @@ class SecurityMonitoringFilter attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'action' => :'action', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'action' => :'SecurityMonitoringFilterAction', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringFilter` initialize method" @@ -81,6 +87,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -89,12 +96,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -103,20 +112,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [action, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -124,6 +136,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -144,9 +157,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -195,18 +209,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -223,8 +240,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb b/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb index d579312f7ee6..07e7876a3006 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_filter_action.rb @@ -23,15 +23,17 @@ class SecurityMonitoringFilterAction SUPPRESS = "suppress".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringFilterAction.constants.select { |c| SecurityMonitoringFilterAction::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb index fbeb296de9df..7c31c35e0f79 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_list_rules_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # List of rules. class SecurityMonitoringListRulesResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array containing the list of rules. @@ -29,6 +30,7 @@ class SecurityMonitoringListRulesResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringListRulesResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb index fc12b77a16c9..afced00c6c14 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Case when signal is generated. class SecurityMonitoringRuleCase # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated @@ -36,6 +37,7 @@ class SecurityMonitoringRuleCase attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'condition' => :'condition', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'condition' => :'String', @@ -61,13 +65,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCase` initialize method" @@ -102,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -110,12 +117,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -126,20 +135,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [condition, name, notifications, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -147,6 +159,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -167,9 +180,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -218,18 +232,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -246,8 +263,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb index 850b9cac68f2..a01dc03ff8f9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Case when signal is generated. class SecurityMonitoringRuleCaseCreate # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated @@ -36,6 +37,7 @@ class SecurityMonitoringRuleCaseCreate attr_accessor :status # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'condition' => :'condition', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'condition' => :'String', @@ -61,13 +65,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate` initialize method" @@ -102,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @status.nil? @@ -113,13 +120,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @status.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -130,20 +139,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [condition, name, notifications, status].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -151,6 +163,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -171,9 +184,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -222,18 +236,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -250,8 +267,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb index 1fc3f4fe7100..e89d71e5cf90 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Create a new rule. class SecurityMonitoringRuleCreatePayload # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Cases for generating signals. @@ -53,6 +54,7 @@ class SecurityMonitoringRuleCreatePayload attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cases' => :'cases', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cases' => :'Array', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleCreatePayload` initialize method" @@ -161,6 +167,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @cases.nil? @@ -187,6 +194,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @cases.nil? return false if @is_enabled.nil? @@ -198,7 +206,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -215,20 +224,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cases, filters, has_extended_title, is_enabled, message, name, options, queries, tags, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -236,6 +248,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -256,9 +269,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -307,18 +321,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -335,8 +352,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb index 2884d1ef7ca4..ddac46aaa42a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb @@ -24,15 +24,17 @@ class SecurityMonitoringRuleDetectionMethod ANOMALY_DETECTION = "anomaly_detection".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleDetectionMethod.constants.select { |c| SecurityMonitoringRuleDetectionMethod::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb index 4fafefa43835..5f1a6f033c28 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb @@ -30,15 +30,17 @@ class SecurityMonitoringRuleEvaluationWindow TWO_HOURS = 7200.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleEvaluationWindow.constants.select { |c| SecurityMonitoringRuleEvaluationWindow::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb index 69f7f5ee6d3c..2361ee80cc2a 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb @@ -32,15 +32,17 @@ class SecurityMonitoringRuleKeepAlive SIX_HOURS = 21600.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleKeepAlive.constants.select { |c| SecurityMonitoringRuleKeepAlive::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb index 4537813f3228..cb436af9db75 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb @@ -34,15 +34,17 @@ class SecurityMonitoringRuleMaxSignalDuration ONE_DAY = 86400.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleMaxSignalDuration.constants.select { |c| SecurityMonitoringRuleMaxSignalDuration::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb index 54b9e98cd1a0..cc31d0f7e445 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Options on new value rules. class SecurityMonitoringRuleNewValueOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The duration in days after which a learned value is forgotten. @@ -30,6 +31,7 @@ class SecurityMonitoringRuleNewValueOptions attr_accessor :learning_duration # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'forget_after' => :'forgetAfter', @@ -38,11 +40,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'forget_after' => :'SecurityMonitoringRuleNewValueOptionsForgetAfter', @@ -51,13 +55,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions` initialize method" @@ -82,6 +88,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -90,12 +97,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -104,20 +113,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [forget_after, learning_duration].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -125,6 +137,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -145,9 +158,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -196,18 +210,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -224,8 +241,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb index cdfb0a2ca7ac..56664c201147 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb @@ -27,15 +27,17 @@ class SecurityMonitoringRuleNewValueOptionsForgetAfter FOUR_WEEKS = 28.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleNewValueOptionsForgetAfter.constants.select { |c| SecurityMonitoringRuleNewValueOptionsForgetAfter::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb index 87e0ba9732b4..d70800832878 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb @@ -25,15 +25,17 @@ class SecurityMonitoringRuleNewValueOptionsLearningDuration SEVEN_DAYS = 7.freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleNewValueOptionsLearningDuration.constants.select { |c| SecurityMonitoringRuleNewValueOptionsLearningDuration::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb index 029faa358e97..1f644b5024d9 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Options on rules. class SecurityMonitoringRuleOptions # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The detection method. @@ -41,6 +42,7 @@ class SecurityMonitoringRuleOptions attr_accessor :new_value_options # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'detection_method' => :'detectionMethod', @@ -52,11 +54,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'detection_method' => :'SecurityMonitoringRuleDetectionMethod', @@ -68,13 +72,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleOptions` initialize method" @@ -111,6 +117,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -119,12 +126,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -136,20 +145,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [detection_method, evaluation_window, keep_alive, max_signal_duration, new_value_options].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -157,6 +169,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -177,9 +190,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -228,18 +242,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -256,8 +273,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb index 177bc8dcfca0..5acdd2d89279 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Query for matching rule. class SecurityMonitoringRuleQuery # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregation type. @@ -42,6 +43,7 @@ class SecurityMonitoringRuleQuery attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'SecurityMonitoringRuleQueryAggregation', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleQuery` initialize method" @@ -122,6 +128,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -130,12 +137,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -148,20 +157,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, distinct_fields, group_by_fields, metric, name, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -169,6 +181,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -189,9 +202,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -240,18 +254,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -268,8 +285,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb index 4f0ad6d3f57c..633e842afa2b 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb @@ -26,15 +26,17 @@ class SecurityMonitoringRuleQueryAggregation NEW_VALUE = "new_value".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleQueryAggregation.constants.select { |c| SecurityMonitoringRuleQueryAggregation::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb index 8154ddf6bf64..f65e25a2892e 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Query for matching rule. class SecurityMonitoringRuleQueryCreate # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The aggregation type. @@ -42,6 +43,7 @@ class SecurityMonitoringRuleQueryCreate attr_accessor :query # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'aggregation' => :'aggregation', @@ -54,11 +56,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'aggregation' => :'SecurityMonitoringRuleQueryAggregation', @@ -71,13 +75,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleQueryCreate` initialize method" @@ -122,6 +128,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @query.nil? @@ -133,13 +140,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @query.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -152,20 +161,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [aggregation, distinct_fields, group_by_fields, metric, name, query].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -173,6 +185,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -193,9 +206,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -244,18 +258,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -272,8 +289,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb index 175843a526ad..efb348e4e222 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Rule. class SecurityMonitoringRuleResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Cases for generating signals. @@ -74,6 +75,7 @@ class SecurityMonitoringRuleResponse attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cases' => :'cases', @@ -97,11 +99,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cases' => :'Array', @@ -125,13 +129,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleResponse` initialize method" @@ -224,6 +230,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -232,12 +239,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -261,20 +270,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cases, created_at, creation_author_id, filters, has_extended_title, id, is_default, is_deleted, is_enabled, message, name, options, queries, tags, type, update_author_id, version].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -282,6 +294,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -302,9 +315,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -353,18 +367,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -381,8 +398,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb index 6589bdfdb13f..6745bf1c83c0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_severity.rb @@ -26,15 +26,17 @@ class SecurityMonitoringRuleSeverity CRITICAL = "critical".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleSeverity.constants.select { |c| SecurityMonitoringRuleSeverity::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb index a667f0187377..1742a5190ac0 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb @@ -23,15 +23,17 @@ class SecurityMonitoringRuleTypeCreate WORKLOAD_SECURITY = "workload_security".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleTypeCreate.constants.select { |c| SecurityMonitoringRuleTypeCreate::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb index b347b2307f56..7a5f75d16297 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb @@ -25,15 +25,17 @@ class SecurityMonitoringRuleTypeRead CLOUD_CONFIGURATION = "cloud_configuration".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringRuleTypeRead.constants.select { |c| SecurityMonitoringRuleTypeRead::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb index 40c0234905aa..9f6762c7f53f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Update an existing rule. class SecurityMonitoringRuleUpdatePayload # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Cases for generating signals. @@ -53,6 +54,7 @@ class SecurityMonitoringRuleUpdatePayload attr_accessor :version # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cases' => :'cases', @@ -69,11 +71,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cases' => :'Array', @@ -90,13 +94,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload` initialize method" @@ -161,6 +167,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -169,12 +176,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -191,20 +200,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cases, filters, has_extended_title, is_enabled, message, name, options, queries, tags, version].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -212,6 +224,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -232,9 +245,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -283,18 +297,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -311,8 +328,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb index 50b3b499e486..a75f167a8633 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object description of a security signal. class SecurityMonitoringSignal # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The object containing all signal attributes and their @@ -33,6 +34,7 @@ class SecurityMonitoringSignal attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'SecurityMonitoringSignalAttributes', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignal` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -101,12 +108,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -116,20 +125,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -137,6 +149,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -157,9 +170,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -208,18 +222,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -236,8 +253,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb index cce37640ec58..cd28a18f8bc7 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V2 # associated values. class SecurityMonitoringSignalAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A JSON object of attributes in the security signal. @@ -36,6 +37,7 @@ class SecurityMonitoringSignalAttributes attr_accessor :timestamp # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -46,11 +48,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'Hash', @@ -61,13 +65,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalAttributes` initialize method" @@ -100,6 +106,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -108,12 +115,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -124,20 +133,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, message, tags, timestamp].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -145,6 +157,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -165,9 +178,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -216,18 +230,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -244,8 +261,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb index c9a07ea9df69..0436bcca737f 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The request for a security signal list. class SecurityMonitoringSignalListRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Search filters for listing security signals. @@ -32,6 +33,7 @@ class SecurityMonitoringSignalListRequest attr_accessor :sort # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'filter' => :'filter', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'filter' => :'SecurityMonitoringSignalListRequestFilter', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequest` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [filter, page, sort].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb index 646b5ac8480f..38489d979b74 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_filter.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Search filters for listing security signals. class SecurityMonitoringSignalListRequestFilter # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The minimum timestamp for requested security signals. @@ -32,6 +33,7 @@ class SecurityMonitoringSignalListRequestFilter attr_accessor :to # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'from' => :'from', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'from' => :'Time', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestFilter` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [from, query, to].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb index 82814f2fb87f..5d36a20d2dc5 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # The paging attributes for listing security signals. class SecurityMonitoringSignalListRequestPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # A list of results using the cursor provided in the previous query. @@ -29,6 +30,7 @@ class SecurityMonitoringSignalListRequestPage attr_accessor :limit # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'cursor' => :'cursor', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'cursor' => :'String', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalListRequestPage` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [cursor, limit].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb b/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb index 2c70d32cf1e8..77bfd1c3a45c 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signal_type.rb @@ -22,15 +22,17 @@ class SecurityMonitoringSignalType SIGNAL = "signal".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringSignalType.constants.select { |c| SecurityMonitoringSignalType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb index 29674ba193ff..8d333a6500ef 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response.rb @@ -21,6 +21,7 @@ module DatadogAPIClient::V2 # and pagination information. class SecurityMonitoringSignalsListResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # An array of security signals matching the request. @@ -33,6 +34,7 @@ class SecurityMonitoringSignalsListResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -42,11 +44,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -56,13 +60,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponse` initialize method" @@ -93,6 +99,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -101,12 +108,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -116,20 +125,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, links, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -137,6 +149,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -157,9 +170,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -208,18 +222,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -236,8 +253,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb index 6e2309f1a2bd..3cb775dfbd89 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_links.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Links attributes. class SecurityMonitoringSignalsListResponseLinks # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The link for the next set of results. **Note**: The request can also be made using the @@ -27,6 +28,7 @@ class SecurityMonitoringSignalsListResponseLinks attr_accessor :_next # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'_next' => :'next' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'_next' => :'String' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseLinks` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [_next].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb index 23d06c14297f..4ee916bb7678 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Meta attributes. class SecurityMonitoringSignalsListResponseMeta # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Paging attributes. attr_accessor :page # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'page' => :'page' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'page' => :'SecurityMonitoringSignalsListResponseMetaPage' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMeta` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [page].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb index ff6466a1ab9a..54ce9a4fb132 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_list_response_meta_page.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Paging attributes. class SecurityMonitoringSignalsListResponseMetaPage # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The cursor used to get the next results, if any. To make the next request, use the same @@ -27,6 +28,7 @@ class SecurityMonitoringSignalsListResponseMetaPage attr_accessor :after # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'after' => :'after' @@ -34,11 +36,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'after' => :'String' @@ -46,13 +50,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalsListResponseMetaPage` initialize method" @@ -73,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -81,12 +88,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -94,20 +103,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [after].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -115,6 +127,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -135,9 +148,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -186,18 +200,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -214,8 +231,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb b/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb index 47e62e38735a..ad21efaa98de 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_signals_sort.rb @@ -23,15 +23,17 @@ class SecurityMonitoringSignalsSort TIMESTAMP_DESCENDING = "-timestamp".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = SecurityMonitoringSignalsSort.constants.select { |c| SecurityMonitoringSignalsSort::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb index 56a68e17d326..a2cda1bf1c23 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the created user. class ServiceAccountCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The email of the user. @@ -35,6 +36,7 @@ class ServiceAccountCreateAttributes attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'email' => :'email', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'email' => :'String', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @email.nil? @@ -113,6 +120,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @email.nil? return false if @service_account.nil? @@ -120,7 +128,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -131,20 +140,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [email, name, service_account, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -152,6 +164,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -172,9 +185,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -223,18 +237,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -251,8 +268,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/service_account_create_data.rb b/lib/datadog_api_client/v2/models/service_account_create_data.rb index 8e3a973cbef2..1c46c07a5e1d 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_data.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object to create a service account User. class ServiceAccountCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the created user. @@ -32,6 +33,7 @@ class ServiceAccountCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'ServiceAccountCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -106,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -113,7 +121,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/service_account_create_request.rb b/lib/datadog_api_client/v2/models/service_account_create_request.rb index 8d88da06b375..dbcdfdcfbb88 100644 --- a/lib/datadog_api_client/v2/models/service_account_create_request.rb +++ b/lib/datadog_api_client/v2/models/service_account_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Create a service account. class ServiceAccountCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object to create a service account User. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'ServiceAccountCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceAccountCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user.rb b/lib/datadog_api_client/v2/models/user.rb index 97453e55a239..18426f475a9d 100644 --- a/lib/datadog_api_client/v2/models/user.rb +++ b/lib/datadog_api_client/v2/models/user.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # User object returned by the API. class User # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of user object returned by the API. @@ -35,6 +36,7 @@ class User attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'UserAttributes', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::User` initialize method" @@ -101,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -109,12 +116,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -125,20 +134,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -146,6 +158,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -166,9 +179,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -217,18 +231,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -245,8 +262,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_attributes.rb b/lib/datadog_api_client/v2/models/user_attributes.rb index 227e1fb1375a..51937f60b115 100644 --- a/lib/datadog_api_client/v2/models/user_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of user object returned by the API. class UserAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the user. @@ -56,6 +57,7 @@ class UserAttributes attr_accessor :verified # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -73,11 +75,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -95,13 +99,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserAttributes` initialize method" @@ -162,6 +168,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -170,12 +177,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -193,20 +202,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, disabled, email, handle, icon, modified_at, name, service_account, status, title, verified].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -214,6 +226,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -234,9 +247,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -285,18 +299,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -313,8 +330,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_create_attributes.rb b/lib/datadog_api_client/v2/models/user_create_attributes.rb index 553ef76b313f..3e3cbfa5d92b 100644 --- a/lib/datadog_api_client/v2/models/user_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_create_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the created user. class UserCreateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # The email of the user. @@ -32,6 +33,7 @@ class UserCreateAttributes attr_accessor :title # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'email' => :'email', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'email' => :'String', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @email.nil? @@ -101,13 +108,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @email.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [email, name, title].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_create_data.rb b/lib/datadog_api_client/v2/models/user_create_data.rb index 9c243b0194f9..3bbfcb6ab527 100644 --- a/lib/datadog_api_client/v2/models/user_create_data.rb +++ b/lib/datadog_api_client/v2/models/user_create_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object to create a user. class UserCreateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the created user. @@ -32,6 +33,7 @@ class UserCreateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'UserCreateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -106,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @type.nil? @@ -113,7 +121,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_create_request.rb b/lib/datadog_api_client/v2/models/user_create_request.rb index 8d504fc73ff9..dd49dafbf1a7 100644 --- a/lib/datadog_api_client/v2/models/user_create_request.rb +++ b/lib/datadog_api_client/v2/models/user_create_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Create a user. class UserCreateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object to create a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'UserCreateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserCreateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitation_data.rb b/lib/datadog_api_client/v2/models/user_invitation_data.rb index 917c2038534b..dace3d5906e2 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object to create a user invitation. class UserInvitationData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationships data for user invitation. @@ -29,6 +30,7 @@ class UserInvitationData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'relationships' => :'relationships', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'relationships' => :'UserInvitationRelationships', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationData` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @relationships.nil? @@ -97,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @relationships.nil? return false if @type.nil? @@ -104,7 +112,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [relationships, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb index aa68005e15c5..78df15a402e0 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_data_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of a user invitation. class UserInvitationDataAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Creation time of the user invitation. @@ -35,6 +36,7 @@ class UserInvitationDataAttributes attr_accessor :uuid # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'created_at' => :'created_at', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'created_at' => :'Time', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationDataAttributes` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [created_at, expires_at, invite_type, uuid].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb index df16fada0ca0..881c84b86c33 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_relationships.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationships data for user invitation. class UserInvitationRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to user. attr_accessor :user # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'user' => :'user' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'user' => :'RelationshipToUser' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationRelationships` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @user.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @user.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [user].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitation_response.rb b/lib/datadog_api_client/v2/models/user_invitation_response.rb index d8ffb7ee345b..e48e953e26d5 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # User invitation as returned by the API. class UserInvitationResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object of a user invitation returned by the API. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'UserInvitationResponseData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationResponse` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb index d92acb39a7e2..f7505729571a 100644 --- a/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +++ b/lib/datadog_api_client/v2/models/user_invitation_response_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object of a user invitation returned by the API. class UserInvitationResponseData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of a user invitation. @@ -32,6 +33,7 @@ class UserInvitationResponseData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'UserInvitationDataAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationResponseData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -100,12 +107,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -115,20 +124,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -136,6 +148,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -156,9 +169,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -207,18 +221,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -235,8 +252,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitations_request.rb b/lib/datadog_api_client/v2/models/user_invitations_request.rb index b48653eb1ef3..80b49ebee446 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_request.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Object to invite users to join the organization. class UserInvitationsRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # List of user invitations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationsRequest` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -85,13 +92,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -99,20 +108,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -120,6 +132,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -140,9 +153,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -191,18 +205,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -219,8 +236,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitations_response.rb b/lib/datadog_api_client/v2/models/user_invitations_response.rb index 932b30870704..8ef70b67b7f2 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_response.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_response.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # User invitations as returned by the API. class UserInvitationsResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of user invitations. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserInvitationsResponse` initialize method" @@ -74,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -82,12 +89,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -95,20 +104,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -116,6 +128,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -136,9 +149,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -187,18 +201,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -215,8 +232,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_invitations_type.rb b/lib/datadog_api_client/v2/models/user_invitations_type.rb index 92a9676e306f..395f41c2ad18 100644 --- a/lib/datadog_api_client/v2/models/user_invitations_type.rb +++ b/lib/datadog_api_client/v2/models/user_invitations_type.rb @@ -22,15 +22,17 @@ class UserInvitationsType USER_INVITATIONS = "user_invitations".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UserInvitationsType.constants.select { |c| UserInvitationsType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value diff --git a/lib/datadog_api_client/v2/models/user_relationships.rb b/lib/datadog_api_client/v2/models/user_relationships.rb index 062d43765690..7c17c3c177f2 100644 --- a/lib/datadog_api_client/v2/models/user_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_relationships.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Relationships of the user object. class UserRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to roles. attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'roles' => :'roles' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'roles' => :'RelationshipToRoles' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserRelationships` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -80,12 +87,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -93,20 +102,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [roles].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -114,6 +126,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -134,9 +147,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -185,18 +199,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -213,8 +230,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_response.rb b/lib/datadog_api_client/v2/models/user_response.rb index 8592eacc1579..d5e3daa543ad 100644 --- a/lib/datadog_api_client/v2/models/user_response.rb +++ b/lib/datadog_api_client/v2/models/user_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response containing information about a single user. class UserResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # User object returned by the API. @@ -29,6 +30,7 @@ class UserResponse attr_accessor :included # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -37,11 +39,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'User', @@ -50,13 +54,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserResponse` initialize method" @@ -83,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -91,12 +98,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -105,20 +114,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -126,6 +138,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -146,9 +159,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -197,18 +211,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -225,8 +242,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_response_relationships.rb b/lib/datadog_api_client/v2/models/user_response_relationships.rb index ea73741ab5b2..c9ee92829ac4 100644 --- a/lib/datadog_api_client/v2/models/user_response_relationships.rb +++ b/lib/datadog_api_client/v2/models/user_response_relationships.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Relationships of the user object returned by the API. class UserResponseRelationships # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Relationship to an organization. @@ -35,6 +36,7 @@ class UserResponseRelationships attr_accessor :roles # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'org' => :'org', @@ -45,11 +47,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'org' => :'RelationshipToOrganization', @@ -60,13 +64,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserResponseRelationships` initialize method" @@ -99,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -107,12 +114,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -123,20 +132,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [org, other_orgs, other_users, roles].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -144,6 +156,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -164,9 +177,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -215,18 +229,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -243,8 +260,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_update_attributes.rb b/lib/datadog_api_client/v2/models/user_update_attributes.rb index ce82c80b2635..9a95c5259392 100644 --- a/lib/datadog_api_client/v2/models/user_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/user_update_attributes.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Attributes of the edited user. class UserUpdateAttributes # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # If the user is enabled or disabled. @@ -32,6 +33,7 @@ class UserUpdateAttributes attr_accessor :name # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'disabled' => :'disabled', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'disabled' => :'Boolean', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateAttributes` initialize method" @@ -90,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -98,12 +105,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -113,20 +122,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [disabled, email, name].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -134,6 +146,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -154,9 +167,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -205,18 +219,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -233,8 +250,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_update_data.rb b/lib/datadog_api_client/v2/models/user_update_data.rb index f13ee210e91f..86f57a86ce2f 100644 --- a/lib/datadog_api_client/v2/models/user_update_data.rb +++ b/lib/datadog_api_client/v2/models/user_update_data.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Object to update a user. class UserUpdateData # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Attributes of the edited user. @@ -32,6 +33,7 @@ class UserUpdateData attr_accessor :type # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'attributes' => :'attributes', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'attributes' => :'UserUpdateAttributes', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateData` initialize method" @@ -92,6 +98,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @attributes.nil? @@ -109,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @attributes.nil? return false if @id.nil? @@ -117,7 +125,8 @@ def valid? end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -127,20 +136,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [attributes, id, type].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -148,6 +160,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -168,9 +181,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -219,18 +233,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -247,8 +264,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/user_update_request.rb b/lib/datadog_api_client/v2/models/user_update_request.rb index 3dcd171ba44a..efc7abb9d0a0 100644 --- a/lib/datadog_api_client/v2/models/user_update_request.rb +++ b/lib/datadog_api_client/v2/models/user_update_request.rb @@ -20,12 +20,14 @@ module DatadogAPIClient::V2 # Update a user. class UserUpdateRequest # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Object to update a user. attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data' @@ -33,11 +35,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'UserUpdateData' @@ -45,13 +49,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UserUpdateRequest` initialize method" @@ -72,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new if @data.nil? @@ -83,13 +90,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? return false if @data.nil? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -97,20 +106,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -118,6 +130,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -138,9 +151,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -189,18 +203,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -217,8 +234,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/users_response.rb b/lib/datadog_api_client/v2/models/users_response.rb index 7896da843662..edbc151febf8 100644 --- a/lib/datadog_api_client/v2/models/users_response.rb +++ b/lib/datadog_api_client/v2/models/users_response.rb @@ -20,6 +20,7 @@ module DatadogAPIClient::V2 # Response containing information about multiple users. class UsersResponse # whether the object has unparsed attributes + # @!visibility private attr_accessor :_unparsed # Array of returned users. @@ -32,6 +33,7 @@ class UsersResponse attr_accessor :meta # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private def self.attribute_map { :'data' => :'data', @@ -41,11 +43,13 @@ def self.attribute_map end # Returns all the JSON keys this model knows about + # @!visibility private def self.acceptable_attributes attribute_map.values end # Attribute type mapping. + # @!visibility private def self.openapi_types { :'data' => :'Array', @@ -55,13 +59,15 @@ def self.openapi_types end # List of attributes with nullable: true + # @!visibility private def self.openapi_nullable Set.new([ ]) end # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UsersResponse` initialize method" @@ -94,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons + # @!visibility private def list_invalid_properties invalid_properties = Array.new @@ -102,12 +109,14 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid + # @!visibility private def valid? true end # Checks equality by comparing each attribute. - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def ==(o) return true if self.equal?(o) self.class == o.class && @@ -117,20 +126,23 @@ def ==(o) end # @see the `==` method - # @param [Object] Object to be compared + # @param o [Object] Object to be compared + # @!visibility private def eql?(o) self == o end # Calculates hash code according to all attributes. # @return [Integer] Hash code + # @!visibility private def hash [data, included, meta].hash end # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash + # @param attributes [Hash] Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def self.build_from_hash(attributes) new.build_from_hash(attributes) end @@ -138,6 +150,7 @@ def self.build_from_hash(attributes) # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself + # @!visibility private def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| @@ -158,9 +171,10 @@ def build_from_hash(attributes) end # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized + # @param type [string] Data type + # @param value [string] Value to be deserialized # @return [Object] Deserialized data + # @!visibility private def _deserialize(type, value) case type.to_sym when :Time @@ -209,18 +223,21 @@ def _deserialize(type, value) # Returns the string representation of the object # @return [String] String presentation of the object + # @!visibility private def to_s to_hash.to_s end # to_body is an alias to to_hash (backward compatibility) # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_body to_hash end # Returns the object in the form of hash # @return [Hash] Returns the object in the form of hash + # @!visibility private def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| @@ -237,8 +254,9 @@ def to_hash # Outputs non-array value in the form of hash # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value + # @param value [Object] Any valid value # @return [Hash] Returns the value in the form of hash + # @!visibility private def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } diff --git a/lib/datadog_api_client/v2/models/users_type.rb b/lib/datadog_api_client/v2/models/users_type.rb index c317b4950fac..2574fabfea27 100644 --- a/lib/datadog_api_client/v2/models/users_type.rb +++ b/lib/datadog_api_client/v2/models/users_type.rb @@ -22,15 +22,17 @@ class UsersType USERS = "users".freeze # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def self.build_from_hash(value) new.build_from_hash(value) end # Builds the enum from string - # @param [String] The enum value in the form of the string + # @param value [String] The enum value in the form of the string # @return [String] The enum value + # @!visibility private def build_from_hash(value) constantValues = UsersType.constants.select { |c| UsersType::const_get(c) == value } constantValues.empty? ? DatadogAPIClient::V2::UnparsedObject.new(value) : value