Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-03-05 22:35:07.193483",
"spec_repo_commit": "2a95fb4"
"regenerated": "2021-03-08 08:27:18.991890",
"spec_repo_commit": "317577f"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-03-05 22:35:12.956161",
"spec_repo_commit": "2a95fb4"
"regenerated": "2021-03-08 08:27:23.238368",
"spec_repo_commit": "317577f"
}
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.1
5.1.0-SNAPSHOT
104 changes: 51 additions & 53 deletions packages/datadog-api-client-v1/apis/AWSIntegrationApi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// TODO: better import syntax?
import { BaseAPIRequestFactory, RequiredError } from './baseapi';
import { Configuration, getServer } from '../configuration';
import {Configuration, getServer } from '../configuration';
import { RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
import FormData from "form-data";
import {ObjectSerializer} from '../models/ObjectSerializer';
Expand All @@ -19,21 +19,21 @@ import { AWSTagFilterListResponse } from '../models/AWSTagFilterListResponse';
* no description
*/
export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {

/**
* Create a Datadog-Amazon Web Services integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. A unique AWS Account ID for role based authentication.
* Create an AWS integration
* @param body AWS Request Object
*/
public async createAWSAccount(body: AWSAccount, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('Required parameter body was null or undefined when calling createAWSAccount.');
}


// Path Params
const localVarPath = '/api/v1/integration/aws';

Expand All @@ -42,9 +42,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params

// Header Params

// Form Params


Expand Down Expand Up @@ -80,13 +80,13 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async createAWSTagFilter(body: AWSTagFilterCreateRequest, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('Required parameter body was null or undefined when calling createAWSTagFilter.');
}


// Path Params
const localVarPath = '/api/v1/integration/aws/filtering';

Expand All @@ -95,9 +95,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params

// Header Params

// Form Params


Expand Down Expand Up @@ -133,13 +133,13 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async createNewAWSExternalID(body: AWSAccount, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('Required parameter body was null or undefined when calling createNewAWSExternalID.');
}


// Path Params
const localVarPath = '/api/v1/integration/aws/generate_new_external_id';

Expand All @@ -148,9 +148,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params

// Header Params

// Form Params


Expand Down Expand Up @@ -186,13 +186,13 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async deleteAWSAccount(body: AWSAccount, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('Required parameter body was null or undefined when calling deleteAWSAccount.');
}


// Path Params
const localVarPath = '/api/v1/integration/aws';

Expand All @@ -201,9 +201,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params

// Header Params

// Form Params


Expand Down Expand Up @@ -239,13 +239,13 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async deleteAWSTagFilter(body: AWSTagFilterDeleteRequest, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('Required parameter body was null or undefined when calling deleteAWSTagFilter.');
}


// Path Params
const localVarPath = '/api/v1/integration/aws/filtering';

Expand All @@ -254,9 +254,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params

// Header Params

// Form Params


Expand Down Expand Up @@ -294,10 +294,10 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async listAWSAccounts(accountId?: string, roleName?: string, accessKeyId?: string, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;




// Path Params
const localVarPath = '/api/v1/integration/aws';

Expand All @@ -315,9 +315,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
if (accessKeyId !== undefined) {
requestContext.setQueryParam("access_key_id", ObjectSerializer.serialize(accessKeyId, "string", ""));
}

// Header Params

// Form Params


Expand All @@ -344,13 +344,13 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async listAWSTagFilters(accountId: string, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'accountId' is not null or undefined
if (accountId === null || accountId === undefined) {
throw new RequiredError('Required parameter accountId was null or undefined when calling listAWSTagFilters.');
}


// Path Params
const localVarPath = '/api/v1/integration/aws/filtering';

Expand All @@ -362,9 +362,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
if (accountId !== undefined) {
requestContext.setQueryParam("account_id", ObjectSerializer.serialize(accountId, "string", ""));
}

// Header Params

// Form Params


Expand All @@ -390,7 +390,7 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async listAvailableAWSNamespaces(options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// Path Params
const localVarPath = '/api/v1/integration/aws/available_namespace_rules';

Expand All @@ -399,9 +399,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")

// Query Params

// Header Params

// Form Params


Expand Down Expand Up @@ -431,16 +431,16 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
*/
public async updateAWSAccount(body: AWSAccount, accountId?: string, roleName?: string, accessKeyId?: string, options?: Configuration): Promise<RequestContext> {
let config = options || this.configuration;

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('Required parameter body was null or undefined when calling updateAWSAccount.');
}





// Path Params
const localVarPath = '/api/v1/integration/aws';

Expand All @@ -458,9 +458,9 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {
if (accessKeyId !== undefined) {
requestContext.setQueryParam("access_key_id", ObjectSerializer.serialize(accessKeyId, "string", ""));
}

// Header Params

// Form Params


Expand Down Expand Up @@ -491,8 +491,6 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory {

}



export class AWSIntegrationApiResponseProcessor {

/**
Expand Down Expand Up @@ -545,7 +543,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -589,7 +587,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -633,7 +631,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -684,7 +682,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -728,7 +726,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -772,7 +770,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -816,7 +814,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -853,7 +851,7 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(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
Expand Down Expand Up @@ -904,5 +902,5 @@ export class AWSIntegrationApiResponseProcessor {
let body = response.body || "";
throw new ApiException<string>(response.httpStatusCode, "Unknown API Status Code!\nBody: \"" + body + "\"");
}

}
Loading