diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f7368511bc9a..be322ee7990c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -27062,15 +27062,15 @@ components: description: A short summary of the issue or context. type: string tags: - description: Tags to help categorize or filter the page. + description: Tags to help categorize or filter the Page. items: - description: A single tag for categorizing the page. + description: A single tag for categorizing the Page. type: string type: array target: $ref: "#/components/schemas/CreatePageRequestDataAttributesTarget" title: - description: The title of the page. + description: The title of the Page. example: "Service: Test is down" type: string urgency: @@ -27109,10 +27109,10 @@ components: $ref: "#/components/schemas/CreatePageResponseData" type: object CreatePageResponseData: - description: The information returned after successfully creating a page. + description: The information returned after successfully creating a Page. properties: id: - description: The unique ID of the created page. + description: The unique ID of the created Page. type: string type: $ref: "#/components/schemas/CreatePageResponseDataType" @@ -107048,7 +107048,7 @@ components: description: Details about where to reroute the On-Call Page. properties: comment: - description: An optional comment explaining why the page is being rerouted. + description: An optional comment explaining why the Page is being rerouted. example: Rerouting to the database team. type: string target: @@ -209752,7 +209752,7 @@ paths: $ref: "#/components/schemas/CreatePageRequest" required: true responses: - "200": + "201": content: application/json: examples: @@ -209763,7 +209763,7 @@ paths: type: pages schema: $ref: "#/components/schemas/CreatePageResponse" - description: OK. + description: Created. "429": $ref: "#/components/responses/TooManyRequestsResponse" security: @@ -209955,7 +209955,7 @@ paths: Acknowledges an On-Call Page. operationId: AcknowledgeOnCallPage parameters: - - description: The page ID. + - description: The Page ID. in: path name: page_id required: true @@ -209964,8 +209964,8 @@ paths: format: uuid type: string responses: - "202": - description: Accepted. + "204": + description: No Content. "429": $ref: "#/components/responses/TooManyRequestsResponse" security: @@ -210057,7 +210057,7 @@ paths: Escalates an On-Call Page. operationId: EscalateOnCallPage parameters: - - description: The page ID. + - description: The Page ID. in: path name: page_id required: true @@ -210066,8 +210066,8 @@ paths: format: uuid type: string responses: - "202": - description: Accepted. + "204": + description: No Content. "429": $ref: "#/components/responses/TooManyRequestsResponse" security: @@ -210159,7 +210159,7 @@ paths: Reroutes an On-Call Page. operationId: RerouteOnCallPage parameters: - - description: The page ID. + - description: The Page ID. in: path name: page_id required: true @@ -210295,7 +210295,7 @@ paths: Resolves an On-Call Page. operationId: ResolveOnCallPage parameters: - - description: The page ID. + - description: The Page ID. in: path name: page_id required: true @@ -210304,8 +210304,8 @@ paths: format: uuid type: string responses: - "202": - description: Accepted. + "204": + description: No Content. "429": $ref: "#/components/responses/TooManyRequestsResponse" security: diff --git a/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb b/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb index 4635d5781a2f..56ec36a2e26c 100644 --- a/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +++ b/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb @@ -1,8 +1,8 @@ -# Acknowledge On-Call Page returns "Accepted." response +# Acknowledge On-Call Page returns "No Content." response require "datadog_api_client" DatadogAPIClient.configure do |config| config.access_token = ENV["DD_BEARER_TOKEN"] end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new -p api_instance.acknowledge_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") +api_instance.acknowledge_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") diff --git a/examples/v2/on-call-paging/CreateOnCallPage.rb b/examples/v2/on-call-paging/CreateOnCallPage.rb index dd71853221f5..20a4d5f408d3 100644 --- a/examples/v2/on-call-paging/CreateOnCallPage.rb +++ b/examples/v2/on-call-paging/CreateOnCallPage.rb @@ -1,4 +1,4 @@ -# Create On-Call Page returns "OK." response +# Create On-Call Page returns "Created." response require "datadog_api_client" DatadogAPIClient.configure do |config| diff --git a/examples/v2/on-call-paging/EscalateOnCallPage.rb b/examples/v2/on-call-paging/EscalateOnCallPage.rb index 63c1cac4574e..e149938aa2da 100644 --- a/examples/v2/on-call-paging/EscalateOnCallPage.rb +++ b/examples/v2/on-call-paging/EscalateOnCallPage.rb @@ -1,8 +1,8 @@ -# Escalate On-Call Page returns "Accepted." response +# Escalate On-Call Page returns "No Content." response require "datadog_api_client" DatadogAPIClient.configure do |config| config.access_token = ENV["DD_BEARER_TOKEN"] end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new -p api_instance.escalate_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") +api_instance.escalate_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") diff --git a/examples/v2/on-call-paging/ResolveOnCallPage.rb b/examples/v2/on-call-paging/ResolveOnCallPage.rb index 821c15b2019e..e5f43dea587d 100644 --- a/examples/v2/on-call-paging/ResolveOnCallPage.rb +++ b/examples/v2/on-call-paging/ResolveOnCallPage.rb @@ -1,8 +1,8 @@ -# Resolve On-Call Page returns "Accepted." response +# Resolve On-Call Page returns "No Content." response require "datadog_api_client" DatadogAPIClient.configure do |config| config.access_token = ENV["DD_BEARER_TOKEN"] end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new -p api_instance.resolve_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") +api_instance.resolve_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") diff --git a/features/v2/on-call_paging.feature b/features/v2/on-call_paging.feature index 1a8b5a3b97cc..05207f2df277 100644 --- a/features/v2/on-call_paging.feature +++ b/features/v2/on-call_paging.feature @@ -10,25 +10,25 @@ Feature: On-Call Paging And an instance of "On-CallPaging" API @generated @skip @team:ddoghq/on-call - Scenario: Acknowledge On-Call Page returns "Accepted." response + Scenario: Acknowledge On-Call Page returns "No Content." response Given new "AcknowledgeOnCallPage" request And request contains "page_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 202 Accepted. + Then the response status is 204 No Content. @generated @skip @team:ddoghq/on-call - Scenario: Create On-Call Page returns "OK." response + Scenario: Create On-Call Page returns "Created." response Given new "CreateOnCallPage" request And body with value {"data": {"attributes": {"description": "Page details.", "tags": ["service:test"], "target": {"identifier": "my-team", "type": "team_handle"}, "title": "Page title", "urgency": "low"}, "type": "pages"}} When the request is sent - Then the response status is 200 OK. + Then the response status is 201 Created. @generated @skip @team:ddoghq/on-call - Scenario: Escalate On-Call Page returns "Accepted." response + Scenario: Escalate On-Call Page returns "No Content." response Given new "EscalateOnCallPage" request And request contains "page_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 202 Accepted. + Then the response status is 204 No Content. @generated @skip @team:ddoghq/on-call Scenario: Reroute On-Call Page returns "Bad Request" response @@ -47,8 +47,8 @@ Feature: On-Call Paging Then the response status is 204 No Content. @generated @skip @team:ddoghq/on-call - Scenario: Resolve On-Call Page returns "Accepted." response + Scenario: Resolve On-Call Page returns "No Content." response Given new "ResolveOnCallPage" request And request contains "page_id" parameter from "REPLACE.ME" When the request is sent - Then the response status is 202 Accepted. + Then the response status is 204 No Content. diff --git a/lib/datadog_api_client/v2/api/on_call_paging_api.rb b/lib/datadog_api_client/v2/api/on_call_paging_api.rb index eb1707249d70..ed2cf10d96f7 100644 --- a/lib/datadog_api_client/v2/api/on_call_paging_api.rb +++ b/lib/datadog_api_client/v2/api/on_call_paging_api.rb @@ -35,7 +35,7 @@ def acknowledge_on_call_page(page_id, opts = {}) # # Acknowledges an On-Call Page. # - # @param page_id [UUID] The page ID. + # @param page_id [UUID] The Page ID. # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def acknowledge_on_call_page_with_http_info(page_id, opts = {}) @@ -167,7 +167,7 @@ def escalate_on_call_page(page_id, opts = {}) # # Escalates an On-Call Page. # - # @param page_id [UUID] The page ID. + # @param page_id [UUID] The Page ID. # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def escalate_on_call_page_with_http_info(page_id, opts = {}) @@ -232,7 +232,7 @@ def reroute_on_call_page(page_id, body, opts = {}) # # Reroutes an On-Call Page. # - # @param page_id [UUID] The page ID. + # @param page_id [UUID] The Page ID. # @param body [RerouteOnCallPageRequest] # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers @@ -304,7 +304,7 @@ def resolve_on_call_page(page_id, opts = {}) # # Resolves an On-Call Page. # - # @param page_id [UUID] The page ID. + # @param page_id [UUID] The Page ID. # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def resolve_on_call_page_with_http_info(page_id, opts = {}) diff --git a/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb b/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb index f5fdcafdca62..a0f5dc1e93b5 100644 --- a/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb @@ -24,13 +24,13 @@ class CreatePageRequestDataAttributes # A short summary of the issue or context. attr_accessor :description - # Tags to help categorize or filter the page. + # Tags to help categorize or filter the Page. attr_accessor :tags # Information about the target to notify (such as a team or user). attr_reader :target - # The title of the page. + # The title of the Page. attr_reader :title # On-Call Page urgency level. diff --git a/lib/datadog_api_client/v2/models/create_page_response.rb b/lib/datadog_api_client/v2/models/create_page_response.rb index 1cd3678aff7f..f4734b7d6b13 100644 --- a/lib/datadog_api_client/v2/models/create_page_response.rb +++ b/lib/datadog_api_client/v2/models/create_page_response.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class CreatePageResponse include BaseGenericModel - # The information returned after successfully creating a page. + # The information returned after successfully creating a Page. attr_accessor :data attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/create_page_response_data.rb b/lib/datadog_api_client/v2/models/create_page_response_data.rb index ead26fd4ecae..917734447ef8 100644 --- a/lib/datadog_api_client/v2/models/create_page_response_data.rb +++ b/lib/datadog_api_client/v2/models/create_page_response_data.rb @@ -17,11 +17,11 @@ require 'time' module DatadogAPIClient::V2 - # The information returned after successfully creating a page. + # The information returned after successfully creating a Page. class CreatePageResponseData include BaseGenericModel - # The unique ID of the created page. + # The unique ID of the created Page. attr_accessor :id # The type of resource used when creating an On-Call Page. diff --git a/lib/datadog_api_client/v2/models/reroute_on_call_page_request_data_attributes.rb b/lib/datadog_api_client/v2/models/reroute_on_call_page_request_data_attributes.rb index a96888482c10..e9c0d3125c63 100644 --- a/lib/datadog_api_client/v2/models/reroute_on_call_page_request_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/reroute_on_call_page_request_data_attributes.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class RerouteOnCallPageRequestDataAttributes include BaseGenericModel - # An optional comment explaining why the page is being rerouted. + # An optional comment explaining why the Page is being rerouted. attr_accessor :comment # Information about the target to notify (such as a team or user).