import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { ApplicationKeyCreateRequest } from "../models/ApplicationKeyCreateRequest"; import { ApplicationKeyResponse } from "../models/ApplicationKeyResponse"; import { ApplicationKeysSort } from "../models/ApplicationKeysSort"; import { ApplicationKeyUpdateRequest } from "../models/ApplicationKeyUpdateRequest"; import { ListApplicationKeysResponse } from "../models/ListApplicationKeysResponse"; import { ListPersonalAccessTokensResponse } from "../models/ListPersonalAccessTokensResponse"; import { PartialApplicationKeyResponse } from "../models/PartialApplicationKeyResponse"; import { PersonalAccessTokenCreateResponse } from "../models/PersonalAccessTokenCreateResponse"; import { PersonalAccessTokenResponse } from "../models/PersonalAccessTokenResponse"; import { PersonalAccessTokensSort } from "../models/PersonalAccessTokensSort"; import { PersonalAccessTokenUpdateRequest } from "../models/PersonalAccessTokenUpdateRequest"; import { ServiceAccountAccessTokenCreateRequest } from "../models/ServiceAccountAccessTokenCreateRequest"; import { ServiceAccountCreateRequest } from "../models/ServiceAccountCreateRequest"; import { UserResponse } from "../models/UserResponse"; export declare class ServiceAccountsApiRequestFactory extends BaseAPIRequestFactory { createServiceAccount(body: ServiceAccountCreateRequest, _options?: Configuration): Promise; createServiceAccountAccessToken(serviceAccountId: string, body: ServiceAccountAccessTokenCreateRequest, _options?: Configuration): Promise; createServiceAccountApplicationKey(serviceAccountId: string, body: ApplicationKeyCreateRequest, _options?: Configuration): Promise; deleteServiceAccountApplicationKey(serviceAccountId: string, appKeyId: string, _options?: Configuration): Promise; getServiceAccountAccessToken(serviceAccountId: string, patId: string, _options?: Configuration): Promise; getServiceAccountApplicationKey(serviceAccountId: string, appKeyId: string, _options?: Configuration): Promise; listServiceAccountAccessTokens(serviceAccountId: string, pageSize?: number, pageNumber?: number, sort?: PersonalAccessTokensSort, filter?: string, _options?: Configuration): Promise; listServiceAccountApplicationKeys(serviceAccountId: string, pageSize?: number, pageNumber?: number, sort?: ApplicationKeysSort, filter?: string, filterCreatedAtStart?: string, filterCreatedAtEnd?: string, _options?: Configuration): Promise; revokeServiceAccountAccessToken(serviceAccountId: string, patId: string, _options?: Configuration): Promise; updateServiceAccountAccessToken(serviceAccountId: string, patId: string, body: PersonalAccessTokenUpdateRequest, _options?: Configuration): Promise; updateServiceAccountApplicationKey(serviceAccountId: string, appKeyId: string, body: ApplicationKeyUpdateRequest, _options?: Configuration): Promise; } export declare class ServiceAccountsApiResponseProcessor { /** * 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 createServiceAccount * @throws ApiException if the response code was not in [200, 299] */ createServiceAccount(response: ResponseContext): Promise; /** * 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 createServiceAccountAccessToken * @throws ApiException if the response code was not in [200, 299] */ createServiceAccountAccessToken(response: ResponseContext): Promise; /** * 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 createServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ createServiceAccountApplicationKey(response: ResponseContext): Promise; /** * 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 deleteServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ deleteServiceAccountApplicationKey(response: ResponseContext): Promise; /** * 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 getServiceAccountAccessToken * @throws ApiException if the response code was not in [200, 299] */ getServiceAccountAccessToken(response: ResponseContext): Promise; /** * 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 getServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ getServiceAccountApplicationKey(response: ResponseContext): Promise; /** * 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 listServiceAccountAccessTokens * @throws ApiException if the response code was not in [200, 299] */ listServiceAccountAccessTokens(response: ResponseContext): Promise; /** * 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 listServiceAccountApplicationKeys * @throws ApiException if the response code was not in [200, 299] */ listServiceAccountApplicationKeys(response: ResponseContext): Promise; /** * 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 revokeServiceAccountAccessToken * @throws ApiException if the response code was not in [200, 299] */ revokeServiceAccountAccessToken(response: ResponseContext): Promise; /** * 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 updateServiceAccountAccessToken * @throws ApiException if the response code was not in [200, 299] */ updateServiceAccountAccessToken(response: ResponseContext): Promise; /** * 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 updateServiceAccountApplicationKey * @throws ApiException if the response code was not in [200, 299] */ updateServiceAccountApplicationKey(response: ResponseContext): Promise; } export interface ServiceAccountsApiCreateServiceAccountRequest { /** * @type ServiceAccountCreateRequest */ body: ServiceAccountCreateRequest; } export interface ServiceAccountsApiCreateServiceAccountAccessTokenRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * @type ServiceAccountAccessTokenCreateRequest */ body: ServiceAccountAccessTokenCreateRequest; } export interface ServiceAccountsApiCreateServiceAccountApplicationKeyRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * @type ApplicationKeyCreateRequest */ body: ApplicationKeyCreateRequest; } export interface ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * The ID of the application key. * @type string */ appKeyId: string; } export interface ServiceAccountsApiGetServiceAccountAccessTokenRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * The ID of the personal access token. * @type string */ patId: string; } export interface ServiceAccountsApiGetServiceAccountApplicationKeyRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * The ID of the application key. * @type string */ appKeyId: string; } export interface ServiceAccountsApiListServiceAccountAccessTokensRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * Size for a given page. The maximum allowed value is 100. * @type number */ pageSize?: number; /** * Specific page number to return. * @type number */ pageNumber?: number; /** * Personal access token attribute used to sort results. Sort order is ascending * by default. In order to specify a descending sort, prefix the * attribute with a minus sign. * @type PersonalAccessTokensSort */ sort?: PersonalAccessTokensSort; /** * Filter personal access tokens by the specified string. * @type string */ filter?: string; } export interface ServiceAccountsApiListServiceAccountApplicationKeysRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * Size for a given page. The maximum allowed value is 100. * @type number */ pageSize?: number; /** * Specific page number to return. * @type number */ pageNumber?: number; /** * Application key attribute used to sort results. Sort order is ascending * by default. In order to specify a descending sort, prefix the * attribute with a minus sign. * @type ApplicationKeysSort */ sort?: ApplicationKeysSort; /** * Filter application keys by the specified string. * @type string */ filter?: string; /** * Only include application keys created on or after the specified date. * @type string */ filterCreatedAtStart?: string; /** * Only include application keys created on or before the specified date. * @type string */ filterCreatedAtEnd?: string; } export interface ServiceAccountsApiRevokeServiceAccountAccessTokenRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * The ID of the personal access token. * @type string */ patId: string; } export interface ServiceAccountsApiUpdateServiceAccountAccessTokenRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * The ID of the personal access token. * @type string */ patId: string; /** * @type PersonalAccessTokenUpdateRequest */ body: PersonalAccessTokenUpdateRequest; } export interface ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest { /** * The ID of the service account. * @type string */ serviceAccountId: string; /** * The ID of the application key. * @type string */ appKeyId: string; /** * @type ApplicationKeyUpdateRequest */ body: ApplicationKeyUpdateRequest; } export declare class ServiceAccountsApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: ServiceAccountsApiRequestFactory, responseProcessor?: ServiceAccountsApiResponseProcessor); /** * Create a service account for your organization. * @param param The request object */ createServiceAccount(param: ServiceAccountsApiCreateServiceAccountRequest, options?: Configuration): Promise; /** * Create an access token for a service account. * @param param The request object */ createServiceAccountAccessToken(param: ServiceAccountsApiCreateServiceAccountAccessTokenRequest, options?: Configuration): Promise; /** * Create an application key for this service account. * @param param The request object */ createServiceAccountApplicationKey(param: ServiceAccountsApiCreateServiceAccountApplicationKeyRequest, options?: Configuration): Promise; /** * Delete an application key owned by this service account. * @param param The request object */ deleteServiceAccountApplicationKey(param: ServiceAccountsApiDeleteServiceAccountApplicationKeyRequest, options?: Configuration): Promise; /** * Get a specific access token for a service account by its UUID. * @param param The request object */ getServiceAccountAccessToken(param: ServiceAccountsApiGetServiceAccountAccessTokenRequest, options?: Configuration): Promise; /** * Get an application key owned by this service account. * @param param The request object */ getServiceAccountApplicationKey(param: ServiceAccountsApiGetServiceAccountApplicationKeyRequest, options?: Configuration): Promise; /** * List all access tokens for a specific service account. * @param param The request object */ listServiceAccountAccessTokens(param: ServiceAccountsApiListServiceAccountAccessTokensRequest, options?: Configuration): Promise; /** * List all application keys available for this service account. * @param param The request object */ listServiceAccountApplicationKeys(param: ServiceAccountsApiListServiceAccountApplicationKeysRequest, options?: Configuration): Promise; /** * Revoke a specific access token for a service account. * @param param The request object */ revokeServiceAccountAccessToken(param: ServiceAccountsApiRevokeServiceAccountAccessTokenRequest, options?: Configuration): Promise; /** * Update a specific access token for a service account. * @param param The request object */ updateServiceAccountAccessToken(param: ServiceAccountsApiUpdateServiceAccountAccessTokenRequest, options?: Configuration): Promise; /** * Edit an application key owned by this service account. * @param param The request object */ updateServiceAccountApplicationKey(param: ServiceAccountsApiUpdateServiceAccountApplicationKeyRequest, options?: Configuration): Promise; }