From 9ec66bdf5a98abcc053d4192640c8cdb532bcc9f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 22 Jan 2021 07:54:30 +0000 Subject: [PATCH] Regenerate client from commit e264b45 of spec repo --- .apigentools-info | 8 +++---- data/v1/openapi.yaml | 15 +++++-------- .../SLOCorrectionCreateRequestAttributes.md | 2 +- docs/v1/SLOCorrectionResponseAttributes.md | 2 +- .../SLOCorrectionUpdateRequestAttributes.md | 8 +++---- ...lo_correction_create_request_attributes.rb | 7 +----- .../slo_correction_response_attributes.rb | 2 +- ...lo_correction_update_request_attributes.rb | 22 +------------------ 8 files changed, 19 insertions(+), 47 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 661d324e4f2c..6e2ea5f548ca 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-01-21 15:40:42.539030", - "spec_repo_commit": "a46429c" + "regenerated": "2021-01-22 07:54:16.914450", + "spec_repo_commit": "e264b45" }, "v2": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-01-21 15:40:55.269247", - "spec_repo_commit": "a46429c" + "regenerated": "2021-01-22 07:54:28.907555", + "spec_repo_commit": "e264b45" } } } \ No newline at end of file diff --git a/data/v1/openapi.yaml b/data/v1/openapi.yaml index 2009f68340ee..50d673b543b8 100644 --- a/data/v1/openapi.yaml +++ b/data/v1/openapi.yaml @@ -4842,7 +4842,8 @@ components: format: int64 type: integer timezone: - description: Timezone of the timestamps provided + description: The timezone to display in the UI for the correction times + (defaults to "UTC") example: UTC type: string required: @@ -4850,7 +4851,6 @@ components: - start - end - category - - timezone type: object SLOCorrectionListResponse: description: A list of SLO correction objects @@ -4910,7 +4910,8 @@ components: format: int64 type: integer timezone: - description: Timezone of the timestamps provided + description: The timezone to display in the UI for the correction times + (defaults to "UTC") type: string type: object SLOCorrectionUpdateRequest: @@ -4946,14 +4947,10 @@ components: format: int64 type: integer timezone: - description: Timezone of the timestamps provided + description: The timezone to display in the UI for the correction times + (defaults to "UTC") example: UTC type: string - required: - - start - - end - - category - - timezone type: object SLODeleteResponse: description: A response list of all service level objective deleted. diff --git a/docs/v1/SLOCorrectionCreateRequestAttributes.md b/docs/v1/SLOCorrectionCreateRequestAttributes.md index 45a3629b721f..bae31fee12da 100644 --- a/docs/v1/SLOCorrectionCreateRequestAttributes.md +++ b/docs/v1/SLOCorrectionCreateRequestAttributes.md @@ -9,7 +9,7 @@ | **_end** | **Integer** | Ending time of the correction in epoch seconds | | | **slo_id** | **String** | ID of the SLO that this correction will be applied to | | | **start** | **Integer** | Starting time of the correction in epoch seconds | | -| **timezone** | **String** | Timezone of the timestamps provided | | +| **timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\") | [optional] | ## Example diff --git a/docs/v1/SLOCorrectionResponseAttributes.md b/docs/v1/SLOCorrectionResponseAttributes.md index d0579c544f6d..cd7ede0bcc53 100644 --- a/docs/v1/SLOCorrectionResponseAttributes.md +++ b/docs/v1/SLOCorrectionResponseAttributes.md @@ -10,7 +10,7 @@ | **_end** | **Integer** | Ending time of the correction in epoch seconds | [optional] | | **slo_id** | **String** | ID of the SLO that this correction will be applied to | [optional] | | **start** | **Integer** | Starting time of the correction in epoch seconds | [optional] | -| **timezone** | **String** | Timezone of the timestamps provided | [optional] | +| **timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\") | [optional] | ## Example diff --git a/docs/v1/SLOCorrectionUpdateRequestAttributes.md b/docs/v1/SLOCorrectionUpdateRequestAttributes.md index c8c161ed8e9a..ffb3b6e68cfe 100644 --- a/docs/v1/SLOCorrectionUpdateRequestAttributes.md +++ b/docs/v1/SLOCorrectionUpdateRequestAttributes.md @@ -4,11 +4,11 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **category** | [**SLOCorrectionCategory**](SLOCorrectionCategory.md) | | | +| **category** | [**SLOCorrectionCategory**](SLOCorrectionCategory.md) | | [optional] | | **description** | **String** | Description of the correction being made. | [optional] | -| **_end** | **Integer** | Ending time of the correction in epoch seconds | | -| **start** | **Integer** | Starting time of the correction in epoch seconds | | -| **timezone** | **String** | Timezone of the timestamps provided | | +| **_end** | **Integer** | Ending time of the correction in epoch seconds | [optional] | +| **start** | **Integer** | Starting time of the correction in epoch seconds | [optional] | +| **timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\") | [optional] | ## Example diff --git a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb index 492f97bbf4ce..c0731cbb1418 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb @@ -33,7 +33,7 @@ class SLOCorrectionCreateRequestAttributes # Starting time of the correction in epoch seconds attr_accessor :start - # Timezone of the timestamps provided + # The timezone to display in the UI for the correction times (defaults to \"UTC\") attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. @@ -131,10 +131,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "start", start cannot be nil.') end - if @timezone.nil? - invalid_properties.push('invalid value for "timezone", timezone cannot be nil.') - end - invalid_properties end @@ -145,7 +141,6 @@ def valid? return false if @_end.nil? return false if @slo_id.nil? return false if @start.nil? - return false if @timezone.nil? true end diff --git a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb index 754a84f41d53..40a15415bcf9 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb @@ -35,7 +35,7 @@ class SLOCorrectionResponseAttributes # Starting time of the correction in epoch seconds attr_accessor :start - # Timezone of the timestamps provided + # The timezone to display in the UI for the correction times (defaults to \"UTC\") attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb index 11366f1528dc..14954e646a21 100644 --- a/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +++ b/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb @@ -30,7 +30,7 @@ class SLOCorrectionUpdateRequestAttributes # Starting time of the correction in epoch seconds attr_accessor :start - # Timezone of the timestamps provided + # The timezone to display in the UI for the correction times (defaults to \"UTC\") attr_accessor :timezone # Attribute mapping from ruby-style variable name to JSON key. @@ -106,32 +106,12 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @category.nil? - invalid_properties.push('invalid value for "category", category cannot be nil.') - end - - if @_end.nil? - invalid_properties.push('invalid value for "_end", _end cannot be nil.') - end - - if @start.nil? - invalid_properties.push('invalid value for "start", start cannot be nil.') - end - - if @timezone.nil? - invalid_properties.push('invalid value for "timezone", timezone cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @category.nil? - return false if @_end.nil? - return false if @start.nil? - return false if @timezone.nil? true end