From 10dafc11bfb5a8aedc2ba93cb4ace7275a4177f4 Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Thu, 3 Feb 2022 12:16:56 +0100 Subject: [PATCH] nl to space --- .generator/src/generator/templates/api.j2 | 15 +- .../v1/api/authentication_api.rb | 1 - .../v1/api/aws_integration_api.rb | 38 +--- .../v1/api/aws_logs_integration_api.rb | 12 -- .../v1/api/azure_integration_api.rb | 9 - .../v1/api/dashboard_lists_api.rb | 10 - .../v1/api/dashboards_api.rb | 24 +-- .../v1/api/downtimes_api.rb | 15 -- lib/datadog_api_client/v1/api/events_api.rb | 25 +-- .../v1/api/gcp_integration_api.rb | 7 - lib/datadog_api_client/v1/api/hosts_api.rb | 16 -- .../v1/api/ip_ranges_api.rb | 1 - .../v1/api/key_management_api.rb | 20 -- lib/datadog_api_client/v1/api/logs_api.rb | 6 - .../v1/api/logs_indexes_api.rb | 11 - .../v1/api/logs_pipelines_api.rb | 13 -- lib/datadog_api_client/v1/api/metrics_api.rb | 26 +-- lib/datadog_api_client/v1/api/monitors_api.rb | 62 ++---- .../v1/api/notebooks_api.rb | 20 -- .../v1/api/organizations_api.rb | 11 - .../v1/api/pager_duty_integration_api.rb | 9 - .../v1/api/service_checks_api.rb | 2 - ...service_level_objective_corrections_api.rb | 10 - .../v1/api/service_level_objectives_api.rb | 34 +-- .../v1/api/slack_integration_api.rb | 15 -- .../v1/api/snapshots_api.rb | 11 +- .../v1/api/synthetics_api.rb | 72 +------ lib/datadog_api_client/v1/api/tags_api.rb | 28 +-- .../v1/api/usage_metering_api.rb | 197 +++--------------- lib/datadog_api_client/v1/api/users_api.rb | 10 - .../v1/api/webhooks_integration_api.rb | 18 -- .../v2/api/cloud_workload_security_api.rb | 11 - .../v2/api/dashboard_lists_api.rb | 11 - .../v2/api/incident_services_api.rb | 15 -- .../v2/api/incident_teams_api.rb | 15 -- .../v2/api/incidents_api.rb | 14 -- .../v2/api/key_management_api.rb | 63 +----- lib/datadog_api_client/v2/api/logs_api.rb | 20 +- .../v2/api/logs_archives_api.rb | 21 -- .../v2/api/logs_metrics_api.rb | 10 - lib/datadog_api_client/v2/api/metrics_api.rb | 33 +-- .../v2/api/processes_api.rb | 19 +- lib/datadog_api_client/v2/api/roles_api.rb | 46 +--- .../v2/api/security_monitoring_api.rb | 31 --- .../v2/api/service_accounts_api.rb | 25 +-- lib/datadog_api_client/v2/api/users_api.rb | 34 +-- 46 files changed, 120 insertions(+), 996 deletions(-) diff --git a/.generator/src/generator/templates/api.j2 b/.generator/src/generator/templates/api.j2 index 31e57ff4c56b..e1b50ffd0d3c 100644 --- a/.generator/src/generator/templates/api.j2 +++ b/.generator/src/generator/templates/api.j2 @@ -33,11 +33,11 @@ module {{ config.moduleName }} {%- endif %} {%- for name, parameter in operation|parameters if parameter.required %} - # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', '') }} + # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} {%- endfor %} # @param [Hash] opts the optional parameters {%- for name, parameter in operation|parameters if not parameter.required %} - # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', '') }}{% if "default" in parameter%} (default to {{ parameter.default|format_value }}) {% endif %} + # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', ' ') }}{% if "default" in parameter%} (default to {{ parameter.default|format_value }}) {% endif %} {%- endfor %} # @return [{% if returnType %}{{ returnType }}{% else %}nil{% endif %}] def {{ operation.operationId|snake_case }}({% for name, parameter in operation|parameters if parameter.required %}{{ name|attribute_name }}, {% endfor %}opts = {}) @@ -50,11 +50,11 @@ module {{ config.moduleName }} # {{ operation.description.rstrip()|replace('\n', '\n# ')|indent(4) }} {%- endif %} {%- for name, parameter in operation|parameters if parameter.required %} - # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', '') }} + # @param {{ name|attribute_name }} [{{ get_type_for_parameter(parameter) }}] {{ parameter.get("description", "").replace('\n', ' ') }} {%- endfor %} # @param [Hash] opts the optional parameters {%- for name, parameter in operation|parameters if not parameter.required %} - # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', '') }}{% if "default" in parameter%} (default to {{ parameter.default|json }}) {% endif %} + # @option opts [{{ get_type_for_parameter(parameter) }}] :{{ name|attribute_name }} {{ parameter.get("description", "").replace('\n', ' ') }}{% if "default" in parameter%} (default to {{ parameter.default|json }}) {% endif %} {%- endfor %} # @return [Array<({% if returnType %}{{ returnType }}{% else %}nil{% endif %}, Integer, Hash)>] {% if returnType %}{{ returnType }} data{% else %}nil{% endif %}, response status code and response headers def {{ operation.operationId|snake_case }}_with_http_info({% for name, parameter in operation|parameters if parameter.required %}{{ name|attribute_name }}, {% endfor %}opts = {}) @@ -101,8 +101,7 @@ module {{ config.moduleName }} {%- endif %} {%- endif %} - {%- endif %} -{# + {%- endif %}{# {{#hasValidation}} {{#maxLength}} if @api_client.config.client_side_validation && {{^required}}!opts[:'{{ name|attribute_name }}'].nil? && {{/required}}{{#required}}{{ name|attribute_name }}{{/required}}{{^required}}opts[:'{{ name|attribute_name }}']{{/required}}.to_s.length > {{{maxLength}}} @@ -148,9 +147,7 @@ module {{ config.moduleName }} {{/minItems}} {{/hasValidation}} -#} -{%- endfor %} - +#}{%- endfor %} # resource path local_var_path = '{{ path }}'{% for parameter in operation.parameters if parameter.in == "path" %}.sub('{{ '{' }}{{ parameter.name }}{{ '}'}}', CGI.escape({{ parameter.name }}.to_s).gsub('%2F', '/')){% endfor %} diff --git a/lib/datadog_api_client/v1/api/authentication_api.rb b/lib/datadog_api_client/v1/api/authentication_api.rb index ef046f75652e..08b24b3b5437 100644 --- a/lib/datadog_api_client/v1/api/authentication_api.rb +++ b/lib/datadog_api_client/v1/api/authentication_api.rb @@ -49,7 +49,6 @@ def validate_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AuthenticationAPI.validate ...' end - # resource path local_var_path = '/api/v1/validate' diff --git a/lib/datadog_api_client/v1/api/aws_integration_api.rb b/lib/datadog_api_client/v1/api/aws_integration_api.rb index 4f0b3e720466..e93f7566ed28 100644 --- a/lib/datadog_api_client/v1/api/aws_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_integration_api.rb @@ -61,8 +61,6 @@ def create_aws_account_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSIntegrationAPI.create_aws_account" end - - # resource path local_var_path = '/api/v1/integration/aws' @@ -106,7 +104,7 @@ def create_aws_account_with_http_info(body, opts = {}) end # Set an AWS tag filter # Set an AWS tag filter. - # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string.Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. + # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. # @param [Hash] opts the optional parameters # @return [Object] def create_aws_tag_filter(body, opts = {}) @@ -116,7 +114,7 @@ def create_aws_tag_filter(body, opts = {}) # Set an AWS tag filter # Set an AWS tag filter. - # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string.Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. + # @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`. # @param [Hash] opts the optional parameters # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def create_aws_tag_filter_with_http_info(body, opts = {}) @@ -137,8 +135,6 @@ def create_aws_tag_filter_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSIntegrationAPI.create_aws_tag_filter" end - - # resource path local_var_path = '/api/v1/integration/aws/filtering' @@ -182,7 +178,7 @@ def create_aws_tag_filter_with_http_info(body, opts = {}) end # Generate a new external ID # Generate a new AWS external ID for a given AWS account ID and role name pair. - # @param body [AWSAccount] Your Datadog role delegation name.For more information about your AWS account Role name,see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). + # @param body [AWSAccount] Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). # @param [Hash] opts the optional parameters # @return [AWSAccountCreateResponse] def create_new_aws_external_id(body, opts = {}) @@ -192,7 +188,7 @@ def create_new_aws_external_id(body, opts = {}) # Generate a new external ID # Generate a new AWS external ID for a given AWS account ID and role name pair. - # @param body [AWSAccount] Your Datadog role delegation name.For more information about your AWS account Role name,see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). + # @param body [AWSAccount] Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup). # @param [Hash] opts the optional parameters # @return [Array<(AWSAccountCreateResponse, Integer, Hash)>] AWSAccountCreateResponse data, response status code and response headers def create_new_aws_external_id_with_http_info(body, opts = {}) @@ -213,8 +209,6 @@ def create_new_aws_external_id_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSIntegrationAPI.create_new_aws_external_id" end - - # resource path local_var_path = '/api/v1/integration/aws/generate_new_external_id' @@ -289,8 +283,6 @@ def delete_aws_account_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSIntegrationAPI.delete_aws_account" end - - # resource path local_var_path = '/api/v1/integration/aws' @@ -365,8 +357,6 @@ def delete_aws_tag_filter_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSIntegrationAPI.delete_aws_tag_filter" end - - # resource path local_var_path = '/api/v1/integration/aws/filtering' @@ -435,7 +425,6 @@ def list_available_aws_namespaces_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.list_available_aws_namespaces ...' end - # resource path local_var_path = '/api/v1/integration/aws/available_namespace_rules' @@ -508,10 +497,6 @@ def list_aws_accounts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.list_aws_accounts ...' end - - - - # resource path local_var_path = '/api/v1/integration/aws' @@ -587,8 +572,6 @@ def list_aws_tag_filters_with_http_info(account_id, opts = {}) if @api_client.config.client_side_validation && account_id.nil? fail ArgumentError, "Missing the required parameter 'account_id' when calling AWSIntegrationAPI.list_aws_tag_filters" end - - # resource path local_var_path = '/api/v1/integration/aws/filtering' @@ -634,8 +617,8 @@ def list_aws_tag_filters_with_http_info(account_id, opts = {}) # @param body [AWSAccount] AWS request object # @param [Hash] opts the optional parameters # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. - # @option opts [String] :role_name Only return AWS accounts that match this `role_name`.Required if `account_id` is specified. - # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`.Required if none of the other two options are specified. + # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. + # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. # @return [Object] def update_aws_account(body, opts = {}) data, _status_code, _headers = update_aws_account_with_http_info(body, opts) @@ -647,8 +630,8 @@ def update_aws_account(body, opts = {}) # @param body [AWSAccount] AWS request object # @param [Hash] opts the optional parameters # @option opts [String] :account_id Only return AWS accounts that matches this `account_id`. - # @option opts [String] :role_name Only return AWS accounts that match this `role_name`.Required if `account_id` is specified. - # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`.Required if none of the other two options are specified. + # @option opts [String] :role_name Only return AWS accounts that match this `role_name`. Required if `account_id` is specified. + # @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified. # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers def update_aws_account_with_http_info(body, opts = {}) @@ -664,15 +647,10 @@ def update_aws_account_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.update_aws_account ...' end - - - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSIntegrationAPI.update_aws_account" end - - # resource path local_var_path = '/api/v1/integration/aws' diff --git a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb index 96ef7cceb94e..cea281a3582a 100644 --- a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb @@ -69,8 +69,6 @@ def check_aws_logs_lambda_async_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSLogsIntegrationAPI.check_aws_logs_lambda_async" end - - # resource path local_var_path = '/api/v1/integration/aws/logs/check_async' @@ -163,8 +161,6 @@ def check_aws_logs_services_async_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSLogsIntegrationAPI.check_aws_logs_services_async" end - - # resource path local_var_path = '/api/v1/integration/aws/logs/services_async' @@ -239,8 +235,6 @@ def create_aws_lambda_arn_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSLogsIntegrationAPI.create_aws_lambda_arn" end - - # resource path local_var_path = '/api/v1/integration/aws/logs' @@ -315,8 +309,6 @@ def delete_aws_lambda_arn_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSLogsIntegrationAPI.delete_aws_lambda_arn" end - - # resource path local_var_path = '/api/v1/integration/aws/logs' @@ -391,8 +383,6 @@ def enable_aws_log_services_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AWSLogsIntegrationAPI.enable_aws_log_services" end - - # resource path local_var_path = '/api/v1/integration/aws/logs/services' @@ -461,7 +451,6 @@ def list_aws_logs_integrations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AWSLogsIntegrationAPI.list_aws_logs_integrations ...' end - # resource path local_var_path = '/api/v1/integration/aws/logs' @@ -528,7 +517,6 @@ def list_aws_logs_services_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AWSLogsIntegrationAPI.list_aws_logs_services ...' end - # resource path local_var_path = '/api/v1/integration/aws/logs/services' diff --git a/lib/datadog_api_client/v1/api/azure_integration_api.rb b/lib/datadog_api_client/v1/api/azure_integration_api.rb index 90a99fabf777..1f804ddea70c 100644 --- a/lib/datadog_api_client/v1/api/azure_integration_api.rb +++ b/lib/datadog_api_client/v1/api/azure_integration_api.rb @@ -67,8 +67,6 @@ def create_azure_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AzureIntegrationAPI.create_azure_integration" end - - # resource path local_var_path = '/api/v1/integration/azure' @@ -143,8 +141,6 @@ def delete_azure_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AzureIntegrationAPI.delete_azure_integration" end - - # resource path local_var_path = '/api/v1/integration/azure' @@ -213,7 +209,6 @@ def list_azure_integration_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AzureIntegrationAPI.list_azure_integration ...' end - # resource path local_var_path = '/api/v1/integration/azure' @@ -286,8 +281,6 @@ def update_azure_host_filters_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AzureIntegrationAPI.update_azure_host_filters" end - - # resource path local_var_path = '/api/v1/integration/azure/host_filters' @@ -366,8 +359,6 @@ def update_azure_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AzureIntegrationAPI.update_azure_integration" end - - # resource path local_var_path = '/api/v1/integration/azure' diff --git a/lib/datadog_api_client/v1/api/dashboard_lists_api.rb b/lib/datadog_api_client/v1/api/dashboard_lists_api.rb index 2e91ee6be747..fee500bfa039 100644 --- a/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v1/api/dashboard_lists_api.rb @@ -55,8 +55,6 @@ def create_dashboard_list_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.create_dashboard_list" end - - # resource path local_var_path = '/api/v1/dashboard/lists/manual' @@ -131,8 +129,6 @@ def delete_dashboard_list_with_http_info(list_id, opts = {}) if @api_client.config.client_side_validation && list_id.nil? fail ArgumentError, "Missing the required parameter 'list_id' when calling DashboardListsAPI.delete_dashboard_list" end - - # resource path local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{list_id}', CGI.escape(list_id.to_s).gsub('%2F', '/')) @@ -205,8 +201,6 @@ def get_dashboard_list_with_http_info(list_id, opts = {}) if @api_client.config.client_side_validation && list_id.nil? fail ArgumentError, "Missing the required parameter 'list_id' when calling DashboardListsAPI.get_dashboard_list" end - - # resource path local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{list_id}', CGI.escape(list_id.to_s).gsub('%2F', '/')) @@ -273,7 +267,6 @@ def list_dashboard_lists_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DashboardListsAPI.list_dashboard_lists ...' end - # resource path local_var_path = '/api/v1/dashboard/lists/manual' @@ -348,13 +341,10 @@ def update_dashboard_list_with_http_info(list_id, body, opts = {}) if @api_client.config.client_side_validation && list_id.nil? fail ArgumentError, "Missing the required parameter 'list_id' when calling DashboardListsAPI.update_dashboard_list" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.update_dashboard_list" end - - # resource path local_var_path = '/api/v1/dashboard/lists/manual/{list_id}'.sub('{list_id}', CGI.escape(list_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/dashboards_api.rb b/lib/datadog_api_client/v1/api/dashboards_api.rb index 6c98f54f1797..a02fee7b73c0 100644 --- a/lib/datadog_api_client/v1/api/dashboards_api.rb +++ b/lib/datadog_api_client/v1/api/dashboards_api.rb @@ -57,8 +57,6 @@ def create_dashboard_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardsAPI.create_dashboard" end - - # resource path local_var_path = '/api/v1/dashboard' @@ -133,8 +131,6 @@ def delete_dashboard_with_http_info(dashboard_id, opts = {}) if @api_client.config.client_side_validation && dashboard_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_id' when calling DashboardsAPI.delete_dashboard" end - - # resource path local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{dashboard_id}', CGI.escape(dashboard_id.to_s).gsub('%2F', '/')) @@ -207,8 +203,6 @@ def delete_dashboards_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardsAPI.delete_dashboards" end - - # resource path local_var_path = '/api/v1/dashboard' @@ -283,8 +277,6 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) if @api_client.config.client_side_validation && dashboard_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_id' when calling DashboardsAPI.get_dashboard" end - - # resource path local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{dashboard_id}', CGI.escape(dashboard_id.to_s).gsub('%2F', '/')) @@ -330,8 +322,8 @@ def get_dashboard_with_http_info(dashboard_id, opts = {}) # **Note**: This query will only return custom created or cloned dashboards. # This query will not return preset dashboards. # @param [Hash] opts the optional parameters - # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom createdor cloned dashboards. - # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-createdor cloned dashboards. This parameter is incompatible with `filter[shared]`. + # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. + # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. # @return [DashboardSummary] def list_dashboards(opts = {}) data, _status_code, _headers = list_dashboards_with_http_info(opts) @@ -344,8 +336,8 @@ def list_dashboards(opts = {}) # **Note**: This query will only return custom created or cloned dashboards. # This query will not return preset dashboards. # @param [Hash] opts the optional parameters - # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom createdor cloned dashboards. - # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-createdor cloned dashboards. This parameter is incompatible with `filter[shared]`. + # @option opts [Boolean] :filter_shared When `true`, this query only returns shared custom created or cloned dashboards. + # @option opts [Boolean] :filter_deleted When `true`, this query returns only deleted custom-created or cloned dashboards. This parameter is incompatible with `filter[shared]`. # @return [Array<(DashboardSummary, Integer, Hash)>] DashboardSummary data, response status code and response headers def list_dashboards_with_http_info(opts = {}) @@ -361,9 +353,6 @@ def list_dashboards_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DashboardsAPI.list_dashboards ...' end - - - # resource path local_var_path = '/api/v1/dashboard' @@ -438,8 +427,6 @@ def restore_dashboards_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardsAPI.restore_dashboards" end - - # resource path local_var_path = '/api/v1/dashboard' @@ -516,13 +503,10 @@ def update_dashboard_with_http_info(dashboard_id, body, opts = {}) if @api_client.config.client_side_validation && dashboard_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_id' when calling DashboardsAPI.update_dashboard" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardsAPI.update_dashboard" end - - # resource path local_var_path = '/api/v1/dashboard/{dashboard_id}'.sub('{dashboard_id}', CGI.escape(dashboard_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/downtimes_api.rb b/lib/datadog_api_client/v1/api/downtimes_api.rb index d0ad77c27e2a..9a0abf368889 100644 --- a/lib/datadog_api_client/v1/api/downtimes_api.rb +++ b/lib/datadog_api_client/v1/api/downtimes_api.rb @@ -55,8 +55,6 @@ def cancel_downtime_with_http_info(downtime_id, opts = {}) if @api_client.config.client_side_validation && downtime_id.nil? fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.cancel_downtime" end - - # resource path local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) @@ -129,8 +127,6 @@ def cancel_downtimes_by_scope_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DowntimesAPI.cancel_downtimes_by_scope" end - - # resource path local_var_path = '/api/v1/downtime/cancel/by_scope' @@ -205,8 +201,6 @@ def create_downtime_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DowntimesAPI.create_downtime" end - - # resource path local_var_path = '/api/v1/downtime' @@ -281,8 +275,6 @@ def get_downtime_with_http_info(downtime_id, opts = {}) if @api_client.config.client_side_validation && downtime_id.nil? fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.get_downtime" end - - # resource path local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) @@ -351,8 +343,6 @@ def list_downtimes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DowntimesAPI.list_downtimes ...' end - - # resource path local_var_path = '/api/v1/downtime' @@ -426,8 +416,6 @@ def list_monitor_downtimes_with_http_info(monitor_id, opts = {}) if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DowntimesAPI.list_monitor_downtimes" end - - # resource path local_var_path = '/api/v1/monitor/{monitor_id}/downtimes'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) @@ -502,13 +490,10 @@ def update_downtime_with_http_info(downtime_id, body, opts = {}) if @api_client.config.client_side_validation && downtime_id.nil? fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.update_downtime" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DowntimesAPI.update_downtime" end - - # resource path local_var_path = '/api/v1/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/events_api.rb b/lib/datadog_api_client/v1/api/events_api.rb index 036af6d74a31..a0d5d79d9cbf 100644 --- a/lib/datadog_api_client/v1/api/events_api.rb +++ b/lib/datadog_api_client/v1/api/events_api.rb @@ -57,8 +57,6 @@ def create_event_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling EventsAPI.create_event" end - - # resource path local_var_path = '/api/v1/events' @@ -139,8 +137,6 @@ def get_event_with_http_info(event_id, opts = {}) if @api_client.config.client_side_validation && event_id.nil? fail ArgumentError, "Missing the required parameter 'event_id' when calling EventsAPI.get_event" end - - # resource path local_var_path = '/api/v1/events/{event_id}'.sub('{event_id}', CGI.escape(event_id.to_s).gsub('%2F', '/')) @@ -196,9 +192,9 @@ def get_event_with_http_info(event_id, opts = {}) # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. # @option opts [String] :sources A comma separated string of sources. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. - # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe.Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe,it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` - # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`,then the unaggregated parameter is ignored and will be `true` by default. - # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be usedwhen either unaggregated or exclude_aggregate is set to `true.` + # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` + # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default. + # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.` # @return [EventListResponse] def list_events(start, _end, opts = {}) data, _status_code, _headers = list_events_with_http_info(start, _end, opts) @@ -221,9 +217,9 @@ def list_events(start, _end, opts = {}) # @option opts [EventPriority] :priority Priority of your events, either `low` or `normal`. # @option opts [String] :sources A comma separated string of sources. # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. - # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe.Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe,it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` - # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`,then the unaggregated parameter is ignored and will be `true` by default. - # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be usedwhen either unaggregated or exclude_aggregate is set to `true.` + # @option opts [Boolean] :unaggregated Set unaggregated to `true` to return all events within the specified [`start`,`end`] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won't be available in the output. Aggregated events with `is_aggregate=true` in the response will still be returned unless exclude_aggregate is set to `true.` + # @option opts [Boolean] :exclude_aggregate Set `exclude_aggregate` to `true` to only return unaggregated events where `is_aggregate=false` in the response. If the `exclude_aggregate` parameter is set to `true`, then the unaggregated parameter is ignored and will be `true` by default. + # @option opts [Integer] :page By default 1000 results are returned per request. Set page to the number of the page to return with `0` being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to `true.` # @return [Array<(EventListResponse, Integer, Hash)>] EventListResponse data, response status code and response headers def list_events_with_http_info(start, _end, opts = {}) @@ -243,19 +239,10 @@ def list_events_with_http_info(start, _end, opts = {}) if @api_client.config.client_side_validation && start.nil? fail ArgumentError, "Missing the required parameter 'start' when calling EventsAPI.list_events" end - # verify the required parameter '_end' is set if @api_client.config.client_side_validation && _end.nil? fail ArgumentError, "Missing the required parameter '_end' when calling EventsAPI.list_events" end - - - - - - - - # resource path local_var_path = '/api/v1/events' diff --git a/lib/datadog_api_client/v1/api/gcp_integration_api.rb b/lib/datadog_api_client/v1/api/gcp_integration_api.rb index 0738b2fecbc4..154d7c1589df 100644 --- a/lib/datadog_api_client/v1/api/gcp_integration_api.rb +++ b/lib/datadog_api_client/v1/api/gcp_integration_api.rb @@ -55,8 +55,6 @@ def create_gcp_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling GCPIntegrationAPI.create_gcp_integration" end - - # resource path local_var_path = '/api/v1/integration/gcp' @@ -131,8 +129,6 @@ def delete_gcp_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling GCPIntegrationAPI.delete_gcp_integration" end - - # resource path local_var_path = '/api/v1/integration/gcp' @@ -201,7 +197,6 @@ def list_gcp_integration_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: GCPIntegrationAPI.list_gcp_integration ...' end - # resource path local_var_path = '/api/v1/integration/gcp' @@ -280,8 +275,6 @@ def update_gcp_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling GCPIntegrationAPI.update_gcp_integration" end - - # resource path local_var_path = '/api/v1/integration/gcp' diff --git a/lib/datadog_api_client/v1/api/hosts_api.rb b/lib/datadog_api_client/v1/api/hosts_api.rb index 95a5ac491e96..2ea00f2f9f97 100644 --- a/lib/datadog_api_client/v1/api/hosts_api.rb +++ b/lib/datadog_api_client/v1/api/hosts_api.rb @@ -53,8 +53,6 @@ def get_host_totals_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: HostsAPI.get_host_totals ...' end - - # resource path local_var_path = '/api/v1/hosts/totals' @@ -144,15 +142,6 @@ def list_hosts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: HostsAPI.list_hosts ...' end - - - - - - - - - # resource path local_var_path = '/api/v1/hosts' @@ -235,13 +224,10 @@ def mute_host_with_http_info(host_name, body, opts = {}) if @api_client.config.client_side_validation && host_name.nil? fail ArgumentError, "Missing the required parameter 'host_name' when calling HostsAPI.mute_host" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling HostsAPI.mute_host" end - - # resource path local_var_path = '/api/v1/host/{host_name}/mute'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) @@ -316,8 +302,6 @@ def unmute_host_with_http_info(host_name, opts = {}) if @api_client.config.client_side_validation && host_name.nil? fail ArgumentError, "Missing the required parameter 'host_name' when calling HostsAPI.unmute_host" end - - # resource path local_var_path = '/api/v1/host/{host_name}/unmute'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/ip_ranges_api.rb b/lib/datadog_api_client/v1/api/ip_ranges_api.rb index 7c4fd55d1668..b06992723685 100644 --- a/lib/datadog_api_client/v1/api/ip_ranges_api.rb +++ b/lib/datadog_api_client/v1/api/ip_ranges_api.rb @@ -49,7 +49,6 @@ def get_ip_ranges_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IPRangesAPI.get_ip_ranges ...' end - # resource path local_var_path = '/' diff --git a/lib/datadog_api_client/v1/api/key_management_api.rb b/lib/datadog_api_client/v1/api/key_management_api.rb index 0fa4f3967c0b..c28bb2939040 100644 --- a/lib/datadog_api_client/v1/api/key_management_api.rb +++ b/lib/datadog_api_client/v1/api/key_management_api.rb @@ -55,8 +55,6 @@ def create_api_key_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.create_api_key" end - - # resource path local_var_path = '/api/v1/api_key' @@ -131,8 +129,6 @@ def create_application_key_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.create_application_key" end - - # resource path local_var_path = '/api/v1/application_key' @@ -207,8 +203,6 @@ def delete_api_key_with_http_info(key, opts = {}) if @api_client.config.client_side_validation && key.nil? fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.delete_api_key" end - - # resource path local_var_path = '/api/v1/api_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) @@ -281,8 +275,6 @@ def delete_application_key_with_http_info(key, opts = {}) if @api_client.config.client_side_validation && key.nil? fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.delete_application_key" end - - # resource path local_var_path = '/api/v1/application_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) @@ -355,8 +347,6 @@ def get_api_key_with_http_info(key, opts = {}) if @api_client.config.client_side_validation && key.nil? fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.get_api_key" end - - # resource path local_var_path = '/api/v1/api_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) @@ -429,8 +419,6 @@ def get_application_key_with_http_info(key, opts = {}) if @api_client.config.client_side_validation && key.nil? fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.get_application_key" end - - # resource path local_var_path = '/api/v1/application_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) @@ -497,7 +485,6 @@ def list_api_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_api_keys ...' end - # resource path local_var_path = '/api/v1/api_key' @@ -564,7 +551,6 @@ def list_application_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_application_keys ...' end - # resource path local_var_path = '/api/v1/application_key' @@ -639,13 +625,10 @@ def update_api_key_with_http_info(key, body, opts = {}) if @api_client.config.client_side_validation && key.nil? fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.update_api_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_api_key" end - - # resource path local_var_path = '/api/v1/api_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) @@ -722,13 +705,10 @@ def update_application_key_with_http_info(key, body, opts = {}) if @api_client.config.client_side_validation && key.nil? fail ArgumentError, "Missing the required parameter 'key' when calling KeyManagementAPI.update_application_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_application_key" end - - # resource path local_var_path = '/api/v1/application_key/{key}'.sub('{key}', CGI.escape(key.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/logs_api.rb b/lib/datadog_api_client/v1/api/logs_api.rb index a402125ef3ec..ee9b8db1a52c 100644 --- a/lib/datadog_api_client/v1/api/logs_api.rb +++ b/lib/datadog_api_client/v1/api/logs_api.rb @@ -71,8 +71,6 @@ def list_logs_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsAPI.list_logs" end - - # resource path local_var_path = '/api/v1/logs-queries/list' @@ -183,14 +181,10 @@ def submit_log_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...' end - - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsAPI.submit_log" end - - # resource path local_var_path = '/v1/input' diff --git a/lib/datadog_api_client/v1/api/logs_indexes_api.rb b/lib/datadog_api_client/v1/api/logs_indexes_api.rb index a0422dfd80e6..c1e37a78389d 100644 --- a/lib/datadog_api_client/v1/api/logs_indexes_api.rb +++ b/lib/datadog_api_client/v1/api/logs_indexes_api.rb @@ -55,8 +55,6 @@ def create_logs_index_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsIndexesAPI.create_logs_index" end - - # resource path local_var_path = '/api/v1/logs/config/indexes' @@ -131,8 +129,6 @@ def get_logs_index_with_http_info(name, opts = {}) if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling LogsIndexesAPI.get_logs_index" end - - # resource path local_var_path = '/api/v1/logs/config/indexes/{name}'.sub('{name}', CGI.escape(name.to_s).gsub('%2F', '/')) @@ -199,7 +195,6 @@ def get_logs_index_order_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsIndexesAPI.get_logs_index_order ...' end - # resource path local_var_path = '/api/v1/logs/config/index-order' @@ -268,7 +263,6 @@ def list_log_indexes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsIndexesAPI.list_log_indexes ...' end - # resource path local_var_path = '/api/v1/logs/config/indexes' @@ -351,13 +345,10 @@ def update_logs_index_with_http_info(name, body, opts = {}) if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling LogsIndexesAPI.update_logs_index" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsIndexesAPI.update_logs_index" end - - # resource path local_var_path = '/api/v1/logs/config/indexes/{name}'.sub('{name}', CGI.escape(name.to_s).gsub('%2F', '/')) @@ -434,8 +425,6 @@ def update_logs_index_order_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsIndexesAPI.update_logs_index_order" end - - # resource path local_var_path = '/api/v1/logs/config/index-order' diff --git a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb index e120e358bc95..fdfcbd3e29fd 100644 --- a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +++ b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb @@ -55,8 +55,6 @@ def create_logs_pipeline_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsPipelinesAPI.create_logs_pipeline" end - - # resource path local_var_path = '/api/v1/logs/config/pipelines' @@ -133,8 +131,6 @@ def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) if @api_client.config.client_side_validation && pipeline_id.nil? fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling LogsPipelinesAPI.delete_logs_pipeline" end - - # resource path local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/')) @@ -209,8 +205,6 @@ def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) if @api_client.config.client_side_validation && pipeline_id.nil? fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling LogsPipelinesAPI.get_logs_pipeline" end - - # resource path local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/')) @@ -279,7 +273,6 @@ def get_logs_pipeline_order_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.get_logs_pipeline_order ...' end - # resource path local_var_path = '/api/v1/logs/config/pipeline-order' @@ -348,7 +341,6 @@ def list_logs_pipelines_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.list_logs_pipelines ...' end - # resource path local_var_path = '/api/v1/logs/config/pipelines' @@ -429,13 +421,10 @@ def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) if @api_client.config.client_side_validation && pipeline_id.nil? fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling LogsPipelinesAPI.update_logs_pipeline" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsPipelinesAPI.update_logs_pipeline" end - - # resource path local_var_path = '/api/v1/logs/config/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/')) @@ -518,8 +507,6 @@ def update_logs_pipeline_order_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsPipelinesAPI.update_logs_pipeline_order" end - - # resource path local_var_path = '/api/v1/logs/config/pipeline-order' diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 2fb67403b3c3..085cb7b9b6b9 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -55,8 +55,6 @@ def get_metric_metadata_with_http_info(metric_name, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.get_metric_metadata" end - - # resource path local_var_path = '/api/v1/metrics/{metric_name}'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) @@ -100,8 +98,8 @@ def get_metric_metadata_with_http_info(metric_name, opts = {}) # Get the list of actively reporting metrics from a given time until now. # @param from [Integer] Seconds since the Unix epoch. # @param [Hash] opts the optional parameters - # @option opts [String] :host Hostname for filtering the list of metrics returned.If set, metrics retrieved are those with the corresponding hostname tag. - # @option opts [String] :tag_filter Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.Cannot be combined with other filters. + # @option opts [String] :host Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. + # @option opts [String] :tag_filter Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. # @return [MetricsListResponse] def list_active_metrics(from, opts = {}) data, _status_code, _headers = list_active_metrics_with_http_info(from, opts) @@ -112,8 +110,8 @@ def list_active_metrics(from, opts = {}) # Get the list of actively reporting metrics from a given time until now. # @param from [Integer] Seconds since the Unix epoch. # @param [Hash] opts the optional parameters - # @option opts [String] :host Hostname for filtering the list of metrics returned.If set, metrics retrieved are those with the corresponding hostname tag. - # @option opts [String] :tag_filter Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.Cannot be combined with other filters. + # @option opts [String] :host Hostname for filtering the list of metrics returned. If set, metrics retrieved are those with the corresponding hostname tag. + # @option opts [String] :tag_filter Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. # @return [Array<(MetricsListResponse, Integer, Hash)>] MetricsListResponse data, response status code and response headers def list_active_metrics_with_http_info(from, opts = {}) @@ -133,10 +131,6 @@ def list_active_metrics_with_http_info(from, opts = {}) if @api_client.config.client_side_validation && from.nil? fail ArgumentError, "Missing the required parameter 'from' when calling MetricsAPI.list_active_metrics" end - - - - # resource path local_var_path = '/api/v1/metrics' @@ -212,8 +206,6 @@ def list_metrics_with_http_info(q, opts = {}) if @api_client.config.client_side_validation && q.nil? fail ArgumentError, "Missing the required parameter 'q' when calling MetricsAPI.list_metrics" end - - # resource path local_var_path = '/api/v1/search' @@ -291,18 +283,14 @@ def query_metrics_with_http_info(from, to, query, opts = {}) if @api_client.config.client_side_validation && from.nil? fail ArgumentError, "Missing the required parameter 'from' when calling MetricsAPI.query_metrics" end - # verify the required parameter 'to' is set if @api_client.config.client_side_validation && to.nil? fail ArgumentError, "Missing the required parameter 'to' when calling MetricsAPI.query_metrics" end - # verify the required parameter 'query' is set if @api_client.config.client_side_validation && query.nil? fail ArgumentError, "Missing the required parameter 'query' when calling MetricsAPI.query_metrics" end - - # resource path local_var_path = '/api/v1/query' @@ -396,13 +384,10 @@ def submit_metrics_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.submit_metrics ...' end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.submit_metrics" end - - # resource path local_var_path = '/api/v1/series' @@ -479,13 +464,10 @@ def update_metric_metadata_with_http_info(metric_name, body, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.update_metric_metadata" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.update_metric_metadata" end - - # resource path local_var_path = '/api/v1/metrics/{metric_name}'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index bf012ba9f351..6f108f9062b6 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -55,8 +55,6 @@ def check_can_delete_monitor_with_http_info(monitor_ids, opts = {}) if @api_client.config.client_side_validation && monitor_ids.nil? fail ArgumentError, "Missing the required parameter 'monitor_ids' when calling MonitorsAPI.check_can_delete_monitor" end - - # resource path local_var_path = '/api/v1/monitor/can_delete' @@ -446,8 +444,6 @@ def create_monitor_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MonitorsAPI.create_monitor" end - - # resource path local_var_path = '/api/v1/monitor' @@ -524,9 +520,6 @@ def delete_monitor_with_http_info(monitor_id, opts = {}) if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling MonitorsAPI.delete_monitor" end - - - # resource path local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) @@ -602,9 +595,6 @@ def get_monitor_with_http_info(monitor_id, opts = {}) if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling MonitorsAPI.get_monitor" end - - - # resource path local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) @@ -648,10 +638,10 @@ def get_monitor_with_http_info(monitor_id, opts = {}) # Get all monitor details # Get details about the specified monitor from your organization. # @param [Hash] opts the optional parameters - # @option opts [String] :group_states When specified, shows additional information about the group states.Choose one or more from `all`, `alert`, `warn`, and `no data`. + # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @option opts [String] :name A string to filter monitors by name. - # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.For example, `host:host0`. - # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors.Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. + # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. + # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. # @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for each monitor. # @option opts [Integer] :id_offset Use this parameter for paginating through large sets of monitors. Start with a value of zero, make a request, set the value to the last ID of result set, and then repeat until the response is empty. # @option opts [Integer] :page The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination. @@ -665,10 +655,10 @@ def list_monitors(opts = {}) # Get all monitor details # Get details about the specified monitor from your organization. # @param [Hash] opts the optional parameters - # @option opts [String] :group_states When specified, shows additional information about the group states.Choose one or more from `all`, `alert`, `warn`, and `no data`. + # @option opts [String] :group_states When specified, shows additional information about the group states. Choose one or more from `all`, `alert`, `warn`, and `no data`. # @option opts [String] :name A string to filter monitors by name. - # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.For example, `host:host0`. - # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors.Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. + # @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`. + # @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`. # @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for each monitor. # @option opts [Integer] :id_offset Use this parameter for paginating through large sets of monitors. Start with a value of zero, make a request, set the value to the last ID of result set, and then repeat until the response is empty. # @option opts [Integer] :page The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination. @@ -688,15 +678,6 @@ def list_monitors_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MonitorsAPI.list_monitors ...' end - - - - - - - - - # resource path local_var_path = '/api/v1/monitor' @@ -747,10 +728,10 @@ def list_monitors_with_http_info(opts = {}) # Monitors group search # Search and filter your monitor groups details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in theURL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2]page to learn more.The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`.[1]: https://app.datadoghq.com/monitors/manage[2]: /monitors/manage/#find-the-monitors + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields:* `name`* `status`* `tags` + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [MonitorGroupSearchResponse] def search_monitor_groups(opts = {}) data, _status_code, _headers = search_monitor_groups_with_http_info(opts) @@ -760,10 +741,10 @@ def search_monitor_groups(opts = {}) # Monitors group search # Search and filter your monitor groups details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in theURL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2]page to learn more.The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`.[1]: https://app.datadoghq.com/monitors/manage[2]: /monitors/manage/#find-the-monitors + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields:* `name`* `status`* `tags` + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [Array<(MonitorGroupSearchResponse, Integer, Hash)>] MonitorGroupSearchResponse data, response status code and response headers def search_monitor_groups_with_http_info(opts = {}) @@ -779,11 +760,6 @@ def search_monitor_groups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MonitorsAPI.search_monitor_groups ...' end - - - - - # resource path local_var_path = '/api/v1/monitor/groups/search' @@ -830,10 +806,10 @@ def search_monitor_groups_with_http_info(opts = {}) # Monitors search # Search and filter your monitors details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in theURL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2]page to learn more.The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`.[1]: https://app.datadoghq.com/monitors/manage[2]: /monitors/manage/#find-the-monitors + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields:* `name`* `status`* `tags` + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [MonitorSearchResponse] def search_monitors(opts = {}) data, _status_code, _headers = search_monitors_with_http_info(opts) @@ -843,10 +819,10 @@ def search_monitors(opts = {}) # Monitors search # Search and filter your monitors details. # @param [Hash] opts the optional parameters - # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in theURL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2]page to learn more.The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`.[1]: https://app.datadoghq.com/monitors/manage[2]: /monitors/manage/#find-the-monitors + # @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query="type:metric status:alert"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors # @option opts [Integer] :page Page to start paginating from. # @option opts [Integer] :per_page Number of monitors to return per page. - # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields:* `name`* `status`* `tags` + # @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags` # @return [Array<(MonitorSearchResponse, Integer, Hash)>] MonitorSearchResponse data, response status code and response headers def search_monitors_with_http_info(opts = {}) @@ -862,11 +838,6 @@ def search_monitors_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MonitorsAPI.search_monitors ...' end - - - - - # resource path local_var_path = '/api/v1/monitor/search' @@ -945,13 +916,10 @@ def update_monitor_with_http_info(monitor_id, body, opts = {}) if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling MonitorsAPI.update_monitor" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MonitorsAPI.update_monitor" end - - # resource path local_var_path = '/api/v1/monitor/{monitor_id}'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/')) @@ -1026,8 +994,6 @@ def validate_monitor_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MonitorsAPI.validate_monitor" end - - # resource path local_var_path = '/api/v1/monitor/validate' diff --git a/lib/datadog_api_client/v1/api/notebooks_api.rb b/lib/datadog_api_client/v1/api/notebooks_api.rb index 808b8091a30a..e5132579fb8f 100644 --- a/lib/datadog_api_client/v1/api/notebooks_api.rb +++ b/lib/datadog_api_client/v1/api/notebooks_api.rb @@ -55,8 +55,6 @@ def create_notebook_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling NotebooksAPI.create_notebook" end - - # resource path local_var_path = '/api/v1/notebooks' @@ -131,8 +129,6 @@ def delete_notebook_with_http_info(notebook_id, opts = {}) if @api_client.config.client_side_validation && notebook_id.nil? fail ArgumentError, "Missing the required parameter 'notebook_id' when calling NotebooksAPI.delete_notebook" end - - # resource path local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{notebook_id}', CGI.escape(notebook_id.to_s).gsub('%2F', '/')) @@ -205,8 +201,6 @@ def get_notebook_with_http_info(notebook_id, opts = {}) if @api_client.config.client_side_validation && notebook_id.nil? fail ArgumentError, "Missing the required parameter 'notebook_id' when calling NotebooksAPI.get_notebook" end - - # resource path local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{notebook_id}', CGI.escape(notebook_id.to_s).gsub('%2F', '/')) @@ -295,17 +289,6 @@ def list_notebooks_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: NotebooksAPI.list_notebooks ...' end - - - - - - - - - - - # resource path local_var_path = '/api/v1/notebooks' @@ -390,13 +373,10 @@ def update_notebook_with_http_info(notebook_id, body, opts = {}) if @api_client.config.client_side_validation && notebook_id.nil? fail ArgumentError, "Missing the required parameter 'notebook_id' when calling NotebooksAPI.update_notebook" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling NotebooksAPI.update_notebook" end - - # resource path local_var_path = '/api/v1/notebooks/{notebook_id}'.sub('{notebook_id}', CGI.escape(notebook_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/organizations_api.rb b/lib/datadog_api_client/v1/api/organizations_api.rb index 9fc3dea61800..8a93fccae2cf 100644 --- a/lib/datadog_api_client/v1/api/organizations_api.rb +++ b/lib/datadog_api_client/v1/api/organizations_api.rb @@ -73,8 +73,6 @@ def create_child_org_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsAPI.create_child_org" end - - # resource path local_var_path = '/api/v1/org' @@ -149,8 +147,6 @@ def get_org_with_http_info(public_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling OrganizationsAPI.get_org" end - - # resource path local_var_path = '/api/v1/org/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -217,7 +213,6 @@ def list_orgs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: OrganizationsAPI.list_orgs ...' end - # resource path local_var_path = '/api/v1/org' @@ -292,13 +287,10 @@ def update_org_with_http_info(public_id, body, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling OrganizationsAPI.update_org" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsAPI.update_org" end - - # resource path local_var_path = '/api/v1/org/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -385,13 +377,10 @@ def upload_id_p_for_org_with_http_info(public_id, body, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling OrganizationsAPI.upload_id_p_for_org" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsAPI.upload_id_p_for_org" end - - # resource path local_var_path = '/api/v1/org/{public_id}/idp_metadata'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb index 6495fb4fba6e..a1d14ef99c3e 100644 --- a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +++ b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb @@ -55,8 +55,6 @@ def create_pager_duty_integration_service_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling PagerDutyIntegrationAPI.create_pager_duty_integration_service" end - - # resource path local_var_path = '/api/v1/integration/pagerduty/configuration/services' @@ -131,8 +129,6 @@ def delete_pager_duty_integration_service_with_http_info(service_name, opts = {} if @api_client.config.client_side_validation && service_name.nil? fail ArgumentError, "Missing the required parameter 'service_name' when calling PagerDutyIntegrationAPI.delete_pager_duty_integration_service" end - - # resource path local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{service_name}', CGI.escape(service_name.to_s).gsub('%2F', '/')) @@ -205,8 +201,6 @@ def get_pager_duty_integration_service_with_http_info(service_name, opts = {}) if @api_client.config.client_side_validation && service_name.nil? fail ArgumentError, "Missing the required parameter 'service_name' when calling PagerDutyIntegrationAPI.get_pager_duty_integration_service" end - - # resource path local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{service_name}', CGI.escape(service_name.to_s).gsub('%2F', '/')) @@ -281,13 +275,10 @@ def update_pager_duty_integration_service_with_http_info(service_name, body, opt if @api_client.config.client_side_validation && service_name.nil? fail ArgumentError, "Missing the required parameter 'service_name' when calling PagerDutyIntegrationAPI.update_pager_duty_integration_service" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling PagerDutyIntegrationAPI.update_pager_duty_integration_service" end - - # resource path local_var_path = '/api/v1/integration/pagerduty/configuration/services/{service_name}'.sub('{service_name}', CGI.escape(service_name.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/service_checks_api.rb b/lib/datadog_api_client/v1/api/service_checks_api.rb index 01c6b375ef7d..5b496156f841 100644 --- a/lib/datadog_api_client/v1/api/service_checks_api.rb +++ b/lib/datadog_api_client/v1/api/service_checks_api.rb @@ -63,8 +63,6 @@ def submit_service_check_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceChecksAPI.submit_service_check" end - - # resource path local_var_path = '/api/v1/check_run' diff --git a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb index 081d67c61006..111ee9237176 100644 --- a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb @@ -55,8 +55,6 @@ def create_slo_correction_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectiveCorrectionsAPI.create_slo_correction" end - - # resource path local_var_path = '/api/v1/slo/correction' @@ -131,8 +129,6 @@ def delete_slo_correction_with_http_info(slo_correction_id, opts = {}) if @api_client.config.client_side_validation && slo_correction_id.nil? fail ArgumentError, "Missing the required parameter 'slo_correction_id' when calling ServiceLevelObjectiveCorrectionsAPI.delete_slo_correction" end - - # resource path local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{slo_correction_id}', CGI.escape(slo_correction_id.to_s).gsub('%2F', '/')) @@ -205,8 +201,6 @@ def get_slo_correction_with_http_info(slo_correction_id, opts = {}) if @api_client.config.client_side_validation && slo_correction_id.nil? fail ArgumentError, "Missing the required parameter 'slo_correction_id' when calling ServiceLevelObjectiveCorrectionsAPI.get_slo_correction" end - - # resource path local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{slo_correction_id}', CGI.escape(slo_correction_id.to_s).gsub('%2F', '/')) @@ -273,7 +267,6 @@ def list_slo_correction_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServiceLevelObjectiveCorrectionsAPI.list_slo_correction ...' end - # resource path local_var_path = '/api/v1/slo/correction' @@ -348,13 +341,10 @@ def update_slo_correction_with_http_info(slo_correction_id, body, opts = {}) if @api_client.config.client_side_validation && slo_correction_id.nil? fail ArgumentError, "Missing the required parameter 'slo_correction_id' when calling ServiceLevelObjectiveCorrectionsAPI.update_slo_correction" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectiveCorrectionsAPI.update_slo_correction" end - - # resource path local_var_path = '/api/v1/slo/correction/{slo_correction_id}'.sub('{slo_correction_id}', CGI.escape(slo_correction_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb index 73a6f8b05e06..0e357d382b9c 100644 --- a/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objectives_api.rb @@ -57,8 +57,6 @@ def check_can_delete_slo_with_http_info(ids, opts = {}) if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling ServiceLevelObjectivesAPI.check_can_delete_slo" end - - # resource path local_var_path = '/api/v1/slo/can_delete' @@ -132,8 +130,6 @@ def create_slo_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectivesAPI.create_slo" end - - # resource path local_var_path = '/api/v1/slo' @@ -216,9 +212,6 @@ def delete_slo_with_http_info(slo_id, opts = {}) if @api_client.config.client_side_validation && slo_id.nil? fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.delete_slo" end - - - # resource path local_var_path = '/api/v1/slo/{slo_id}'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) @@ -300,8 +293,6 @@ def delete_slo_timeframe_in_bulk_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectivesAPI.delete_slo_timeframe_in_bulk" end - - # resource path local_var_path = '/api/v1/slo/bulk_delete' @@ -378,9 +369,6 @@ def get_slo_with_http_info(slo_id, opts = {}) if @api_client.config.client_side_validation && slo_id.nil? fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.get_slo" end - - - # resource path local_var_path = '/api/v1/slo/{slo_id}'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) @@ -454,8 +442,6 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) if @api_client.config.client_side_validation && slo_id.nil? fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.get_slo_corrections" end - - # resource path local_var_path = '/api/v1/slo/{slo_id}/corrections'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) @@ -509,7 +495,7 @@ def get_slo_corrections_with_http_info(slo_id, opts = {}) # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. # @param [Hash] opts the optional parameters # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. - # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,then the corrections will not be applied and the SLI values will not be affected. + # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. # @return [SLOHistoryResponse] def get_slo_history(slo_id, from_ts, to_ts, opts = {}) data, _status_code, _headers = get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts) @@ -530,7 +516,7 @@ def get_slo_history(slo_id, from_ts, to_ts, opts = {}) # @param to_ts [Integer] The `to` timestamp for the query window in epoch seconds. # @param [Hash] opts the optional parameters # @option opts [Float] :target The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`. - # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,then the corrections will not be applied and the SLI values will not be affected. + # @option opts [Boolean] :apply_correction Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`, then the corrections will not be applied and the SLI values will not be affected. # @return [Array<(SLOHistoryResponse, Integer, Hash)>] SLOHistoryResponse data, response status code and response headers def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) @@ -550,20 +536,14 @@ def get_slo_history_with_http_info(slo_id, from_ts, to_ts, opts = {}) if @api_client.config.client_side_validation && slo_id.nil? fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.get_slo_history" end - # verify the required parameter 'from_ts' is set if @api_client.config.client_side_validation && from_ts.nil? fail ArgumentError, "Missing the required parameter 'from_ts' when calling ServiceLevelObjectivesAPI.get_slo_history" end - # verify the required parameter 'to_ts' is set if @api_client.config.client_side_validation && to_ts.nil? fail ArgumentError, "Missing the required parameter 'to_ts' when calling ServiceLevelObjectivesAPI.get_slo_history" end - - - - # resource path local_var_path = '/api/v1/slo/{slo_id}/history'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) @@ -646,13 +626,6 @@ def list_sl_os_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServiceLevelObjectivesAPI.list_sl_os ...' end - - - - - - - # resource path local_var_path = '/api/v1/slo' @@ -733,13 +706,10 @@ def update_slo_with_http_info(slo_id, body, opts = {}) if @api_client.config.client_side_validation && slo_id.nil? fail ArgumentError, "Missing the required parameter 'slo_id' when calling ServiceLevelObjectivesAPI.update_slo" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceLevelObjectivesAPI.update_slo" end - - # resource path local_var_path = '/api/v1/slo/{slo_id}'.sub('{slo_id}', CGI.escape(slo_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/slack_integration_api.rb b/lib/datadog_api_client/v1/api/slack_integration_api.rb index 153bda9d2db6..16c86efb49a2 100644 --- a/lib/datadog_api_client/v1/api/slack_integration_api.rb +++ b/lib/datadog_api_client/v1/api/slack_integration_api.rb @@ -57,13 +57,10 @@ def create_slack_integration_channel_with_http_info(account_name, body, opts = { if @api_client.config.client_side_validation && account_name.nil? fail ArgumentError, "Missing the required parameter 'account_name' when calling SlackIntegrationAPI.create_slack_integration_channel" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SlackIntegrationAPI.create_slack_integration_channel" end - - # resource path local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')) @@ -140,13 +137,10 @@ def get_slack_integration_channel_with_http_info(account_name, channel_name, opt if @api_client.config.client_side_validation && account_name.nil? fail ArgumentError, "Missing the required parameter 'account_name' when calling SlackIntegrationAPI.get_slack_integration_channel" end - # verify the required parameter 'channel_name' is set if @api_client.config.client_side_validation && channel_name.nil? fail ArgumentError, "Missing the required parameter 'channel_name' when calling SlackIntegrationAPI.get_slack_integration_channel" end - - # resource path local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/')) @@ -219,8 +213,6 @@ def get_slack_integration_channels_with_http_info(account_name, opts = {}) if @api_client.config.client_side_validation && account_name.nil? fail ArgumentError, "Missing the required parameter 'account_name' when calling SlackIntegrationAPI.get_slack_integration_channels" end - - # resource path local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')) @@ -295,13 +287,10 @@ def remove_slack_integration_channel_with_http_info(account_name, channel_name, if @api_client.config.client_side_validation && account_name.nil? fail ArgumentError, "Missing the required parameter 'account_name' when calling SlackIntegrationAPI.remove_slack_integration_channel" end - # verify the required parameter 'channel_name' is set if @api_client.config.client_side_validation && channel_name.nil? fail ArgumentError, "Missing the required parameter 'channel_name' when calling SlackIntegrationAPI.remove_slack_integration_channel" end - - # resource path local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/')) @@ -378,18 +367,14 @@ def update_slack_integration_channel_with_http_info(account_name, channel_name, if @api_client.config.client_side_validation && account_name.nil? fail ArgumentError, "Missing the required parameter 'account_name' when calling SlackIntegrationAPI.update_slack_integration_channel" end - # verify the required parameter 'channel_name' is set if @api_client.config.client_side_validation && channel_name.nil? fail ArgumentError, "Missing the required parameter 'channel_name' when calling SlackIntegrationAPI.update_slack_integration_channel" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SlackIntegrationAPI.update_slack_integration_channel" end - - # resource path local_var_path = '/api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name}'.sub('{account_name}', CGI.escape(account_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/snapshots_api.rb b/lib/datadog_api_client/v1/api/snapshots_api.rb index b6e059cf61a9..e377b3c9ea7d 100644 --- a/lib/datadog_api_client/v1/api/snapshots_api.rb +++ b/lib/datadog_api_client/v1/api/snapshots_api.rb @@ -30,7 +30,7 @@ def initialize(api_client = APIClient.default) # @param [Hash] opts the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. - # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`.The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar)and should be formatted to a single line then URL encoded. + # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. # @option opts [String] :title A title for the graph. If no title is specified, the graph does not have a title. # @return [GraphSnapshot] def get_graph_snapshot(start, _end, opts = {}) @@ -46,7 +46,7 @@ def get_graph_snapshot(start, _end, opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :metric_query The metric query. # @option opts [String] :event_query A query that adds event bands to the graph. - # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`.The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar)and should be formatted to a single line then URL encoded. + # @option opts [String] :graph_def A JSON document defining the graph. `graph_def` can be used instead of `metric_query`. The JSON document uses the [grammar defined here](https://docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded. # @option opts [String] :title A title for the graph. If no title is specified, the graph does not have a title. # @return [Array<(GraphSnapshot, Integer, Hash)>] GraphSnapshot data, response status code and response headers def get_graph_snapshot_with_http_info(start, _end, opts = {}) @@ -63,21 +63,14 @@ def get_graph_snapshot_with_http_info(start, _end, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SnapshotsAPI.get_graph_snapshot ...' end - # verify the required parameter 'start' is set if @api_client.config.client_side_validation && start.nil? fail ArgumentError, "Missing the required parameter 'start' when calling SnapshotsAPI.get_graph_snapshot" end - # verify the required parameter '_end' is set if @api_client.config.client_side_validation && _end.nil? fail ArgumentError, "Missing the required parameter '_end' when calling SnapshotsAPI.get_graph_snapshot" end - - - - - # resource path local_var_path = '/api/v1/graph/snapshot' diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 2906d8bbbe89..e016ebbd52fb 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -55,8 +55,6 @@ def create_global_variable_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.create_global_variable" end - - # resource path local_var_path = '/api/v1/synthetics/variables' @@ -131,8 +129,6 @@ def create_private_location_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.create_private_location" end - - # resource path local_var_path = '/api/v1/synthetics/private-locations' @@ -207,8 +203,6 @@ def create_synthetics_api_test_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.create_synthetics_api_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/api' @@ -283,8 +277,6 @@ def create_synthetics_browser_test_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.create_synthetics_browser_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/browser' @@ -359,8 +351,6 @@ def delete_global_variable_with_http_info(variable_id, opts = {}) if @api_client.config.client_side_validation && variable_id.nil? fail ArgumentError, "Missing the required parameter 'variable_id' when calling SyntheticsAPI.delete_global_variable" end - - # resource path local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/')) @@ -433,8 +423,6 @@ def delete_private_location_with_http_info(location_id, opts = {}) if @api_client.config.client_side_validation && location_id.nil? fail ArgumentError, "Missing the required parameter 'location_id' when calling SyntheticsAPI.delete_private_location" end - - # resource path local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{location_id}', CGI.escape(location_id.to_s).gsub('%2F', '/')) @@ -507,8 +495,6 @@ def delete_tests_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.delete_tests" end - - # resource path local_var_path = '/api/v1/synthetics/tests/delete' @@ -585,13 +571,10 @@ def edit_global_variable_with_http_info(variable_id, body, opts = {}) if @api_client.config.client_side_validation && variable_id.nil? fail ArgumentError, "Missing the required parameter 'variable_id' when calling SyntheticsAPI.edit_global_variable" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.edit_global_variable" end - - # resource path local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/')) @@ -668,8 +651,6 @@ def get_api_test_with_http_info(public_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_api_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/api/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -748,11 +729,6 @@ def get_api_test_latest_results_with_http_info(public_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_api_test_latest_results" end - - - - - # resource path local_var_path = '/api/v1/synthetics/tests/{public_id}/results'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -830,13 +806,10 @@ def get_api_test_result_with_http_info(public_id, result_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_api_test_result" end - # verify the required parameter 'result_id' is set if @api_client.config.client_side_validation && result_id.nil? fail ArgumentError, "Missing the required parameter 'result_id' when calling SyntheticsAPI.get_api_test_result" end - - # resource path local_var_path = '/api/v1/synthetics/tests/{public_id}/results/{result_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')).sub('{result_id}', CGI.escape(result_id.to_s).gsub('%2F', '/')) @@ -911,8 +884,6 @@ def get_browser_test_with_http_info(public_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_browser_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/browser/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -954,7 +925,7 @@ def get_browser_test_with_http_info(public_id, opts = {}) end # Get a browser test's latest results summaries # Get the last 50 test results summaries for a given Synthetics Browser test. - # @param public_id [String] The public ID of the browser test for which to search resultsfor. + # @param public_id [String] The public ID of the browser test for which to search results for. # @param [Hash] opts the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. @@ -967,7 +938,7 @@ def get_browser_test_latest_results(public_id, opts = {}) # Get a browser test's latest results summaries # Get the last 50 test results summaries for a given Synthetics Browser test. - # @param public_id [String] The public ID of the browser test for which to search resultsfor. + # @param public_id [String] The public ID of the browser test for which to search results for. # @param [Hash] opts the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. @@ -991,11 +962,6 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_browser_test_latest_results" end - - - - - # resource path local_var_path = '/api/v1/synthetics/tests/browser/{public_id}/results'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -1040,7 +1006,7 @@ def get_browser_test_latest_results_with_http_info(public_id, opts = {}) end # Get a browser test result # Get a specific full result from a given (browser) Synthetic test. - # @param public_id [String] The public ID of the browser test to which the target resultbelongs. + # @param public_id [String] The public ID of the browser test to which the target result belongs. # @param result_id [String] The ID of the result to get. # @param [Hash] opts the optional parameters # @return [SyntheticsBrowserTestResultFull] @@ -1051,7 +1017,7 @@ def get_browser_test_result(public_id, result_id, opts = {}) # Get a browser test result # Get a specific full result from a given (browser) Synthetic test. - # @param public_id [String] The public ID of the browser test to which the target resultbelongs. + # @param public_id [String] The public ID of the browser test to which the target result belongs. # @param result_id [String] The ID of the result to get. # @param [Hash] opts the optional parameters # @return [Array<(SyntheticsBrowserTestResultFull, Integer, Hash)>] SyntheticsBrowserTestResultFull data, response status code and response headers @@ -1073,13 +1039,10 @@ def get_browser_test_result_with_http_info(public_id, result_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_browser_test_result" end - # verify the required parameter 'result_id' is set if @api_client.config.client_side_validation && result_id.nil? fail ArgumentError, "Missing the required parameter 'result_id' when calling SyntheticsAPI.get_browser_test_result" end - - # resource path local_var_path = '/api/v1/synthetics/tests/browser/{public_id}/results/{result_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')).sub('{result_id}', CGI.escape(result_id.to_s).gsub('%2F', '/')) @@ -1152,8 +1115,6 @@ def get_global_variable_with_http_info(variable_id, opts = {}) if @api_client.config.client_side_validation && variable_id.nil? fail ArgumentError, "Missing the required parameter 'variable_id' when calling SyntheticsAPI.get_global_variable" end - - # resource path local_var_path = '/api/v1/synthetics/variables/{variable_id}'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/')) @@ -1226,8 +1187,6 @@ def get_private_location_with_http_info(location_id, opts = {}) if @api_client.config.client_side_validation && location_id.nil? fail ArgumentError, "Missing the required parameter 'location_id' when calling SyntheticsAPI.get_private_location" end - - # resource path local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{location_id}', CGI.escape(location_id.to_s).gsub('%2F', '/')) @@ -1300,8 +1259,6 @@ def get_synthetics_ci_batch_with_http_info(batch_id, opts = {}) if @api_client.config.client_side_validation && batch_id.nil? fail ArgumentError, "Missing the required parameter 'batch_id' when calling SyntheticsAPI.get_synthetics_ci_batch" end - - # resource path local_var_path = '/api/v1/synthetics/ci/batch/{batch_id}'.sub('{batch_id}', CGI.escape(batch_id.to_s).gsub('%2F', '/')) @@ -1374,8 +1331,6 @@ def get_test_with_http_info(public_id, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.get_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -1442,7 +1397,6 @@ def list_global_variables_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SyntheticsAPI.list_global_variables ...' end - # resource path local_var_path = '/api/v1/synthetics/variables' @@ -1511,7 +1465,6 @@ def list_locations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SyntheticsAPI.list_locations ...' end - # resource path local_var_path = '/api/v1/synthetics/locations' @@ -1578,7 +1531,6 @@ def list_tests_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SyntheticsAPI.list_tests ...' end - # resource path local_var_path = '/api/v1/synthetics/tests' @@ -1651,8 +1603,6 @@ def trigger_ci_tests_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.trigger_ci_tests" end - - # resource path local_var_path = '/api/v1/synthetics/tests/trigger/ci' @@ -1727,8 +1677,6 @@ def trigger_tests_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.trigger_tests" end - - # resource path local_var_path = '/api/v1/synthetics/tests/trigger' @@ -1805,13 +1753,10 @@ def update_api_test_with_http_info(public_id, body, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.update_api_test" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_api_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/api/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -1888,13 +1833,10 @@ def update_browser_test_with_http_info(public_id, body, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.update_browser_test" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_browser_test" end - - # resource path local_var_path = '/api/v1/synthetics/tests/browser/{public_id}'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) @@ -1971,13 +1913,10 @@ def update_private_location_with_http_info(location_id, body, opts = {}) if @api_client.config.client_side_validation && location_id.nil? fail ArgumentError, "Missing the required parameter 'location_id' when calling SyntheticsAPI.update_private_location" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_private_location" end - - # resource path local_var_path = '/api/v1/synthetics/private-locations/{location_id}'.sub('{location_id}', CGI.escape(location_id.to_s).gsub('%2F', '/')) @@ -2054,13 +1993,10 @@ def update_test_pause_status_with_http_info(public_id, body, opts = {}) if @api_client.config.client_side_validation && public_id.nil? fail ArgumentError, "Missing the required parameter 'public_id' when calling SyntheticsAPI.update_test_pause_status" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_test_pause_status" end - - # resource path local_var_path = '/api/v1/synthetics/tests/{public_id}/status'.sub('{public_id}', CGI.escape(public_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/tags_api.rb b/lib/datadog_api_client/v1/api/tags_api.rb index b643e1b22e80..6d1632676486 100644 --- a/lib/datadog_api_client/v1/api/tags_api.rb +++ b/lib/datadog_api_client/v1/api/tags_api.rb @@ -28,7 +28,7 @@ def initialize(api_client = APIClient.default) # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. # @param body [HostTags] Update host tags request body. # @param [Hash] opts the optional parameters - # @option opts [String] :source The source of the tags.[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + # @option opts [String] :source The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). # @return [HostTags] def create_host_tags(host_name, body, opts = {}) data, _status_code, _headers = create_host_tags_with_http_info(host_name, body, opts) @@ -41,7 +41,7 @@ def create_host_tags(host_name, body, opts = {}) # @param host_name [String] This endpoint allows you to add new tags to a host, optionally specifying where the tags came from. # @param body [HostTags] Update host tags request body. # @param [Hash] opts the optional parameters - # @option opts [String] :source The source of the tags.[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). + # @option opts [String] :source The source of the tags. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value). # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers def create_host_tags_with_http_info(host_name, body, opts = {}) @@ -61,14 +61,10 @@ def create_host_tags_with_http_info(host_name, body, opts = {}) if @api_client.config.client_side_validation && host_name.nil? fail ArgumentError, "Missing the required parameter 'host_name' when calling TagsAPI.create_host_tags" end - - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling TagsAPI.create_host_tags" end - - # resource path local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) @@ -116,7 +112,7 @@ def create_host_tags_with_http_info(host_name, body, opts = {}) # for a single host. # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host. # @param [Hash] opts the optional parameters - # @option opts [String] :source 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). + # @option opts [String] :source 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). # @return [nil] def delete_host_tags(host_name, opts = {}) delete_host_tags_with_http_info(host_name, opts) @@ -128,7 +124,7 @@ def delete_host_tags(host_name, opts = {}) # for a single host. # @param host_name [String] This endpoint allows you to remove all user-assigned tags for a single host. # @param [Hash] opts the optional parameters - # @option opts [String] :source 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). + # @option opts [String] :source 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). # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_host_tags_with_http_info(host_name, opts = {}) @@ -148,9 +144,6 @@ def delete_host_tags_with_http_info(host_name, opts = {}) if @api_client.config.client_side_validation && host_name.nil? fail ArgumentError, "Missing the required parameter 'host_name' when calling TagsAPI.delete_host_tags" end - - - # resource path local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) @@ -226,9 +219,6 @@ def get_host_tags_with_http_info(host_name, opts = {}) if @api_client.config.client_side_validation && host_name.nil? fail ArgumentError, "Missing the required parameter 'host_name' when calling TagsAPI.get_host_tags" end - - - # resource path local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) @@ -298,8 +288,6 @@ def list_host_tags_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TagsAPI.list_host_tags ...' end - - # resource path local_var_path = '/api/v1/tags/hosts' @@ -346,7 +334,7 @@ def list_host_tags_with_http_info(opts = {}) # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request. # @param body [HostTags] Add tags to host # @param [Hash] opts the optional parameters - # @option opts [String] :source 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) + # @option opts [String] :source 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) # @return [HostTags] def update_host_tags(host_name, body, opts = {}) data, _status_code, _headers = update_host_tags_with_http_info(host_name, body, opts) @@ -359,7 +347,7 @@ def update_host_tags(host_name, body, opts = {}) # @param host_name [String] This endpoint allows you to update/replace all in an integration source with those supplied in the request. # @param body [HostTags] Add tags to host # @param [Hash] opts the optional parameters - # @option opts [String] :source 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) + # @option opts [String] :source 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) # @return [Array<(HostTags, Integer, Hash)>] HostTags data, response status code and response headers def update_host_tags_with_http_info(host_name, body, opts = {}) @@ -379,14 +367,10 @@ def update_host_tags_with_http_info(host_name, body, opts = {}) if @api_client.config.client_side_validation && host_name.nil? fail ArgumentError, "Missing the required parameter 'host_name' when calling TagsAPI.update_host_tags" end - - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling TagsAPI.update_host_tags" end - - # resource path local_var_path = '/api/v1/tags/hosts/{host_name}'.sub('{host_name}', CGI.escape(host_name.to_s).gsub('%2F', '/')) 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 e6b5f0f77d79..fbbffab5691b 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -57,11 +57,6 @@ def get_daily_custom_reports_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_daily_custom_reports ...' end - - - - - # resource path local_var_path = '/api/v1/daily_custom_reports' @@ -110,7 +105,7 @@ def get_daily_custom_reports_with_http_info(opts = {}) # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. # @return [HourlyUsageAttributionResponse] @@ -124,7 +119,7 @@ def get_hourly_usage_attribution(start_hr, usage_type, opts = {}) # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param usage_type [HourlyUsageAttributionUsageType] Usage type to retrieve. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @option opts [String] :next_record_id List following results with a next_record_id provided in the previous query. # @option opts [String] :tag_breakdown_keys Comma separated list of tags used to group usage. If no value is provided the usage will not be broken down by tags. # @return [Array<(HourlyUsageAttributionResponse, Integer, Hash)>] HourlyUsageAttributionResponse data, response status code and response headers @@ -146,16 +141,10 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_hourly_usage_attribution" end - - # verify the required parameter 'usage_type' is set if @api_client.config.client_side_validation && usage_type.nil? fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution" end - - - - # resource path local_var_path = '/api/v1/usage/hourly-attribution' @@ -204,7 +193,7 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) # Get hourly usage for incident management. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIncidentManagementResponse] def get_incident_management(start_hr, opts = {}) data, _status_code, _headers = get_incident_management_with_http_info(start_hr, opts) @@ -215,7 +204,7 @@ def get_incident_management(start_hr, opts = {}) # Get hourly usage for incident management. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIncidentManagementResponse, Integer, Hash)>] UsageIncidentManagementResponse data, response status code and response headers def get_incident_management_with_http_info(start_hr, opts = {}) @@ -235,9 +224,6 @@ def get_incident_management_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_incident_management" end - - - # resource path local_var_path = '/api/v1/usage/incident-management' @@ -283,7 +269,7 @@ def get_incident_management_with_http_info(start_hr, opts = {}) # Get hourly usage for ingested spans. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIngestedSpansResponse] def get_ingested_spans(start_hr, opts = {}) data, _status_code, _headers = get_ingested_spans_with_http_info(start_hr, opts) @@ -294,7 +280,7 @@ def get_ingested_spans(start_hr, opts = {}) # Get hourly usage for ingested spans. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIngestedSpansResponse, Integer, Hash)>] UsageIngestedSpansResponse data, response status code and response headers def get_ingested_spans_with_http_info(start_hr, opts = {}) @@ -314,9 +300,6 @@ def get_ingested_spans_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_ingested_spans" end - - - # resource path local_var_path = '/api/v1/usage/ingested-spans' @@ -393,11 +376,6 @@ def get_monthly_custom_reports_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_monthly_custom_reports ...' end - - - - - # resource path local_var_path = '/api/v1/monthly_custom_reports' @@ -443,7 +421,7 @@ def get_monthly_custom_reports_with_http_info(opts = {}) end # Get Monthly Usage Attribution # Get Monthly Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month.Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. @@ -459,7 +437,7 @@ def get_monthly_usage_attribution(start_month, fields, opts = {}) # Get Monthly Usage Attribution # Get Monthly Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month.Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [MonthlyUsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. @@ -486,18 +464,10 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) if @api_client.config.client_side_validation && start_month.nil? fail ArgumentError, "Missing the required parameter 'start_month' when calling UsageMeteringAPI.get_monthly_usage_attribution" end - - # verify the required parameter 'fields' is set if @api_client.config.client_side_validation && fields.nil? fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution" end - - - - - - # resource path local_var_path = '/api/v1/usage/monthly-attribution' @@ -577,8 +547,6 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) if @api_client.config.client_side_validation && report_id.nil? fail ArgumentError, "Missing the required parameter 'report_id' when calling UsageMeteringAPI.get_specified_daily_custom_reports" end - - # resource path local_var_path = '/api/v1/daily_custom_reports/{report_id}'.sub('{report_id}', CGI.escape(report_id.to_s).gsub('%2F', '/')) @@ -651,8 +619,6 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) if @api_client.config.client_side_validation && report_id.nil? fail ArgumentError, "Missing the required parameter 'report_id' when calling UsageMeteringAPI.get_specified_monthly_custom_reports" end - - # resource path local_var_path = '/api/v1/monthly_custom_reports/{report_id}'.sub('{report_id}', CGI.escape(report_id.to_s).gsub('%2F', '/')) @@ -696,7 +662,7 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) # Get hourly usage for analyzed logs (Security Monitoring). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageAnalyzedLogsResponse] def get_usage_analyzed_logs(start_hr, opts = {}) data, _status_code, _headers = get_usage_analyzed_logs_with_http_info(start_hr, opts) @@ -707,7 +673,7 @@ def get_usage_analyzed_logs(start_hr, opts = {}) # Get hourly usage for analyzed logs (Security Monitoring). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageAnalyzedLogsResponse, Integer, Hash)>] UsageAnalyzedLogsResponse data, response status code and response headers def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) @@ -727,9 +693,6 @@ def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_analyzed_logs" end - - - # resource path local_var_path = '/api/v1/usage/analyzed_logs' @@ -773,7 +736,7 @@ def get_usage_analyzed_logs_with_http_info(start_hr, opts = {}) end # Get Usage Attribution # Get Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month.Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. @@ -790,7 +753,7 @@ def get_usage_attribution(start_month, fields, opts = {}) # Get Usage Attribution # Get Usage Attribution. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month.Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types. # @param [Hash] opts the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. @@ -818,19 +781,10 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) if @api_client.config.client_side_validation && start_month.nil? fail ArgumentError, "Missing the required parameter 'start_month' when calling UsageMeteringAPI.get_usage_attribution" end - # verify the required parameter 'fields' is set if @api_client.config.client_side_validation && fields.nil? fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution" end - - - - - - - - # resource path local_var_path = '/api/v1/usage/attribution' @@ -882,7 +836,7 @@ def get_usage_attribution_with_http_info(start_month, fields, opts = {}) # Get hourly usage for audit logs. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageAuditLogsResponse] def get_usage_audit_logs(start_hr, opts = {}) data, _status_code, _headers = get_usage_audit_logs_with_http_info(start_hr, opts) @@ -893,7 +847,7 @@ def get_usage_audit_logs(start_hr, opts = {}) # Get hourly usage for audit logs. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageAuditLogsResponse, Integer, Hash)>] UsageAuditLogsResponse data, response status code and response headers def get_usage_audit_logs_with_http_info(start_hr, opts = {}) @@ -913,9 +867,6 @@ def get_usage_audit_logs_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_audit_logs" end - - - # resource path local_var_path = '/api/v1/usage/audit_logs' @@ -986,8 +937,6 @@ def get_usage_billable_summary_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_billable_summary ...' end - - # resource path local_var_path = '/api/v1/usage/billable-summary' @@ -1032,7 +981,7 @@ def get_usage_billable_summary_with_http_info(opts = {}) # Get hourly usage for Cloud Security Posture Management (CSPM). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageCloudSecurityPostureManagementResponse] def get_usage_cloud_security_posture_management(start_hr, opts = {}) data, _status_code, _headers = get_usage_cloud_security_posture_management_with_http_info(start_hr, opts) @@ -1043,7 +992,7 @@ def get_usage_cloud_security_posture_management(start_hr, opts = {}) # Get hourly usage for Cloud Security Posture Management (CSPM). # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageCloudSecurityPostureManagementResponse, Integer, Hash)>] UsageCloudSecurityPostureManagementResponse data, response status code and response headers def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = {}) @@ -1063,9 +1012,6 @@ def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_cloud_security_posture_management" end - - - # resource path local_var_path = '/api/v1/usage/cspm' @@ -1111,7 +1057,7 @@ def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = # Get hourly usage for Cloud Workload Security. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageCWSResponse] def get_usage_cws(start_hr, opts = {}) data, _status_code, _headers = get_usage_cws_with_http_info(start_hr, opts) @@ -1122,7 +1068,7 @@ def get_usage_cws(start_hr, opts = {}) # Get hourly usage for Cloud Workload Security. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageCWSResponse, Integer, Hash)>] UsageCWSResponse data, response status code and response headers def get_usage_cws_with_http_info(start_hr, opts = {}) @@ -1142,9 +1088,6 @@ def get_usage_cws_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_cws" end - - - # resource path local_var_path = '/api/v1/usage/cws' @@ -1190,7 +1133,7 @@ def get_usage_cws_with_http_info(start_hr, opts = {}) # Get hourly usage for Database Monitoring # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageDBMResponse] def get_usage_dbm(start_hr, opts = {}) data, _status_code, _headers = get_usage_dbm_with_http_info(start_hr, opts) @@ -1201,7 +1144,7 @@ def get_usage_dbm(start_hr, opts = {}) # Get hourly usage for Database Monitoring # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageDBMResponse, Integer, Hash)>] UsageDBMResponse data, response status code and response headers def get_usage_dbm_with_http_info(start_hr, opts = {}) @@ -1221,9 +1164,6 @@ def get_usage_dbm_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_dbm" end - - - # resource path local_var_path = '/api/v1/usage/dbm' @@ -1300,9 +1240,6 @@ def get_usage_fargate_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_fargate" end - - - # resource path local_var_path = '/api/v1/usage/fargate' @@ -1379,9 +1316,6 @@ def get_usage_hosts_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_hosts" end - - - # resource path local_var_path = '/api/v1/usage/hosts' @@ -1458,9 +1392,6 @@ def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_indexed_spans" end - - - # resource path local_var_path = '/api/v1/usage/indexed-spans' @@ -1506,7 +1437,7 @@ def get_usage_indexed_spans_with_http_info(start_hr, opts = {}) # Get hourly usage for IoT. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageIoTResponse] def get_usage_internet_of_things(start_hr, opts = {}) data, _status_code, _headers = get_usage_internet_of_things_with_http_info(start_hr, opts) @@ -1517,7 +1448,7 @@ def get_usage_internet_of_things(start_hr, opts = {}) # Get hourly usage for IoT. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageIoTResponse, Integer, Hash)>] UsageIoTResponse data, response status code and response headers def get_usage_internet_of_things_with_http_info(start_hr, opts = {}) @@ -1537,9 +1468,6 @@ def get_usage_internet_of_things_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_internet_of_things" end - - - # resource path local_var_path = '/api/v1/usage/iot' @@ -1616,9 +1544,6 @@ def get_usage_lambda_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_lambda" end - - - # resource path local_var_path = '/api/v1/usage/aws_lambda' @@ -1695,9 +1620,6 @@ def get_usage_logs_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_logs" end - - - # resource path local_var_path = '/api/v1/usage/logs' @@ -1776,10 +1698,6 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_logs_by_index" end - - - - # resource path local_var_path = '/api/v1/usage/logs_by_index' @@ -1826,7 +1744,7 @@ def get_usage_logs_by_index_with_http_info(start_hr, opts = {}) # Get hourly usage for indexed logs by retention period. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageLogsByRetentionResponse] def get_usage_logs_by_retention(start_hr, opts = {}) data, _status_code, _headers = get_usage_logs_by_retention_with_http_info(start_hr, opts) @@ -1837,7 +1755,7 @@ def get_usage_logs_by_retention(start_hr, opts = {}) # Get hourly usage for indexed logs by retention period. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageLogsByRetentionResponse, Integer, Hash)>] UsageLogsByRetentionResponse data, response status code and response headers def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) @@ -1857,9 +1775,6 @@ def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_logs_by_retention" end - - - # resource path local_var_path = '/api/v1/usage/logs-by-retention' @@ -1905,7 +1820,7 @@ def get_usage_logs_by_retention_with_http_info(start_hr, opts = {}) # Get hourly usage for network flows. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageNetworkFlowsResponse] def get_usage_network_flows(start_hr, opts = {}) data, _status_code, _headers = get_usage_network_flows_with_http_info(start_hr, opts) @@ -1916,7 +1831,7 @@ def get_usage_network_flows(start_hr, opts = {}) # Get hourly usage for network flows. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageNetworkFlowsResponse, Integer, Hash)>] UsageNetworkFlowsResponse data, response status code and response headers def get_usage_network_flows_with_http_info(start_hr, opts = {}) @@ -1936,9 +1851,6 @@ def get_usage_network_flows_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_network_flows" end - - - # resource path local_var_path = '/api/v1/usage/network_flows' @@ -2015,9 +1927,6 @@ def get_usage_network_hosts_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_network_hosts" end - - - # resource path local_var_path = '/api/v1/usage/network_hosts' @@ -2063,7 +1972,7 @@ def get_usage_network_hosts_with_http_info(start_hr, opts = {}) # Get hourly usage for profiled hosts. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageProfilingResponse] def get_usage_profiling(start_hr, opts = {}) data, _status_code, _headers = get_usage_profiling_with_http_info(start_hr, opts) @@ -2074,7 +1983,7 @@ def get_usage_profiling(start_hr, opts = {}) # Get hourly usage for profiled hosts. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageProfilingResponse, Integer, Hash)>] UsageProfilingResponse data, response status code and response headers def get_usage_profiling_with_http_info(start_hr, opts = {}) @@ -2094,9 +2003,6 @@ def get_usage_profiling_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_profiling" end - - - # resource path local_var_path = '/api/v1/usage/profiling' @@ -2175,10 +2081,6 @@ def get_usage_rum_sessions_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_rum_sessions" end - - - - # resource path local_var_path = '/api/v1/usage/rum_sessions' @@ -2256,9 +2158,6 @@ def get_usage_rum_units_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_rum_units" end - - - # resource path local_var_path = '/api/v1/usage/rum' @@ -2304,7 +2203,7 @@ def get_usage_rum_units_with_http_info(start_hr, opts = {}) # Get hourly usage for Sensitive Data Scanner. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageSDSResponse] def get_usage_sds(start_hr, opts = {}) data, _status_code, _headers = get_usage_sds_with_http_info(start_hr, opts) @@ -2315,7 +2214,7 @@ def get_usage_sds(start_hr, opts = {}) # Get hourly usage for Sensitive Data Scanner. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageSDSResponse, Integer, Hash)>] UsageSDSResponse data, response status code and response headers def get_usage_sds_with_http_info(start_hr, opts = {}) @@ -2335,9 +2234,6 @@ def get_usage_sds_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_sds" end - - - # resource path local_var_path = '/api/v1/usage/sds' @@ -2383,7 +2279,7 @@ def get_usage_sds_with_http_info(start_hr, opts = {}) # Get hourly usage for SNMP devices. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [UsageSNMPResponse] def get_usage_snmp(start_hr, opts = {}) data, _status_code, _headers = get_usage_snmp_with_http_info(start_hr, opts) @@ -2394,7 +2290,7 @@ def get_usage_snmp(start_hr, opts = {}) # Get hourly usage for SNMP devices. # @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour. # @param [Hash] opts the optional parameters - # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending**before** this hour. + # @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour. # @return [Array<(UsageSNMPResponse, Integer, Hash)>] UsageSNMPResponse data, response status code and response headers def get_usage_snmp_with_http_info(start_hr, opts = {}) @@ -2414,9 +2310,6 @@ def get_usage_snmp_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_snmp" end - - - # resource path local_var_path = '/api/v1/usage/snmp' @@ -2460,7 +2353,7 @@ def get_usage_snmp_with_http_info(start_hr, opts = {}) end # Get usage across your multi-org account # Get usage across your multi-org account. You must have the multi-org feature enabled. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month.Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param [Hash] opts the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [Boolean] :include_org_details Include usage summaries for each sub-org. @@ -2472,7 +2365,7 @@ def get_usage_summary(start_month, opts = {}) # Get usage across your multi-org account # Get usage across your multi-org account. You must have the multi-org feature enabled. - # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month.Maximum of 15 months ago. + # @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago. # @param [Hash] opts the optional parameters # @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month. # @option opts [Boolean] :include_org_details Include usage summaries for each sub-org. @@ -2495,10 +2388,6 @@ def get_usage_summary_with_http_info(start_month, opts = {}) if @api_client.config.client_side_validation && start_month.nil? fail ArgumentError, "Missing the required parameter 'start_month' when calling UsageMeteringAPI.get_usage_summary" end - - - - # resource path local_var_path = '/api/v1/usage/summary' @@ -2576,9 +2465,6 @@ def get_usage_synthetics_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_synthetics" end - - - # resource path local_var_path = '/api/v1/usage/synthetics' @@ -2655,9 +2541,6 @@ def get_usage_synthetics_api_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_synthetics_api" end - - - # resource path local_var_path = '/api/v1/usage/synthetics_api' @@ -2734,9 +2617,6 @@ def get_usage_synthetics_browser_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_synthetics_browser" end - - - # resource path local_var_path = '/api/v1/usage/synthetics_browser' @@ -2813,9 +2693,6 @@ def get_usage_timeseries_with_http_info(start_hr, opts = {}) if @api_client.config.client_side_validation && start_hr.nil? fail ArgumentError, "Missing the required parameter 'start_hr' when calling UsageMeteringAPI.get_usage_timeseries" end - - - # resource path local_var_path = '/api/v1/usage/timeseries' @@ -2894,12 +2771,6 @@ def get_usage_top_avg_metrics_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_top_avg_metrics ...' end - - - - - - # resource path local_var_path = '/api/v1/usage/top_avg_metrics' diff --git a/lib/datadog_api_client/v1/api/users_api.rb b/lib/datadog_api_client/v1/api/users_api.rb index fd660e5d61db..c693f1cece51 100644 --- a/lib/datadog_api_client/v1/api/users_api.rb +++ b/lib/datadog_api_client/v1/api/users_api.rb @@ -61,8 +61,6 @@ def create_user_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.create_user" end - - # resource path local_var_path = '/api/v1/user' @@ -143,8 +141,6 @@ def disable_user_with_http_info(user_handle, opts = {}) if @api_client.config.client_side_validation && user_handle.nil? fail ArgumentError, "Missing the required parameter 'user_handle' when calling UsersAPI.disable_user" end - - # resource path local_var_path = '/api/v1/user/{user_handle}'.sub('{user_handle}', CGI.escape(user_handle.to_s).gsub('%2F', '/')) @@ -217,8 +213,6 @@ def get_user_with_http_info(user_handle, opts = {}) if @api_client.config.client_side_validation && user_handle.nil? fail ArgumentError, "Missing the required parameter 'user_handle' when calling UsersAPI.get_user" end - - # resource path local_var_path = '/api/v1/user/{user_handle}'.sub('{user_handle}', CGI.escape(user_handle.to_s).gsub('%2F', '/')) @@ -285,7 +279,6 @@ def list_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsersAPI.list_users ...' end - # resource path local_var_path = '/api/v1/user' @@ -364,13 +357,10 @@ def update_user_with_http_info(user_handle, body, opts = {}) if @api_client.config.client_side_validation && user_handle.nil? fail ArgumentError, "Missing the required parameter 'user_handle' when calling UsersAPI.update_user" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.update_user" end - - # resource path local_var_path = '/api/v1/user/{user_handle}'.sub('{user_handle}', CGI.escape(user_handle.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb index bda14621a199..5f617d40e5e3 100644 --- a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +++ b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb @@ -55,8 +55,6 @@ def create_webhooks_integration_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling WebhooksIntegrationAPI.create_webhooks_integration" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/webhooks' @@ -131,8 +129,6 @@ def create_webhooks_integration_custom_variable_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling WebhooksIntegrationAPI.create_webhooks_integration_custom_variable" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables' @@ -207,8 +203,6 @@ def delete_webhooks_integration_with_http_info(webhook_name, opts = {}) if @api_client.config.client_side_validation && webhook_name.nil? fail ArgumentError, "Missing the required parameter 'webhook_name' when calling WebhooksIntegrationAPI.delete_webhooks_integration" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{webhook_name}', CGI.escape(webhook_name.to_s).gsub('%2F', '/')) @@ -281,8 +275,6 @@ def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_n if @api_client.config.client_side_validation && custom_variable_name.nil? fail ArgumentError, "Missing the required parameter 'custom_variable_name' when calling WebhooksIntegrationAPI.delete_webhooks_integration_custom_variable" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{custom_variable_name}', CGI.escape(custom_variable_name.to_s).gsub('%2F', '/')) @@ -355,8 +347,6 @@ def get_webhooks_integration_with_http_info(webhook_name, opts = {}) if @api_client.config.client_side_validation && webhook_name.nil? fail ArgumentError, "Missing the required parameter 'webhook_name' when calling WebhooksIntegrationAPI.get_webhooks_integration" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{webhook_name}', CGI.escape(webhook_name.to_s).gsub('%2F', '/')) @@ -435,8 +425,6 @@ def get_webhooks_integration_custom_variable_with_http_info(custom_variable_name if @api_client.config.client_side_validation && custom_variable_name.nil? fail ArgumentError, "Missing the required parameter 'custom_variable_name' when calling WebhooksIntegrationAPI.get_webhooks_integration_custom_variable" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{custom_variable_name}', CGI.escape(custom_variable_name.to_s).gsub('%2F', '/')) @@ -511,13 +499,10 @@ def update_webhooks_integration_with_http_info(webhook_name, body, opts = {}) if @api_client.config.client_side_validation && webhook_name.nil? fail ArgumentError, "Missing the required parameter 'webhook_name' when calling WebhooksIntegrationAPI.update_webhooks_integration" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling WebhooksIntegrationAPI.update_webhooks_integration" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/webhooks/{webhook_name}'.sub('{webhook_name}', CGI.escape(webhook_name.to_s).gsub('%2F', '/')) @@ -594,13 +579,10 @@ def update_webhooks_integration_custom_variable_with_http_info(custom_variable_n if @api_client.config.client_side_validation && custom_variable_name.nil? fail ArgumentError, "Missing the required parameter 'custom_variable_name' when calling WebhooksIntegrationAPI.update_webhooks_integration_custom_variable" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling WebhooksIntegrationAPI.update_webhooks_integration_custom_variable" end - - # resource path local_var_path = '/api/v1/integration/webhooks/configuration/custom-variables/{custom_variable_name}'.sub('{custom_variable_name}', CGI.escape(custom_variable_name.to_s).gsub('%2F', '/')) 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 9f4acb9b7e3a..9e793fc60779 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 @@ -55,8 +55,6 @@ def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling CloudWorkloadSecurityAPI.create_cloud_workload_security_agent_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules' @@ -131,8 +129,6 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts if @api_client.config.client_side_validation && agent_rule_id.nil? fail ArgumentError, "Missing the required parameter 'agent_rule_id' when calling CloudWorkloadSecurityAPI.delete_cloud_workload_security_agent_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{agent_rule_id}', CGI.escape(agent_rule_id.to_s).gsub('%2F', '/')) @@ -203,7 +199,6 @@ def download_cloud_workload_policy_file_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.download_cloud_workload_policy_file ...' end - # resource path local_var_path = '/api/v2/security/cloud_workload/policy/download' @@ -276,8 +271,6 @@ def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = if @api_client.config.client_side_validation && agent_rule_id.nil? fail ArgumentError, "Missing the required parameter 'agent_rule_id' when calling CloudWorkloadSecurityAPI.get_cloud_workload_security_agent_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{agent_rule_id}', CGI.escape(agent_rule_id.to_s).gsub('%2F', '/')) @@ -344,7 +337,6 @@ def list_cloud_workload_security_agent_rules_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CloudWorkloadSecurityAPI.list_cloud_workload_security_agent_rules ...' end - # resource path local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules' @@ -421,13 +413,10 @@ def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body if @api_client.config.client_side_validation && agent_rule_id.nil? fail ArgumentError, "Missing the required parameter 'agent_rule_id' when calling CloudWorkloadSecurityAPI.update_cloud_workload_security_agent_rule" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling CloudWorkloadSecurityAPI.update_cloud_workload_security_agent_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/cloud_workload_security/agent_rules/{agent_rule_id}'.sub('{agent_rule_id}', CGI.escape(agent_rule_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb index d200362566b1..70320d091972 100644 --- a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb @@ -57,13 +57,10 @@ def create_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { if @api_client.config.client_side_validation && dashboard_list_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_list_id' when calling DashboardListsAPI.create_dashboard_list_items" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.create_dashboard_list_items" end - - # resource path local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) @@ -140,13 +137,10 @@ def delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { if @api_client.config.client_side_validation && dashboard_list_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_list_id' when calling DashboardListsAPI.delete_dashboard_list_items" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.delete_dashboard_list_items" end - - # resource path local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) @@ -221,8 +215,6 @@ def get_dashboard_list_items_with_http_info(dashboard_list_id, opts = {}) if @api_client.config.client_side_validation && dashboard_list_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_list_id' when calling DashboardListsAPI.get_dashboard_list_items" end - - # resource path local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) @@ -297,13 +289,10 @@ def update_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { if @api_client.config.client_side_validation && dashboard_list_id.nil? fail ArgumentError, "Missing the required parameter 'dashboard_list_id' when calling DashboardListsAPI.update_dashboard_list_items" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling DashboardListsAPI.update_dashboard_list_items" end - - # resource path local_var_path = '/api/v2/dashboard/lists/manual/{dashboard_list_id}/dashboards'.sub('{dashboard_list_id}', CGI.escape(dashboard_list_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/incident_services_api.rb b/lib/datadog_api_client/v2/api/incident_services_api.rb index afd3a2c622d2..ec4e4c38b3e0 100644 --- a/lib/datadog_api_client/v2/api/incident_services_api.rb +++ b/lib/datadog_api_client/v2/api/incident_services_api.rb @@ -55,8 +55,6 @@ def create_incident_service_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling IncidentServicesAPI.create_incident_service" end - - # resource path local_var_path = '/api/v2/services' @@ -131,8 +129,6 @@ def delete_incident_service_with_http_info(service_id, opts = {}) if @api_client.config.client_side_validation && service_id.nil? fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.delete_incident_service" end - - # resource path local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) @@ -209,9 +205,6 @@ def get_incident_service_with_http_info(service_id, opts = {}) if @api_client.config.client_side_validation && service_id.nil? fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.get_incident_service" end - - - # resource path local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) @@ -287,11 +280,6 @@ def list_incident_services_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentServicesAPI.list_incident_services ...' end - - - - - # resource path local_var_path = '/api/v2/services' @@ -370,13 +358,10 @@ def update_incident_service_with_http_info(service_id, body, opts = {}) if @api_client.config.client_side_validation && service_id.nil? fail ArgumentError, "Missing the required parameter 'service_id' when calling IncidentServicesAPI.update_incident_service" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling IncidentServicesAPI.update_incident_service" end - - # resource path local_var_path = '/api/v2/services/{service_id}'.sub('{service_id}', CGI.escape(service_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/incident_teams_api.rb b/lib/datadog_api_client/v2/api/incident_teams_api.rb index 7a7ae11a193b..56d819a08c33 100644 --- a/lib/datadog_api_client/v2/api/incident_teams_api.rb +++ b/lib/datadog_api_client/v2/api/incident_teams_api.rb @@ -55,8 +55,6 @@ def create_incident_team_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling IncidentTeamsAPI.create_incident_team" end - - # resource path local_var_path = '/api/v2/teams' @@ -131,8 +129,6 @@ def delete_incident_team_with_http_info(team_id, opts = {}) if @api_client.config.client_side_validation && team_id.nil? fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.delete_incident_team" end - - # resource path local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) @@ -209,9 +205,6 @@ def get_incident_team_with_http_info(team_id, opts = {}) if @api_client.config.client_side_validation && team_id.nil? fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.get_incident_team" end - - - # resource path local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) @@ -287,11 +280,6 @@ def list_incident_teams_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentTeamsAPI.list_incident_teams ...' end - - - - - # resource path local_var_path = '/api/v2/teams' @@ -370,13 +358,10 @@ def update_incident_team_with_http_info(team_id, body, opts = {}) if @api_client.config.client_side_validation && team_id.nil? fail ArgumentError, "Missing the required parameter 'team_id' when calling IncidentTeamsAPI.update_incident_team" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling IncidentTeamsAPI.update_incident_team" end - - # resource path local_var_path = '/api/v2/teams/{team_id}'.sub('{team_id}', CGI.escape(team_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index dd8726ca7ca0..a2b657676e0e 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -55,8 +55,6 @@ def create_incident_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling IncidentsAPI.create_incident" end - - # resource path local_var_path = '/api/v2/incidents' @@ -131,8 +129,6 @@ def delete_incident_with_http_info(incident_id, opts = {}) if @api_client.config.client_side_validation && incident_id.nil? fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.delete_incident" end - - # resource path local_var_path = '/api/v2/incidents/{incident_id}'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/')) @@ -207,9 +203,6 @@ def get_incident_with_http_info(incident_id, opts = {}) if @api_client.config.client_side_validation && incident_id.nil? fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.get_incident" end - - - # resource path local_var_path = '/api/v2/incidents/{incident_id}'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/')) @@ -283,10 +276,6 @@ def list_incidents_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incidents ...' end - - - - # resource path local_var_path = '/api/v2/incidents' @@ -364,13 +353,10 @@ def update_incident_with_http_info(incident_id, body, opts = {}) if @api_client.config.client_side_validation && incident_id.nil? fail ArgumentError, "Missing the required parameter 'incident_id' when calling IncidentsAPI.update_incident" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling IncidentsAPI.update_incident" end - - # resource path local_var_path = '/api/v2/incidents/{incident_id}'.sub('{incident_id}', CGI.escape(incident_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/key_management_api.rb b/lib/datadog_api_client/v2/api/key_management_api.rb index db53f0cb7bb9..10e3e887d9a3 100644 --- a/lib/datadog_api_client/v2/api/key_management_api.rb +++ b/lib/datadog_api_client/v2/api/key_management_api.rb @@ -55,8 +55,6 @@ def create_api_key_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.create_api_key" end - - # resource path local_var_path = '/api/v2/api_keys' @@ -131,8 +129,6 @@ def create_current_user_application_key_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.create_current_user_application_key" end - - # resource path local_var_path = '/api/v2/current_user/application_keys' @@ -207,8 +203,6 @@ def delete_api_key_with_http_info(api_key_id, opts = {}) if @api_client.config.client_side_validation && api_key_id.nil? fail ArgumentError, "Missing the required parameter 'api_key_id' when calling KeyManagementAPI.delete_api_key" end - - # resource path local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{api_key_id}', CGI.escape(api_key_id.to_s).gsub('%2F', '/')) @@ -281,8 +275,6 @@ def delete_application_key_with_http_info(app_key_id, opts = {}) if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_application_key" end - - # resource path local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -355,8 +347,6 @@ def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.delete_current_user_application_key" end - - # resource path local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -431,9 +421,6 @@ def get_api_key_with_http_info(api_key_id, opts = {}) if @api_client.config.client_side_validation && api_key_id.nil? fail ArgumentError, "Missing the required parameter 'api_key_id' when calling KeyManagementAPI.get_api_key" end - - - # resource path local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{api_key_id}', CGI.escape(api_key_id.to_s).gsub('%2F', '/')) @@ -509,9 +496,6 @@ def get_application_key_with_http_info(app_key_id, opts = {}) if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.get_application_key" end - - - # resource path local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -585,8 +569,6 @@ def get_current_user_application_key_with_http_info(app_key_id, opts = {}) if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.get_current_user_application_key" end - - # resource path local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -631,7 +613,7 @@ def get_current_user_application_key_with_http_info(app_key_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter API keys by the specified string. # @option opts [String] :filter_created_at_start Only include API keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include API keys created on or before the specified date. @@ -649,7 +631,7 @@ def list_api_keys(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [APIKeysSort] :sort API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter API keys by the specified string. # @option opts [String] :filter_created_at_start Only include API keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include API keys created on or before the specified date. @@ -671,16 +653,6 @@ def list_api_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_api_keys ...' end - - - - - - - - - - # resource path local_var_path = '/api/v2/api_keys' @@ -734,7 +706,7 @@ def list_api_keys_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -749,7 +721,7 @@ def list_application_keys(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -768,13 +740,6 @@ def list_application_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_application_keys ...' end - - - - - - - # resource path local_var_path = '/api/v2/application_keys' @@ -825,7 +790,7 @@ def list_application_keys_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -840,7 +805,7 @@ def list_current_user_application_keys(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -859,13 +824,6 @@ def list_current_user_application_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: KeyManagementAPI.list_current_user_application_keys ...' end - - - - - - - # resource path local_var_path = '/api/v2/current_user/application_keys' @@ -946,13 +904,10 @@ def update_api_key_with_http_info(api_key_id, body, opts = {}) if @api_client.config.client_side_validation && api_key_id.nil? fail ArgumentError, "Missing the required parameter 'api_key_id' when calling KeyManagementAPI.update_api_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_api_key" end - - # resource path local_var_path = '/api/v2/api_keys/{api_key_id}'.sub('{api_key_id}', CGI.escape(api_key_id.to_s).gsub('%2F', '/')) @@ -1029,13 +984,10 @@ def update_application_key_with_http_info(app_key_id, body, opts = {}) if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.update_application_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_application_key" end - - # resource path local_var_path = '/api/v2/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -1112,13 +1064,10 @@ def update_current_user_application_key_with_http_info(app_key_id, body, opts = if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling KeyManagementAPI.update_current_user_application_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling KeyManagementAPI.update_current_user_application_key" end - - # resource path local_var_path = '/api/v2/current_user/application_keys/{app_key_id}'.sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index cad7940a2ec8..ce6ddf6256c4 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -55,8 +55,6 @@ def aggregate_logs_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsAPI.aggregate_logs" end - - # resource path local_var_path = '/api/v2/logs/analytics/aggregate' @@ -147,8 +145,6 @@ def list_logs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.list_logs ...' end - - # resource path local_var_path = '/api/v2/logs/events/search' @@ -204,7 +200,7 @@ def list_logs_with_http_info(opts = {}) # [2]: https://docs.datadoghq.com/logs/archives # @param [Hash] opts the optional parameters # @option opts [String] :filter_query Search query following logs syntax. - # @option opts [String] :filter_index For customers with multiple indexes, the indexes to searchDefaults to '*' which means all indexes + # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes # @option opts [Time] :filter_from Minimum timestamp for requested logs. # @option opts [Time] :filter_to Maximum timestamp for requested logs. # @option opts [LogsSort] :sort Order of logs in results. @@ -230,7 +226,7 @@ def list_logs_get(opts = {}) # [2]: https://docs.datadoghq.com/logs/archives # @param [Hash] opts the optional parameters # @option opts [String] :filter_query Search query following logs syntax. - # @option opts [String] :filter_index For customers with multiple indexes, the indexes to searchDefaults to '*' which means all indexes + # @option opts [String] :filter_index For customers with multiple indexes, the indexes to search Defaults to '*' which means all indexes # @option opts [Time] :filter_from Minimum timestamp for requested logs. # @option opts [Time] :filter_to Maximum timestamp for requested logs. # @option opts [LogsSort] :sort Order of logs in results. @@ -251,14 +247,6 @@ def list_logs_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.list_logs_get ...' end - - - - - - - - # resource path local_var_path = '/api/v2/logs/events' @@ -382,14 +370,10 @@ def submit_log_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsAPI.submit_log ...' end - - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsAPI.submit_log" end - - # resource path local_var_path = '/api/v2/logs' diff --git a/lib/datadog_api_client/v2/api/logs_archives_api.rb b/lib/datadog_api_client/v2/api/logs_archives_api.rb index be931837241c..7571e8a118bd 100644 --- a/lib/datadog_api_client/v2/api/logs_archives_api.rb +++ b/lib/datadog_api_client/v2/api/logs_archives_api.rb @@ -57,13 +57,10 @@ def add_read_role_to_archive_with_http_info(archive_id, body, opts = {}) if @api_client.config.client_side_validation && archive_id.nil? fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.add_read_role_to_archive" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.add_read_role_to_archive" end - - # resource path local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) @@ -138,8 +135,6 @@ def create_logs_archive_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.create_logs_archive" end - - # resource path local_var_path = '/api/v2/logs/config/archives' @@ -214,8 +209,6 @@ def delete_logs_archive_with_http_info(archive_id, opts = {}) if @api_client.config.client_side_validation && archive_id.nil? fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.delete_logs_archive" end - - # resource path local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) @@ -288,8 +281,6 @@ def get_logs_archive_with_http_info(archive_id, opts = {}) if @api_client.config.client_side_validation && archive_id.nil? fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.get_logs_archive" end - - # resource path local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) @@ -358,7 +349,6 @@ def get_logs_archive_order_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsArchivesAPI.get_logs_archive_order ...' end - # resource path local_var_path = '/api/v2/logs/config/archive-order' @@ -431,8 +421,6 @@ def list_archive_read_roles_with_http_info(archive_id, opts = {}) if @api_client.config.client_side_validation && archive_id.nil? fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.list_archive_read_roles" end - - # resource path local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) @@ -499,7 +487,6 @@ def list_logs_archives_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsArchivesAPI.list_logs_archives ...' end - # resource path local_var_path = '/api/v2/logs/config/archives' @@ -574,13 +561,10 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) if @api_client.config.client_side_validation && archive_id.nil? fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.remove_role_from_archive" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.remove_role_from_archive" end - - # resource path local_var_path = '/api/v2/logs/config/archives/{archive_id}/readers'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) @@ -663,13 +647,10 @@ def update_logs_archive_with_http_info(archive_id, body, opts = {}) if @api_client.config.client_side_validation && archive_id.nil? fail ArgumentError, "Missing the required parameter 'archive_id' when calling LogsArchivesAPI.update_logs_archive" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.update_logs_archive" end - - # resource path local_var_path = '/api/v2/logs/config/archives/{archive_id}'.sub('{archive_id}', CGI.escape(archive_id.to_s).gsub('%2F', '/')) @@ -752,8 +733,6 @@ def update_logs_archive_order_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsArchivesAPI.update_logs_archive_order" end - - # resource path local_var_path = '/api/v2/logs/config/archive-order' diff --git a/lib/datadog_api_client/v2/api/logs_metrics_api.rb b/lib/datadog_api_client/v2/api/logs_metrics_api.rb index f4c9cf59f047..4df1c040bcc9 100644 --- a/lib/datadog_api_client/v2/api/logs_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/logs_metrics_api.rb @@ -57,8 +57,6 @@ def create_logs_metric_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsMetricsAPI.create_logs_metric" end - - # resource path local_var_path = '/api/v2/logs/config/metrics' @@ -133,8 +131,6 @@ def delete_logs_metric_with_http_info(metric_id, opts = {}) if @api_client.config.client_side_validation && metric_id.nil? fail ArgumentError, "Missing the required parameter 'metric_id' when calling LogsMetricsAPI.delete_logs_metric" end - - # resource path local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{metric_id}', CGI.escape(metric_id.to_s).gsub('%2F', '/')) @@ -207,8 +203,6 @@ def get_logs_metric_with_http_info(metric_id, opts = {}) if @api_client.config.client_side_validation && metric_id.nil? fail ArgumentError, "Missing the required parameter 'metric_id' when calling LogsMetricsAPI.get_logs_metric" end - - # resource path local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{metric_id}', CGI.escape(metric_id.to_s).gsub('%2F', '/')) @@ -275,7 +269,6 @@ def list_logs_metrics_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LogsMetricsAPI.list_logs_metrics ...' end - # resource path local_var_path = '/api/v2/logs/config/metrics' @@ -352,13 +345,10 @@ def update_logs_metric_with_http_info(metric_id, body, opts = {}) if @api_client.config.client_side_validation && metric_id.nil? fail ArgumentError, "Missing the required parameter 'metric_id' when calling LogsMetricsAPI.update_logs_metric" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling LogsMetricsAPI.update_logs_metric" end - - # resource path local_var_path = '/api/v2/logs/config/metrics/{metric_id}'.sub('{metric_id}', CGI.escape(metric_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index aa6e2c8dafa5..c6fec833cddb 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -63,13 +63,10 @@ def create_tag_configuration_with_http_info(metric_name, body, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.create_tag_configuration" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.create_tag_configuration" end - - # resource path local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) @@ -146,8 +143,6 @@ def delete_tag_configuration_with_http_info(metric_name, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.delete_tag_configuration" end - - # resource path local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) @@ -220,8 +215,6 @@ def list_tag_configuration_by_name_with_http_info(metric_name, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_tag_configuration_by_name" end - - # resource path local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) @@ -268,9 +261,9 @@ def list_tag_configuration_by_name_with_http_info(metric_name, opts = {}) # @option opts [Boolean] :filter_configured Filter metrics that have configured tags. # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. # @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter tag configurations by metric type. - # @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentileaggregations enabled or disabled. - # @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.Cannot be combined with other filters. - # @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query.Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). + # @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled. + # @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. + # @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query. Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). # @return [MetricsAndMetricTagConfigurationsResponse] def list_tag_configurations(opts = {}) data, _status_code, _headers = list_tag_configurations_with_http_info(opts) @@ -284,9 +277,9 @@ def list_tag_configurations(opts = {}) # @option opts [Boolean] :filter_configured Filter metrics that have configured tags. # @option opts [String] :filter_tags_configured Filter tag configurations by configured tags. # @option opts [MetricTagConfigurationMetricTypes] :filter_metric_type Filter tag configurations by metric type. - # @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentileaggregations enabled or disabled. - # @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.Cannot be combined with other filters. - # @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query.Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). + # @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled. + # @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Cannot be combined with other filters. + # @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] query. Defaults value is 3600 (1 hour), maximum value is 172,800 (2 days). # @return [Array<(MetricsAndMetricTagConfigurationsResponse, Integer, Hash)>] MetricsAndMetricTagConfigurationsResponse data, response status code and response headers def list_tag_configurations_with_http_info(opts = {}) @@ -302,13 +295,6 @@ def list_tag_configurations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_configurations ...' end - - - - - - - # resource path local_var_path = '/api/v2/metrics' @@ -387,8 +373,6 @@ def list_tags_by_metric_name_with_http_info(metric_name, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_tags_by_metric_name" end - - # resource path local_var_path = '/api/v2/metrics/{metric_name}/all-tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) @@ -469,8 +453,6 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.list_volumes_by_metric_name" end - - # resource path local_var_path = '/api/v2/metrics/{metric_name}/volumes'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) @@ -549,13 +531,10 @@ def update_tag_configuration_with_http_info(metric_name, body, opts = {}) if @api_client.config.client_side_validation && metric_name.nil? fail ArgumentError, "Missing the required parameter 'metric_name' when calling MetricsAPI.update_tag_configuration" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling MetricsAPI.update_tag_configuration" end - - # resource path local_var_path = '/api/v2/metrics/{metric_name}/tags'.sub('{metric_name}', CGI.escape(metric_name.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/processes_api.rb b/lib/datadog_api_client/v2/api/processes_api.rb index bff76cbf4a48..20e7935d6f49 100644 --- a/lib/datadog_api_client/v2/api/processes_api.rb +++ b/lib/datadog_api_client/v2/api/processes_api.rb @@ -27,10 +27,10 @@ def initialize(api_client = APIClient.default) # @param [Hash] opts the optional parameters # @option opts [String] :search String to search processes by. # @option opts [String] :tags Comma-separated list of tags to filter processes by. - # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window.If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither`from` nor `to` are provided, the query window will be `[now - 15m, now]`. - # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window.If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither`from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. # @option opts [Integer] :page_limit Maximum number of results returned. - # @option opts [String] :page_cursor String to query the next page of results.This key is provided with each valid response from the API in `meta.page.after`. + # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. # @return [ProcessSummariesResponse] def list_processes(opts = {}) data, _status_code, _headers = list_processes_with_http_info(opts) @@ -42,10 +42,10 @@ def list_processes(opts = {}) # @param [Hash] opts the optional parameters # @option opts [String] :search String to search processes by. # @option opts [String] :tags Comma-separated list of tags to filter processes by. - # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window.If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither`from` nor `to` are provided, the query window will be `[now - 15m, now]`. - # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window.If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither`from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + # @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`. # @option opts [Integer] :page_limit Maximum number of results returned. - # @option opts [String] :page_cursor String to query the next page of results.This key is provided with each valid response from the API in `meta.page.after`. + # @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`. # @return [Array<(ProcessSummariesResponse, Integer, Hash)>] ProcessSummariesResponse data, response status code and response headers def list_processes_with_http_info(opts = {}) @@ -61,13 +61,6 @@ def list_processes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProcessesAPI.list_processes ...' end - - - - - - - # resource path local_var_path = '/api/v2/processes' diff --git a/lib/datadog_api_client/v2/api/roles_api.rb b/lib/datadog_api_client/v2/api/roles_api.rb index c487d036ecf1..019a57ba4fc1 100644 --- a/lib/datadog_api_client/v2/api/roles_api.rb +++ b/lib/datadog_api_client/v2/api/roles_api.rb @@ -57,13 +57,10 @@ def add_permission_to_role_with_http_info(role_id, body, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.add_permission_to_role" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.add_permission_to_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -140,13 +137,10 @@ def add_user_to_role_with_http_info(role_id, body, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.add_user_to_role" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.add_user_to_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}/users'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -223,13 +217,10 @@ def clone_role_with_http_info(role_id, body, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.clone_role" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.clone_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}/clone'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -304,8 +295,6 @@ def create_role_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.create_role" end - - # resource path local_var_path = '/api/v2/roles' @@ -380,8 +369,6 @@ def delete_role_with_http_info(role_id, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.delete_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -454,8 +441,6 @@ def get_role_with_http_info(role_id, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.get_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -522,7 +507,6 @@ def list_permissions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RolesAPI.list_permissions ...' end - # resource path local_var_path = '/api/v2/permissions' @@ -595,8 +579,6 @@ def list_role_permissions_with_http_info(role_id, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.list_role_permissions" end - - # resource path local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -641,7 +623,7 @@ def list_role_permissions_with_http_info(role_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default.Sort order is **descending** if the field is prefixed by a negative sign, for example:`sort=-name`. + # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. # @option opts [String] :filter Filter all roles by the given string. # @return [RolesResponse] def list_roles(opts = {}) @@ -654,7 +636,7 @@ def list_roles(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default.Sort order is **descending** if the field is prefixed by a negative sign, for example:`sort=-name`. + # @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`. # @option opts [String] :filter Filter all roles by the given string. # @return [Array<(RolesResponse, Integer, Hash)>] RolesResponse data, response status code and response headers def list_roles_with_http_info(opts = {}) @@ -671,11 +653,6 @@ def list_roles_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RolesAPI.list_roles ...' end - - - - - # resource path local_var_path = '/api/v2/roles' @@ -725,7 +702,7 @@ def list_roles_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default.Sort order is **descending** if the field is prefixed by a negative sign,for example `sort=-name`. Options: `name`, `email`, `status`. + # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. # @return [UsersResponse] def list_role_users(role_id, opts = {}) @@ -739,7 +716,7 @@ def list_role_users(role_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default.Sort order is **descending** if the field is prefixed by a negative sign,for example `sort=-name`. Options: `name`, `email`, `status`. + # @option opts [String] :sort User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`. # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers def list_role_users_with_http_info(role_id, opts = {}) @@ -760,12 +737,6 @@ def list_role_users_with_http_info(role_id, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.list_role_users" end - - - - - - # resource path local_var_path = '/api/v2/roles/{role_id}/users'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -844,13 +815,10 @@ def remove_permission_from_role_with_http_info(role_id, body, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.remove_permission_from_role" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.remove_permission_from_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}/permissions'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -927,13 +895,10 @@ def remove_user_from_role_with_http_info(role_id, body, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.remove_user_from_role" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.remove_user_from_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}/users'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) @@ -1010,13 +975,10 @@ def update_role_with_http_info(role_id, body, opts = {}) if @api_client.config.client_side_validation && role_id.nil? fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesAPI.update_role" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling RolesAPI.update_role" end - - # resource path local_var_path = '/api/v2/roles/{role_id}'.sub('{role_id}', CGI.escape(role_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index fa6c9665458d..710520d032ab 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -61,8 +61,6 @@ def create_security_filter_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_filter" end - - # resource path local_var_path = '/api/v2/security_monitoring/configuration/security_filters' @@ -137,8 +135,6 @@ def create_security_monitoring_rule_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_monitoring_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/rules' @@ -213,8 +209,6 @@ def delete_security_filter_with_http_info(security_filter_id, opts = {}) if @api_client.config.client_side_validation && security_filter_id.nil? fail ArgumentError, "Missing the required parameter 'security_filter_id' when calling SecurityMonitoringAPI.delete_security_filter" end - - # resource path local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{security_filter_id}', CGI.escape(security_filter_id.to_s).gsub('%2F', '/')) @@ -287,8 +281,6 @@ def delete_security_monitoring_rule_with_http_info(rule_id, opts = {}) if @api_client.config.client_side_validation && rule_id.nil? fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_monitoring_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/')) @@ -367,8 +359,6 @@ def get_security_filter_with_http_info(security_filter_id, opts = {}) if @api_client.config.client_side_validation && security_filter_id.nil? fail ArgumentError, "Missing the required parameter 'security_filter_id' when calling SecurityMonitoringAPI.get_security_filter" end - - # resource path local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{security_filter_id}', CGI.escape(security_filter_id.to_s).gsub('%2F', '/')) @@ -441,8 +431,6 @@ def get_security_monitoring_rule_with_http_info(rule_id, opts = {}) if @api_client.config.client_side_validation && rule_id.nil? fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_monitoring_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/')) @@ -509,7 +497,6 @@ def list_security_filters_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_filters ...' end - # resource path local_var_path = '/api/v2/security_monitoring/configuration/security_filters' @@ -580,9 +567,6 @@ def list_security_monitoring_rules_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_monitoring_rules ...' end - - - # resource path local_var_path = '/api/v2/security_monitoring/rules' @@ -667,13 +651,6 @@ def list_security_monitoring_signals_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_monitoring_signals ...' end - - - - - - - # resource path local_var_path = '/api/v2/security_monitoring/signals' @@ -752,8 +729,6 @@ def search_security_monitoring_signals_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.search_security_monitoring_signals ...' end - - # resource path local_var_path = '/api/v2/security_monitoring/signals/search' @@ -832,13 +807,10 @@ def update_security_filter_with_http_info(security_filter_id, body, opts = {}) if @api_client.config.client_side_validation && security_filter_id.nil? fail ArgumentError, "Missing the required parameter 'security_filter_id' when calling SecurityMonitoringAPI.update_security_filter" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_filter" end - - # resource path local_var_path = '/api/v2/security_monitoring/configuration/security_filters/{security_filter_id}'.sub('{security_filter_id}', CGI.escape(security_filter_id.to_s).gsub('%2F', '/')) @@ -919,13 +891,10 @@ def update_security_monitoring_rule_with_http_info(rule_id, body, opts = {}) if @api_client.config.client_side_validation && rule_id.nil? fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_monitoring_rule" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_monitoring_rule" end - - # resource path local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/service_accounts_api.rb b/lib/datadog_api_client/v2/api/service_accounts_api.rb index fefc739b00f8..4e03a19f6ab9 100644 --- a/lib/datadog_api_client/v2/api/service_accounts_api.rb +++ b/lib/datadog_api_client/v2/api/service_accounts_api.rb @@ -57,13 +57,10 @@ def create_service_account_application_key_with_http_info(service_account_id, bo if @api_client.config.client_side_validation && service_account_id.nil? fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.create_service_account_application_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceAccountsAPI.create_service_account_application_key" end - - # resource path local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')) @@ -140,13 +137,10 @@ def delete_service_account_application_key_with_http_info(service_account_id, ap if @api_client.config.client_side_validation && service_account_id.nil? fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.delete_service_account_application_key" end - # verify the required parameter 'app_key_id' is set if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling ServiceAccountsAPI.delete_service_account_application_key" end - - # resource path local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')).sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -221,13 +215,10 @@ def get_service_account_application_key_with_http_info(service_account_id, app_k if @api_client.config.client_side_validation && service_account_id.nil? fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.get_service_account_application_key" end - # verify the required parameter 'app_key_id' is set if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling ServiceAccountsAPI.get_service_account_application_key" end - - # resource path local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')).sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) @@ -273,7 +264,7 @@ def get_service_account_application_key_with_http_info(service_account_id, app_k # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -289,7 +280,7 @@ def list_service_account_application_keys(service_account_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascendingby default. In order to specify a descending sort, prefix theattribute with a minus sign. + # @option opts [ApplicationKeysSort] :sort Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. # @option opts [String] :filter Filter application keys by the specified string. # @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date. # @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date. @@ -312,14 +303,6 @@ def list_service_account_application_keys_with_http_info(service_account_id, opt if @api_client.config.client_side_validation && service_account_id.nil? fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.list_service_account_application_keys" end - - - - - - - - # resource path local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')) @@ -402,18 +385,14 @@ def update_service_account_application_key_with_http_info(service_account_id, ap if @api_client.config.client_side_validation && service_account_id.nil? fail ArgumentError, "Missing the required parameter 'service_account_id' when calling ServiceAccountsAPI.update_service_account_application_key" end - # verify the required parameter 'app_key_id' is set if @api_client.config.client_side_validation && app_key_id.nil? fail ArgumentError, "Missing the required parameter 'app_key_id' when calling ServiceAccountsAPI.update_service_account_application_key" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling ServiceAccountsAPI.update_service_account_application_key" end - - # resource path local_var_path = '/api/v2/service_accounts/{service_account_id}/application_keys/{app_key_id}'.sub('{service_account_id}', CGI.escape(service_account_id.to_s).gsub('%2F', '/')).sub('{app_key_id}', CGI.escape(app_key_id.to_s).gsub('%2F', '/')) diff --git a/lib/datadog_api_client/v2/api/users_api.rb b/lib/datadog_api_client/v2/api/users_api.rb index 070a65657903..e24bb08343ac 100644 --- a/lib/datadog_api_client/v2/api/users_api.rb +++ b/lib/datadog_api_client/v2/api/users_api.rb @@ -55,8 +55,6 @@ def create_service_account_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.create_service_account" end - - # resource path local_var_path = '/api/v2/service_accounts' @@ -131,8 +129,6 @@ def create_user_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.create_user" end - - # resource path local_var_path = '/api/v2/users' @@ -209,8 +205,6 @@ def disable_user_with_http_info(user_id, opts = {}) if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.disable_user" end - - # resource path local_var_path = '/api/v2/users/{user_id}'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) @@ -283,8 +277,6 @@ def get_invitation_with_http_info(user_invitation_uuid, opts = {}) if @api_client.config.client_side_validation && user_invitation_uuid.nil? fail ArgumentError, "Missing the required parameter 'user_invitation_uuid' when calling UsersAPI.get_invitation" end - - # resource path local_var_path = '/api/v2/user_invitations/{user_invitation_uuid}'.sub('{user_invitation_uuid}', CGI.escape(user_invitation_uuid.to_s).gsub('%2F', '/')) @@ -357,8 +349,6 @@ def get_user_with_http_info(user_id, opts = {}) if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.get_user" end - - # resource path local_var_path = '/api/v2/users/{user_id}'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) @@ -433,8 +423,6 @@ def list_user_organizations_with_http_info(user_id, opts = {}) if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.list_user_organizations" end - - # resource path local_var_path = '/api/v2/users/{user_id}/orgs'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) @@ -509,8 +497,6 @@ def list_user_permissions_with_http_info(user_id, opts = {}) if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.list_user_permissions" end - - # resource path local_var_path = '/api/v2/users/{user_id}/permissions'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/')) @@ -556,10 +542,10 @@ def list_user_permissions_with_http_info(user_id, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default.Sort order is descending if the fieldis prefixed by a negative sign, for example `sort=-name`. Options: `name`,`modified_at`, `user_count`. + # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. # @option opts [QuerySortOrder] :sort_dir Direction of sort. Options: `asc`, `desc`. # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. - # @option opts [String] :filter_status Filter on status attribute.Comma separated list, with possible values `Active`, `Pending`, and `Disabled`.Defaults to no filtering. + # @option opts [String] :filter_status Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. # @return [UsersResponse] def list_users(opts = {}) data, _status_code, _headers = list_users_with_http_info(opts) @@ -572,10 +558,10 @@ def list_users(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. - # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default.Sort order is descending if the fieldis prefixed by a negative sign, for example `sort=-name`. Options: `name`,`modified_at`, `user_count`. + # @option opts [String] :sort User attribute to order results by. Sort order is ascending by default. Sort order is descending if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `modified_at`, `user_count`. # @option opts [QuerySortOrder] :sort_dir Direction of sort. Options: `asc`, `desc`. # @option opts [String] :filter Filter all users by the given string. Defaults to no filtering. - # @option opts [String] :filter_status Filter on status attribute.Comma separated list, with possible values `Active`, `Pending`, and `Disabled`.Defaults to no filtering. + # @option opts [String] :filter_status Filter on status attribute. Comma separated list, with possible values `Active`, `Pending`, and `Disabled`. Defaults to no filtering. # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers def list_users_with_http_info(opts = {}) @@ -591,13 +577,6 @@ def list_users_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UsersAPI.list_users ...' end - - - - - - - # resource path local_var_path = '/api/v2/users' @@ -676,8 +655,6 @@ def send_invitations_with_http_info(body, opts = {}) if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.send_invitations" end - - # resource path local_var_path = '/api/v2/user_invitations' @@ -756,13 +733,10 @@ def update_user_with_http_info(user_id, body, opts = {}) if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersAPI.update_user" end - # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UsersAPI.update_user" end - - # resource path local_var_path = '/api/v2/users/{user_id}'.sub('{user_id}', CGI.escape(user_id.to_s).gsub('%2F', '/'))