diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index c7e291e7fa0..71e5b0838f9 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -510,34 +510,6 @@ components:
items:
$ref: '#/components/schemas/GetIssueIncludeQueryParameterItem'
type: array
- GoogleChatHandleIdPathParameter:
- description: Your organization handle ID.
- in: path
- name: handle_id
- required: true
- schema:
- type: string
- GoogleChatOrganizationBindingIdPathParameter:
- description: Your organization binding ID.
- in: path
- name: organization_binding_id
- required: true
- schema:
- type: string
- GoogleChatOrganizationDomainNamePathParameter:
- description: The Google Chat domain name.
- in: path
- name: domain_name
- required: true
- schema:
- type: string
- GoogleChatOrganizationSpaceDisplayNamePathParameter:
- description: The Google Chat space display name.
- in: path
- name: space_display_name
- required: true
- schema:
- type: string
IncidentIDPathParameter:
description: The UUID of the incident.
in: path
@@ -15150,6 +15122,87 @@ components:
- findings
- project
type: object
+ CreateMaintenanceRequest:
+ example:
+ data:
+ attributes:
+ completed_date: '2026-02-18T19:51:13.332360075Z'
+ completed_description: We have completed maintenance on the API to improve
+ performance.
+ components_affected:
+ - id: 1234abcd-12ab-34cd-56ef-123456abcdef
+ status: operational
+ in_progress_description: We are currently performing maintenance on the
+ API to improve performance.
+ scheduled_description: We will be performing maintenance on the API to
+ improve performance.
+ start_date: '2026-02-18T19:21:13.332360075Z'
+ title: API Maintenance
+ type: maintenances
+ properties:
+ data:
+ $ref: '#/components/schemas/CreateMaintenanceRequestData'
+ type: object
+ CreateMaintenanceRequestData:
+ properties:
+ attributes:
+ $ref: '#/components/schemas/CreateMaintenanceRequestDataAttributes'
+ type:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataType'
+ required:
+ - attributes
+ - type
+ type: object
+ CreateMaintenanceRequestDataAttributes:
+ description: The supported attributes for creating a scheduled maintenance.
+ properties:
+ completed_date:
+ description: Timestamp of when the scheduled maintenance was completed.
+ format: date-time
+ type: string
+ completed_description:
+ description: The description shown when the scheduled maintenance is completed.
+ type: string
+ components_affected:
+ description: The components affected by the scheduled maintenance.
+ items:
+ $ref: '#/components/schemas/CreateMaintenanceRequestDataAttributesComponentsAffectedItems'
+ type: array
+ in_progress_description:
+ description: The description shown while the maintenance is in progress.
+ type: string
+ scheduled_description:
+ description: The description shown when the maintenance is scheduled.
+ type: string
+ start_date:
+ description: Timestamp of when the maintenance is scheduled to start.
+ format: date-time
+ type: string
+ title:
+ description: The title of the scheduled maintenance.
+ example: API Maintenance
+ type: string
+ required:
+ - components_affected
+ - title
+ type: object
+ CreateMaintenanceRequestDataAttributesComponentsAffectedItems:
+ properties:
+ id:
+ description: The ID of the component. Must be a component of type `component`.
+ example: 1234abcd-12ab-34cd-56ef-123456abcdef
+ format: uuid
+ type: string
+ name:
+ description: The name of the component.
+ readOnly: true
+ type: string
+ status:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus'
+ required:
+ - id
+ - status
+ type: object
CreateNotificationChannelAttributes:
description: Attributes for creating an on-call notification channel.
properties:
@@ -19922,7 +19975,7 @@ components:
description: The included related resources of a degradation. Client must
explicitly request these resources by name in the `include` query parameter.
items:
- $ref: '#/components/schemas/DegradationArrayIncluded'
+ $ref: '#/components/schemas/DegradationIncluded'
type: array
type: object
DegradationArray:
@@ -19935,17 +19988,13 @@ components:
description: The included related resources of a degradation. Client must
explicitly request these resources by name in the `include` query parameter.
items:
- $ref: '#/components/schemas/DegradationArrayIncluded'
+ $ref: '#/components/schemas/DegradationIncluded'
type: array
meta:
- $ref: '#/components/schemas/StatusPagesResponseMeta'
+ $ref: '#/components/schemas/PaginationMeta'
required:
- data
type: object
- DegradationArrayIncluded:
- oneOf:
- - $ref: '#/components/schemas/StatusPagesUser'
- - $ref: '#/components/schemas/StatusPageAsIncluded'
DegradationData:
properties:
attributes:
@@ -19980,6 +20029,10 @@ components:
description: Timestamp of when the degradation was last modified.
format: date-time
type: string
+ promised_next_update_at:
+ type: string
+ source:
+ $ref: '#/components/schemas/DegradationDataAttributesSource'
status:
$ref: '#/components/schemas/CreateDegradationRequestDataAttributesStatus'
title:
@@ -20008,6 +20061,22 @@ components:
- id
- status
type: object
+ DegradationDataAttributesSource:
+ properties:
+ created_at:
+ example: ''
+ format: date-time
+ type: string
+ source_id:
+ example: ''
+ type: string
+ type:
+ $ref: '#/components/schemas/EntityResponseIncludedIncidentType'
+ required:
+ - created_at
+ - source_id
+ - type
+ type: object
DegradationDataAttributesUpdatesItems:
properties:
components_affected:
@@ -20033,6 +20102,8 @@ components:
format: date-time
readOnly: true
type: string
+ started_at:
+ type: string
status:
$ref: '#/components/schemas/CreateDegradationRequestDataAttributesStatus'
type: object
@@ -20125,6 +20196,10 @@ components:
- type
- id
type: object
+ DegradationIncluded:
+ oneOf:
+ - $ref: '#/components/schemas/StatusPagesUser'
+ - $ref: '#/components/schemas/StatusPageAsIncluded'
DeleteAppResponse:
description: The response object after an app is successfully deleted.
properties:
@@ -21983,6 +22058,7 @@ components:
description: Incident description.
enum:
- incident
+ example: incident
type: string
x-enum-varnames:
- INCIDENT
@@ -28541,206 +28617,6 @@ components:
type: string
x-enum-varnames:
- GLOBAL_VARIABLES
- GoogleChatAppNamedSpaceResponse:
- description: Response with Google Chat space information.
- properties:
- data:
- $ref: '#/components/schemas/GoogleChatAppNamedSpaceResponseData'
- required:
- - data
- type: object
- GoogleChatAppNamedSpaceResponseAttributes:
- description: Google Chat space attributes.
- properties:
- display_name:
- description: Google space display name.
- example: Fake Space Name
- maxLength: 255
- type: string
- organization_binding_id:
- description: Organization binding ID.
- example: 2f18a894-adb5-4c53-8248-39fd3f5386a5
- maxLength: 255
- type: string
- resource_name:
- description: Google space resource name.
- example: spaces/AAAAAAAAA
- maxLength: 255
- type: string
- space_uri:
- description: Google space URI.
- example: https://chat.google.com/room/AAAAAAAAA
- maxLength: 255
- type: string
- type: object
- GoogleChatAppNamedSpaceResponseData:
- description: Google Chat space data from a response.
- properties:
- attributes:
- $ref: '#/components/schemas/GoogleChatAppNamedSpaceResponseAttributes'
- id:
- description: The ID of the Google Chat space.
- example: 596da4af-0563-4097-90ff-07230c3f9db3
- maxLength: 100
- minLength: 1
- type: string
- type:
- $ref: '#/components/schemas/GoogleChatAppNamedSpaceType'
- type: object
- GoogleChatAppNamedSpaceType:
- default: google-chat-app-named-space
- description: Google Chat space resource type.
- enum:
- - google-chat-app-named-space
- example: google-chat-app-named-space
- type: string
- x-enum-varnames:
- - GOOGLE_CHAT_APP_NAMED_SPACE_TYPE
- GoogleChatCreateOrganizationHandleRequest:
- description: Create organization handle request.
- properties:
- data:
- $ref: '#/components/schemas/GoogleChatCreateOrganizationHandleRequestData'
- type:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleType'
- required:
- - type
- - data
- type: object
- GoogleChatCreateOrganizationHandleRequestAttributes:
- description: Organization handle attributes for a create request.
- properties:
- name:
- description: Organization handle name.
- example: fake-handle-name
- maxLength: 255
- type: string
- space_resource_name:
- description: Google space resource name.
- example: spaces/AAAAAAAAA
- maxLength: 255
- type: string
- required:
- - name
- - space_resource_name
- type: object
- GoogleChatCreateOrganizationHandleRequestData:
- description: Organization handle data for a create request.
- properties:
- attributes:
- $ref: '#/components/schemas/GoogleChatCreateOrganizationHandleRequestAttributes'
- required:
- - attributes
- type: object
- GoogleChatOrganizationHandleResponse:
- description: Organization handle for monitor notifications to a Google Chat
- space within a Google organization.
- properties:
- data:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleResponseData'
- required:
- - data
- type: object
- GoogleChatOrganizationHandleResponseAttributes:
- description: Organization handle attributes.
- properties:
- name:
- description: Organization handle name.
- example: fake-handle-name
- maxLength: 255
- type: string
- space_display_name:
- description: Google space display name.
- example: Fake Space Name
- maxLength: 255
- type: string
- space_resource_name:
- description: Google space resource name.
- example: spaces/AAAAAAAAA
- maxLength: 255
- type: string
- type: object
- GoogleChatOrganizationHandleResponseData:
- description: Organization handle data from a response.
- properties:
- attributes:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleResponseAttributes'
- id:
- description: The ID of the organization handle.
- example: 596da4af-0563-4097-90ff-07230c3f9db3
- maxLength: 100
- minLength: 1
- type: string
- type:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleType'
- type: object
- GoogleChatOrganizationHandleType:
- default: google-chat-organization-handle
- description: Organization handle resource type.
- enum:
- - google-chat-organization-handle
- example: google-chat-organization-handle
- type: string
- x-enum-varnames:
- - GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE
- GoogleChatOrganizationHandlesResponse:
- description: List of organization handles for monitor notifications to Google
- Chat spaces within a Google organization.
- properties:
- data:
- description: An array of organization handles.
- example:
- - attributes:
- name: general-handle
- space_display_name: General
- space_resource_name: spaces/AAAAAAAAA
- id: 596da4af-0563-4097-90ff-07230c3f9db3
- type: google-chat-organization-handle
- - attributes:
- name: general-handle-2
- space_display_name: General2
- space_resource_name: spaces/BBBBBBBBB
- id: 596da4af-0563-4097-90ff-07230c3f9db4
- type: google-chat-organization-handle
- items:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleResponseData'
- type: array
- required:
- - data
- type: object
- GoogleChatUpdateOrganizationHandleRequest:
- description: Update organization handle request.
- properties:
- data:
- $ref: '#/components/schemas/GoogleChatUpdateOrganizationHandleRequestData'
- type:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleType'
- required:
- - type
- - data
- type: object
- GoogleChatUpdateOrganizationHandleRequestAttributes:
- description: Organization handle attributes for an update request.
- properties:
- name:
- description: Organization handle name.
- example: fake-handle-name
- maxLength: 255
- type: string
- space_resource_name:
- description: Google space resource name.
- example: spaces/AAAAAAAAA
- maxLength: 255
- type: string
- type: object
- GoogleChatUpdateOrganizationHandleRequestData:
- description: Organization handle data for an update request.
- properties:
- attributes:
- $ref: '#/components/schemas/GoogleChatUpdateOrganizationHandleRequestAttributes'
- required:
- - attributes
- type: object
GoogleMeetConfigurationReference:
description: A reference to a Google Meet Configuration resource.
nullable: true
@@ -36573,6 +36449,253 @@ components:
- ms_channel_name
- redirect_url
type: object
+ Maintenance:
+ properties:
+ data:
+ $ref: '#/components/schemas/MaintenanceData'
+ included:
+ description: The included related resources of a scheduled maintenance.
+ Client must explicitly request these resources by name in the `include`
+ query parameter.
+ items:
+ $ref: '#/components/schemas/DegradationIncluded'
+ type: array
+ type: object
+ MaintenanceArray:
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/MaintenanceData'
+ type: array
+ included:
+ description: The included related resources of a maintenance. Client must
+ explicitly request these resources by name in the `include` query parameter.
+ items:
+ $ref: '#/components/schemas/DegradationIncluded'
+ type: array
+ meta:
+ $ref: '#/components/schemas/PaginationMeta'
+ required:
+ - data
+ type: object
+ MaintenanceData:
+ description: A scheduled maintenance resource. The same resource can be in scheduled,
+ in progress, completed, or canceled status over its lifecycle.
+ properties:
+ attributes:
+ $ref: '#/components/schemas/MaintenanceDataAttributes'
+ id:
+ description: The ID of the scheduled maintenance.
+ format: uuid
+ type: string
+ relationships:
+ $ref: '#/components/schemas/MaintenanceDataRelationships'
+ type:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataType'
+ required:
+ - type
+ type: object
+ MaintenanceDataAttributes:
+ description: The attributes of a scheduled maintenance.
+ properties:
+ completed_date:
+ description: Timestamp of when the maintenance was completed.
+ format: date-time
+ type: string
+ completed_description:
+ description: The description shown when the maintenance is completed.
+ type: string
+ components_affected:
+ description: Components affected by the scheduled maintenance.
+ items:
+ $ref: '#/components/schemas/MaintenanceDataAttributesComponentsAffectedItems'
+ type: array
+ in_progress_description:
+ description: The description shown while the maintenance is in progress.
+ type: string
+ modified_at:
+ description: Timestamp of when the scheduled maintenance was last modified.
+ format: date-time
+ type: string
+ published_date:
+ description: Timestamp of when the scheduled maintenance was published.
+ format: date-time
+ type: string
+ scheduled_description:
+ description: The description shown when the maintenance is scheduled.
+ type: string
+ start_date:
+ description: Timestamp of when the maintenance is scheduled to start.
+ format: date-time
+ type: string
+ status:
+ $ref: '#/components/schemas/MaintenanceDataAttributesStatus'
+ description: The status of the scheduled maintenance.
+ title:
+ description: Title of the scheduled maintenance.
+ type: string
+ updates:
+ description: Past updates made to the scheduled maintenance.
+ items:
+ $ref: '#/components/schemas/MaintenanceDataAttributesUpdatesItems'
+ type: array
+ type: object
+ MaintenanceDataAttributesComponentsAffectedItems:
+ properties:
+ id:
+ description: The ID of the component. Must be a component of type `component`.
+ example: 1234abcd-12ab-34cd-56ef-123456abcdef
+ format: uuid
+ type: string
+ name:
+ description: The name of the component.
+ readOnly: true
+ type: string
+ status:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus'
+ required:
+ - id
+ - status
+ type: object
+ MaintenanceDataAttributesStatus:
+ description: The current status of the scheduled maintenance.
+ enum:
+ - scheduled
+ - in_progress
+ - completed
+ - canceled
+ type: string
+ x-enum-varnames:
+ - SCHEDULED
+ - IN_PROGRESS
+ - COMPLETED
+ - CANCELED
+ MaintenanceDataAttributesUpdatesItems:
+ properties:
+ components_affected:
+ description: The components affected at the time of the update.
+ items:
+ $ref: '#/components/schemas/MaintenanceDataAttributesUpdatesItemsComponentsAffectedItems'
+ type: array
+ created_at:
+ description: Timestamp of when the update was created.
+ format: date-time
+ readOnly: true
+ type: string
+ description:
+ description: Description of the update.
+ type: string
+ id:
+ description: Identifier of the update.
+ format: uuid
+ readOnly: true
+ type: string
+ manual_transition:
+ description: Whether the update was applied manually by a user (true) or
+ automatically by the system (false).
+ readOnly: true
+ type: boolean
+ modified_at:
+ description: Timestamp of when the update was last modified.
+ format: date-time
+ readOnly: true
+ type: string
+ started_at:
+ description: Timestamp of when the update started.
+ format: date-time
+ type: string
+ status:
+ description: The status of the update.
+ type: string
+ type: object
+ MaintenanceDataAttributesUpdatesItemsComponentsAffectedItems:
+ properties:
+ id:
+ description: Identifier of the component affected at the time of the update.
+ example: 1234abcd-12ab-34cd-56ef-123456abcdef
+ format: uuid
+ type: string
+ name:
+ description: The name of the component affected at the time of the update.
+ readOnly: true
+ type: string
+ status:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus'
+ description: The status of the component affected at the time of the update.
+ required:
+ - id
+ - status
+ type: object
+ MaintenanceDataRelationships:
+ description: The relationships of a scheduled maintenance.
+ properties:
+ created_by_user:
+ $ref: '#/components/schemas/MaintenanceDataRelationshipsCreatedByUser'
+ description: The Datadog user who created the scheduled maintenance.
+ last_modified_by_user:
+ $ref: '#/components/schemas/MaintenanceDataRelationshipsLastModifiedByUser'
+ description: The Datadog user who last modified the scheduled maintenance.
+ status_page:
+ $ref: '#/components/schemas/MaintenanceDataRelationshipsStatusPage'
+ description: The status page the scheduled maintenance belongs to.
+ type: object
+ MaintenanceDataRelationshipsCreatedByUser:
+ properties:
+ data:
+ $ref: '#/components/schemas/MaintenanceDataRelationshipsCreatedByUserData'
+ required:
+ - data
+ type: object
+ MaintenanceDataRelationshipsCreatedByUserData:
+ properties:
+ id:
+ example: ''
+ format: uuid
+ type: string
+ type:
+ $ref: '#/components/schemas/StatusPagesUserType'
+ required:
+ - type
+ - id
+ type: object
+ MaintenanceDataRelationshipsLastModifiedByUser:
+ properties:
+ data:
+ $ref: '#/components/schemas/MaintenanceDataRelationshipsLastModifiedByUserData'
+ required:
+ - data
+ type: object
+ MaintenanceDataRelationshipsLastModifiedByUserData:
+ properties:
+ id:
+ example: ''
+ format: uuid
+ type: string
+ type:
+ $ref: '#/components/schemas/StatusPagesUserType'
+ required:
+ - type
+ - id
+ type: object
+ MaintenanceDataRelationshipsStatusPage:
+ properties:
+ data:
+ $ref: '#/components/schemas/MaintenanceDataRelationshipsStatusPageData'
+ required:
+ - data
+ type: object
+ MaintenanceDataRelationshipsStatusPageData:
+ properties:
+ id:
+ example: ''
+ format: uuid
+ type: string
+ type:
+ $ref: '#/components/schemas/StatusPageDataType'
+ required:
+ - type
+ - id
+ type: object
MemberTeam:
description: A member team
properties:
@@ -46102,6 +46225,80 @@ components:
format: int64
type: integer
type: object
+ PaginationMeta:
+ description: Response metadata.
+ properties:
+ page:
+ $ref: '#/components/schemas/PaginationMetaPage'
+ readOnly: true
+ type: object
+ PaginationMetaPage:
+ description: Offset-based pagination schema.
+ example:
+ first_offset: 0
+ last_offset: 900
+ limit: 100
+ next_offset: 100
+ offset: 0
+ prev_offset: 100
+ total: 1000
+ type: offset_limit
+ properties:
+ first_offset:
+ description: Integer representing the offset to fetch the first page of
+ results.
+ example: 0
+ format: int64
+ type: integer
+ last_offset:
+ description: Integer representing the offset to fetch the last page of results.
+ example: 900
+ format: int64
+ nullable: true
+ type: integer
+ limit:
+ description: Integer representing the number of elements to be returned
+ in the results.
+ example: 100
+ format: int64
+ type: integer
+ next_offset:
+ description: Integer representing the index of the first element in the
+ next page of results. Equal to page size added to the current offset.
+ example: 100
+ format: int64
+ nullable: true
+ type: integer
+ offset:
+ description: Integer representing the index of the first element in the
+ results.
+ example: 0
+ format: int64
+ type: integer
+ prev_offset:
+ description: Integer representing the index of the first element in the
+ previous page of results.
+ example: 100
+ format: int64
+ nullable: true
+ type: integer
+ total:
+ description: Integer representing the total number of elements available.
+ example: 1000
+ format: int64
+ nullable: true
+ type: integer
+ type:
+ $ref: '#/components/schemas/PaginationMetaPageType'
+ type: object
+ PaginationMetaPageType:
+ default: offset_limit
+ enum:
+ - offset_limit
+ example: offset_limit
+ type: string
+ x-enum-varnames:
+ - OFFSET_LIMIT
Parameter:
description: The definition of `Parameter` object.
properties:
@@ -46409,6 +46606,107 @@ components:
required:
- data
type: object
+ PatchMaintenanceRequest:
+ example:
+ data:
+ attributes:
+ completed_date: '2026-02-18T20:01:13.332360075Z'
+ in_progress_description: We are currently performing maintenance on the
+ API to improve performance for 40 minutes.
+ scheduled_description: We will be performing maintenance on the API to
+ improve performance for 40 minutes.
+ start_date: '2026-02-18T19:21:13.332360075Z'
+ title: API Maintenance
+ id: 1234abcd-12ab-34cd-56ef-123456abcdef
+ type: maintenances
+ properties:
+ data:
+ $ref: '#/components/schemas/PatchMaintenanceRequestData'
+ type: object
+ PatchMaintenanceRequestData:
+ properties:
+ attributes:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataAttributes'
+ id:
+ description: The ID of the maintenance.
+ example: 1234abcd-12ab-34cd-56ef-123456abcdef
+ format: uuid
+ type: string
+ type:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataType'
+ required:
+ - attributes
+ - type
+ - id
+ type: object
+ PatchMaintenanceRequestDataAttributes:
+ description: The supported attributes for updating a scheduled maintenance.
+ properties:
+ completed_date:
+ description: Timestamp of when the maintenance was completed.
+ format: date-time
+ type: string
+ completed_description:
+ description: The description shown when the maintenance is completed.
+ type: string
+ components_affected:
+ description: The components affected by the scheduled maintenance.
+ items:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItems'
+ type: array
+ in_progress_description:
+ description: The description shown while the maintenance is in progress.
+ type: string
+ scheduled_description:
+ description: The description shown when the maintenance is scheduled.
+ type: string
+ start_date:
+ description: Timestamp of when the maintenance is scheduled to start.
+ format: date-time
+ type: string
+ status:
+ $ref: '#/components/schemas/MaintenanceDataAttributesStatus'
+ description: The status of the scheduled maintenance.
+ title:
+ description: The title of the scheduled maintenance.
+ type: string
+ type: object
+ PatchMaintenanceRequestDataAttributesComponentsAffectedItems:
+ properties:
+ id:
+ description: The ID of the component. Must be a component of type `component`.
+ example: 1234abcd-12ab-34cd-56ef-123456abcdef
+ format: uuid
+ type: string
+ name:
+ description: The name of the component.
+ readOnly: true
+ type: string
+ status:
+ $ref: '#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus'
+ required:
+ - id
+ - status
+ type: object
+ PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus:
+ description: The status of the component.
+ enum:
+ - operational
+ - maintenance
+ example: operational
+ type: string
+ x-enum-varnames:
+ - OPERATIONAL
+ - MAINTENANCE
+ PatchMaintenanceRequestDataType:
+ default: maintenances
+ description: Maintenances resource type.
+ enum:
+ - maintenances
+ example: maintenances
+ type: string
+ x-enum-varnames:
+ - MAINTENANCES
PatchNotificationRuleParameters:
description: Body of the notification rule patch request.
properties:
@@ -61901,7 +62199,7 @@ components:
$ref: '#/components/schemas/StatusPageArrayIncluded'
type: array
meta:
- $ref: '#/components/schemas/StatusPagesResponseMeta'
+ $ref: '#/components/schemas/PaginationMeta'
required:
- data
type: object
@@ -62635,71 +62933,6 @@ components:
type: string
x-enum-varnames:
- COMPONENTS
- StatusPagesPagination:
- description: Offset-based pagination schema.
- properties:
- first_offset:
- description: Integer representing the offset to fetch the first page of
- results.
- example: 0
- format: int64
- type: integer
- last_offset:
- description: Integer representing the offset to fetch the last page of results.
- example: 900
- format: int64
- nullable: true
- type: integer
- limit:
- description: Integer representing the number of elements to returned in
- the results.
- example: 100
- format: int64
- type: integer
- next_offset:
- description: Integer representing the index of the first element in the
- next page of results. Equal to page size added to the current offset.
- example: 100
- format: int64
- nullable: true
- type: integer
- offset:
- description: Integer representing the index of the first element in the
- results.
- example: 0
- format: int64
- type: integer
- prev_offset:
- description: Integer representing the index of the first element in the
- previous page of results.
- example: 100
- format: int64
- nullable: true
- type: integer
- total:
- description: Integer representing the total number of elements available.
- example: 1000
- format: int64
- nullable: true
- type: integer
- type:
- $ref: '#/components/schemas/StatusPagesPaginationType'
- type: object
- StatusPagesPaginationType:
- default: offset_limit
- enum:
- - offset_limit
- example: offset_limit
- type: string
- x-enum-varnames:
- - OFFSET_LIMIT
- StatusPagesResponseMeta:
- description: Response metadata.
- properties:
- page:
- $ref: '#/components/schemas/StatusPagesPagination'
- readOnly: true
- type: object
StatusPagesUser:
description: The included Datadog user resource.
properties:
@@ -83384,177 +83617,6 @@ paths:
operator: OR
permissions:
- gcp_configuration_edit
- /api/v2/integration/google-chat/organizations/app/named-spaces/{domain_name}/{space_display_name}:
- get:
- description: Get the resource name and organization binding ID of a space in
- the Datadog Google Chat integration.
- operationId: GetSpaceByDisplayName
- parameters:
- - $ref: '#/components/parameters/GoogleChatOrganizationDomainNamePathParameter'
- - $ref: '#/components/parameters/GoogleChatOrganizationSpaceDisplayNamePathParameter'
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatAppNamedSpaceResponse'
- description: OK
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '404':
- $ref: '#/components/responses/NotFoundResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- summary: Get space information by display name
- tags:
- - Google Chat Integration
- /api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles:
- get:
- description: Get a list of all organization handles from the Datadog Google
- Chat integration.
- operationId: ListOrganizationHandles
- parameters:
- - $ref: '#/components/parameters/GoogleChatOrganizationBindingIdPathParameter'
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatOrganizationHandlesResponse'
- description: OK
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '404':
- $ref: '#/components/responses/NotFoundResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- summary: Get all organization handles
- tags:
- - Google Chat Integration
- post:
- description: Create an organization handle in the Datadog Google Chat integration.
- operationId: CreateOrganizationHandle
- parameters:
- - $ref: '#/components/parameters/GoogleChatOrganizationBindingIdPathParameter'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatCreateOrganizationHandleRequest'
- description: Organization handle payload.
- required: true
- responses:
- '201':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleResponse'
- description: CREATED
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '404':
- $ref: '#/components/responses/NotFoundResponse'
- '409':
- $ref: '#/components/responses/ConflictResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- summary: Create organization handle
- tags:
- - Google Chat Integration
- x-codegen-request-body-name: body
- /api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}:
- delete:
- description: Delete an organization handle from the Datadog Google Chat integration.
- operationId: DeleteOrganizationHandle
- parameters:
- - description: Your organization binding ID.
- in: path
- name: organization_binding_id
- required: true
- schema:
- type: string
- - description: Your organization handle ID.
- in: path
- name: handle_id
- required: true
- schema:
- type: string
- responses:
- '204':
- description: OK
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- summary: Delete organization handle
- tags:
- - Google Chat Integration
- get:
- description: Get an organization handle from the Datadog Google Chat integration.
- operationId: GetOrganizationHandle
- parameters:
- - $ref: '#/components/parameters/GoogleChatOrganizationBindingIdPathParameter'
- - $ref: '#/components/parameters/GoogleChatHandleIdPathParameter'
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleResponse'
- description: OK
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '404':
- $ref: '#/components/responses/NotFoundResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- summary: Get organization handle
- tags:
- - Google Chat Integration
- patch:
- description: Update an organization handle from the Datadog Google Chat integration.
- operationId: UpdateOrganizationHandle
- parameters:
- - $ref: '#/components/parameters/GoogleChatOrganizationBindingIdPathParameter'
- - $ref: '#/components/parameters/GoogleChatHandleIdPathParameter'
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatUpdateOrganizationHandleRequest'
- description: Organization handle payload.
- required: true
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/GoogleChatOrganizationHandleResponse'
- description: OK
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '404':
- $ref: '#/components/responses/NotFoundResponse'
- '409':
- $ref: '#/components/responses/ConflictResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- summary: Update organization handle
- tags:
- - Google Chat Integration
- x-codegen-request-body-name: body
/api/v2/integration/jira/accounts:
get:
description: Get all Jira accounts for the organization.
@@ -101797,6 +101859,12 @@ paths:
name: filter[status]
schema:
type: string
+ - description: 'Sort order. Prefix with ''-'' for descending. Supported values:
+ created_at, -created_at, modified_at, -modified_at.'
+ in: query
+ name: sort
+ schema:
+ type: string
responses:
'200':
content:
@@ -101817,6 +101885,68 @@ paths:
operator: AND
permissions:
- status_pages_settings_read
+ /api/v2/statuspages/maintenances:
+ get:
+ description: Lists all maintenances for the organization. Results can include
+ scheduled, in progress, completed, and canceled maintenances. Optionally filter
+ by status and page.
+ operationId: ListMaintenances
+ parameters:
+ - description: Optional page id filter.
+ in: query
+ name: filter[page_id]
+ schema:
+ type: string
+ - description: Offset to use as the start of the page.
+ in: query
+ name: page[offset]
+ schema:
+ default: 0
+ type: integer
+ - description: The number of maintenances to return per page.
+ in: query
+ name: page[limit]
+ schema:
+ default: 50
+ type: integer
+ - description: 'Comma-separated list of resources to include. Supported values:
+ created_by_user, last_modified_by_user, status_page.'
+ in: query
+ name: include
+ schema:
+ type: string
+ - description: 'Optional filter by maintenance status. Supported values: scheduled,
+ in_progress, completed, canceled.'
+ in: query
+ name: filter[status]
+ schema:
+ type: string
+ - description: 'Sort order. Prefix with ''-'' for descending. Supported values:
+ created_at, -created_at, start_date, -start_date.'
+ in: query
+ name: sort
+ schema:
+ type: string
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/MaintenanceArray'
+ description: OK
+ '429':
+ $ref: '#/components/responses/TooManyRequestsResponse'
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ: []
+ summary: List maintenances
+ tags:
+ - Status Pages
+ x-permission:
+ operator: AND
+ permissions:
+ - status_pages_settings_read
/api/v2/statuspages/{page_id}:
delete:
description: Deletes a status page by its ID.
@@ -102345,6 +102475,160 @@ paths:
operator: AND
permissions:
- status_pages_incident_write
+ /api/v2/statuspages/{page_id}/maintenances:
+ post:
+ description: Creates a new scheduled maintenance. Scheduled maintenances are
+ set for a future time window.
+ operationId: CreateMaintenance
+ parameters:
+ - description: The ID of the status page.
+ in: path
+ name: page_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ - description: Whether to notify page subscribers of the scheduled maintenance.
+ in: query
+ name: notify_subscribers
+ schema:
+ default: true
+ type: boolean
+ - description: 'Comma-separated list of resources to include. Supported values:
+ created_by_user, last_modified_by_user, status_page.'
+ in: query
+ name: include
+ schema:
+ type: string
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateMaintenanceRequest'
+ required: true
+ responses:
+ '201':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Maintenance'
+ description: Created
+ '429':
+ $ref: '#/components/responses/TooManyRequestsResponse'
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ: []
+ summary: Create Scheduled Maintenance
+ tags:
+ - Status Pages
+ x-permission:
+ operator: AND
+ permissions:
+ - status_pages_incident_write
+ /api/v2/statuspages/{page_id}/maintenances/{maintenance_id}:
+ get:
+ description: Retrieves a specific scheduled maintenance by its ID. The maintenance
+ may be in scheduled, in progress, completed, or canceled status.
+ operationId: GetMaintenance
+ parameters:
+ - description: The ID of the status page.
+ in: path
+ name: page_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ - description: The ID of the scheduled maintenance.
+ in: path
+ name: maintenance_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ - description: 'Comma-separated list of resources to include. Supported values:
+ created_by_user, last_modified_by_user, status_page.'
+ in: query
+ name: include
+ schema:
+ type: string
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Maintenance'
+ description: OK
+ '429':
+ $ref: '#/components/responses/TooManyRequestsResponse'
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ: []
+ summary: Get Scheduled Maintenance
+ tags:
+ - Status Pages
+ x-permission:
+ operator: AND
+ permissions:
+ - status_pages_settings_read
+ patch:
+ description: Updates an existing scheduled maintenance's attributes. The maintenance
+ may be in scheduled, in progress, completed, or canceled status.
+ operationId: UpdateMaintenance
+ parameters:
+ - description: The ID of the status page.
+ in: path
+ name: page_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ - description: Whether to notify page subscribers of the scheduled maintenance.
+ in: query
+ name: notify_subscribers
+ schema:
+ default: true
+ type: boolean
+ - description: The ID of the scheduled maintenance.
+ in: path
+ name: maintenance_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ - description: 'Comma-separated list of resources to include. Supported values:
+ created_by_user, last_modified_by_user, status_page.'
+ in: query
+ name: include
+ schema:
+ type: string
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PatchMaintenanceRequest'
+ required: true
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Maintenance'
+ description: OK
+ '429':
+ $ref: '#/components/responses/TooManyRequestsResponse'
+ security:
+ - apiKeyAuth: []
+ appKeyAuth: []
+ - AuthZ: []
+ summary: Update Scheduled Maintenance
+ tags:
+ - Status Pages
+ x-permission:
+ operator: AND
+ permissions:
+ - status_pages_incident_write
/api/v2/synthetics/settings/on_demand_concurrency_cap:
get:
description: Get the on-demand concurrency cap.
@@ -106771,14 +107055,6 @@ tags:
externalDocs:
url: https://docs.datadoghq.com/integrations/google_cloud_platform
name: GCP Integration
-- description: 'Configure your [Datadog Google Chat integration](https://docs.datadoghq.com/integrations/google-hangouts-chat/)
-
- directly through the Datadog API.'
- externalDocs:
- description: For more information about the Datadog Google Chat integration, see
- the integration page.
- url: https://docs.datadoghq.com/integrations/google-hangouts-chat/
- name: Google Chat Integration
- description: 'Configure High Availability Multi-Region (HAMR) connections between
Datadog organizations.
diff --git a/examples/v2/google-chat-integration/CreateOrganizationHandle.java b/examples/v2/google-chat-integration/CreateOrganizationHandle.java
deleted file mode 100644
index 45b0f4d73e0..00000000000
--- a/examples/v2/google-chat-integration/CreateOrganizationHandle.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Create organization handle returns "CREATED" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.GoogleChatIntegrationApi;
-import com.datadog.api.client.v2.model.GoogleChatCreateOrganizationHandleRequest;
-import com.datadog.api.client.v2.model.GoogleChatCreateOrganizationHandleRequestAttributes;
-import com.datadog.api.client.v2.model.GoogleChatCreateOrganizationHandleRequestData;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandleResponse;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandleType;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- GoogleChatIntegrationApi apiInstance = new GoogleChatIntegrationApi(defaultClient);
-
- GoogleChatCreateOrganizationHandleRequest body =
- new GoogleChatCreateOrganizationHandleRequest()
- .data(
- new GoogleChatCreateOrganizationHandleRequestData()
- .attributes(
- new GoogleChatCreateOrganizationHandleRequestAttributes()
- .name("Example-Google-Chat-Integration")
- .spaceResourceName("spaces/AAQA-zFIks8")))
- .type(GoogleChatOrganizationHandleType.GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE);
-
- try {
- GoogleChatOrganizationHandleResponse result =
- apiInstance.createOrganizationHandle("e54cb570-c674-529c-769d-84b312288ed7", body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println(
- "Exception when calling GoogleChatIntegrationApi#createOrganizationHandle");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/google-chat-integration/DeleteOrganizationHandle.java b/examples/v2/google-chat-integration/DeleteOrganizationHandle.java
deleted file mode 100644
index 051224cf7af..00000000000
--- a/examples/v2/google-chat-integration/DeleteOrganizationHandle.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Delete organization handle returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.GoogleChatIntegrationApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- GoogleChatIntegrationApi apiInstance = new GoogleChatIntegrationApi(defaultClient);
-
- // there is a valid "organization_handle" in the system
- String ORGANIZATION_HANDLE_DATA_ID = System.getenv("ORGANIZATION_HANDLE_DATA_ID");
-
- try {
- apiInstance.deleteOrganizationHandle(
- "e54cb570-c674-529c-769d-84b312288ed7", ORGANIZATION_HANDLE_DATA_ID);
- } catch (ApiException e) {
- System.err.println(
- "Exception when calling GoogleChatIntegrationApi#deleteOrganizationHandle");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/google-chat-integration/GetOrganizationHandle.java b/examples/v2/google-chat-integration/GetOrganizationHandle.java
deleted file mode 100644
index edf15b791c8..00000000000
--- a/examples/v2/google-chat-integration/GetOrganizationHandle.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Get organization handle returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.GoogleChatIntegrationApi;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandleResponse;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- GoogleChatIntegrationApi apiInstance = new GoogleChatIntegrationApi(defaultClient);
-
- // there is a valid "organization_handle" in the system
- String ORGANIZATION_HANDLE_DATA_ID = System.getenv("ORGANIZATION_HANDLE_DATA_ID");
-
- try {
- GoogleChatOrganizationHandleResponse result =
- apiInstance.getOrganizationHandle(
- "e54cb570-c674-529c-769d-84b312288ed7", ORGANIZATION_HANDLE_DATA_ID);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling GoogleChatIntegrationApi#getOrganizationHandle");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/google-chat-integration/ListOrganizationHandles.java b/examples/v2/google-chat-integration/ListOrganizationHandles.java
deleted file mode 100644
index d8cb2b738a9..00000000000
--- a/examples/v2/google-chat-integration/ListOrganizationHandles.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Get all organization handles returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.GoogleChatIntegrationApi;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandlesResponse;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- GoogleChatIntegrationApi apiInstance = new GoogleChatIntegrationApi(defaultClient);
-
- try {
- GoogleChatOrganizationHandlesResponse result =
- apiInstance.listOrganizationHandles("e54cb570-c674-529c-769d-84b312288ed7");
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling GoogleChatIntegrationApi#listOrganizationHandles");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/google-chat-integration/UpdateOrganizationHandle.java b/examples/v2/google-chat-integration/UpdateOrganizationHandle.java
deleted file mode 100644
index e54b473877a..00000000000
--- a/examples/v2/google-chat-integration/UpdateOrganizationHandle.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Update organization handle returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.GoogleChatIntegrationApi;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandleResponse;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandleType;
-import com.datadog.api.client.v2.model.GoogleChatUpdateOrganizationHandleRequest;
-import com.datadog.api.client.v2.model.GoogleChatUpdateOrganizationHandleRequestAttributes;
-import com.datadog.api.client.v2.model.GoogleChatUpdateOrganizationHandleRequestData;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- GoogleChatIntegrationApi apiInstance = new GoogleChatIntegrationApi(defaultClient);
-
- // there is a valid "organization_handle" in the system
- String ORGANIZATION_HANDLE_DATA_ATTRIBUTES_NAME =
- System.getenv("ORGANIZATION_HANDLE_DATA_ATTRIBUTES_NAME");
- String ORGANIZATION_HANDLE_DATA_ID = System.getenv("ORGANIZATION_HANDLE_DATA_ID");
-
- GoogleChatUpdateOrganizationHandleRequest body =
- new GoogleChatUpdateOrganizationHandleRequest()
- .data(
- new GoogleChatUpdateOrganizationHandleRequestData()
- .attributes(
- new GoogleChatUpdateOrganizationHandleRequestAttributes()
- .name("fake-handle-name--updated")))
- .type(GoogleChatOrganizationHandleType.GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE);
-
- try {
- GoogleChatOrganizationHandleResponse result =
- apiInstance.updateOrganizationHandle(
- "e54cb570-c674-529c-769d-84b312288ed7", ORGANIZATION_HANDLE_DATA_ID, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println(
- "Exception when calling GoogleChatIntegrationApi#updateOrganizationHandle");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/status-pages/CreateMaintenance.java b/examples/v2/status-pages/CreateMaintenance.java
new file mode 100644
index 00000000000..16360a8d66f
--- /dev/null
+++ b/examples/v2/status-pages/CreateMaintenance.java
@@ -0,0 +1,61 @@
+// Create Scheduled Maintenance returns "Created" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequest;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequestData;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequestDataAttributes;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequestDataAttributesComponentsAffectedItems;
+import com.datadog.api.client.v2.model.Maintenance;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataType;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
+
+ CreateMaintenanceRequest body =
+ new CreateMaintenanceRequest()
+ .data(
+ new CreateMaintenanceRequestData()
+ .attributes(
+ new CreateMaintenanceRequestDataAttributes()
+ .completedDate(OffsetDateTime.parse("2026-02-18T19:51:13.332360075Z"))
+ .completedDescription(
+ "We have completed maintenance on the API to improve performance.")
+ .componentsAffected(
+ Collections.singletonList(
+ new CreateMaintenanceRequestDataAttributesComponentsAffectedItems()
+ .id(UUID.fromString("1234abcd-12ab-34cd-56ef-123456abcdef"))
+ .status(
+ PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus
+ .OPERATIONAL)))
+ .inProgressDescription(
+ "We are currently performing maintenance on the API to improve"
+ + " performance.")
+ .scheduledDescription(
+ "We will be performing maintenance on the API to improve"
+ + " performance.")
+ .startDate(OffsetDateTime.parse("2026-02-18T19:21:13.332360075Z"))
+ .title("API Maintenance"))
+ .type(PatchMaintenanceRequestDataType.MAINTENANCES));
+
+ try {
+ Maintenance result =
+ apiInstance.createMaintenance(
+ UUID.fromString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"), body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StatusPagesApi#createMaintenance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/status-pages/CreateMaintenance_2202276054.java b/examples/v2/status-pages/CreateMaintenance_2202276054.java
new file mode 100644
index 00000000000..99a7a868fbd
--- /dev/null
+++ b/examples/v2/status-pages/CreateMaintenance_2202276054.java
@@ -0,0 +1,75 @@
+// Create maintenance returns "Created" response
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequest;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequestData;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequestDataAttributes;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequestDataAttributesComponentsAffectedItems;
+import com.datadog.api.client.v2.model.Maintenance;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataType;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
+
+ // there is a valid "status_page" in the system
+ UUID STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID = null;
+ try {
+ STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID =
+ UUID.fromString(
+ System.getenv("STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID"));
+ } catch (IllegalArgumentException e) {
+ System.err.println("Error parsing UUID: " + e.getMessage());
+ }
+ UUID STATUS_PAGE_DATA_ID = null;
+ try {
+ STATUS_PAGE_DATA_ID = UUID.fromString(System.getenv("STATUS_PAGE_DATA_ID"));
+ } catch (IllegalArgumentException e) {
+ System.err.println("Error parsing UUID: " + e.getMessage());
+ }
+
+ CreateMaintenanceRequest body =
+ new CreateMaintenanceRequest()
+ .data(
+ new CreateMaintenanceRequestData()
+ .attributes(
+ new CreateMaintenanceRequestDataAttributes()
+ .title("API Maintenance")
+ .scheduledDescription(
+ "We will be performing maintenance on the API to improve"
+ + " performance.")
+ .inProgressDescription(
+ "We are currently performing maintenance on the API to improve"
+ + " performance.")
+ .completedDescription(
+ "We have completed maintenance on the API to improve performance.")
+ .startDate(OffsetDateTime.now().plusHours(1))
+ .completedDate(OffsetDateTime.now().plusHours(2))
+ .componentsAffected(
+ Collections.singletonList(
+ new CreateMaintenanceRequestDataAttributesComponentsAffectedItems()
+ .id(
+ STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID)
+ .status(
+ PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus
+ .OPERATIONAL))))
+ .type(PatchMaintenanceRequestDataType.MAINTENANCES));
+
+ try {
+ Maintenance result = apiInstance.createMaintenance(STATUS_PAGE_DATA_ID, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StatusPagesApi#createMaintenance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/status-pages/GetMaintenance.java b/examples/v2/status-pages/GetMaintenance.java
new file mode 100644
index 00000000000..9d7cc9f95c3
--- /dev/null
+++ b/examples/v2/status-pages/GetMaintenance.java
@@ -0,0 +1,28 @@
+// Get Scheduled Maintenance returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.Maintenance;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
+
+ try {
+ Maintenance result =
+ apiInstance.getMaintenance(
+ UUID.fromString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
+ UUID.fromString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"));
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StatusPagesApi#getMaintenance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/status-pages/GetMaintenance_28315012.java b/examples/v2/status-pages/GetMaintenance_28315012.java
new file mode 100644
index 00000000000..de9ba809ee0
--- /dev/null
+++ b/examples/v2/status-pages/GetMaintenance_28315012.java
@@ -0,0 +1,41 @@
+// Get maintenance returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.Maintenance;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
+
+ // there is a valid "status_page" in the system
+ UUID STATUS_PAGE_DATA_ID = null;
+ try {
+ STATUS_PAGE_DATA_ID = UUID.fromString(System.getenv("STATUS_PAGE_DATA_ID"));
+ } catch (IllegalArgumentException e) {
+ System.err.println("Error parsing UUID: " + e.getMessage());
+ }
+
+ // there is a valid "maintenance" in the system
+ UUID MAINTENANCE_DATA_ID = null;
+ try {
+ MAINTENANCE_DATA_ID = UUID.fromString(System.getenv("MAINTENANCE_DATA_ID"));
+ } catch (IllegalArgumentException e) {
+ System.err.println("Error parsing UUID: " + e.getMessage());
+ }
+
+ try {
+ Maintenance result = apiInstance.getMaintenance(STATUS_PAGE_DATA_ID, MAINTENANCE_DATA_ID);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StatusPagesApi#getMaintenance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/google-chat-integration/GetSpaceByDisplayName.java b/examples/v2/status-pages/ListMaintenances.java
similarity index 50%
rename from examples/v2/google-chat-integration/GetSpaceByDisplayName.java
rename to examples/v2/status-pages/ListMaintenances.java
index c36c7259bcc..1cdadfa2e53 100644
--- a/examples/v2/google-chat-integration/GetSpaceByDisplayName.java
+++ b/examples/v2/status-pages/ListMaintenances.java
@@ -1,21 +1,20 @@
-// Get space information by display name returns "OK" response
+// List maintenances returns "OK" response
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.GoogleChatIntegrationApi;
-import com.datadog.api.client.v2.model.GoogleChatAppNamedSpaceResponse;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.MaintenanceArray;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
- GoogleChatIntegrationApi apiInstance = new GoogleChatIntegrationApi(defaultClient);
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
try {
- GoogleChatAppNamedSpaceResponse result =
- apiInstance.getSpaceByDisplayName("datadog.ninja", "api-test-space");
+ MaintenanceArray result = apiInstance.listMaintenances();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling GoogleChatIntegrationApi#getSpaceByDisplayName");
+ System.err.println("Exception when calling StatusPagesApi#listMaintenances");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
diff --git a/examples/v2/status-pages/UpdateMaintenance.java b/examples/v2/status-pages/UpdateMaintenance.java
new file mode 100644
index 00000000000..2f13e417330
--- /dev/null
+++ b/examples/v2/status-pages/UpdateMaintenance.java
@@ -0,0 +1,52 @@
+// Update Scheduled Maintenance returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.Maintenance;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequest;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestData;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataAttributes;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataType;
+import java.time.OffsetDateTime;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
+
+ PatchMaintenanceRequest body =
+ new PatchMaintenanceRequest()
+ .data(
+ new PatchMaintenanceRequestData()
+ .attributes(
+ new PatchMaintenanceRequestDataAttributes()
+ .completedDate(OffsetDateTime.parse("2026-02-18T20:01:13.332360075Z"))
+ .inProgressDescription(
+ "We are currently performing maintenance on the API to improve"
+ + " performance for 40 minutes.")
+ .scheduledDescription(
+ "We will be performing maintenance on the API to improve"
+ + " performance for 40 minutes.")
+ .startDate(OffsetDateTime.parse("2026-02-18T19:21:13.332360075Z"))
+ .title("API Maintenance"))
+ .id(UUID.fromString("1234abcd-12ab-34cd-56ef-123456abcdef"))
+ .type(PatchMaintenanceRequestDataType.MAINTENANCES));
+
+ try {
+ Maintenance result =
+ apiInstance.updateMaintenance(
+ UUID.fromString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
+ UUID.fromString("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"),
+ body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StatusPagesApi#updateMaintenance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/examples/v2/status-pages/UpdateMaintenance_850661063.java b/examples/v2/status-pages/UpdateMaintenance_850661063.java
new file mode 100644
index 00000000000..2f01752cf05
--- /dev/null
+++ b/examples/v2/status-pages/UpdateMaintenance_850661063.java
@@ -0,0 +1,61 @@
+// Update maintenance returns "OK" response
+
+import com.datadog.api.client.ApiClient;
+import com.datadog.api.client.ApiException;
+import com.datadog.api.client.v2.api.StatusPagesApi;
+import com.datadog.api.client.v2.model.Maintenance;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequest;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestData;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataAttributes;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequestDataType;
+import java.util.UUID;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = ApiClient.getDefaultApiClient();
+ StatusPagesApi apiInstance = new StatusPagesApi(defaultClient);
+
+ // there is a valid "status_page" in the system
+ UUID STATUS_PAGE_DATA_ID = null;
+ try {
+ STATUS_PAGE_DATA_ID = UUID.fromString(System.getenv("STATUS_PAGE_DATA_ID"));
+ } catch (IllegalArgumentException e) {
+ System.err.println("Error parsing UUID: " + e.getMessage());
+ }
+
+ // there is a valid "maintenance" in the system
+ UUID MAINTENANCE_DATA_ID = null;
+ try {
+ MAINTENANCE_DATA_ID = UUID.fromString(System.getenv("MAINTENANCE_DATA_ID"));
+ } catch (IllegalArgumentException e) {
+ System.err.println("Error parsing UUID: " + e.getMessage());
+ }
+
+ PatchMaintenanceRequest body =
+ new PatchMaintenanceRequest()
+ .data(
+ new PatchMaintenanceRequestData()
+ .attributes(
+ new PatchMaintenanceRequestDataAttributes()
+ .scheduledDescription(
+ "We will be performing maintenance on the API to improve"
+ + " performance for 40 minutes.")
+ .inProgressDescription(
+ "We are currently performing maintenance on the API to improve"
+ + " performance for 40 minutes."))
+ .id(MAINTENANCE_DATA_ID)
+ .type(PatchMaintenanceRequestDataType.MAINTENANCES));
+
+ try {
+ Maintenance result =
+ apiInstance.updateMaintenance(STATUS_PAGE_DATA_ID, MAINTENANCE_DATA_ID, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling StatusPagesApi#updateMaintenance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/api/GoogleChatIntegrationApi.java b/src/main/java/com/datadog/api/client/v2/api/GoogleChatIntegrationApi.java
deleted file mode 100644
index 61e1c6a403f..00000000000
--- a/src/main/java/com/datadog/api/client/v2/api/GoogleChatIntegrationApi.java
+++ /dev/null
@@ -1,1077 +0,0 @@
-package com.datadog.api.client.v2.api;
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.ApiResponse;
-import com.datadog.api.client.Pair;
-import com.datadog.api.client.v2.model.GoogleChatAppNamedSpaceResponse;
-import com.datadog.api.client.v2.model.GoogleChatCreateOrganizationHandleRequest;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandleResponse;
-import com.datadog.api.client.v2.model.GoogleChatOrganizationHandlesResponse;
-import com.datadog.api.client.v2.model.GoogleChatUpdateOrganizationHandleRequest;
-import jakarta.ws.rs.client.Invocation;
-import jakarta.ws.rs.core.GenericType;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.concurrent.CompletableFuture;
-
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class GoogleChatIntegrationApi {
- private ApiClient apiClient;
-
- public GoogleChatIntegrationApi() {
- this(ApiClient.getDefaultApiClient());
- }
-
- public GoogleChatIntegrationApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Get the API client.
- *
- * @return API client
- */
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- /**
- * Set the API client.
- *
- * @param apiClient an instance of API client
- */
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Create organization handle.
- *
- *
See {@link #createOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param body Organization handle payload. (required)
- * @return GoogleChatOrganizationHandleResponse
- * @throws ApiException if fails to make API call
- */
- public GoogleChatOrganizationHandleResponse createOrganizationHandle(
- String organizationBindingId, GoogleChatCreateOrganizationHandleRequest body)
- throws ApiException {
- return createOrganizationHandleWithHttpInfo(organizationBindingId, body).getData();
- }
-
- /**
- * Create organization handle.
- *
- *
See {@link #createOrganizationHandleWithHttpInfoAsync}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param body Organization handle payload. (required)
- * @return CompletableFuture<GoogleChatOrganizationHandleResponse>
- */
- public CompletableFuture createOrganizationHandleAsync(
- String organizationBindingId, GoogleChatCreateOrganizationHandleRequest body) {
- return createOrganizationHandleWithHttpInfoAsync(organizationBindingId, body)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Create an organization handle in the Datadog Google Chat integration.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param body Organization handle payload. (required)
- * @return ApiResponse<GoogleChatOrganizationHandleResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 201 | CREATED | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 409 | Conflict | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse createOrganizationHandleWithHttpInfo(
- String organizationBindingId, GoogleChatCreateOrganizationHandleRequest body)
- throws ApiException {
- Object localVarPostBody = body;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " createOrganizationHandle");
- }
-
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'body' when calling createOrganizationHandle");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.createOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Create organization handle.
- *
- * See {@link #createOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param body Organization handle payload. (required)
- * @return CompletableFuture<ApiResponse<GoogleChatOrganizationHandleResponse>>
- */
- public CompletableFuture>
- createOrganizationHandleWithHttpInfoAsync(
- String organizationBindingId, GoogleChatCreateOrganizationHandleRequest body) {
- Object localVarPostBody = body;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " createOrganizationHandle"));
- return result;
- }
-
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400, "Missing the required parameter 'body' when calling createOrganizationHandle"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.createOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Delete organization handle.
- *
- * See {@link #deleteOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @throws ApiException if fails to make API call
- */
- public void deleteOrganizationHandle(String organizationBindingId, String handleId)
- throws ApiException {
- deleteOrganizationHandleWithHttpInfo(organizationBindingId, handleId);
- }
-
- /**
- * Delete organization handle.
- *
- *
See {@link #deleteOrganizationHandleWithHttpInfoAsync}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return CompletableFuture
- */
- public CompletableFuture deleteOrganizationHandleAsync(
- String organizationBindingId, String handleId) {
- return deleteOrganizationHandleWithHttpInfoAsync(organizationBindingId, handleId)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Delete an organization handle from the Datadog Google Chat integration.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return ApiResponse<Void>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 204 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse deleteOrganizationHandleWithHttpInfo(
- String organizationBindingId, String handleId) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " deleteOrganizationHandle");
- }
-
- // verify the required parameter 'handleId' is set
- if (handleId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'handleId' when calling deleteOrganizationHandle");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()))
- .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.deleteOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"*/*"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "DELETE",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- null);
- }
-
- /**
- * Delete organization handle.
- *
- * See {@link #deleteOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return CompletableFuture<ApiResponse<Void>>
- */
- public CompletableFuture> deleteOrganizationHandleWithHttpInfoAsync(
- String organizationBindingId, String handleId) {
- Object localVarPostBody = null;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " deleteOrganizationHandle"));
- return result;
- }
-
- // verify the required parameter 'handleId' is set
- if (handleId == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'handleId' when calling deleteOrganizationHandle"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()))
- .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.deleteOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"*/*"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "DELETE",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- null);
- }
-
- /**
- * Get organization handle.
- *
- * See {@link #getOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return GoogleChatOrganizationHandleResponse
- * @throws ApiException if fails to make API call
- */
- public GoogleChatOrganizationHandleResponse getOrganizationHandle(
- String organizationBindingId, String handleId) throws ApiException {
- return getOrganizationHandleWithHttpInfo(organizationBindingId, handleId).getData();
- }
-
- /**
- * Get organization handle.
- *
- *
See {@link #getOrganizationHandleWithHttpInfoAsync}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return CompletableFuture<GoogleChatOrganizationHandleResponse>
- */
- public CompletableFuture getOrganizationHandleAsync(
- String organizationBindingId, String handleId) {
- return getOrganizationHandleWithHttpInfoAsync(organizationBindingId, handleId)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Get an organization handle from the Datadog Google Chat integration.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return ApiResponse<GoogleChatOrganizationHandleResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse getOrganizationHandleWithHttpInfo(
- String organizationBindingId, String handleId) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " getOrganizationHandle");
- }
-
- // verify the required parameter 'handleId' is set
- if (handleId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'handleId' when calling getOrganizationHandle");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()))
- .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.getOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get organization handle.
- *
- * See {@link #getOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @return CompletableFuture<ApiResponse<GoogleChatOrganizationHandleResponse>>
- */
- public CompletableFuture>
- getOrganizationHandleWithHttpInfoAsync(String organizationBindingId, String handleId) {
- Object localVarPostBody = null;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " getOrganizationHandle"));
- return result;
- }
-
- // verify the required parameter 'handleId' is set
- if (handleId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400, "Missing the required parameter 'handleId' when calling getOrganizationHandle"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()))
- .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.getOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get space information by display name.
- *
- * See {@link #getSpaceByDisplayNameWithHttpInfo}.
- *
- * @param domainName The Google Chat domain name. (required)
- * @param spaceDisplayName The Google Chat space display name. (required)
- * @return GoogleChatAppNamedSpaceResponse
- * @throws ApiException if fails to make API call
- */
- public GoogleChatAppNamedSpaceResponse getSpaceByDisplayName(
- String domainName, String spaceDisplayName) throws ApiException {
- return getSpaceByDisplayNameWithHttpInfo(domainName, spaceDisplayName).getData();
- }
-
- /**
- * Get space information by display name.
- *
- *
See {@link #getSpaceByDisplayNameWithHttpInfoAsync}.
- *
- * @param domainName The Google Chat domain name. (required)
- * @param spaceDisplayName The Google Chat space display name. (required)
- * @return CompletableFuture<GoogleChatAppNamedSpaceResponse>
- */
- public CompletableFuture getSpaceByDisplayNameAsync(
- String domainName, String spaceDisplayName) {
- return getSpaceByDisplayNameWithHttpInfoAsync(domainName, spaceDisplayName)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Get the resource name and organization binding ID of a space in the Datadog Google Chat
- * integration.
- *
- * @param domainName The Google Chat domain name. (required)
- * @param spaceDisplayName The Google Chat space display name. (required)
- * @return ApiResponse<GoogleChatAppNamedSpaceResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse getSpaceByDisplayNameWithHttpInfo(
- String domainName, String spaceDisplayName) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'domainName' is set
- if (domainName == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'domainName' when calling getSpaceByDisplayName");
- }
-
- // verify the required parameter 'spaceDisplayName' is set
- if (spaceDisplayName == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'spaceDisplayName' when calling getSpaceByDisplayName");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/app/named-spaces/{domain_name}/{space_display_name}"
- .replaceAll(
- "\\{" + "domain_name" + "\\}", apiClient.escapeString(domainName.toString()))
- .replaceAll(
- "\\{" + "space_display_name" + "\\}",
- apiClient.escapeString(spaceDisplayName.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.getSpaceByDisplayName",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get space information by display name.
- *
- * See {@link #getSpaceByDisplayNameWithHttpInfo}.
- *
- * @param domainName The Google Chat domain name. (required)
- * @param spaceDisplayName The Google Chat space display name. (required)
- * @return CompletableFuture<ApiResponse<GoogleChatAppNamedSpaceResponse>>
- */
- public CompletableFuture>
- getSpaceByDisplayNameWithHttpInfoAsync(String domainName, String spaceDisplayName) {
- Object localVarPostBody = null;
-
- // verify the required parameter 'domainName' is set
- if (domainName == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'domainName' when calling getSpaceByDisplayName"));
- return result;
- }
-
- // verify the required parameter 'spaceDisplayName' is set
- if (spaceDisplayName == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'spaceDisplayName' when calling"
- + " getSpaceByDisplayName"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/app/named-spaces/{domain_name}/{space_display_name}"
- .replaceAll(
- "\\{" + "domain_name" + "\\}", apiClient.escapeString(domainName.toString()))
- .replaceAll(
- "\\{" + "space_display_name" + "\\}",
- apiClient.escapeString(spaceDisplayName.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.getSpaceByDisplayName",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get all organization handles.
- *
- * See {@link #listOrganizationHandlesWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @return GoogleChatOrganizationHandlesResponse
- * @throws ApiException if fails to make API call
- */
- public GoogleChatOrganizationHandlesResponse listOrganizationHandles(String organizationBindingId)
- throws ApiException {
- return listOrganizationHandlesWithHttpInfo(organizationBindingId).getData();
- }
-
- /**
- * Get all organization handles.
- *
- *
See {@link #listOrganizationHandlesWithHttpInfoAsync}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @return CompletableFuture<GoogleChatOrganizationHandlesResponse>
- */
- public CompletableFuture listOrganizationHandlesAsync(
- String organizationBindingId) {
- return listOrganizationHandlesWithHttpInfoAsync(organizationBindingId)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Get a list of all organization handles from the Datadog Google Chat integration.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @return ApiResponse<GoogleChatOrganizationHandlesResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse listOrganizationHandlesWithHttpInfo(
- String organizationBindingId) throws ApiException {
- Object localVarPostBody = null;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " listOrganizationHandles");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.listOrganizationHandles",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Get all organization handles.
- *
- * See {@link #listOrganizationHandlesWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @return CompletableFuture<ApiResponse<GoogleChatOrganizationHandlesResponse>>
- */
- public CompletableFuture>
- listOrganizationHandlesWithHttpInfoAsync(String organizationBindingId) {
- Object localVarPostBody = null;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " listOrganizationHandles"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.listOrganizationHandles",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "GET",
- builder,
- localVarHeaderParams,
- new String[] {},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Update organization handle.
- *
- * See {@link #updateOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @param body Organization handle payload. (required)
- * @return GoogleChatOrganizationHandleResponse
- * @throws ApiException if fails to make API call
- */
- public GoogleChatOrganizationHandleResponse updateOrganizationHandle(
- String organizationBindingId, String handleId, GoogleChatUpdateOrganizationHandleRequest body)
- throws ApiException {
- return updateOrganizationHandleWithHttpInfo(organizationBindingId, handleId, body).getData();
- }
-
- /**
- * Update organization handle.
- *
- *
See {@link #updateOrganizationHandleWithHttpInfoAsync}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @param body Organization handle payload. (required)
- * @return CompletableFuture<GoogleChatOrganizationHandleResponse>
- */
- public CompletableFuture updateOrganizationHandleAsync(
- String organizationBindingId,
- String handleId,
- GoogleChatUpdateOrganizationHandleRequest body) {
- return updateOrganizationHandleWithHttpInfoAsync(organizationBindingId, handleId, body)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Update an organization handle from the Datadog Google Chat integration.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @param body Organization handle payload. (required)
- * @return ApiResponse<GoogleChatOrganizationHandleResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | OK | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 409 | Conflict | - |
- * | 429 | Too many requests | - |
- *
- */
- public ApiResponse updateOrganizationHandleWithHttpInfo(
- String organizationBindingId, String handleId, GoogleChatUpdateOrganizationHandleRequest body)
- throws ApiException {
- Object localVarPostBody = body;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " updateOrganizationHandle");
- }
-
- // verify the required parameter 'handleId' is set
- if (handleId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'handleId' when calling updateOrganizationHandle");
- }
-
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'body' when calling updateOrganizationHandle");
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()))
- .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.updateOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- return apiClient.invokeAPI(
- "PATCH",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Update organization handle.
- *
- * See {@link #updateOrganizationHandleWithHttpInfo}.
- *
- * @param organizationBindingId Your organization binding ID. (required)
- * @param handleId Your organization handle ID. (required)
- * @param body Organization handle payload. (required)
- * @return CompletableFuture<ApiResponse<GoogleChatOrganizationHandleResponse>>
- */
- public CompletableFuture>
- updateOrganizationHandleWithHttpInfoAsync(
- String organizationBindingId,
- String handleId,
- GoogleChatUpdateOrganizationHandleRequest body) {
- Object localVarPostBody = body;
-
- // verify the required parameter 'organizationBindingId' is set
- if (organizationBindingId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'organizationBindingId' when calling"
- + " updateOrganizationHandle"));
- return result;
- }
-
- // verify the required parameter 'handleId' is set
- if (handleId == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'handleId' when calling updateOrganizationHandle"));
- return result;
- }
-
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400, "Missing the required parameter 'body' when calling updateOrganizationHandle"));
- return result;
- }
- // create path and map variables
- String localVarPath =
- "/api/v2/integration/google-chat/organizations/{organization_binding_id}/organization-handles/{handle_id}"
- .replaceAll(
- "\\{" + "organization_binding_id" + "\\}",
- apiClient.escapeString(organizationBindingId.toString()))
- .replaceAll("\\{" + "handle_id" + "\\}", apiClient.escapeString(handleId.toString()));
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.GoogleChatIntegrationApi.updateOrganizationHandle",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "PATCH",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java b/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java
index 11e3520d1b1..2676fcf4b0b 100644
--- a/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/StatusPagesApi.java
@@ -6,11 +6,15 @@
import com.datadog.api.client.Pair;
import com.datadog.api.client.v2.model.CreateComponentRequest;
import com.datadog.api.client.v2.model.CreateDegradationRequest;
+import com.datadog.api.client.v2.model.CreateMaintenanceRequest;
import com.datadog.api.client.v2.model.CreateStatusPageRequest;
import com.datadog.api.client.v2.model.Degradation;
import com.datadog.api.client.v2.model.DegradationArray;
+import com.datadog.api.client.v2.model.Maintenance;
+import com.datadog.api.client.v2.model.MaintenanceArray;
import com.datadog.api.client.v2.model.PatchComponentRequest;
import com.datadog.api.client.v2.model.PatchDegradationRequest;
+import com.datadog.api.client.v2.model.PatchMaintenanceRequest;
import com.datadog.api.client.v2.model.PatchStatusPageRequest;
import com.datadog.api.client.v2.model.StatusPage;
import com.datadog.api.client.v2.model.StatusPageArray;
@@ -514,6 +518,245 @@ public CompletableFuture> createDegradationWithHttpInfo
new GenericType() {});
}
+ /** Manage optional parameters to createMaintenance. */
+ public static class CreateMaintenanceOptionalParameters {
+ private Boolean notifySubscribers;
+ private String include;
+
+ /**
+ * Set notifySubscribers.
+ *
+ * @param notifySubscribers Whether to notify page subscribers of the scheduled maintenance.
+ * (optional, default to true)
+ * @return CreateMaintenanceOptionalParameters
+ */
+ public CreateMaintenanceOptionalParameters notifySubscribers(Boolean notifySubscribers) {
+ this.notifySubscribers = notifySubscribers;
+ return this;
+ }
+
+ /**
+ * Set include.
+ *
+ * @param include Comma-separated list of resources to include. Supported values:
+ * created_by_user, last_modified_by_user, status_page. (optional)
+ * @return CreateMaintenanceOptionalParameters
+ */
+ public CreateMaintenanceOptionalParameters include(String include) {
+ this.include = include;
+ return this;
+ }
+ }
+
+ /**
+ * Create Scheduled Maintenance.
+ *
+ * See {@link #createMaintenanceWithHttpInfo}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param body (required)
+ * @return Maintenance
+ * @throws ApiException if fails to make API call
+ */
+ public Maintenance createMaintenance(UUID pageId, CreateMaintenanceRequest body)
+ throws ApiException {
+ return createMaintenanceWithHttpInfo(pageId, body, new CreateMaintenanceOptionalParameters())
+ .getData();
+ }
+
+ /**
+ * Create Scheduled Maintenance.
+ *
+ *
See {@link #createMaintenanceWithHttpInfoAsync}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param body (required)
+ * @return CompletableFuture<Maintenance>
+ */
+ public CompletableFuture createMaintenanceAsync(
+ UUID pageId, CreateMaintenanceRequest body) {
+ return createMaintenanceWithHttpInfoAsync(
+ pageId, body, new CreateMaintenanceOptionalParameters())
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Create Scheduled Maintenance.
+ *
+ * See {@link #createMaintenanceWithHttpInfo}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return Maintenance
+ * @throws ApiException if fails to make API call
+ */
+ public Maintenance createMaintenance(
+ UUID pageId, CreateMaintenanceRequest body, CreateMaintenanceOptionalParameters parameters)
+ throws ApiException {
+ return createMaintenanceWithHttpInfo(pageId, body, parameters).getData();
+ }
+
+ /**
+ * Create Scheduled Maintenance.
+ *
+ *
See {@link #createMaintenanceWithHttpInfoAsync}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<Maintenance>
+ */
+ public CompletableFuture createMaintenanceAsync(
+ UUID pageId, CreateMaintenanceRequest body, CreateMaintenanceOptionalParameters parameters) {
+ return createMaintenanceWithHttpInfoAsync(pageId, body, parameters)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Creates a new scheduled maintenance. Scheduled maintenances are set for a future time window.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return ApiResponse<Maintenance>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 201 | Created | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse createMaintenanceWithHttpInfo(
+ UUID pageId, CreateMaintenanceRequest body, CreateMaintenanceOptionalParameters parameters)
+ throws ApiException {
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'pageId' is set
+ if (pageId == null) {
+ throw new ApiException(
+ 400, "Missing the required parameter 'pageId' when calling createMaintenance");
+ }
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(
+ 400, "Missing the required parameter 'body' when calling createMaintenance");
+ }
+ Boolean notifySubscribers = parameters.notifySubscribers;
+ String include = parameters.include;
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/statuspages/{page_id}/maintenances"
+ .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+
+ localVarQueryParams.addAll(
+ apiClient.parameterToPairs("", "notify_subscribers", notifySubscribers));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.StatusPagesApi.createMaintenance",
+ localVarPath,
+ localVarQueryParams,
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Create Scheduled Maintenance.
+ *
+ * See {@link #createMaintenanceWithHttpInfo}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param body (required)
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<ApiResponse<Maintenance>>
+ */
+ public CompletableFuture> createMaintenanceWithHttpInfoAsync(
+ UUID pageId, CreateMaintenanceRequest body, CreateMaintenanceOptionalParameters parameters) {
+ Object localVarPostBody = body;
+
+ // verify the required parameter 'pageId' is set
+ if (pageId == null) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400, "Missing the required parameter 'pageId' when calling createMaintenance"));
+ return result;
+ }
+
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400, "Missing the required parameter 'body' when calling createMaintenance"));
+ return result;
+ }
+ Boolean notifySubscribers = parameters.notifySubscribers;
+ String include = parameters.include;
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/statuspages/{page_id}/maintenances"
+ .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+
+ localVarQueryParams.addAll(
+ apiClient.parameterToPairs("", "notify_subscribers", notifySubscribers));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.StatusPagesApi.createMaintenance",
+ localVarPath,
+ localVarQueryParams,
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "POST",
+ builder,
+ localVarHeaderParams,
+ new String[] {"application/json"},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
/** Manage optional parameters to createStatusPage. */
public static class CreateStatusPageOptionalParameters {
private String include;
@@ -1589,46 +1832,50 @@ public CompletableFuture> getDegradationWithHttpInfoAsy
new GenericType() {});
}
- /** Manage optional parameters to getStatusPage. */
- public static class GetStatusPageOptionalParameters {
+ /** Manage optional parameters to getMaintenance. */
+ public static class GetMaintenanceOptionalParameters {
private String include;
/**
* Set include.
*
* @param include Comma-separated list of resources to include. Supported values:
- * created_by_user, last_modified_by_user. (optional)
- * @return GetStatusPageOptionalParameters
+ * created_by_user, last_modified_by_user, status_page. (optional)
+ * @return GetMaintenanceOptionalParameters
*/
- public GetStatusPageOptionalParameters include(String include) {
+ public GetMaintenanceOptionalParameters include(String include) {
this.include = include;
return this;
}
}
/**
- * Get status page.
+ * Get Scheduled Maintenance.
*
- * See {@link #getStatusPageWithHttpInfo}.
+ *
See {@link #getMaintenanceWithHttpInfo}.
*
* @param pageId The ID of the status page. (required)
- * @return StatusPage
+ * @param maintenanceId The ID of the scheduled maintenance. (required)
+ * @return Maintenance
* @throws ApiException if fails to make API call
*/
- public StatusPage getStatusPage(UUID pageId) throws ApiException {
- return getStatusPageWithHttpInfo(pageId, new GetStatusPageOptionalParameters()).getData();
+ public Maintenance getMaintenance(UUID pageId, UUID maintenanceId) throws ApiException {
+ return getMaintenanceWithHttpInfo(pageId, maintenanceId, new GetMaintenanceOptionalParameters())
+ .getData();
}
/**
- * Get status page.
+ * Get Scheduled Maintenance.
*
- *
See {@link #getStatusPageWithHttpInfoAsync}.
+ *
See {@link #getMaintenanceWithHttpInfoAsync}.
*
* @param pageId The ID of the status page. (required)
- * @return CompletableFuture<StatusPage>
+ * @param maintenanceId The ID of the scheduled maintenance. (required)
+ * @return CompletableFuture<Maintenance>
*/
- public CompletableFuture getStatusPageAsync(UUID pageId) {
- return getStatusPageWithHttpInfoAsync(pageId, new GetStatusPageOptionalParameters())
+ public CompletableFuture getMaintenanceAsync(UUID pageId, UUID maintenanceId) {
+ return getMaintenanceWithHttpInfoAsync(
+ pageId, maintenanceId, new GetMaintenanceOptionalParameters())
.thenApply(
response -> {
return response.getData();
@@ -1636,32 +1883,35 @@ public CompletableFuture getStatusPageAsync(UUID pageId) {
}
/**
- * Get status page.
+ * Get Scheduled Maintenance.
*
- * See {@link #getStatusPageWithHttpInfo}.
+ *
See {@link #getMaintenanceWithHttpInfo}.
*
* @param pageId The ID of the status page. (required)
+ * @param maintenanceId The ID of the scheduled maintenance. (required)
* @param parameters Optional parameters for the request.
- * @return StatusPage
+ * @return Maintenance
* @throws ApiException if fails to make API call
*/
- public StatusPage getStatusPage(UUID pageId, GetStatusPageOptionalParameters parameters)
+ public Maintenance getMaintenance(
+ UUID pageId, UUID maintenanceId, GetMaintenanceOptionalParameters parameters)
throws ApiException {
- return getStatusPageWithHttpInfo(pageId, parameters).getData();
+ return getMaintenanceWithHttpInfo(pageId, maintenanceId, parameters).getData();
}
/**
- * Get status page.
+ * Get Scheduled Maintenance.
*
- *
See {@link #getStatusPageWithHttpInfoAsync}.
+ *
See {@link #getMaintenanceWithHttpInfoAsync}.
*
* @param pageId The ID of the status page. (required)
+ * @param maintenanceId The ID of the scheduled maintenance. (required)
* @param parameters Optional parameters for the request.
- * @return CompletableFuture<StatusPage>
+ * @return CompletableFuture<Maintenance>
*/
- public CompletableFuture getStatusPageAsync(
- UUID pageId, GetStatusPageOptionalParameters parameters) {
- return getStatusPageWithHttpInfoAsync(pageId, parameters)
+ public CompletableFuture getMaintenanceAsync(
+ UUID pageId, UUID maintenanceId, GetMaintenanceOptionalParameters parameters) {
+ return getMaintenanceWithHttpInfoAsync(pageId, maintenanceId, parameters)
.thenApply(
response -> {
return response.getData();
@@ -1669,11 +1919,13 @@ public CompletableFuture getStatusPageAsync(
}
/**
- * Retrieves a specific status page by its ID.
+ * Retrieves a specific scheduled maintenance by its ID. The maintenance may be in scheduled, in
+ * progress, completed, or canceled status.
*
* @param pageId The ID of the status page. (required)
+ * @param maintenanceId The ID of the scheduled maintenance. (required)
* @param parameters Optional parameters for the request.
- * @return ApiResponse<StatusPage>
+ * @return ApiResponse<Maintenance>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -1683,20 +1935,29 @@ public CompletableFuture getStatusPageAsync(
* | 429 | Too many requests | - |
*
*/
- public ApiResponse getStatusPageWithHttpInfo(
- UUID pageId, GetStatusPageOptionalParameters parameters) throws ApiException {
+ public ApiResponse getMaintenanceWithHttpInfo(
+ UUID pageId, UUID maintenanceId, GetMaintenanceOptionalParameters parameters)
+ throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'pageId' is set
if (pageId == null) {
throw new ApiException(
- 400, "Missing the required parameter 'pageId' when calling getStatusPage");
+ 400, "Missing the required parameter 'pageId' when calling getMaintenance");
+ }
+
+ // verify the required parameter 'maintenanceId' is set
+ if (maintenanceId == null) {
+ throw new ApiException(
+ 400, "Missing the required parameter 'maintenanceId' when calling getMaintenance");
}
String include = parameters.include;
// create path and map variables
String localVarPath =
- "/api/v2/statuspages/{page_id}"
- .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()));
+ "/api/v2/statuspages/{page_id}/maintenances/{maintenance_id}"
+ .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()))
+ .replaceAll(
+ "\\{" + "maintenance_id" + "\\}", apiClient.escapeString(maintenanceId.toString()));
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
@@ -1705,7 +1966,7 @@ public ApiResponse getStatusPageWithHttpInfo(
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.StatusPagesApi.getStatusPage",
+ "v2.StatusPagesApi.getMaintenance",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
@@ -1720,35 +1981,47 @@ public ApiResponse getStatusPageWithHttpInfo(
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * Get status page.
+ * Get Scheduled Maintenance.
*
- * See {@link #getStatusPageWithHttpInfo}.
+ *
See {@link #getMaintenanceWithHttpInfo}.
*
* @param pageId The ID of the status page. (required)
+ * @param maintenanceId The ID of the scheduled maintenance. (required)
* @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<StatusPage>>
+ * @return CompletableFuture<ApiResponse<Maintenance>>
*/
- public CompletableFuture> getStatusPageWithHttpInfoAsync(
- UUID pageId, GetStatusPageOptionalParameters parameters) {
+ public CompletableFuture> getMaintenanceWithHttpInfoAsync(
+ UUID pageId, UUID maintenanceId, GetMaintenanceOptionalParameters parameters) {
Object localVarPostBody = null;
// verify the required parameter 'pageId' is set
if (pageId == null) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
- 400, "Missing the required parameter 'pageId' when calling getStatusPage"));
+ 400, "Missing the required parameter 'pageId' when calling getMaintenance"));
+ return result;
+ }
+
+ // verify the required parameter 'maintenanceId' is set
+ if (maintenanceId == null) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400, "Missing the required parameter 'maintenanceId' when calling getMaintenance"));
return result;
}
String include = parameters.include;
// create path and map variables
String localVarPath =
- "/api/v2/statuspages/{page_id}"
- .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()));
+ "/api/v2/statuspages/{page_id}/maintenances/{maintenance_id}"
+ .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()))
+ .replaceAll(
+ "\\{" + "maintenance_id" + "\\}", apiClient.escapeString(maintenanceId.toString()));
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
@@ -1759,7 +2032,7 @@ public CompletableFuture> getStatusPageWithHttpInfoAsync
try {
builder =
apiClient.createBuilder(
- "v2.StatusPagesApi.getStatusPage",
+ "v2.StatusPagesApi.getMaintenance",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
@@ -1767,7 +2040,7 @@ public CompletableFuture> getStatusPageWithHttpInfoAsync
new String[] {"application/json"},
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
} catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
+ CompletableFuture> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
@@ -1779,21 +2052,214 @@ public CompletableFuture> getStatusPageWithHttpInfoAsync
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
- /** Manage optional parameters to listComponents. */
- public static class ListComponentsOptionalParameters {
+ /** Manage optional parameters to getStatusPage. */
+ public static class GetStatusPageOptionalParameters {
private String include;
/**
* Set include.
*
* @param include Comma-separated list of resources to include. Supported values:
- * created_by_user, last_modified_by_user, status_page, group. (optional)
- * @return ListComponentsOptionalParameters
+ * created_by_user, last_modified_by_user. (optional)
+ * @return GetStatusPageOptionalParameters
*/
- public ListComponentsOptionalParameters include(String include) {
+ public GetStatusPageOptionalParameters include(String include) {
+ this.include = include;
+ return this;
+ }
+ }
+
+ /**
+ * Get status page.
+ *
+ * See {@link #getStatusPageWithHttpInfo}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @return StatusPage
+ * @throws ApiException if fails to make API call
+ */
+ public StatusPage getStatusPage(UUID pageId) throws ApiException {
+ return getStatusPageWithHttpInfo(pageId, new GetStatusPageOptionalParameters()).getData();
+ }
+
+ /**
+ * Get status page.
+ *
+ *
See {@link #getStatusPageWithHttpInfoAsync}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @return CompletableFuture<StatusPage>
+ */
+ public CompletableFuture getStatusPageAsync(UUID pageId) {
+ return getStatusPageWithHttpInfoAsync(pageId, new GetStatusPageOptionalParameters())
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Get status page.
+ *
+ * See {@link #getStatusPageWithHttpInfo}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param parameters Optional parameters for the request.
+ * @return StatusPage
+ * @throws ApiException if fails to make API call
+ */
+ public StatusPage getStatusPage(UUID pageId, GetStatusPageOptionalParameters parameters)
+ throws ApiException {
+ return getStatusPageWithHttpInfo(pageId, parameters).getData();
+ }
+
+ /**
+ * Get status page.
+ *
+ *
See {@link #getStatusPageWithHttpInfoAsync}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<StatusPage>
+ */
+ public CompletableFuture getStatusPageAsync(
+ UUID pageId, GetStatusPageOptionalParameters parameters) {
+ return getStatusPageWithHttpInfoAsync(pageId, parameters)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Retrieves a specific status page by its ID.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param parameters Optional parameters for the request.
+ * @return ApiResponse<StatusPage>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 200 | OK | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse getStatusPageWithHttpInfo(
+ UUID pageId, GetStatusPageOptionalParameters parameters) throws ApiException {
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'pageId' is set
+ if (pageId == null) {
+ throw new ApiException(
+ 400, "Missing the required parameter 'pageId' when calling getStatusPage");
+ }
+ String include = parameters.include;
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/statuspages/{page_id}"
+ .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.StatusPagesApi.getStatusPage",
+ localVarPath,
+ localVarQueryParams,
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * Get status page.
+ *
+ * See {@link #getStatusPageWithHttpInfo}.
+ *
+ * @param pageId The ID of the status page. (required)
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<ApiResponse<StatusPage>>
+ */
+ public CompletableFuture> getStatusPageWithHttpInfoAsync(
+ UUID pageId, GetStatusPageOptionalParameters parameters) {
+ Object localVarPostBody = null;
+
+ // verify the required parameter 'pageId' is set
+ if (pageId == null) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(
+ new ApiException(
+ 400, "Missing the required parameter 'pageId' when calling getStatusPage"));
+ return result;
+ }
+ String include = parameters.include;
+ // create path and map variables
+ String localVarPath =
+ "/api/v2/statuspages/{page_id}"
+ .replaceAll("\\{" + "page_id" + "\\}", apiClient.escapeString(pageId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.StatusPagesApi.getStatusPage",
+ localVarPath,
+ localVarQueryParams,
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /** Manage optional parameters to listComponents. */
+ public static class ListComponentsOptionalParameters {
+ private String include;
+
+ /**
+ * Set include.
+ *
+ * @param include Comma-separated list of resources to include. Supported values:
+ * created_by_user, last_modified_by_user, status_page, group. (optional)
+ * @return ListComponentsOptionalParameters
+ */
+ public ListComponentsOptionalParameters include(String include) {
this.include = include;
return this;
}
@@ -1982,14 +2448,265 @@ public static class ListDegradationsOptionalParameters {
private Integer pageLimit;
private String include;
private String filterStatus;
+ private String sort;
+
+ /**
+ * Set filterPageId.
+ *
+ * @param filterPageId Optional page id filter. (optional)
+ * @return ListDegradationsOptionalParameters
+ */
+ public ListDegradationsOptionalParameters filterPageId(String filterPageId) {
+ this.filterPageId = filterPageId;
+ return this;
+ }
+
+ /**
+ * Set pageOffset.
+ *
+ * @param pageOffset Offset to use as the start of the page. (optional, default to 0)
+ * @return ListDegradationsOptionalParameters
+ */
+ public ListDegradationsOptionalParameters pageOffset(Integer pageOffset) {
+ this.pageOffset = pageOffset;
+ return this;
+ }
+
+ /**
+ * Set pageLimit.
+ *
+ * @param pageLimit The number of degradations to return per page. (optional, default to 50)
+ * @return ListDegradationsOptionalParameters
+ */
+ public ListDegradationsOptionalParameters pageLimit(Integer pageLimit) {
+ this.pageLimit = pageLimit;
+ return this;
+ }
+
+ /**
+ * Set include.
+ *
+ * @param include Comma-separated list of resources to include. Supported values:
+ * created_by_user, last_modified_by_user, status_page. (optional)
+ * @return ListDegradationsOptionalParameters
+ */
+ public ListDegradationsOptionalParameters include(String include) {
+ this.include = include;
+ return this;
+ }
+
+ /**
+ * Set filterStatus.
+ *
+ * @param filterStatus Optional degradation status filter. Supported values: investigating,
+ * identified, monitoring, resolved. (optional)
+ * @return ListDegradationsOptionalParameters
+ */
+ public ListDegradationsOptionalParameters filterStatus(String filterStatus) {
+ this.filterStatus = filterStatus;
+ return this;
+ }
+
+ /**
+ * Set sort.
+ *
+ * @param sort Sort order. Prefix with '-' for descending. Supported values: created_at,
+ * -created_at, modified_at, -modified_at. (optional)
+ * @return ListDegradationsOptionalParameters
+ */
+ public ListDegradationsOptionalParameters sort(String sort) {
+ this.sort = sort;
+ return this;
+ }
+ }
+
+ /**
+ * List degradations.
+ *
+ * See {@link #listDegradationsWithHttpInfo}.
+ *
+ * @return DegradationArray
+ * @throws ApiException if fails to make API call
+ */
+ public DegradationArray listDegradations() throws ApiException {
+ return listDegradationsWithHttpInfo(new ListDegradationsOptionalParameters()).getData();
+ }
+
+ /**
+ * List degradations.
+ *
+ *
See {@link #listDegradationsWithHttpInfoAsync}.
+ *
+ * @return CompletableFuture<DegradationArray>
+ */
+ public CompletableFuture listDegradationsAsync() {
+ return listDegradationsWithHttpInfoAsync(new ListDegradationsOptionalParameters())
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * List degradations.
+ *
+ * See {@link #listDegradationsWithHttpInfo}.
+ *
+ * @param parameters Optional parameters for the request.
+ * @return DegradationArray
+ * @throws ApiException if fails to make API call
+ */
+ public DegradationArray listDegradations(ListDegradationsOptionalParameters parameters)
+ throws ApiException {
+ return listDegradationsWithHttpInfo(parameters).getData();
+ }
+
+ /**
+ * List degradations.
+ *
+ *
See {@link #listDegradationsWithHttpInfoAsync}.
+ *
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<DegradationArray>
+ */
+ public CompletableFuture listDegradationsAsync(
+ ListDegradationsOptionalParameters parameters) {
+ return listDegradationsWithHttpInfoAsync(parameters)
+ .thenApply(
+ response -> {
+ return response.getData();
+ });
+ }
+
+ /**
+ * Lists all degradations for the organization. Optionally filter by status and page.
+ *
+ * @param parameters Optional parameters for the request.
+ * @return ApiResponse<DegradationArray>
+ * @throws ApiException if fails to make API call
+ * @http.response.details
+ *
+ * Response details
+ * | Status Code | Description | Response Headers |
+ * | 200 | OK | - |
+ * | 429 | Too many requests | - |
+ *
+ */
+ public ApiResponse listDegradationsWithHttpInfo(
+ ListDegradationsOptionalParameters parameters) throws ApiException {
+ Object localVarPostBody = null;
+ String filterPageId = parameters.filterPageId;
+ Integer pageOffset = parameters.pageOffset;
+ Integer pageLimit = parameters.pageLimit;
+ String include = parameters.include;
+ String filterStatus = parameters.filterStatus;
+ String sort = parameters.sort;
+ // create path and map variables
+ String localVarPath = "/api/v2/statuspages/degradations";
+
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[page_id]", filterPageId));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[offset]", pageOffset));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
+
+ Invocation.Builder builder =
+ apiClient.createBuilder(
+ "v2.StatusPagesApi.listDegradations",
+ localVarPath,
+ localVarQueryParams,
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ return apiClient.invokeAPI(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /**
+ * List degradations.
+ *
+ * See {@link #listDegradationsWithHttpInfo}.
+ *
+ * @param parameters Optional parameters for the request.
+ * @return CompletableFuture<ApiResponse<DegradationArray>>
+ */
+ public CompletableFuture> listDegradationsWithHttpInfoAsync(
+ ListDegradationsOptionalParameters parameters) {
+ Object localVarPostBody = null;
+ String filterPageId = parameters.filterPageId;
+ Integer pageOffset = parameters.pageOffset;
+ Integer pageLimit = parameters.pageLimit;
+ String include = parameters.include;
+ String filterStatus = parameters.filterStatus;
+ String sort = parameters.sort;
+ // create path and map variables
+ String localVarPath = "/api/v2/statuspages/degradations";
+
+ List localVarQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[page_id]", filterPageId));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[offset]", pageOffset));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
+
+ Invocation.Builder builder;
+ try {
+ builder =
+ apiClient.createBuilder(
+ "v2.StatusPagesApi.listDegradations",
+ localVarPath,
+ localVarQueryParams,
+ localVarHeaderParams,
+ new HashMap(),
+ new String[] {"application/json"},
+ new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
+ } catch (ApiException ex) {
+ CompletableFuture> result = new CompletableFuture<>();
+ result.completeExceptionally(ex);
+ return result;
+ }
+ return apiClient.invokeAPIAsync(
+ "GET",
+ builder,
+ localVarHeaderParams,
+ new String[] {},
+ localVarPostBody,
+ new HashMap(),
+ false,
+ new GenericType() {});
+ }
+
+ /** Manage optional parameters to listMaintenances. */
+ public static class ListMaintenancesOptionalParameters {
+ private String filterPageId;
+ private Integer pageOffset;
+ private Integer pageLimit;
+ private String include;
+ private String filterStatus;
+ private String sort;
/**
* Set filterPageId.
*
* @param filterPageId Optional page id filter. (optional)
- * @return ListDegradationsOptionalParameters
+ * @return ListMaintenancesOptionalParameters
*/
- public ListDegradationsOptionalParameters filterPageId(String filterPageId) {
+ public ListMaintenancesOptionalParameters filterPageId(String filterPageId) {
this.filterPageId = filterPageId;
return this;
}
@@ -1998,9 +2715,9 @@ public ListDegradationsOptionalParameters filterPageId(String filterPageId) {
* Set pageOffset.
*
* @param pageOffset Offset to use as the start of the page. (optional, default to 0)
- * @return ListDegradationsOptionalParameters
+ * @return ListMaintenancesOptionalParameters
*/
- public ListDegradationsOptionalParameters pageOffset(Integer pageOffset) {
+ public ListMaintenancesOptionalParameters pageOffset(Integer pageOffset) {
this.pageOffset = pageOffset;
return this;
}
@@ -2008,10 +2725,10 @@ public ListDegradationsOptionalParameters pageOffset(Integer pageOffset) {
/**
* Set pageLimit.
*
- * @param pageLimit The number of degradations to return per page. (optional, default to 50)
- * @return ListDegradationsOptionalParameters
+ * @param pageLimit The number of maintenances to return per page. (optional, default to 50)
+ * @return ListMaintenancesOptionalParameters
*/
- public ListDegradationsOptionalParameters pageLimit(Integer pageLimit) {
+ public ListMaintenancesOptionalParameters pageLimit(Integer pageLimit) {
this.pageLimit = pageLimit;
return this;
}
@@ -2021,9 +2738,9 @@ public ListDegradationsOptionalParameters pageLimit(Integer pageLimit) {
*
* @param include Comma-separated list of resources to include. Supported values:
* created_by_user, last_modified_by_user, status_page. (optional)
- * @return ListDegradationsOptionalParameters
+ * @return ListMaintenancesOptionalParameters
*/
- public ListDegradationsOptionalParameters include(String include) {
+ public ListMaintenancesOptionalParameters include(String include) {
this.include = include;
return this;
}
@@ -2031,37 +2748,49 @@ public ListDegradationsOptionalParameters include(String include) {
/**
* Set filterStatus.
*
- * @param filterStatus Optional degradation status filter. Supported values: investigating,
- * identified, monitoring, resolved. (optional)
- * @return ListDegradationsOptionalParameters
+ * @param filterStatus Optional filter by maintenance status. Supported values: scheduled,
+ * in_progress, completed, canceled. (optional)
+ * @return ListMaintenancesOptionalParameters
*/
- public ListDegradationsOptionalParameters filterStatus(String filterStatus) {
+ public ListMaintenancesOptionalParameters filterStatus(String filterStatus) {
this.filterStatus = filterStatus;
return this;
}
+
+ /**
+ * Set sort.
+ *
+ * @param sort Sort order. Prefix with '-' for descending. Supported values: created_at,
+ * -created_at, start_date, -start_date. (optional)
+ * @return ListMaintenancesOptionalParameters
+ */
+ public ListMaintenancesOptionalParameters sort(String sort) {
+ this.sort = sort;
+ return this;
+ }
}
/**
- * List degradations.
+ * List maintenances.
*
- * See {@link #listDegradationsWithHttpInfo}.
+ *
See {@link #listMaintenancesWithHttpInfo}.
*
- * @return DegradationArray
+ * @return MaintenanceArray
* @throws ApiException if fails to make API call
*/
- public DegradationArray listDegradations() throws ApiException {
- return listDegradationsWithHttpInfo(new ListDegradationsOptionalParameters()).getData();
+ public MaintenanceArray listMaintenances() throws ApiException {
+ return listMaintenancesWithHttpInfo(new ListMaintenancesOptionalParameters()).getData();
}
/**
- * List degradations.
+ * List maintenances.
*
- *
See {@link #listDegradationsWithHttpInfoAsync}.
+ *
See {@link #listMaintenancesWithHttpInfoAsync}.
*
- * @return CompletableFuture<DegradationArray>
+ * @return CompletableFuture<MaintenanceArray>
*/
- public CompletableFuture listDegradationsAsync() {
- return listDegradationsWithHttpInfoAsync(new ListDegradationsOptionalParameters())
+ public CompletableFuture listMaintenancesAsync() {
+ return listMaintenancesWithHttpInfoAsync(new ListMaintenancesOptionalParameters())
.thenApply(
response -> {
return response.getData();
@@ -2069,30 +2798,30 @@ public CompletableFuture listDegradationsAsync() {
}
/**
- * List degradations.
+ * List maintenances.
*
- * See {@link #listDegradationsWithHttpInfo}.
+ *
See {@link #listMaintenancesWithHttpInfo}.
*
* @param parameters Optional parameters for the request.
- * @return DegradationArray
+ * @return MaintenanceArray
* @throws ApiException if fails to make API call
*/
- public DegradationArray listDegradations(ListDegradationsOptionalParameters parameters)
+ public MaintenanceArray listMaintenances(ListMaintenancesOptionalParameters parameters)
throws ApiException {
- return listDegradationsWithHttpInfo(parameters).getData();
+ return listMaintenancesWithHttpInfo(parameters).getData();
}
/**
- * List degradations.
+ * List maintenances.
*
- *
See {@link #listDegradationsWithHttpInfoAsync}.
+ *
See {@link #listMaintenancesWithHttpInfoAsync}.
*
* @param parameters Optional parameters for the request.
- * @return CompletableFuture<DegradationArray>
+ * @return CompletableFuture<MaintenanceArray>
*/
- public CompletableFuture listDegradationsAsync(
- ListDegradationsOptionalParameters parameters) {
- return listDegradationsWithHttpInfoAsync(parameters)
+ public CompletableFuture listMaintenancesAsync(
+ ListMaintenancesOptionalParameters parameters) {
+ return listMaintenancesWithHttpInfoAsync(parameters)
.thenApply(
response -> {
return response.getData();
@@ -2100,10 +2829,11 @@ public CompletableFuture listDegradationsAsync(
}
/**
- * Lists all degradations for the organization. Optionally filter by status and page.
+ * Lists all maintenances for the organization. Results can include scheduled, in progress,
+ * completed, and canceled maintenances. Optionally filter by status and page.
*
* @param parameters Optional parameters for the request.
- * @return ApiResponse<DegradationArray>
+ * @return ApiResponse<MaintenanceArray>
* @throws ApiException if fails to make API call
* @http.response.details
*
@@ -2113,16 +2843,17 @@ public CompletableFuture listDegradationsAsync(
* | 429 | Too many requests | - |
*
*/
- public ApiResponse listDegradationsWithHttpInfo(
- ListDegradationsOptionalParameters parameters) throws ApiException {
+ public ApiResponse listMaintenancesWithHttpInfo(
+ ListMaintenancesOptionalParameters parameters) throws ApiException {
Object localVarPostBody = null;
String filterPageId = parameters.filterPageId;
Integer pageOffset = parameters.pageOffset;
Integer pageLimit = parameters.pageLimit;
String include = parameters.include;
String filterStatus = parameters.filterStatus;
+ String sort = parameters.sort;
// create path and map variables
- String localVarPath = "/api/v2/statuspages/degradations";
+ String localVarPath = "/api/v2/statuspages/maintenances";
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
@@ -2132,10 +2863,11 @@ public ApiResponse listDegradationsWithHttpInfo(
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[limit]", pageLimit));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", include));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus));
+ localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
Invocation.Builder builder =
apiClient.createBuilder(
- "v2.StatusPagesApi.listDegradations",
+ "v2.StatusPagesApi.listMaintenances",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
@@ -2150,27 +2882,28 @@ public ApiResponse listDegradationsWithHttpInfo(
localVarPostBody,
new HashMap(),
false,
- new GenericType() {});
+ new GenericType() {});
}
/**
- * List degradations.
+ * List maintenances.
*
- * See {@link #listDegradationsWithHttpInfo}.
+ *
See {@link #listMaintenancesWithHttpInfo}.
*
* @param parameters Optional parameters for the request.
- * @return CompletableFuture<ApiResponse<DegradationArray>>
+ * @return CompletableFuture<ApiResponse<MaintenanceArray>>
*/
- public CompletableFuture> listDegradationsWithHttpInfoAsync(
- ListDegradationsOptionalParameters parameters) {
+ public CompletableFuture> listMaintenancesWithHttpInfoAsync(
+ ListMaintenancesOptionalParameters parameters) {
Object localVarPostBody = null;
String filterPageId = parameters.filterPageId;
Integer pageOffset = parameters.pageOffset;
Integer pageLimit = parameters.pageLimit;
String include = parameters.include;
String filterStatus = parameters.filterStatus;
+ String sort = parameters.sort;
// create path and map variables
- String localVarPath = "/api/v2/statuspages/degradations";
+ String localVarPath = "/api/v2/statuspages/maintenances";
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap