Skip to content

Commit 4ca1ecc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3359ee7 of spec repo
1 parent f0a753f commit 4ca1ecc

10,575 files changed

Lines changed: 682956 additions & 274551 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ components:
14521452
format: int64
14531453
type: integer
14541454
PageSize:
1455-
description: Size for a given page. The maximum allowed value is 100.
1455+
description: Number of items to return per page. The maximum allowed value is 100.
14561456
in: query
14571457
name: page[size]
14581458
required: false
@@ -7702,7 +7702,7 @@ components:
77027702
description: An arbitrary object value with additional properties.
77037703
type: object
77047704
AnyValueString:
7705-
description: A scalar string value.
7705+
description: A scalar value represented as a string.
77067706
type: string
77077707
ApiID:
77087708
description: API identifier.

packages/datadog-api-client-common/auth.ts

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,52 +82,62 @@ export class AppKeyAuthAuthentication implements SecurityAuthentication {
8282
}
8383

8484
export type AuthMethods = {
85-
AuthZ?: SecurityAuthentication;
86-
apiKeyAuth?: SecurityAuthentication;
87-
appKeyAuth?: SecurityAuthentication;
88-
};
85+
"AuthZ"?: SecurityAuthentication,
86+
"apiKeyAuth"?: SecurityAuthentication,
87+
"appKeyAuth"?: SecurityAuthentication
88+
}
8989

9090
export type ApiKeyConfiguration = string;
91-
export type HttpBasicConfiguration = { username: string; password: string };
91+
export type HttpBasicConfiguration = { "username": string, "password": string };
9292
export type HttpBearerConfiguration = { tokenProvider: TokenProvider };
9393
export type OAuth2Configuration = { accessToken: string };
9494

9595
export type AuthMethodsConfiguration = {
96-
AuthZ?: OAuth2Configuration;
97-
apiKeyAuth?: ApiKeyConfiguration;
98-
appKeyAuth?: ApiKeyConfiguration;
99-
};
96+
"AuthZ"?: OAuth2Configuration,
97+
"apiKeyAuth"?: ApiKeyConfiguration,
98+
"appKeyAuth"?: ApiKeyConfiguration
99+
}
100100

101101
/**
102102
* Creates the authentication methods from a swagger description.
103103
*
104104
*/
105-
export function configureAuthMethods(
106-
config: AuthMethodsConfiguration | undefined
107-
): AuthMethods {
108-
const authMethods: AuthMethods = {};
105+
export function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods {
106+
let authMethods: AuthMethods = {}
109107

110108
if (!config) {
111109
return authMethods;
112110
}
113111

114112
if (config["AuthZ"]) {
115113
authMethods["AuthZ"] = new AuthZAuthentication(
114+
115+
116+
117+
116118
config["AuthZ"]["accessToken"]
117119
);
118120
}
119121

120122
if (config["apiKeyAuth"]) {
121123
authMethods["apiKeyAuth"] = new ApiKeyAuthAuthentication(
124+
122125
config["apiKeyAuth"]
126+
127+
128+
123129
);
124130
}
125131

126132
if (config["appKeyAuth"]) {
127133
authMethods["appKeyAuth"] = new AppKeyAuthAuthentication(
134+
128135
config["appKeyAuth"]
136+
137+
138+
129139
);
130140
}
131141

132142
return authMethods;
133-
}
143+
}

packages/datadog-api-client-common/baseapi.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ export class BaseAPIRequestFactory {
2727
* @extends {Error}
2828
*/
2929
export class RequiredError extends Error {
30-
constructor(
31-
public field: string,
32-
operation: string
33-
) {
34-
super(
35-
`Required parameter ${field} was null or undefined when calling ${operation}.`
36-
);
30+
constructor(public field: string, operation: string) {
31+
super(`Required parameter ${field} was null or undefined when calling ${operation}.`);
3732
this.name = "RequiredError";
3833
}
39-
}
34+
}

0 commit comments

Comments
 (0)