diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index b02440dcf094..c837c2866c31 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1140,9 +1140,9 @@ components: schema: type: string PersonalAccessTokenID: - description: The ID of the personal access token. + description: The UUID of the personal access token. in: path - name: pat_id + name: pat_uuid required: true schema: example: "00000000-0000-1234-0000-000000000000" @@ -29288,6 +29288,11 @@ components: FullPersonalAccessTokenAttributes: description: Attributes of a full personal access token, including the token key. properties: + alias: + description: The alias (short identifier) of the personal access token. + example: "2H9MCNMBM8FQjQ16YucXkX" + readOnly: true + type: string created_at: description: Creation date of the personal access token. example: "2024-01-01T00:00:00+00:00" @@ -31093,7 +31098,7 @@ components: properties: org_site: description: The site of the organization. - example: "us1" + example: "datadoghq.com" type: string org_uuid: description: The UUID of the organization. @@ -51401,7 +51406,7 @@ components: type: string owner_org_site: description: The site of the organization that owns this org group. - example: "us1" + example: "datadoghq.com" type: string owner_org_uuid: description: The UUID of the organization that owns this org group. @@ -51507,7 +51512,7 @@ components: type: string org_site: description: The site of the member organization. - example: "us1" + example: "datadoghq.com" type: string org_uuid: description: The UUID of the member organization. @@ -51728,8 +51733,11 @@ components: example: value: "UTC" type: object - enforcement_tier: - $ref: "#/components/schemas/OrgGroupPolicyEnforcementTier" + enforced_at: + description: Timestamp when the policy was enforced. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string modified_at: description: Timestamp when the policy was last modified. example: "2024-01-15T10:30:00Z" @@ -51739,12 +51747,9 @@ components: description: The name of the policy. example: "monitor_timezone" type: string - policy_type: - $ref: "#/components/schemas/OrgGroupPolicyPolicyType" required: - policy_name - - policy_type - - enforcement_tier + - enforced_at - modified_at type: object OrgGroupPolicyConfigAttributes: @@ -51815,8 +51820,7 @@ components: x-enum-varnames: - ORG_GROUP_POLICY_CONFIGS OrgGroupPolicyCreateAttributes: - description: >- - Attributes for creating an org group policy. If `policy_type` or `enforcement_tier` are not provided, they default to `org_config` and `DEFAULT` respectively. + description: Attributes for creating an org group policy. properties: content: additionalProperties: {} @@ -51824,14 +51828,10 @@ components: example: value: "UTC" type: object - enforcement_tier: - $ref: "#/components/schemas/OrgGroupPolicyEnforcementTier" policy_name: description: The name of the policy. example: "monitor_timezone" type: string - policy_type: - $ref: "#/components/schemas/OrgGroupPolicyPolicyType" required: - policy_name - content @@ -51885,20 +51885,6 @@ components: - type - attributes type: object - OrgGroupPolicyEnforcementTier: - default: DEFAULT - description: >- - The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value. - enum: - - DEFAULT - - ENFORCE - - DELEGATE - example: DEFAULT - type: string - x-enum-varnames: - - DEFAULT - - ENFORCE - - DELEGATE OrgGroupPolicyListResponse: description: Response containing a list of org group policies. properties: @@ -51931,7 +51917,7 @@ components: type: string org_site: description: The site of the organization that has the override. - example: "us1" + example: "datadoghq.com" type: string org_uuid: description: The UUID of the organization that has the override. @@ -51949,7 +51935,7 @@ components: properties: org_site: description: The site of the organization. - example: "us1" + example: "datadoghq.com" type: string org_uuid: description: The UUID of the organization to grant the override. @@ -52065,12 +52051,11 @@ components: x-enum-varnames: - ORG_GROUP_POLICY_OVERRIDES OrgGroupPolicyOverrideUpdateAttributes: - description: >- - Attributes for updating a policy override. The `org_uuid` and `org_site` fields must match the existing override and cannot be changed. + description: Attributes for updating a policy override. properties: org_site: description: The site of the organization. - example: "us1" + example: "datadoghq.com" type: string org_uuid: description: The UUID of the organization. @@ -52106,16 +52091,6 @@ components: required: - data type: object - OrgGroupPolicyPolicyType: - default: org_config - description: >- - The type of the policy. Only `org_config` is supported, indicating a policy backed by an organization configuration setting. - enum: - - org_config - example: org_config - type: string - x-enum-varnames: - - ORG_CONFIG OrgGroupPolicyRelationshipToOne: description: Relationship to a single org group policy. properties: @@ -52184,8 +52159,6 @@ components: example: value: "UTC" type: object - enforcement_tier: - $ref: "#/components/schemas/OrgGroupPolicyEnforcementTier" type: object OrgGroupPolicyUpdateData: description: Data for updating an org group policy. @@ -53550,6 +53523,11 @@ components: PersonalAccessTokenAttributes: description: Attributes of a personal access token. properties: + alias: + description: The alias (short identifier) of the personal access token. + example: "2H9MCNMBM8FQjQ16YucXkX" + readOnly: true + type: string created_at: description: Creation date of the personal access token. example: "2024-01-01T00:00:00+00:00" @@ -78095,10 +78073,6 @@ components: description: Title of the user. nullable: true type: string - uuid: - description: UUID of the user. - readOnly: true - type: string verified: description: Whether the user is verified. type: boolean @@ -83198,6 +83172,14 @@ paths: requestBody: content: application/json: + examples: + default: + value: + data: + attributes: + user_ids: + - "00000000-0000-0000-0000-000000000000" + type: anonymize_users_request schema: $ref: "#/components/schemas/AnonymizeUsersRequest" required: true @@ -108470,7 +108452,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" org_name: "Acme Corp" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "f1e2d3c4-b5a6-7890-1234-567890abcdef" relationships: @@ -108528,7 +108510,7 @@ paths: data: attributes: orgs: - - org_site: "us1" + - org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" relationships: source_org_group: @@ -108555,7 +108537,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-16T14:00:00Z" org_name: "Acme Corp" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "f1e2d3c4-b5a6-7890-1234-567890abcdef" relationships: @@ -108620,7 +108602,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" org_name: "Acme Corp" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "f1e2d3c4-b5a6-7890-1234-567890abcdef" relationships: @@ -108701,7 +108683,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-16T14:00:00Z" org_name: "Acme Corp" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "f1e2d3c4-b5a6-7890-1234-567890abcdef" relationships: @@ -108769,10 +108751,9 @@ paths: - attributes: content: value: "UTC" - enforcement_tier: "DEFAULT" + enforced_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" policy_name: "monitor_timezone" - policy_type: "org_config" id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789" relationships: org_group: @@ -108828,9 +108809,7 @@ paths: attributes: content: value: "UTC" - enforcement_tier: "DEFAULT" policy_name: "monitor_timezone" - policy_type: "org_config" relationships: org_group: data: @@ -108851,10 +108830,9 @@ paths: attributes: content: value: "UTC" - enforcement_tier: "DEFAULT" + enforced_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" policy_name: "monitor_timezone" - policy_type: "org_config" id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789" relationships: org_group: @@ -108944,73 +108922,8 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - get: - description: Get a specific organization group policy by its ID. - operationId: GetOrgGroupPolicy - parameters: - - $ref: "#/components/parameters/OrgGroupPolicyId" - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - content: - value: "UTC" - enforcement_tier: "DEFAULT" - modified_at: "2024-01-15T10:30:00Z" - policy_name: "monitor_timezone" - policy_type: "org_config" - id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789" - relationships: - org_group: - data: - id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789" - type: org_groups - type: org_group_policies - schema: - $ref: "#/components/schemas/OrgGroupPolicyResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Get an org group policy - tags: [Org Groups] - "x-permission": - operator: OR - permissions: - - org_group_read - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). patch: - description: Update an existing organization group policy. + description: Update the content of an existing organization group policy. operationId: UpdateOrgGroupPolicy parameters: - $ref: "#/components/parameters/OrgGroupPolicyId" @@ -109024,7 +108937,6 @@ paths: attributes: content: value: "US/Eastern" - enforcement_tier: "ENFORCE" id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789" type: org_group_policies schema: @@ -109041,10 +108953,9 @@ paths: attributes: content: value: "US/Eastern" - enforcement_tier: "ENFORCE" + enforced_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-16T14:00:00Z" policy_name: "monitor_timezone" - policy_type: "org_config" id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789" relationships: org_group: @@ -109158,7 +109069,7 @@ paths: - attributes: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "9f8e7d6c-5b4a-3210-fedc-ba0987654321" relationships: @@ -109217,7 +109128,7 @@ paths: value: data: attributes: - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" relationships: org_group: @@ -109243,7 +109154,7 @@ paths: attributes: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "9f8e7d6c-5b4a-3210-fedc-ba0987654321" relationships: @@ -109338,73 +109249,6 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - get: - description: Get a specific organization group policy override by its ID. - operationId: GetOrgGroupPolicyOverride - parameters: - - $ref: "#/components/parameters/OrgGroupPolicyOverrideId" - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - created_at: "2024-01-15T10:30:00Z" - modified_at: "2024-01-15T10:30:00Z" - org_site: "us1" - org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" - id: "9f8e7d6c-5b4a-3210-fedc-ba0987654321" - relationships: - org_group: - data: - id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789" - type: org_groups - org_group_policy: - data: - id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789" - type: org_group_policies - type: org_group_policy_overrides - schema: - $ref: "#/components/schemas/OrgGroupPolicyOverrideResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Get an org group policy override - tags: [Org Groups] - "x-permission": - operator: OR - permissions: - - org_group_read - x-unstable: |- - **Note**: This endpoint is in Preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). patch: description: Update an existing organization group policy override. operationId: UpdateOrgGroupPolicyOverride @@ -109418,7 +109262,7 @@ paths: value: data: attributes: - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "9f8e7d6c-5b4a-3210-fedc-ba0987654321" type: org_group_policy_overrides @@ -109436,7 +109280,7 @@ paths: attributes: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-16T14:00:00Z" - org_site: "us1" + org_site: "datadoghq.com" org_uuid: "c3d4e5f6-a7b8-9012-cdef-012345678901" id: "9f8e7d6c-5b4a-3210-fedc-ba0987654321" relationships: @@ -109508,7 +109352,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" name: "My Org Group" - owner_org_site: "us1" + owner_org_site: "datadoghq.com" owner_org_uuid: "b2c3d4e5-f6a7-8901-bcde-f01234567890" id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789" type: org_groups @@ -109575,7 +109419,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" name: "My Org Group" - owner_org_site: "us1" + owner_org_site: "datadoghq.com" owner_org_uuid: "b2c3d4e5-f6a7-8901-bcde-f01234567890" id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789" type: org_groups @@ -109678,7 +109522,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-15T10:30:00Z" name: "My Org Group" - owner_org_site: "us1" + owner_org_site: "datadoghq.com" owner_org_uuid: "b2c3d4e5-f6a7-8901-bcde-f01234567890" id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789" type: org_groups @@ -109751,7 +109595,7 @@ paths: created_at: "2024-01-15T10:30:00Z" modified_at: "2024-01-16T14:00:00Z" name: "Updated Org Group Name" - owner_org_site: "us1" + owner_org_site: "datadoghq.com" owner_org_uuid: "b2c3d4e5-f6a7-8901-bcde-f01234567890" id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789" type: org_groups @@ -109919,7 +109763,7 @@ paths: operator: OR permissions: - user_app_keys - /api/v2/personal_access_tokens/{pat_id}: + /api/v2/personal_access_tokens/{pat_uuid}: delete: description: Revoke a specific personal access token. operationId: RevokePersonalAccessToken @@ -121498,7 +121342,7 @@ paths: operator: OR permissions: - service_account_write - /api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}: + /api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}: delete: description: Revoke a specific access token for a service account. operationId: RevokeServiceAccountAccessToken diff --git a/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/frozen.json b/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/frozen.json index b23defb961bc..f45262c1ba1f 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/frozen.json +++ b/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/frozen.json @@ -1 +1 @@ -"2026-04-16T20:03:06.304Z" +"2026-04-03T21:02:56.793Z" diff --git a/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/recording.har b/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/recording.har index c3a6669120b9..08ce56d903ce 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/recording.har +++ b/cassettes/v2/Service-Accounts_4018121712/Create-an-access-token-for-a-service-account-returns-Created-response_1042964283/recording.har @@ -1,5 +1,6 @@ { "log": { + "_recordingName": "Service Accounts/Create an access token for a service account returns \"Created\" response", "creator": { "comment": "persister:fs", "name": "Polly.JS", @@ -7,7 +8,7 @@ }, "entries": [ { - "_id": "f47bb188a2e6ba96a9a6a881be2e659e", + "_id": "567c34c3ae3c8785a73a27fcc9a742ba", "_order": 0, "cache": {}, "request": { @@ -31,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_an_access_token_for_a_service_account_returns_Created_response-1776369786@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_an_access_token_for_a_service_account_returns_Created_response-1775250176@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/service_accounts" @@ -41,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 746, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"498cce13-39cf-11f1-9928-be1871753dee\",\"attributes\":{\"uuid\":\"498cce13-39cf-11f1-9928-be1871753dee\",\"name\":null,\"handle\":\"498cce13-39cf-11f1-9928-be1871753dee\",\"created_at\":\"2026-04-16T20:03:08.017467+00:00\",\"modified_at\":\"2026-04-16T20:03:08.017467+00:00\",\"email\":\"test-create_an_access_token_for_a_service_account_returns_created_response-1776369786@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/ed167ebfacd06c99ea70d4c121f5a7f1?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"7d5e5ea9-2fa0-11f1-991f-62f4bfc595d0\",\"attributes\":{\"name\":null,\"handle\":\"7d5e5ea9-2fa0-11f1-991f-62f4bfc595d0\",\"created_at\":\"2026-04-03T21:02:56.980609+00:00\",\"modified_at\":\"2026-04-03T21:02:56.980609+00:00\",\"email\":\"test-create_an_access_token_for_a_service_account_returns_created_response-1775250176@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/1a703b50769c96d7b84a5470f474ef74?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" }, "cookies": [], "headers": [ @@ -50,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 689, + "headersSize": 688, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:07.804Z", - "time": 348 + "startedDateTime": "2026-04-03T21:02:56.794Z", + "time": 259 }, { - "_id": "6d806020455611833ebca80b6034dce9", + "_id": "c6adfa6b102761d3a8c2030c2ba28080", "_order": 0, "cache": {}, "request": { @@ -84,17 +85,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Create_an_access_token_for_a_service_account_returns_Created_response-1776369786\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Create_an_access_token_for_a_service_account_returns_Created_response-1775250176\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/498cce13-39cf-11f1-9928-be1871753dee/access_tokens" + "url": "https://api.datadoghq.com/api/v2/service_accounts/7d5e5ea9-2fa0-11f1-991f-62f4bfc595d0/access_tokens" }, "response": { - "bodySize": 510, + "bodySize": 537, "content": { "mimeType": "application/vnd.api+json", - "size": 510, - "text": "{\"data\":{\"id\":\"88337232-8552-4495-987c-1cfed567d461\",\"type\":\"personal_access_tokens\",\"attributes\":{\"created_at\":\"2026-04-16T20:03:08.381725456Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Create_an_access_token_for_a_service_account_returns_Created_response-1776369786\",\"public_portion\":\"ddpat_490SyfYQqhqnr008BTjQWn\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"498cce13-39cf-11f1-9928-be1871753dee\",\"type\":\"users\"}}}}}" + "size": 537, + "text": "{\"data\":{\"id\":\"6f2491f5-8c3f-45a3-962a-5f769b95e806\",\"type\":\"personal_access_tokens\",\"attributes\":{\"alias\":\"3NirNJ5Y2qB4Fmac8B4wnm\",\"created_at\":\"2026-04-03T21:02:57.288351972Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Create_an_access_token_for_a_service_account_returns_Created_response-1775250176\",\"public_portion\":\"3NirNJ5Y2qB4Fmac8B4wnm\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"7d5e5ea9-2fa0-11f1-991f-62f4bfc595d0\",\"type\":\"users\"}}}}}" }, "cookies": [], "headers": [ @@ -109,11 +110,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:08.161Z", - "time": 253 + "startedDateTime": "2026-04-03T21:02:57.059Z", + "time": 207 }, { - "_id": "9f6795a33733f1de83fa480c56c66320", + "_id": "09473a0acca978f1677a1a4f8ac133da", "_order": 0, "cache": {}, "request": { @@ -130,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/498cce13-39cf-11f1-9928-be1871753dee/access_tokens/88337232-8552-4495-987c-1cfed567d461" + "url": "https://api.datadoghq.com/api/v2/service_accounts/7d5e5ea9-2fa0-11f1-991f-62f4bfc595d0/access_tokens/6f2491f5-8c3f-45a3-962a-5f769b95e806" }, "response": { "bodySize": 0, @@ -146,11 +147,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:08.421Z", - "time": 247 + "startedDateTime": "2026-04-03T21:02:57.272Z", + "time": 161 }, { - "_id": "8fda343ec9208ee6219af8b36492a756", + "_id": "393e616cbf0575841cd30dad62ab2cff", "_order": 0, "cache": {}, "request": { @@ -167,7 +168,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/498cce13-39cf-11f1-9928-be1871753dee" + "url": "https://api.datadoghq.com/api/v2/users/7d5e5ea9-2fa0-11f1-991f-62f4bfc595d0" }, "response": { "bodySize": 0, @@ -183,12 +184,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:08.671Z", - "time": 435 + "startedDateTime": "2026-04-03T21:02:57.437Z", + "time": 828 } ], "pages": [], - "version": "1.2", - "_recordingName": "Service Accounts/Create an access token for a service account returns \"Created\" response" + "version": "1.2" } } diff --git a/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/frozen.json b/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/frozen.json index 1aa001d81bf5..b2a607dd8c4f 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/frozen.json +++ b/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/frozen.json @@ -1 +1 @@ -"2026-04-16T20:03:09.123Z" +"2026-04-03T21:03:03.500Z" diff --git a/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/recording.har b/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/recording.har index 2c0e47871c8a..1aa5cc128cfb 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/recording.har +++ b/cassettes/v2/Service-Accounts_4018121712/Get-an-access-token-for-a-service-account-returns-OK-response_3450780675/recording.har @@ -1,5 +1,6 @@ { "log": { + "_recordingName": "Service Accounts/Get an access token for a service account returns \"OK\" response", "creator": { "comment": "persister:fs", "name": "Polly.JS", @@ -7,7 +8,7 @@ }, "entries": [ { - "_id": "d077c285816609b6bafdac466b66d2ea", + "_id": "145227f547e335aa327f58dc2e4b258b", "_order": 0, "cache": {}, "request": { @@ -31,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1776369789@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1775250183@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/service_accounts" @@ -41,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 738, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"4a56376d-39cf-11f1-9a29-2eb65349fc01\",\"attributes\":{\"uuid\":\"4a56376d-39cf-11f1-9a29-2eb65349fc01\",\"name\":null,\"handle\":\"4a56376d-39cf-11f1-9a29-2eb65349fc01\",\"created_at\":\"2026-04-16T20:03:09.337439+00:00\",\"modified_at\":\"2026-04-16T20:03:09.337439+00:00\",\"email\":\"test-get_an_access_token_for_a_service_account_returns_ok_response-1776369789@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/7473377b9dced0689feddb50f5d82d29?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"8161ef90-2fa0-11f1-991f-62f4bfc595d0\",\"attributes\":{\"name\":null,\"handle\":\"8161ef90-2fa0-11f1-991f-62f4bfc595d0\",\"created_at\":\"2026-04-03T21:03:03.714879+00:00\",\"modified_at\":\"2026-04-03T21:03:03.714879+00:00\",\"email\":\"test-get_an_access_token_for_a_service_account_returns_ok_response-1775250183@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/bb3c6df0d99066bbe05cf7dff99b5561?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" }, "cookies": [], "headers": [ @@ -56,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:09.127Z", - "time": 336 + "startedDateTime": "2026-04-03T21:03:03.502Z", + "time": 293 }, { - "_id": "43c626108b63b6e6616225e0c9c01f18", + "_id": "fdccf2049c1e92e90008e334c10c3ed8", "_order": 0, "cache": {}, "request": { @@ -84,17 +85,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1776369789\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1775250183\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4a56376d-39cf-11f1-9a29-2eb65349fc01/access_tokens" + "url": "https://api.datadoghq.com/api/v2/service_accounts/8161ef90-2fa0-11f1-991f-62f4bfc595d0/access_tokens" }, "response": { - "bodySize": 502, + "bodySize": 529, "content": { "mimeType": "application/vnd.api+json", - "size": 502, - "text": "{\"data\":{\"id\":\"b84d8c2c-b88c-4f72-82ef-fc09dddd1153\",\"type\":\"personal_access_tokens\",\"attributes\":{\"created_at\":\"2026-04-16T20:03:09.695802251Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1776369789\",\"public_portion\":\"ddpat_5bm1hhcTKQzH22hPiJgkEN\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"4a56376d-39cf-11f1-9a29-2eb65349fc01\",\"type\":\"users\"}}}}}" + "size": 529, + "text": "{\"data\":{\"id\":\"f2362958-1e67-414b-985d-d3196afd9315\",\"type\":\"personal_access_tokens\",\"attributes\":{\"alias\":\"7N2tUOwxIjSF8QziOBIpVd\",\"created_at\":\"2026-04-03T21:03:04.002376467Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1775250183\",\"public_portion\":\"7N2tUOwxIjSF8QziOBIpVd\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"8161ef90-2fa0-11f1-991f-62f4bfc595d0\",\"type\":\"users\"}}}}}" }, "cookies": [], "headers": [ @@ -109,11 +110,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:09.467Z", - "time": 267 + "startedDateTime": "2026-04-03T21:03:03.800Z", + "time": 182 }, { - "_id": "421343475af4f8df719356b4cfa2f4f0", + "_id": "8e65c5a64047d080cfc9d5fed107089c", "_order": 0, "cache": {}, "request": { @@ -130,14 +131,14 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4a56376d-39cf-11f1-9a29-2eb65349fc01/access_tokens/b84d8c2c-b88c-4f72-82ef-fc09dddd1153" + "url": "https://api.datadoghq.com/api/v2/service_accounts/8161ef90-2fa0-11f1-991f-62f4bfc595d0/access_tokens/f2362958-1e67-414b-985d-d3196afd9315" }, "response": { - "bodySize": 445, + "bodySize": 472, "content": { "mimeType": "application/vnd.api+json", - "size": 445, - "text": "{\"data\":{\"id\":\"b84d8c2c-b88c-4f72-82ef-fc09dddd1153\",\"type\":\"personal_access_tokens\",\"attributes\":{\"created_at\":\"2026-04-16T20:03:09.695802Z\",\"expires_at\":null,\"last_used_at\":null,\"name\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1776369789\",\"public_portion\":\"ddpat_5bm1hhcTKQzH22hPiJgkEN\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"4a56376d-39cf-11f1-9a29-2eb65349fc01\",\"type\":\"users\"}}}}}" + "size": 472, + "text": "{\"data\":{\"id\":\"f2362958-1e67-414b-985d-d3196afd9315\",\"type\":\"personal_access_tokens\",\"attributes\":{\"alias\":\"7N2tUOwxIjSF8QziOBIpVd\",\"created_at\":\"2026-04-03T21:03:04.002376Z\",\"expires_at\":null,\"last_used_at\":null,\"name\":\"Test-Get_an_access_token_for_a_service_account_returns_OK_response-1775250183\",\"public_portion\":\"7N2tUOwxIjSF8QziOBIpVd\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"8161ef90-2fa0-11f1-991f-62f4bfc595d0\",\"type\":\"users\"}}}}}" }, "cookies": [], "headers": [ @@ -152,11 +153,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2026-04-16T20:03:09.740Z", - "time": 253 + "startedDateTime": "2026-04-03T21:03:03.991Z", + "time": 166 }, { - "_id": "207dc4ce726fbb5df2ec232ddf8d8fb9", + "_id": "c26607f1bdf6dc7e1abeba1d99b0d986", "_order": 0, "cache": {}, "request": { @@ -173,7 +174,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4a56376d-39cf-11f1-9a29-2eb65349fc01/access_tokens/b84d8c2c-b88c-4f72-82ef-fc09dddd1153" + "url": "https://api.datadoghq.com/api/v2/service_accounts/8161ef90-2fa0-11f1-991f-62f4bfc595d0/access_tokens/f2362958-1e67-414b-985d-d3196afd9315" }, "response": { "bodySize": 0, @@ -189,11 +190,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:09.999Z", - "time": 222 + "startedDateTime": "2026-04-03T21:03:04.161Z", + "time": 141 }, { - "_id": "983430383a18ef139153732118bbfdc9", + "_id": "18d29cd2ed0567c0ce3fcd340445e82f", "_order": 0, "cache": {}, "request": { @@ -210,7 +211,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/4a56376d-39cf-11f1-9a29-2eb65349fc01" + "url": "https://api.datadoghq.com/api/v2/users/8161ef90-2fa0-11f1-991f-62f4bfc595d0" }, "response": { "bodySize": 0, @@ -226,12 +227,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:10.223Z", - "time": 379 + "startedDateTime": "2026-04-03T21:03:04.306Z", + "time": 293 } ], "pages": [], - "version": "1.2", - "_recordingName": "Service Accounts/Get an access token for a service account returns \"OK\" response" + "version": "1.2" } } diff --git a/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/frozen.json b/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/frozen.json index 8d1f4c087717..9ff4ef642118 100644 --- a/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/frozen.json +++ b/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/frozen.json @@ -1 +1 @@ -"2026-04-16T20:03:10.610Z" +"2026-04-03T21:03:09.026Z" diff --git a/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/recording.har b/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/recording.har index 65947a284a04..a999ff81fb84 100644 --- a/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/recording.har +++ b/cassettes/v2/Service-Accounts_4018121712/List-access-tokens-for-a-service-account-returns-OK-response_2179051883/recording.har @@ -1,5 +1,6 @@ { "log": { + "_recordingName": "Service Accounts/List access tokens for a service account returns \"OK\" response", "creator": { "comment": "persister:fs", "name": "Polly.JS", @@ -7,7 +8,7 @@ }, "entries": [ { - "_id": "315fbb2a1c6840672ddf70846fbd17d2", + "_id": "15159bebc452f76cc58b3dd52e769af5", "_order": 0, "cache": {}, "request": { @@ -31,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-List_access_tokens_for_a_service_account_returns_OK_response-1776369790@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-List_access_tokens_for_a_service_account_returns_OK_response-1775250189@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/service_accounts" @@ -41,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 737, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"4b3b0a2c-39cf-11f1-bf73-ce6d1c25b9b4\",\"attributes\":{\"uuid\":\"4b3b0a2c-39cf-11f1-bf73-ce6d1c25b9b4\",\"name\":null,\"handle\":\"4b3b0a2c-39cf-11f1-bf73-ce6d1c25b9b4\",\"created_at\":\"2026-04-16T20:03:10.837056+00:00\",\"modified_at\":\"2026-04-16T20:03:10.837056+00:00\",\"email\":\"test-list_access_tokens_for_a_service_account_returns_ok_response-1776369790@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/0a5772e4c2381e3c1061e55142e2281a?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"84a7b33b-2fa0-11f1-96b6-7a9b8860a1d7\",\"attributes\":{\"name\":null,\"handle\":\"84a7b33b-2fa0-11f1-96b6-7a9b8860a1d7\",\"created_at\":\"2026-04-03T21:03:09.205232+00:00\",\"modified_at\":\"2026-04-03T21:03:09.205232+00:00\",\"email\":\"test-list_access_tokens_for_a_service_account_returns_ok_response-1775250189@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/816e106f74328dd4c20e98c116a9edeb?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}" }, "cookies": [], "headers": [ @@ -56,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:10.613Z", - "time": 346 + "startedDateTime": "2026-04-03T21:03:09.027Z", + "time": 245 }, { - "_id": "e891763083f67504ebf6c0d63c473dbc", + "_id": "fcd67808c945bd4d6169075b41c61c92", "_order": 0, "cache": {}, "request": { @@ -73,11 +74,11 @@ "value": "application/json" } ], - "headersSize": 577, + "headersSize": 578, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4b3b0a2c-39cf-11f1-bf73-ce6d1c25b9b4/access_tokens" + "url": "https://api.datadoghq.com/api/v2/service_accounts/84a7b33b-2fa0-11f1-96b6-7a9b8860a1d7/access_tokens" }, "response": { "bodySize": 54, @@ -99,11 +100,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2026-04-16T20:03:10.964Z", - "time": 250 + "startedDateTime": "2026-04-03T21:03:09.276Z", + "time": 149 }, { - "_id": "03782f84f04fb21002b4e3f5ca9577df", + "_id": "29e3fcdb4d74bd98edbd15ce7445207c", "_order": 0, "cache": {}, "request": { @@ -116,11 +117,11 @@ "value": "*/*" } ], - "headersSize": 523, + "headersSize": 524, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/4b3b0a2c-39cf-11f1-bf73-ce6d1c25b9b4" + "url": "https://api.datadoghq.com/api/v2/users/84a7b33b-2fa0-11f1-96b6-7a9b8860a1d7" }, "response": { "bodySize": 0, @@ -136,12 +137,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:11.219Z", - "time": 1705 + "startedDateTime": "2026-04-03T21:03:09.431Z", + "time": 316 } ], "pages": [], - "version": "1.2", - "_recordingName": "Service Accounts/List access tokens for a service account returns \"OK\" response" + "version": "1.2" } } diff --git a/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/frozen.json b/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/frozen.json index e8dd69608b98..9c19423f7c40 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/frozen.json +++ b/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/frozen.json @@ -1 +1 @@ -"2026-04-16T20:03:12.932Z" +"2026-04-03T21:03:10.520Z" diff --git a/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/recording.har b/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/recording.har index e787619839f6..38122f0bba02 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/recording.har +++ b/cassettes/v2/Service-Accounts_4018121712/Revoke-an-access-token-for-a-service-account-returns-No-Content-response_720352087/recording.har @@ -1,5 +1,6 @@ { "log": { + "_recordingName": "Service Accounts/Revoke an access token for a service account returns \"No Content\" response", "creator": { "comment": "persister:fs", "name": "Polly.JS", @@ -7,7 +8,7 @@ }, "entries": [ { - "_id": "feae69d6cf824560fc06fba6fe8c4884", + "_id": "8e80ce1ebaea0855a5165204026b7cb0", "_order": 0, "cache": {}, "request": { @@ -31,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Revoke_an_access_token_for_a_service_account_returns_No_Content_response-1776369792@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Revoke_an_access_token_for_a_service_account_returns_No_Content_response-1775250190@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/service_accounts" @@ -41,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 749, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"4c99fbee-39cf-11f1-beb2-cad70c641dfa\",\"attributes\":{\"uuid\":\"4c99fbee-39cf-11f1-beb2-cad70c641dfa\",\"name\":null,\"handle\":\"4c99fbee-39cf-11f1-beb2-cad70c641dfa\",\"created_at\":\"2026-04-16T20:03:13.136998+00:00\",\"modified_at\":\"2026-04-16T20:03:13.136998+00:00\",\"email\":\"test-revoke_an_access_token_for_a_service_account_returns_no_content_response-1776369792@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/7586d09a6a08e32a963f425a34463a4d?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"860878b5-2fa0-11f1-991f-62f4bfc595d0\",\"attributes\":{\"name\":null,\"handle\":\"860878b5-2fa0-11f1-991f-62f4bfc595d0\",\"created_at\":\"2026-04-03T21:03:11.517157+00:00\",\"modified_at\":\"2026-04-03T21:03:11.517157+00:00\",\"email\":\"test-revoke_an_access_token_for_a_service_account_returns_no_content_response-1775250190@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/7d18813f3cbc71a5e46b1184fc3ad8fb?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" }, "cookies": [], "headers": [ @@ -56,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:12.935Z", - "time": 330 + "startedDateTime": "2026-04-03T21:03:10.522Z", + "time": 1066 }, { - "_id": "8a5a8becf645edef33c1e3ea927b06ff", + "_id": "0f38e844717192c4d5571f9a6b65056c", "_order": 0, "cache": {}, "request": { @@ -78,23 +79,23 @@ "value": "application/json" } ], - "headersSize": 632, + "headersSize": 633, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Revoke_an_access_token_for_a_service_account_returns_No_Content_response-1776369792\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Revoke_an_access_token_for_a_service_account_returns_No_Content_response-1775250190\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4c99fbee-39cf-11f1-beb2-cad70c641dfa/access_tokens" + "url": "https://api.datadoghq.com/api/v2/service_accounts/860878b5-2fa0-11f1-991f-62f4bfc595d0/access_tokens" }, "response": { - "bodySize": 513, + "bodySize": 540, "content": { "mimeType": "application/vnd.api+json", - "size": 513, - "text": "{\"data\":{\"id\":\"a5b5e3c3-2b58-448b-a1b1-5c97f16837a6\",\"type\":\"personal_access_tokens\",\"attributes\":{\"created_at\":\"2026-04-16T20:03:13.505344652Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Revoke_an_access_token_for_a_service_account_returns_No_Content_response-1776369792\",\"public_portion\":\"ddpat_52grBIAi4zKGY0uxhjLVVW\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"4c99fbee-39cf-11f1-beb2-cad70c641dfa\",\"type\":\"users\"}}}}}" + "size": 540, + "text": "{\"data\":{\"id\":\"7346d75b-83f3-48ba-9186-899fc80bce16\",\"type\":\"personal_access_tokens\",\"attributes\":{\"alias\":\"3VWUVmuRsjFIKue2Uq9ii6\",\"created_at\":\"2026-04-03T21:03:11.782016283Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Revoke_an_access_token_for_a_service_account_returns_No_Content_response-1775250190\",\"public_portion\":\"3VWUVmuRsjFIKue2Uq9ii6\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"860878b5-2fa0-11f1-991f-62f4bfc595d0\",\"type\":\"users\"}}}}}" }, "cookies": [], "headers": [ @@ -109,11 +110,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:13.270Z", - "time": 274 + "startedDateTime": "2026-04-03T21:03:11.591Z", + "time": 168 }, { - "_id": "9f2fc74e4b0e839a3ec09da4a2a8ae4b", + "_id": "69600d2698fcc50dde4a9a91c7a31bbe", "_order": 0, "cache": {}, "request": { @@ -126,11 +127,11 @@ "value": "*/*" } ], - "headersSize": 605, + "headersSize": 606, "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4c99fbee-39cf-11f1-beb2-cad70c641dfa/access_tokens/a5b5e3c3-2b58-448b-a1b1-5c97f16837a6" + "url": "https://api.datadoghq.com/api/v2/service_accounts/860878b5-2fa0-11f1-991f-62f4bfc595d0/access_tokens/7346d75b-83f3-48ba-9186-899fc80bce16" }, "response": { "bodySize": 0, @@ -146,11 +147,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:13.549Z", - "time": 240 + "startedDateTime": "2026-04-03T21:03:11.762Z", + "time": 199 }, { - "_id": "9f2fc74e4b0e839a3ec09da4a2a8ae4b", + "_id": "69600d2698fcc50dde4a9a91c7a31bbe", "_order": 1, "cache": {}, "request": { @@ -167,7 +168,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4c99fbee-39cf-11f1-beb2-cad70c641dfa/access_tokens/a5b5e3c3-2b58-448b-a1b1-5c97f16837a6" + "url": "https://api.datadoghq.com/api/v2/service_accounts/860878b5-2fa0-11f1-991f-62f4bfc595d0/access_tokens/7346d75b-83f3-48ba-9186-899fc80bce16" }, "response": { "bodySize": 0, @@ -183,11 +184,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:13.794Z", - "time": 218 + "startedDateTime": "2026-04-03T21:03:11.968Z", + "time": 190 }, { - "_id": "994e08b8d361e7d6a7a28323e62d9c95", + "_id": "6877b2e2ef9429e486b5baf7800f86bd", "_order": 0, "cache": {}, "request": { @@ -204,7 +205,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/4c99fbee-39cf-11f1-beb2-cad70c641dfa" + "url": "https://api.datadoghq.com/api/v2/users/860878b5-2fa0-11f1-991f-62f4bfc595d0" }, "response": { "bodySize": 0, @@ -220,12 +221,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:14.016Z", - "time": 503 + "startedDateTime": "2026-04-03T21:03:12.161Z", + "time": 332 } ], "pages": [], - "version": "1.2", - "_recordingName": "Service Accounts/Revoke an access token for a service account returns \"No Content\" response" + "version": "1.2" } } diff --git a/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/frozen.json b/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/frozen.json index df188030778a..bad3066d8976 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/frozen.json +++ b/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/frozen.json @@ -1 +1 @@ -"2026-04-16T20:03:14.527Z" +"2026-04-03T21:03:12.499Z" diff --git a/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/recording.har b/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/recording.har index 9957cbf90369..fd95b784c8b5 100644 --- a/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/recording.har +++ b/cassettes/v2/Service-Accounts_4018121712/Update-an-access-token-for-a-service-account-returns-OK-response_2145625972/recording.har @@ -1,5 +1,6 @@ { "log": { + "_recordingName": "Service Accounts/Update an access token for a service account returns \"OK\" response", "creator": { "comment": "persister:fs", "name": "Polly.JS", @@ -7,7 +8,7 @@ }, "entries": [ { - "_id": "fcac50ec362baf119f232eea03a03b40", + "_id": "284472d599737d0e2c046ac82d23b165", "_order": 0, "cache": {}, "request": { @@ -31,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1776369794@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1775250192@datadoghq.com\",\"service_account\":true,\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/service_accounts" @@ -41,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 741, - "text": "{\"data\":{\"type\":\"users\",\"id\":\"4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4\",\"attributes\":{\"uuid\":\"4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4\",\"name\":null,\"handle\":\"4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4\",\"created_at\":\"2026-04-16T20:03:14.742691+00:00\",\"modified_at\":\"2026-04-16T20:03:14.742691+00:00\",\"email\":\"test-update_an_access_token_for_a_service_account_returns_ok_response-1776369794@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/05aacae415f13819561258b03c973881?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"86bdf0d7-2fa0-11f1-991f-62f4bfc595d0\",\"attributes\":{\"name\":null,\"handle\":\"86bdf0d7-2fa0-11f1-991f-62f4bfc595d0\",\"created_at\":\"2026-04-03T21:03:12.706435+00:00\",\"modified_at\":\"2026-04-03T21:03:12.706435+00:00\",\"email\":\"test-update_an_access_token_for_a_service_account_returns_ok_response-1775250192@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/8ef25c203ebdbe5e11acb74bd99ba7da?s=48&d=retro\",\"title\":\"user title\",\"verified\":true,\"service_account\":true,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Active\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" }, "cookies": [], "headers": [ @@ -56,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:14.529Z", - "time": 355 + "startedDateTime": "2026-04-03T21:03:12.503Z", + "time": 280 }, { - "_id": "f623cff46c3a0e8371be452b054aad18", + "_id": "00c32353a37b6c00e2675c108c52d533", "_order": 0, "cache": {}, "request": { @@ -84,17 +85,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1776369794\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1775250192\",\"scopes\":[\"dashboards_read\"]},\"type\":\"personal_access_tokens\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4/access_tokens" + "url": "https://api.datadoghq.com/api/v2/service_accounts/86bdf0d7-2fa0-11f1-991f-62f4bfc595d0/access_tokens" }, "response": { - "bodySize": 505, + "bodySize": 532, "content": { "mimeType": "application/vnd.api+json", - "size": 505, - "text": "{\"data\":{\"id\":\"eafa3dd9-430d-4075-a183-63171c7f3de5\",\"type\":\"personal_access_tokens\",\"attributes\":{\"created_at\":\"2026-04-16T20:03:15.138533237Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxXxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1776369794\",\"public_portion\":\"ddpat_79OZ2nUHcB3McO399ZaVVt\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4\",\"type\":\"users\"}}}}}" + "size": 532, + "text": "{\"data\":{\"id\":\"9a7d27cc-4969-4a57-990c-03c23a9f2adc\",\"type\":\"personal_access_tokens\",\"attributes\":{\"alias\":\"4hW0tyOpjf5Dj84mZaXqwe\",\"created_at\":\"2026-04-03T21:03:12.978132411Z\",\"expires_at\":null,\"key\":\"xxxxx_xxxxxxxxxxxxxxxxxxXxxx_xxxxxXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1775250192\",\"public_portion\":\"4hW0tyOpjf5Dj84mZaXqwe\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"86bdf0d7-2fa0-11f1-991f-62f4bfc595d0\",\"type\":\"users\"}}}}}" }, "cookies": [], "headers": [ @@ -109,11 +110,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2026-04-16T20:03:14.889Z", - "time": 282 + "startedDateTime": "2026-04-03T21:03:12.787Z", + "time": 167 }, { - "_id": "10f625153f2fdceb9e2f46e87cf0e500", + "_id": "601591e122a4cbbd2ab8729d01a9e7bb", "_order": 0, "cache": {}, "request": { @@ -137,17 +138,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1776369794-updated\"},\"id\":\"eafa3dd9-430d-4075-a183-63171c7f3de5\",\"type\":\"personal_access_tokens\"}}" + "text": "{\"data\":{\"attributes\":{\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1775250192-updated\"},\"id\":\"9a7d27cc-4969-4a57-990c-03c23a9f2adc\",\"type\":\"personal_access_tokens\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4/access_tokens/eafa3dd9-430d-4075-a183-63171c7f3de5" + "url": "https://api.datadoghq.com/api/v2/service_accounts/86bdf0d7-2fa0-11f1-991f-62f4bfc595d0/access_tokens/9a7d27cc-4969-4a57-990c-03c23a9f2adc" }, "response": { - "bodySize": 500, + "bodySize": 527, "content": { "mimeType": "application/vnd.api+json", - "size": 500, - "text": "{\"data\":{\"id\":\"eafa3dd9-430d-4075-a183-63171c7f3de5\",\"type\":\"personal_access_tokens\",\"attributes\":{\"created_at\":\"2026-04-16T20:03:15.138533Z\",\"expires_at\":null,\"last_used_at\":null,\"modified_at\":\"2026-04-16T20:03:15.375809Z\",\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1776369794-updated\",\"public_portion\":\"ddpat_79OZ2nUHcB3McO399ZaVVt\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4\",\"type\":\"users\"}}}}}" + "size": 527, + "text": "{\"data\":{\"id\":\"9a7d27cc-4969-4a57-990c-03c23a9f2adc\",\"type\":\"personal_access_tokens\",\"attributes\":{\"alias\":\"4hW0tyOpjf5Dj84mZaXqwe\",\"created_at\":\"2026-04-03T21:03:12.978132Z\",\"expires_at\":null,\"last_used_at\":null,\"modified_at\":\"2026-04-03T21:03:13.152078Z\",\"name\":\"Test-Update_an_access_token_for_a_service_account_returns_OK_response-1775250192-updated\",\"public_portion\":\"4hW0tyOpjf5Dj84mZaXqwe\",\"scopes\":[\"dashboards_read\"]},\"relationships\":{\"owned_by\":{\"data\":{\"id\":\"86bdf0d7-2fa0-11f1-991f-62f4bfc595d0\",\"type\":\"users\"}}}}}" }, "cookies": [], "headers": [ @@ -162,11 +163,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2026-04-16T20:03:15.177Z", - "time": 237 + "startedDateTime": "2026-04-03T21:03:12.959Z", + "time": 178 }, { - "_id": "ade5368b108f866d88036d4c5735ba3c", + "_id": "d69fc8d66af56d67b24912a17d3fc28f", "_order": 0, "cache": {}, "request": { @@ -183,7 +184,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/service_accounts/4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4/access_tokens/eafa3dd9-430d-4075-a183-63171c7f3de5" + "url": "https://api.datadoghq.com/api/v2/service_accounts/86bdf0d7-2fa0-11f1-991f-62f4bfc595d0/access_tokens/9a7d27cc-4969-4a57-990c-03c23a9f2adc" }, "response": { "bodySize": 0, @@ -199,11 +200,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:15.419Z", - "time": 240 + "startedDateTime": "2026-04-03T21:03:13.142Z", + "time": 159 }, { - "_id": "a3dce74c505e2fbbb31aa8b86157dc12", + "_id": "96de1c9caa071667ed8e5edd9be98b5e", "_order": 0, "cache": {}, "request": { @@ -220,7 +221,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/4d8efdef-39cf-11f1-bf73-ce6d1c25b9b4" + "url": "https://api.datadoghq.com/api/v2/users/86bdf0d7-2fa0-11f1-991f-62f4bfc595d0" }, "response": { "bodySize": 0, @@ -236,12 +237,11 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2026-04-16T20:03:15.663Z", - "time": 369 + "startedDateTime": "2026-04-03T21:03:13.304Z", + "time": 377 } ], "pages": [], - "version": "1.2", - "_recordingName": "Service Accounts/Update an access token for a service account returns \"OK\" response" + "version": "1.2" } } diff --git a/examples/v2/key-management/GetPersonalAccessToken.ts b/examples/v2/key-management/GetPersonalAccessToken.ts index c55656f5c815..2252bcf5d029 100644 --- a/examples/v2/key-management/GetPersonalAccessToken.ts +++ b/examples/v2/key-management/GetPersonalAccessToken.ts @@ -12,7 +12,7 @@ const PERSONAL_ACCESS_TOKEN_DATA_ID = process.env .PERSONAL_ACCESS_TOKEN_DATA_ID as string; const params: v2.KeyManagementApiGetPersonalAccessTokenRequest = { - patId: PERSONAL_ACCESS_TOKEN_DATA_ID, + patUuid: PERSONAL_ACCESS_TOKEN_DATA_ID, }; apiInstance diff --git a/examples/v2/key-management/RevokePersonalAccessToken.ts b/examples/v2/key-management/RevokePersonalAccessToken.ts index e7b694a4563c..afdb8a347bd2 100644 --- a/examples/v2/key-management/RevokePersonalAccessToken.ts +++ b/examples/v2/key-management/RevokePersonalAccessToken.ts @@ -12,7 +12,7 @@ const PERSONAL_ACCESS_TOKEN_DATA_ID = process.env .PERSONAL_ACCESS_TOKEN_DATA_ID as string; const params: v2.KeyManagementApiRevokePersonalAccessTokenRequest = { - patId: PERSONAL_ACCESS_TOKEN_DATA_ID, + patUuid: PERSONAL_ACCESS_TOKEN_DATA_ID, }; apiInstance diff --git a/examples/v2/key-management/UpdatePersonalAccessToken.ts b/examples/v2/key-management/UpdatePersonalAccessToken.ts index c9dbaca7dee9..2351a214a3a0 100644 --- a/examples/v2/key-management/UpdatePersonalAccessToken.ts +++ b/examples/v2/key-management/UpdatePersonalAccessToken.ts @@ -21,7 +21,7 @@ const params: v2.KeyManagementApiUpdatePersonalAccessTokenRequest = { }, }, }, - patId: PERSONAL_ACCESS_TOKEN_DATA_ID, + patUuid: PERSONAL_ACCESS_TOKEN_DATA_ID, }; apiInstance diff --git a/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.ts b/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.ts index 1ce5bd7f9917..d5b1fec0c2bb 100644 --- a/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.ts +++ b/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.ts @@ -14,7 +14,7 @@ const params: v2.OrgGroupsApiBulkUpdateOrgGroupMembershipsRequest = { attributes: { orgs: [ { - orgSite: "us1", + orgSite: "datadoghq.com", orgUuid: "c3d4e5f6-a7b8-9012-cdef-012345678901", }, ], diff --git a/examples/v2/org-groups/CreateOrgGroupPolicy.ts b/examples/v2/org-groups/CreateOrgGroupPolicy.ts index d01c5c2eea73..685ceb1799be 100644 --- a/examples/v2/org-groups/CreateOrgGroupPolicy.ts +++ b/examples/v2/org-groups/CreateOrgGroupPolicy.ts @@ -15,9 +15,7 @@ const params: v2.OrgGroupsApiCreateOrgGroupPolicyRequest = { content: { value: "UTC", }, - enforcementTier: "DEFAULT", policyName: "monitor_timezone", - policyType: "org_config", }, relationships: { orgGroup: { diff --git a/examples/v2/org-groups/CreateOrgGroupPolicyOverride.ts b/examples/v2/org-groups/CreateOrgGroupPolicyOverride.ts index e94d9fac2af4..8ff5c289bc5e 100644 --- a/examples/v2/org-groups/CreateOrgGroupPolicyOverride.ts +++ b/examples/v2/org-groups/CreateOrgGroupPolicyOverride.ts @@ -12,7 +12,7 @@ const params: v2.OrgGroupsApiCreateOrgGroupPolicyOverrideRequest = { body: { data: { attributes: { - orgSite: "us1", + orgSite: "datadoghq.com", orgUuid: "c3d4e5f6-a7b8-9012-cdef-012345678901", }, relationships: { diff --git a/examples/v2/org-groups/GetOrgGroupPolicy.ts b/examples/v2/org-groups/GetOrgGroupPolicy.ts deleted file mode 100644 index b3c1d32be5e2..000000000000 --- a/examples/v2/org-groups/GetOrgGroupPolicy.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get an org group policy returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getOrgGroupPolicy"] = true; -const apiInstance = new v2.OrgGroupsApi(configuration); - -const params: v2.OrgGroupsApiGetOrgGroupPolicyRequest = { - orgGroupPolicyId: "1a2b3c4d-5e6f-7890-abcd-ef0123456789", -}; - -apiInstance - .getOrgGroupPolicy(params) - .then((data: v2.OrgGroupPolicyResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/org-groups/GetOrgGroupPolicyOverride.ts b/examples/v2/org-groups/GetOrgGroupPolicyOverride.ts deleted file mode 100644 index 3cc17223560d..000000000000 --- a/examples/v2/org-groups/GetOrgGroupPolicyOverride.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Get an org group policy override returns "OK" response - */ - -import { client, v2 } from "@datadog/datadog-api-client"; - -const configuration = client.createConfiguration(); -configuration.unstableOperations["v2.getOrgGroupPolicyOverride"] = true; -const apiInstance = new v2.OrgGroupsApi(configuration); - -const params: v2.OrgGroupsApiGetOrgGroupPolicyOverrideRequest = { - orgGroupPolicyOverrideId: "9f8e7d6c-5b4a-3210-fedc-ba0987654321", -}; - -apiInstance - .getOrgGroupPolicyOverride(params) - .then((data: v2.OrgGroupPolicyOverrideResponse) => { - console.log( - "API called successfully. Returned data: " + JSON.stringify(data) - ); - }) - .catch((error: any) => console.error(error)); diff --git a/examples/v2/org-groups/UpdateOrgGroupPolicy.ts b/examples/v2/org-groups/UpdateOrgGroupPolicy.ts index 9aa0ee43d23b..1fa08bf656d4 100644 --- a/examples/v2/org-groups/UpdateOrgGroupPolicy.ts +++ b/examples/v2/org-groups/UpdateOrgGroupPolicy.ts @@ -15,7 +15,6 @@ const params: v2.OrgGroupsApiUpdateOrgGroupPolicyRequest = { content: { value: "UTC", }, - enforcementTier: "DEFAULT", }, id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789", type: "org_group_policies", diff --git a/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.ts b/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.ts index 88f911248dfc..4a508ed15e1a 100644 --- a/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.ts +++ b/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.ts @@ -12,7 +12,7 @@ const params: v2.OrgGroupsApiUpdateOrgGroupPolicyOverrideRequest = { body: { data: { attributes: { - orgSite: "us1", + orgSite: "datadoghq.com", orgUuid: "c3d4e5f6-a7b8-9012-cdef-012345678901", }, id: "9f8e7d6c-5b4a-3210-fedc-ba0987654321", diff --git a/examples/v2/service-accounts/GetServiceAccountAccessToken.ts b/examples/v2/service-accounts/GetServiceAccountAccessToken.ts index a73ea3d7e4b2..7b06c25aab76 100644 --- a/examples/v2/service-accounts/GetServiceAccountAccessToken.ts +++ b/examples/v2/service-accounts/GetServiceAccountAccessToken.ts @@ -17,7 +17,7 @@ const SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID = process.env const params: v2.ServiceAccountsApiGetServiceAccountAccessTokenRequest = { serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, - patId: SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, + patUuid: SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, }; apiInstance diff --git a/examples/v2/service-accounts/RevokeServiceAccountAccessToken.ts b/examples/v2/service-accounts/RevokeServiceAccountAccessToken.ts index 66d3e6b5199d..ce7a45ab1522 100644 --- a/examples/v2/service-accounts/RevokeServiceAccountAccessToken.ts +++ b/examples/v2/service-accounts/RevokeServiceAccountAccessToken.ts @@ -17,7 +17,7 @@ const SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID = process.env const params: v2.ServiceAccountsApiRevokeServiceAccountAccessTokenRequest = { serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, - patId: SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, + patUuid: SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, }; apiInstance diff --git a/examples/v2/service-accounts/UpdateServiceAccountAccessToken.ts b/examples/v2/service-accounts/UpdateServiceAccountAccessToken.ts index 8ee1403d496f..858254488ad8 100644 --- a/examples/v2/service-accounts/UpdateServiceAccountAccessToken.ts +++ b/examples/v2/service-accounts/UpdateServiceAccountAccessToken.ts @@ -26,7 +26,7 @@ const params: v2.ServiceAccountsApiUpdateServiceAccountAccessTokenRequest = { }, }, serviceAccountId: SERVICE_ACCOUNT_USER_DATA_ID, - patId: SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, + patUuid: SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, }; apiInstance diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index 32665d096e21..770e45a57e62 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -3494,21 +3494,21 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "operationResponseType": "PersonalAccessTokenCreateResponse", }, "v2.GetPersonalAccessToken": { - "patId": { + "patUuid": { "type": "string", "format": "", }, "operationResponseType": "PersonalAccessTokenResponse", }, "v2.RevokePersonalAccessToken": { - "patId": { + "patUuid": { "type": "string", "format": "", }, "operationResponseType": "{}", }, "v2.UpdatePersonalAccessToken": { - "patId": { + "patUuid": { "type": "string", "format": "", }, @@ -9759,13 +9759,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "OrgGroupPolicyResponse", }, - "v2.GetOrgGroupPolicy": { - "orgGroupPolicyId": { - "type": "string", - "format": "uuid", - }, - "operationResponseType": "OrgGroupPolicyResponse", - }, "v2.DeleteOrgGroupPolicy": { "orgGroupPolicyId": { "type": "string", @@ -9817,13 +9810,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "OrgGroupPolicyOverrideResponse", }, - "v2.GetOrgGroupPolicyOverride": { - "orgGroupPolicyOverrideId": { - "type": "string", - "format": "uuid", - }, - "operationResponseType": "OrgGroupPolicyOverrideResponse", - }, "v2.DeleteOrgGroupPolicyOverride": { "orgGroupPolicyOverrideId": { "type": "string", @@ -11355,7 +11341,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, - "patId": { + "patUuid": { "type": "string", "format": "", }, @@ -11366,7 +11352,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, - "patId": { + "patUuid": { "type": "string", "format": "", }, @@ -11377,7 +11363,7 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "type": "string", "format": "", }, - "patId": { + "patUuid": { "type": "string", "format": "", }, diff --git a/features/v2/key_management.feature b/features/v2/key_management.feature index 365c53ed7c27..6c4648455625 100644 --- a/features/v2/key_management.feature +++ b/features/v2/key_management.feature @@ -221,7 +221,7 @@ Feature: Key Management @generated @skip @team:DataDog/credentials-management Scenario: Get a personal access token returns "Not Found" response Given new "GetPersonalAccessToken" request - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @@ -229,7 +229,7 @@ Feature: Key Management Scenario: Get a personal access token returns "OK" response Given there is a valid "personal_access_token" in the system And new "GetPersonalAccessToken" request - And request contains "pat_id" parameter from "personal_access_token.data.id" + And request contains "pat_uuid" parameter from "personal_access_token.data.id" When the request is sent Then the response status is 200 OK And the response "data.type" is equal to "personal_access_tokens" @@ -355,21 +355,21 @@ Feature: Key Management Scenario: Revoke a personal access token returns "No Content" response Given there is a valid "personal_access_token" in the system And new "RevokePersonalAccessToken" request - And request contains "pat_id" parameter from "personal_access_token.data.id" + And request contains "pat_uuid" parameter from "personal_access_token.data.id" When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/credentials-management Scenario: Revoke a personal access token returns "Not Found" response Given new "RevokePersonalAccessToken" request - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/credentials-management Scenario: Update a personal access token returns "Bad Request" response Given new "UpdatePersonalAccessToken" request - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}} When the request is sent Then the response status is 400 Bad Request @@ -377,7 +377,7 @@ Feature: Key Management @generated @skip @team:DataDog/credentials-management Scenario: Update a personal access token returns "Not Found" response Given new "UpdatePersonalAccessToken" request - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}} When the request is sent Then the response status is 404 Not Found @@ -386,7 +386,7 @@ Feature: Key Management Scenario: Update a personal access token returns "OK" response Given there is a valid "personal_access_token" in the system And new "UpdatePersonalAccessToken" request - And request contains "pat_id" parameter from "personal_access_token.data.id" + And request contains "pat_uuid" parameter from "personal_access_token.data.id" And body with value {"data": {"type": "personal_access_tokens", "id": "{{ personal_access_token.data.id }}", "attributes": {"name": "{{ unique }}-updated"}}} When the request is sent Then the response status is 200 OK diff --git a/features/v2/org_groups.feature b/features/v2/org_groups.feature index b8c5fe1b61d1..73cce63cd8eb 100644 --- a/features/v2/org_groups.feature +++ b/features/v2/org_groups.feature @@ -12,7 +12,7 @@ Feature: Org Groups Scenario: Bulk update org group memberships returns "Bad Request" response Given operation "BulkUpdateOrgGroupMemberships" enabled And new "BulkUpdateOrgGroupMemberships" request - And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}} + And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}} When the request is sent Then the response status is 400 Bad Request @@ -20,7 +20,7 @@ Feature: Org Groups Scenario: Bulk update org group memberships returns "Not Found" response Given operation "BulkUpdateOrgGroupMemberships" enabled And new "BulkUpdateOrgGroupMemberships" request - And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}} + And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}} When the request is sent Then the response status is 404 Not Found @@ -28,7 +28,7 @@ Feature: Org Groups Scenario: Bulk update org group memberships returns "OK" response Given operation "BulkUpdateOrgGroupMemberships" enabled And new "BulkUpdateOrgGroupMemberships" request - And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}} + And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}} When the request is sent Then the response status is 200 OK @@ -36,7 +36,7 @@ Feature: Org Groups Scenario: Create an org group policy override returns "Bad Request" response Given operation "CreateOrgGroupPolicyOverride" enabled And new "CreateOrgGroupPolicyOverride" request - And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}} + And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}} When the request is sent Then the response status is 400 Bad Request @@ -44,7 +44,7 @@ Feature: Org Groups Scenario: Create an org group policy override returns "Conflict" response Given operation "CreateOrgGroupPolicyOverride" enabled And new "CreateOrgGroupPolicyOverride" request - And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}} + And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}} When the request is sent Then the response status is 409 Conflict @@ -52,7 +52,7 @@ Feature: Org Groups Scenario: Create an org group policy override returns "Created" response Given operation "CreateOrgGroupPolicyOverride" enabled And new "CreateOrgGroupPolicyOverride" request - And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}} + And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}} When the request is sent Then the response status is 201 Created @@ -60,7 +60,7 @@ Feature: Org Groups Scenario: Create an org group policy returns "Bad Request" response Given operation "CreateOrgGroupPolicy" enabled And new "CreateOrgGroupPolicy" request - And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}} + And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}} When the request is sent Then the response status is 400 Bad Request @@ -68,7 +68,7 @@ Feature: Org Groups Scenario: Create an org group policy returns "Conflict" response Given operation "CreateOrgGroupPolicy" enabled And new "CreateOrgGroupPolicy" request - And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}} + And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}} When the request is sent Then the response status is 409 Conflict @@ -76,7 +76,7 @@ Feature: Org Groups Scenario: Create an org group policy returns "Created" response Given operation "CreateOrgGroupPolicy" enabled And new "CreateOrgGroupPolicy" request - And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}} + And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}} When the request is sent Then the response status is 201 Created @@ -200,54 +200,6 @@ Feature: Org Groups When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/org-management - Scenario: Get an org group policy override returns "Bad Request" response - Given operation "GetOrgGroupPolicyOverride" enabled - And new "GetOrgGroupPolicyOverride" request - And request contains "org_group_policy_override_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/org-management - Scenario: Get an org group policy override returns "Not Found" response - Given operation "GetOrgGroupPolicyOverride" enabled - And new "GetOrgGroupPolicyOverride" request - And request contains "org_group_policy_override_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/org-management - Scenario: Get an org group policy override returns "OK" response - Given operation "GetOrgGroupPolicyOverride" enabled - And new "GetOrgGroupPolicyOverride" request - And request contains "org_group_policy_override_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/org-management - Scenario: Get an org group policy returns "Bad Request" response - Given operation "GetOrgGroupPolicy" enabled - And new "GetOrgGroupPolicy" request - And request contains "org_group_policy_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/org-management - Scenario: Get an org group policy returns "Not Found" response - Given operation "GetOrgGroupPolicy" enabled - And new "GetOrgGroupPolicy" request - And request contains "org_group_policy_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/org-management - Scenario: Get an org group policy returns "OK" response - Given operation "GetOrgGroupPolicy" enabled - And new "GetOrgGroupPolicy" request - And request contains "org_group_policy_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/org-management Scenario: Get an org group returns "Bad Request" response Given operation "GetOrgGroup" enabled @@ -371,7 +323,7 @@ Feature: Org Groups Given operation "UpdateOrgGroupPolicyOverride" enabled And new "UpdateOrgGroupPolicyOverride" request And request contains "org_group_policy_override_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}} + And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}} When the request is sent Then the response status is 400 Bad Request @@ -380,7 +332,7 @@ Feature: Org Groups Given operation "UpdateOrgGroupPolicyOverride" enabled And new "UpdateOrgGroupPolicyOverride" request And request contains "org_group_policy_override_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}} + And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}} When the request is sent Then the response status is 404 Not Found @@ -389,7 +341,7 @@ Feature: Org Groups Given operation "UpdateOrgGroupPolicyOverride" enabled And new "UpdateOrgGroupPolicyOverride" request And request contains "org_group_policy_override_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}} + And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}} When the request is sent Then the response status is 200 OK @@ -398,7 +350,7 @@ Feature: Org Groups Given operation "UpdateOrgGroupPolicy" enabled And new "UpdateOrgGroupPolicy" request And request contains "org_group_policy_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}} + And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}} When the request is sent Then the response status is 400 Bad Request @@ -407,7 +359,7 @@ Feature: Org Groups Given operation "UpdateOrgGroupPolicy" enabled And new "UpdateOrgGroupPolicy" request And request contains "org_group_policy_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}} + And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}} When the request is sent Then the response status is 404 Not Found @@ -416,7 +368,7 @@ Feature: Org Groups Given operation "UpdateOrgGroupPolicy" enabled And new "UpdateOrgGroupPolicy" request And request contains "org_group_policy_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}} + And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}} When the request is sent Then the response status is 200 OK diff --git a/features/v2/service_accounts.feature b/features/v2/service_accounts.feature index fa8c81440e26..25744abc832d 100644 --- a/features/v2/service_accounts.feature +++ b/features/v2/service_accounts.feature @@ -142,7 +142,7 @@ Feature: Service Accounts Scenario: Get an access token for a service account returns "Not Found" response Given new "GetServiceAccountAccessToken" request And request contains "service_account_id" parameter from "REPLACE.ME" - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @@ -152,7 +152,7 @@ Feature: Service Accounts And there is a valid "service_account_access_token" for "service_account_user" And new "GetServiceAccountAccessToken" request And request contains "service_account_id" parameter from "service_account_user.data.id" - And request contains "pat_id" parameter from "service_account_access_token.data.id" + And request contains "pat_uuid" parameter from "service_account_access_token.data.id" When the request is sent Then the response status is 200 OK And the response "data.attributes.name" has the same value as "service_account_access_token.data.attributes.name" @@ -232,7 +232,7 @@ Feature: Service Accounts And there is a valid "service_account_access_token" for "service_account_user" And new "RevokeServiceAccountAccessToken" request And request contains "service_account_id" parameter from "service_account_user.data.id" - And request contains "pat_id" parameter from "service_account_access_token.data.id" + And request contains "pat_uuid" parameter from "service_account_access_token.data.id" When the request is sent Then the response status is 204 No Content @@ -240,7 +240,7 @@ Feature: Service Accounts Scenario: Revoke an access token for a service account returns "Not Found" response Given new "RevokeServiceAccountAccessToken" request And request contains "service_account_id" parameter from "REPLACE.ME" - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found @@ -248,7 +248,7 @@ Feature: Service Accounts Scenario: Update an access token for a service account returns "Bad Request" response Given new "UpdateServiceAccountAccessToken" request And request contains "service_account_id" parameter from "REPLACE.ME" - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}} When the request is sent Then the response status is 400 Bad Request @@ -257,7 +257,7 @@ Feature: Service Accounts Scenario: Update an access token for a service account returns "Not Found" response Given new "UpdateServiceAccountAccessToken" request And request contains "service_account_id" parameter from "REPLACE.ME" - And request contains "pat_id" parameter from "REPLACE.ME" + And request contains "pat_uuid" parameter from "REPLACE.ME" And body with value {"data": {"attributes": {"name": "Updated Personal Access Token", "scopes": ["dashboards_read", "dashboards_write"]}, "id": "00112233-4455-6677-8899-aabbccddeeff", "type": "personal_access_tokens"}} When the request is sent Then the response status is 404 Not Found @@ -268,7 +268,7 @@ Feature: Service Accounts And there is a valid "service_account_access_token" for "service_account_user" And new "UpdateServiceAccountAccessToken" request And request contains "service_account_id" parameter from "service_account_user.data.id" - And request contains "pat_id" parameter from "service_account_access_token.data.id" + And request contains "pat_uuid" parameter from "service_account_access_token.data.id" And body with value {"data": {"id": "{{ service_account_access_token.data.id }}", "type": "personal_access_tokens", "attributes": {"name": "{{ service_account_access_token.data.attributes.name }}-updated"}}} When the request is sent Then the response status is 200 OK diff --git a/features/v2/undo.json b/features/v2/undo.json index 484b2541ffbb..25b2d6b0df15 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -4228,12 +4228,6 @@ "type": "unsafe" } }, - "GetOrgGroupPolicy": { - "tag": "Org Groups", - "undo": { - "type": "safe" - } - }, "UpdateOrgGroupPolicy": { "tag": "Org Groups", "undo": { @@ -4270,12 +4264,6 @@ "type": "unsafe" } }, - "GetOrgGroupPolicyOverride": { - "tag": "Org Groups", - "undo": { - "type": "safe" - } - }, "UpdateOrgGroupPolicyOverride": { "tag": "Org Groups", "undo": { @@ -4336,7 +4324,7 @@ "operationId": "RevokePersonalAccessToken", "parameters": [ { - "name": "pat_id", + "name": "pat_uuid", "source": "data.id" } ], @@ -5901,7 +5889,7 @@ "source": "data.relationships.owned_by.data.id" }, { - "name": "pat_id", + "name": "pat_uuid", "source": "data.id" } ], diff --git a/packages/datadog-api-client-common/configuration.ts b/packages/datadog-api-client-common/configuration.ts index ba6f3b0f0762..ec767f0ca9b3 100644 --- a/packages/datadog-api-client-common/configuration.ts +++ b/packages/datadog-api-client-common/configuration.ts @@ -448,8 +448,6 @@ export function createConfiguration( "v2.deleteOrgGroupPolicyOverride": false, "v2.getOrgGroup": false, "v2.getOrgGroupMembership": false, - "v2.getOrgGroupPolicy": false, - "v2.getOrgGroupPolicyOverride": false, "v2.listOrgGroupMemberships": false, "v2.listOrgGroupPolicies": false, "v2.listOrgGroupPolicyConfigs": false, diff --git a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts index 7a086d83c461..bb7367012fe4 100644 --- a/packages/datadog-api-client-v2/apis/KeyManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/KeyManagementApi.ts @@ -379,20 +379,20 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { } public async getPersonalAccessToken( - patId: string, + patUuid: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; - // verify required parameter 'patId' is not null or undefined - if (patId === null || patId === undefined) { - throw new RequiredError("patId", "getPersonalAccessToken"); + // verify required parameter 'patUuid' is not null or undefined + if (patUuid === null || patUuid === undefined) { + throw new RequiredError("patUuid", "getPersonalAccessToken"); } // Path Params - const localVarPath = "/api/v2/personal_access_tokens/{pat_id}".replace( - "{pat_id}", - encodeURIComponent(String(patId)) + const localVarPath = "/api/v2/personal_access_tokens/{pat_uuid}".replace( + "{pat_uuid}", + encodeURIComponent(String(patUuid)) ); // Make Request Context @@ -760,20 +760,20 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { } public async revokePersonalAccessToken( - patId: string, + patUuid: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; - // verify required parameter 'patId' is not null or undefined - if (patId === null || patId === undefined) { - throw new RequiredError("patId", "revokePersonalAccessToken"); + // verify required parameter 'patUuid' is not null or undefined + if (patUuid === null || patUuid === undefined) { + throw new RequiredError("patUuid", "revokePersonalAccessToken"); } // Path Params - const localVarPath = "/api/v2/personal_access_tokens/{pat_id}".replace( - "{pat_id}", - encodeURIComponent(String(patId)) + const localVarPath = "/api/v2/personal_access_tokens/{pat_uuid}".replace( + "{pat_uuid}", + encodeURIComponent(String(patUuid)) ); // Make Request Context @@ -944,15 +944,15 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { } public async updatePersonalAccessToken( - patId: string, + patUuid: string, body: PersonalAccessTokenUpdateRequest, _options?: Configuration ): Promise { const _config = _options || this.configuration; - // verify required parameter 'patId' is not null or undefined - if (patId === null || patId === undefined) { - throw new RequiredError("patId", "updatePersonalAccessToken"); + // verify required parameter 'patUuid' is not null or undefined + if (patUuid === null || patUuid === undefined) { + throw new RequiredError("patUuid", "updatePersonalAccessToken"); } // verify required parameter 'body' is not null or undefined @@ -961,9 +961,9 @@ export class KeyManagementApiRequestFactory extends BaseAPIRequestFactory { } // Path Params - const localVarPath = "/api/v2/personal_access_tokens/{pat_id}".replace( - "{pat_id}", - encodeURIComponent(String(patId)) + const localVarPath = "/api/v2/personal_access_tokens/{pat_uuid}".replace( + "{pat_uuid}", + encodeURIComponent(String(patUuid)) ); // Make Request Context @@ -2224,10 +2224,10 @@ export interface KeyManagementApiGetCurrentUserApplicationKeyRequest { export interface KeyManagementApiGetPersonalAccessTokenRequest { /** - * The ID of the personal access token. + * The UUID of the personal access token. * @type string */ - patId: string; + patUuid: string; } export interface KeyManagementApiListAPIKeysRequest { @@ -2402,10 +2402,10 @@ export interface KeyManagementApiListPersonalAccessTokensRequest { export interface KeyManagementApiRevokePersonalAccessTokenRequest { /** - * The ID of the personal access token. + * The UUID of the personal access token. * @type string */ - patId: string; + patUuid: string; } export interface KeyManagementApiUpdateAPIKeyRequest { @@ -2446,10 +2446,10 @@ export interface KeyManagementApiUpdateCurrentUserApplicationKeyRequest { export interface KeyManagementApiUpdatePersonalAccessTokenRequest { /** - * The ID of the personal access token. + * The UUID of the personal access token. * @type string */ - patId: string; + patUuid: string; /** * @type PersonalAccessTokenUpdateRequest */ @@ -2679,7 +2679,7 @@ export class KeyManagementApi { options?: Configuration ): Promise { const requestContextPromise = this.requestFactory.getPersonalAccessToken( - param.patId, + param.patUuid, options ); return requestContextPromise.then((requestContext) => { @@ -2815,7 +2815,7 @@ export class KeyManagementApi { options?: Configuration ): Promise { const requestContextPromise = this.requestFactory.revokePersonalAccessToken( - param.patId, + param.patUuid, options ); return requestContextPromise.then((requestContext) => { @@ -2908,7 +2908,7 @@ export class KeyManagementApi { options?: Configuration ): Promise { const requestContextPromise = this.requestFactory.updatePersonalAccessToken( - param.patId, + param.patUuid, param.body, options ); diff --git a/packages/datadog-api-client-v2/apis/OrgGroupsApi.ts b/packages/datadog-api-client-v2/apis/OrgGroupsApi.ts index 722a155c897c..75230ab11f99 100644 --- a/packages/datadog-api-client-v2/apis/OrgGroupsApi.ts +++ b/packages/datadog-api-client-v2/apis/OrgGroupsApi.ts @@ -439,92 +439,6 @@ export class OrgGroupsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async getOrgGroupPolicy( - orgGroupPolicyId: string, - _options?: Configuration - ): Promise { - const _config = _options || this.configuration; - - logger.warn("Using unstable operation 'getOrgGroupPolicy'"); - if (!_config.unstableOperations["v2.getOrgGroupPolicy"]) { - throw new Error("Unstable operation 'getOrgGroupPolicy' is disabled"); - } - - // verify required parameter 'orgGroupPolicyId' is not null or undefined - if (orgGroupPolicyId === null || orgGroupPolicyId === undefined) { - throw new RequiredError("orgGroupPolicyId", "getOrgGroupPolicy"); - } - - // Path Params - const localVarPath = - "/api/v2/org_group_policies/{org_group_policy_id}".replace( - "{org_group_policy_id}", - encodeURIComponent(String(orgGroupPolicyId)) - ); - - // Make Request Context - const requestContext = _config - .getServer("v2.OrgGroupsApi.getOrgGroupPolicy") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); - - return requestContext; - } - - public async getOrgGroupPolicyOverride( - orgGroupPolicyOverrideId: string, - _options?: Configuration - ): Promise { - const _config = _options || this.configuration; - - logger.warn("Using unstable operation 'getOrgGroupPolicyOverride'"); - if (!_config.unstableOperations["v2.getOrgGroupPolicyOverride"]) { - throw new Error( - "Unstable operation 'getOrgGroupPolicyOverride' is disabled" - ); - } - - // verify required parameter 'orgGroupPolicyOverrideId' is not null or undefined - if ( - orgGroupPolicyOverrideId === null || - orgGroupPolicyOverrideId === undefined - ) { - throw new RequiredError( - "orgGroupPolicyOverrideId", - "getOrgGroupPolicyOverride" - ); - } - - // Path Params - const localVarPath = - "/api/v2/org_group_policy_overrides/{org_group_policy_override_id}".replace( - "{org_group_policy_override_id}", - encodeURIComponent(String(orgGroupPolicyOverrideId)) - ); - - // Make Request Context - const requestContext = _config - .getServer("v2.OrgGroupsApi.getOrgGroupPolicyOverride") - .makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - ]); - - return requestContext; - } - public async listOrgGroupMemberships( filterOrgGroupId?: string, filterOrgUuid?: string, @@ -1838,178 +1752,6 @@ export class OrgGroupsApiResponseProcessor { ); } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to getOrgGroupPolicy - * @throws ApiException if the response code was not in [200, 299] - */ - public async getOrgGroupPolicy( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200) { - const body: OrgGroupPolicyResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "OrgGroupPolicyResponse" - ) as OrgGroupPolicyResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); - let body: JSONAPIErrorResponse; - try { - body = ObjectSerializer.deserialize( - bodyText, - "JSONAPIErrorResponse" - ) as JSONAPIErrorResponse; - } catch (error) { - logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); - let body: APIErrorResponse; - try { - body = ObjectSerializer.deserialize( - bodyText, - "APIErrorResponse" - ) as APIErrorResponse; - } catch (error) { - logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: OrgGroupPolicyResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "OrgGroupPolicyResponse", - "" - ) as OrgGroupPolicyResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to getOrgGroupPolicyOverride - * @throws ApiException if the response code was not in [200, 299] - */ - public async getOrgGroupPolicyOverride( - response: ResponseContext - ): Promise { - const contentType = ObjectSerializer.normalizeMediaType( - response.headers["content-type"] - ); - if (response.httpStatusCode === 200) { - const body: OrgGroupPolicyOverrideResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "OrgGroupPolicyOverrideResponse" - ) as OrgGroupPolicyOverrideResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 401 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 - ) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); - let body: JSONAPIErrorResponse; - try { - body = ObjectSerializer.deserialize( - bodyText, - "JSONAPIErrorResponse" - ) as JSONAPIErrorResponse; - } catch (error) { - logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException( - response.httpStatusCode, - body - ); - } - if (response.httpStatusCode === 429) { - const bodyText = ObjectSerializer.parse( - await response.body.text(), - contentType - ); - let body: APIErrorResponse; - try { - body = ObjectSerializer.deserialize( - bodyText, - "APIErrorResponse" - ) as APIErrorResponse; - } catch (error) { - logger.debug(`Got error deserializing error: ${error}`); - throw new ApiException( - response.httpStatusCode, - bodyText - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: OrgGroupPolicyOverrideResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "OrgGroupPolicyOverrideResponse", - "" - ) as OrgGroupPolicyOverrideResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - response.httpStatusCode, - 'Unknown API Status Code!\nBody: "' + body + '"' - ); - } - /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2848,22 +2590,6 @@ export interface OrgGroupsApiGetOrgGroupMembershipRequest { orgGroupMembershipId: string; } -export interface OrgGroupsApiGetOrgGroupPolicyRequest { - /** - * The ID of the org group policy. - * @type string - */ - orgGroupPolicyId: string; -} - -export interface OrgGroupsApiGetOrgGroupPolicyOverrideRequest { - /** - * The ID of the org group policy override. - * @type string - */ - orgGroupPolicyOverrideId: string; -} - export interface OrgGroupsApiListOrgGroupMembershipsRequest { /** * Filter memberships by org group ID. Required when `filter[org_uuid]` is not provided. @@ -3228,50 +2954,6 @@ export class OrgGroupsApi { }); } - /** - * Get a specific organization group policy by its ID. - * @param param The request object - */ - public getOrgGroupPolicy( - param: OrgGroupsApiGetOrgGroupPolicyRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOrgGroupPolicy( - param.orgGroupPolicyId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOrgGroupPolicy(responseContext); - }); - }); - } - - /** - * Get a specific organization group policy override by its ID. - * @param param The request object - */ - public getOrgGroupPolicyOverride( - param: OrgGroupsApiGetOrgGroupPolicyOverrideRequest, - options?: Configuration - ): Promise { - const requestContextPromise = this.requestFactory.getOrgGroupPolicyOverride( - param.orgGroupPolicyOverrideId, - options - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getOrgGroupPolicyOverride( - responseContext - ); - }); - }); - } - /** * List organization group memberships. Filter by org group ID or org UUID. At least one of `filter[org_group_id]` or `filter[org_uuid]` must be provided. When filtering by org UUID, returns a single-item list with the membership for that org. * @param param The request object @@ -3443,7 +3125,7 @@ export class OrgGroupsApi { } /** - * Update an existing organization group policy. + * Update the content of an existing organization group policy. * @param param The request object */ public updateOrgGroupPolicy( diff --git a/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts b/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts index 28f278e7bf99..6db497647a20 100644 --- a/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts +++ b/packages/datadog-api-client-v2/apis/ServiceAccountsApi.ts @@ -233,7 +233,7 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { public async getServiceAccountAccessToken( serviceAccountId: string, - patId: string, + patUuid: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -246,19 +246,19 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { ); } - // verify required parameter 'patId' is not null or undefined - if (patId === null || patId === undefined) { - throw new RequiredError("patId", "getServiceAccountAccessToken"); + // verify required parameter 'patUuid' is not null or undefined + if (patUuid === null || patUuid === undefined) { + throw new RequiredError("patUuid", "getServiceAccountAccessToken"); } // Path Params const localVarPath = - "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}" + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}" .replace( "{service_account_id}", encodeURIComponent(String(serviceAccountId)) ) - .replace("{pat_id}", encodeURIComponent(String(patId))); + .replace("{pat_uuid}", encodeURIComponent(String(patUuid))); // Make Request Context const requestContext = _config @@ -481,7 +481,7 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { public async revokeServiceAccountAccessToken( serviceAccountId: string, - patId: string, + patUuid: string, _options?: Configuration ): Promise { const _config = _options || this.configuration; @@ -494,19 +494,19 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { ); } - // verify required parameter 'patId' is not null or undefined - if (patId === null || patId === undefined) { - throw new RequiredError("patId", "revokeServiceAccountAccessToken"); + // verify required parameter 'patUuid' is not null or undefined + if (patUuid === null || patUuid === undefined) { + throw new RequiredError("patUuid", "revokeServiceAccountAccessToken"); } // Path Params const localVarPath = - "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}" + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}" .replace( "{service_account_id}", encodeURIComponent(String(serviceAccountId)) ) - .replace("{pat_id}", encodeURIComponent(String(patId))); + .replace("{pat_uuid}", encodeURIComponent(String(patUuid))); // Make Request Context const requestContext = _config @@ -526,7 +526,7 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { public async updateServiceAccountAccessToken( serviceAccountId: string, - patId: string, + patUuid: string, body: PersonalAccessTokenUpdateRequest, _options?: Configuration ): Promise { @@ -540,9 +540,9 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { ); } - // verify required parameter 'patId' is not null or undefined - if (patId === null || patId === undefined) { - throw new RequiredError("patId", "updateServiceAccountAccessToken"); + // verify required parameter 'patUuid' is not null or undefined + if (patUuid === null || patUuid === undefined) { + throw new RequiredError("patUuid", "updateServiceAccountAccessToken"); } // verify required parameter 'body' is not null or undefined @@ -552,12 +552,12 @@ export class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { // Path Params const localVarPath = - "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}" + "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}" .replace( "{service_account_id}", encodeURIComponent(String(serviceAccountId)) ) - .replace("{pat_id}", encodeURIComponent(String(patId))); + .replace("{pat_uuid}", encodeURIComponent(String(patUuid))); // Make Request Context const requestContext = _config @@ -1375,10 +1375,10 @@ export interface ServiceAccountsApiGetServiceAccountAccessTokenRequest { */ serviceAccountId: string; /** - * The ID of the personal access token. + * The UUID of the personal access token. * @type string */ - patId: string; + patUuid: string; } export interface ServiceAccountsApiGetServiceAccountApplicationKeyRequest { @@ -1471,10 +1471,10 @@ export interface ServiceAccountsApiRevokeServiceAccountAccessTokenRequest { */ serviceAccountId: string; /** - * The ID of the personal access token. + * The UUID of the personal access token. * @type string */ - patId: string; + patUuid: string; } export interface ServiceAccountsApiUpdateServiceAccountAccessTokenRequest { @@ -1484,10 +1484,10 @@ export interface ServiceAccountsApiUpdateServiceAccountAccessTokenRequest { */ serviceAccountId: string; /** - * The ID of the personal access token. + * The UUID of the personal access token. * @type string */ - patId: string; + patUuid: string; /** * @type PersonalAccessTokenUpdateRequest */ @@ -1635,7 +1635,7 @@ export class ServiceAccountsApi { const requestContextPromise = this.requestFactory.getServiceAccountAccessToken( param.serviceAccountId, - param.patId, + param.patUuid, options ); return requestContextPromise.then((requestContext) => { @@ -1743,7 +1743,7 @@ export class ServiceAccountsApi { const requestContextPromise = this.requestFactory.revokeServiceAccountAccessToken( param.serviceAccountId, - param.patId, + param.patUuid, options ); return requestContextPromise.then((requestContext) => { @@ -1768,7 +1768,7 @@ export class ServiceAccountsApi { const requestContextPromise = this.requestFactory.updateServiceAccountAccessToken( param.serviceAccountId, - param.patId, + param.patUuid, param.body, options ); diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 4424b5d563d9..e3857f62bdaa 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -831,8 +831,6 @@ export { OrgGroupsApiDeleteOrgGroupPolicyOverrideRequest, OrgGroupsApiGetOrgGroupRequest, OrgGroupsApiGetOrgGroupMembershipRequest, - OrgGroupsApiGetOrgGroupPolicyRequest, - OrgGroupsApiGetOrgGroupPolicyOverrideRequest, OrgGroupsApiListOrgGroupMembershipsRequest, OrgGroupsApiListOrgGroupPoliciesRequest, OrgGroupsApiListOrgGroupPolicyOverridesRequest, @@ -4595,7 +4593,6 @@ export { OrgGroupPolicyCreateData } from "./models/OrgGroupPolicyCreateData"; export { OrgGroupPolicyCreateRelationships } from "./models/OrgGroupPolicyCreateRelationships"; export { OrgGroupPolicyCreateRequest } from "./models/OrgGroupPolicyCreateRequest"; export { OrgGroupPolicyData } from "./models/OrgGroupPolicyData"; -export { OrgGroupPolicyEnforcementTier } from "./models/OrgGroupPolicyEnforcementTier"; export { OrgGroupPolicyListResponse } from "./models/OrgGroupPolicyListResponse"; export { OrgGroupPolicyOverrideAttributes } from "./models/OrgGroupPolicyOverrideAttributes"; export { OrgGroupPolicyOverrideCreateAttributes } from "./models/OrgGroupPolicyOverrideCreateAttributes"; @@ -4611,7 +4608,6 @@ export { OrgGroupPolicyOverrideType } from "./models/OrgGroupPolicyOverrideType" export { OrgGroupPolicyOverrideUpdateAttributes } from "./models/OrgGroupPolicyOverrideUpdateAttributes"; export { OrgGroupPolicyOverrideUpdateData } from "./models/OrgGroupPolicyOverrideUpdateData"; export { OrgGroupPolicyOverrideUpdateRequest } from "./models/OrgGroupPolicyOverrideUpdateRequest"; -export { OrgGroupPolicyPolicyType } from "./models/OrgGroupPolicyPolicyType"; export { OrgGroupPolicyRelationships } from "./models/OrgGroupPolicyRelationships"; export { OrgGroupPolicyRelationshipToOne } from "./models/OrgGroupPolicyRelationshipToOne"; export { OrgGroupPolicyRelationshipToOneData } from "./models/OrgGroupPolicyRelationshipToOneData"; diff --git a/packages/datadog-api-client-v2/models/FullPersonalAccessTokenAttributes.ts b/packages/datadog-api-client-v2/models/FullPersonalAccessTokenAttributes.ts index 1e250d5a1544..db8f00289468 100644 --- a/packages/datadog-api-client-v2/models/FullPersonalAccessTokenAttributes.ts +++ b/packages/datadog-api-client-v2/models/FullPersonalAccessTokenAttributes.ts @@ -10,6 +10,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Attributes of a full personal access token, including the token key. */ export class FullPersonalAccessTokenAttributes { + /** + * The alias (short identifier) of the personal access token. + */ + "alias"?: string; /** * Creation date of the personal access token. */ @@ -51,6 +55,10 @@ export class FullPersonalAccessTokenAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + alias: { + baseName: "alias", + type: "string", + }, createdAt: { baseName: "created_at", type: "Date", diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 8dc704e890c9..303b0e8e6e71 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -5269,10 +5269,8 @@ const enumsMap: { [key: string]: any[] } = { OrgGroupMembershipSortOption: ["name", "-name", "uuid", "-uuid"], OrgGroupMembershipType: ["org_group_memberships"], OrgGroupPolicyConfigType: ["org_group_policy_configs"], - OrgGroupPolicyEnforcementTier: ["DEFAULT", "ENFORCE", "DELEGATE"], OrgGroupPolicyOverrideSortOption: ["id", "-id", "org_uuid", "-org_uuid"], OrgGroupPolicyOverrideType: ["org_group_policy_overrides"], - OrgGroupPolicyPolicyType: ["org_config"], OrgGroupPolicySortOption: ["id", "-id", "name", "-name"], OrgGroupPolicyType: ["org_group_policies"], OrgGroupSortOption: ["name", "-name", "uuid", "-uuid"], diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyAttributes.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyAttributes.ts index 1b48069e3618..0cb000711375 100644 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrgGroupPolicyAttributes.ts @@ -3,8 +3,6 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ -import { OrgGroupPolicyEnforcementTier } from "./OrgGroupPolicyEnforcementTier"; -import { OrgGroupPolicyPolicyType } from "./OrgGroupPolicyPolicyType"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -17,9 +15,9 @@ export class OrgGroupPolicyAttributes { */ "content"?: { [key: string]: any }; /** - * The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value. + * Timestamp when the policy was enforced. */ - "enforcementTier": OrgGroupPolicyEnforcementTier; + "enforcedAt": Date; /** * Timestamp when the policy was last modified. */ @@ -28,10 +26,6 @@ export class OrgGroupPolicyAttributes { * The name of the policy. */ "policyName": string; - /** - * The type of the policy. Only `org_config` is supported, indicating a policy backed by an organization configuration setting. - */ - "policyType": OrgGroupPolicyPolicyType; /** * A container for additional, undeclared properties. @@ -53,10 +47,11 @@ export class OrgGroupPolicyAttributes { baseName: "content", type: "{ [key: string]: any; }", }, - enforcementTier: { - baseName: "enforcement_tier", - type: "OrgGroupPolicyEnforcementTier", + enforcedAt: { + baseName: "enforced_at", + type: "Date", required: true, + format: "date-time", }, modifiedAt: { baseName: "modified_at", @@ -69,11 +64,6 @@ export class OrgGroupPolicyAttributes { type: "string", required: true, }, - policyType: { - baseName: "policy_type", - type: "OrgGroupPolicyPolicyType", - required: true, - }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateAttributes.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateAttributes.ts index 000a37bb8565..7671abecc15c 100644 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateAttributes.ts @@ -3,31 +3,21 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ -import { OrgGroupPolicyEnforcementTier } from "./OrgGroupPolicyEnforcementTier"; -import { OrgGroupPolicyPolicyType } from "./OrgGroupPolicyPolicyType"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Attributes for creating an org group policy. If `policy_type` or `enforcement_tier` are not provided, they default to `org_config` and `DEFAULT` respectively. + * Attributes for creating an org group policy. */ export class OrgGroupPolicyCreateAttributes { /** * The policy content as key-value pairs. */ "content": { [key: string]: any }; - /** - * The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value. - */ - "enforcementTier"?: OrgGroupPolicyEnforcementTier; /** * The name of the policy. */ "policyName": string; - /** - * The type of the policy. Only `org_config` is supported, indicating a policy backed by an organization configuration setting. - */ - "policyType"?: OrgGroupPolicyPolicyType; /** * A container for additional, undeclared properties. @@ -50,19 +40,11 @@ export class OrgGroupPolicyCreateAttributes { type: "{ [key: string]: any; }", required: true, }, - enforcementTier: { - baseName: "enforcement_tier", - type: "OrgGroupPolicyEnforcementTier", - }, policyName: { baseName: "policy_name", type: "string", required: true, }, - policyType: { - baseName: "policy_type", - type: "OrgGroupPolicyPolicyType", - }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateData.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateData.ts index 58a607337683..e7716cf353d2 100644 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateData.ts +++ b/packages/datadog-api-client-v2/models/OrgGroupPolicyCreateData.ts @@ -14,7 +14,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class OrgGroupPolicyCreateData { /** - * Attributes for creating an org group policy. If `policy_type` or `enforcement_tier` are not provided, they default to `org_config` and `DEFAULT` respectively. + * Attributes for creating an org group policy. */ "attributes": OrgGroupPolicyCreateAttributes; /** diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyEnforcementTier.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyEnforcementTier.ts deleted file mode 100644 index 3d6aebe453ae..000000000000 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyEnforcementTier.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ - -import { UnparsedObject } from "../../datadog-api-client-common/util"; - -/** - * The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value. - */ - -export type OrgGroupPolicyEnforcementTier = - | typeof DEFAULT - | typeof ENFORCE - | typeof DELEGATE - | UnparsedObject; -export const DEFAULT = "DEFAULT"; -export const ENFORCE = "ENFORCE"; -export const DELEGATE = "DELEGATE"; diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateAttributes.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateAttributes.ts index 2f82bfa70de5..d6e65936c95c 100644 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateAttributes.ts @@ -7,7 +7,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Attributes for updating a policy override. The `org_uuid` and `org_site` fields must match the existing override and cannot be changed. + * Attributes for updating a policy override. */ export class OrgGroupPolicyOverrideUpdateAttributes { /** diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateData.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateData.ts index ce346cdb7a25..94c1c338fc07 100644 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateData.ts +++ b/packages/datadog-api-client-v2/models/OrgGroupPolicyOverrideUpdateData.ts @@ -13,7 +13,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class OrgGroupPolicyOverrideUpdateData { /** - * Attributes for updating a policy override. The `org_uuid` and `org_site` fields must match the existing override and cannot be changed. + * Attributes for updating a policy override. */ "attributes": OrgGroupPolicyOverrideUpdateAttributes; /** diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyPolicyType.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyPolicyType.ts deleted file mode 100644 index 53b0ba28e4c5..000000000000 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyPolicyType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2020-Present Datadog, Inc. - */ - -import { UnparsedObject } from "../../datadog-api-client-common/util"; - -/** - * The type of the policy. Only `org_config` is supported, indicating a policy backed by an organization configuration setting. - */ - -export type OrgGroupPolicyPolicyType = typeof ORG_CONFIG | UnparsedObject; -export const ORG_CONFIG = "org_config"; diff --git a/packages/datadog-api-client-v2/models/OrgGroupPolicyUpdateAttributes.ts b/packages/datadog-api-client-v2/models/OrgGroupPolicyUpdateAttributes.ts index 72c461b09a3e..82018baa4644 100644 --- a/packages/datadog-api-client-v2/models/OrgGroupPolicyUpdateAttributes.ts +++ b/packages/datadog-api-client-v2/models/OrgGroupPolicyUpdateAttributes.ts @@ -3,7 +3,6 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ -import { OrgGroupPolicyEnforcementTier } from "./OrgGroupPolicyEnforcementTier"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -15,10 +14,6 @@ export class OrgGroupPolicyUpdateAttributes { * The policy content as key-value pairs. */ "content"?: { [key: string]: any }; - /** - * The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value. - */ - "enforcementTier"?: OrgGroupPolicyEnforcementTier; /** * A container for additional, undeclared properties. @@ -40,10 +35,6 @@ export class OrgGroupPolicyUpdateAttributes { baseName: "content", type: "{ [key: string]: any; }", }, - enforcementTier: { - baseName: "enforcement_tier", - type: "OrgGroupPolicyEnforcementTier", - }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v2/models/PersonalAccessTokenAttributes.ts b/packages/datadog-api-client-v2/models/PersonalAccessTokenAttributes.ts index b0d3879c3a71..943d8a83ba8f 100644 --- a/packages/datadog-api-client-v2/models/PersonalAccessTokenAttributes.ts +++ b/packages/datadog-api-client-v2/models/PersonalAccessTokenAttributes.ts @@ -10,6 +10,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Attributes of a personal access token. */ export class PersonalAccessTokenAttributes { + /** + * The alias (short identifier) of the personal access token. + */ + "alias"?: string; /** * Creation date of the personal access token. */ @@ -55,6 +59,10 @@ export class PersonalAccessTokenAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + alias: { + baseName: "alias", + type: "string", + }, createdAt: { baseName: "created_at", type: "Date", diff --git a/packages/datadog-api-client-v2/models/UserAttributes.ts b/packages/datadog-api-client-v2/models/UserAttributes.ts index da41a510a705..52cb42027af4 100644 --- a/packages/datadog-api-client-v2/models/UserAttributes.ts +++ b/packages/datadog-api-client-v2/models/UserAttributes.ts @@ -58,10 +58,6 @@ export class UserAttributes { * Title of the user. */ "title"?: string; - /** - * UUID of the user. - */ - "uuid"?: string; /** * Whether the user is verified. */ @@ -134,10 +130,6 @@ export class UserAttributes { baseName: "title", type: "string", }, - uuid: { - baseName: "uuid", - type: "string", - }, verified: { baseName: "verified", type: "boolean",