Skip to content

Update IP ranges with synthetics private locations section #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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.6.2",
"regenerated": "2022-06-27 16:07:52.649564",
"spec_repo_commit": "2d1ebbf0"
"regenerated": "2022-06-28 06:45:52.602520",
"spec_repo_commit": "de78e1e5"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-06-27 16:07:52.664534",
"spec_repo_commit": "2d1ebbf0"
"regenerated": "2022-06-28 06:45:52.618119",
"spec_repo_commit": "de78e1e5"
}
}
}
19 changes: 19 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3797,6 +3797,23 @@ components:
description: List of IPv6 prefixes by location.
type: object
type: object
IPPrefixesSyntheticsPrivateLocations:
description: Available prefix information for the Synthetics Private Locations
endpoints.
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesWebhooks:
description: Available prefix information for the Webhook endpoints.
properties:
Expand Down Expand Up @@ -3832,6 +3849,8 @@ components:
$ref: '#/components/schemas/IPPrefixesProcess'
synthetics:
$ref: '#/components/schemas/IPPrefixesSynthetics'
synthetics-private-locations:
$ref: '#/components/schemas/IPPrefixesSyntheticsPrivateLocations'
version:
description: Version of the IP list.
example: 11
Expand Down
1 change: 1 addition & 0 deletions packages/datadog-api-client-v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ export { IPPrefixesAPM } from "./models/IPPrefixesAPM";
export { IPPrefixesLogs } from "./models/IPPrefixesLogs";
export { IPPrefixesProcess } from "./models/IPPrefixesProcess";
export { IPPrefixesSynthetics } from "./models/IPPrefixesSynthetics";
export { IPPrefixesSyntheticsPrivateLocations } from "./models/IPPrefixesSyntheticsPrivateLocations";
export { IPPrefixesWebhooks } from "./models/IPPrefixesWebhooks";
export { IPRanges } from "./models/IPRanges";
export { ListStreamColumn } from "./models/ListStreamColumn";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* 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 { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* Available prefix information for the Synthetics Private Locations endpoints.
*/
export class IPPrefixesSyntheticsPrivateLocations {
/**
* List of IPv4 prefixes.
*/
"prefixesIpv4"?: Array<string>;
/**
* List of IPv6 prefixes.
*/
"prefixesIpv6"?: Array<string>;

/**
* @ignore
*/
"unparsedObject"?: any;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
prefixesIpv4: {
baseName: "prefixes_ipv4",
type: "Array<string>",
},
prefixesIpv6: {
baseName: "prefixes_ipv6",
type: "Array<string>",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return IPPrefixesSyntheticsPrivateLocations.attributeTypeMap;
}

public constructor() {}
}
9 changes: 9 additions & 0 deletions packages/datadog-api-client-v1/models/IPRanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { IPPrefixesAPM } from "./IPPrefixesAPM";
import { IPPrefixesLogs } from "./IPPrefixesLogs";
import { IPPrefixesProcess } from "./IPPrefixesProcess";
import { IPPrefixesSynthetics } from "./IPPrefixesSynthetics";
import { IPPrefixesSyntheticsPrivateLocations } from "./IPPrefixesSyntheticsPrivateLocations";
import { IPPrefixesWebhooks } from "./IPPrefixesWebhooks";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";
Expand Down Expand Up @@ -45,6 +46,10 @@ export class IPRanges {
* Available prefix information for the Synthetics endpoints.
*/
"synthetics"?: IPPrefixesSynthetics;
/**
* Available prefix information for the Synthetics Private Locations endpoints.
*/
"syntheticsPrivateLocations"?: IPPrefixesSyntheticsPrivateLocations;
/**
* Version of the IP list.
*/
Expand Down Expand Up @@ -91,6 +96,10 @@ export class IPRanges {
baseName: "synthetics",
type: "IPPrefixesSynthetics",
},
syntheticsPrivateLocations: {
baseName: "synthetics-private-locations",
type: "IPPrefixesSyntheticsPrivateLocations",
},
version: {
baseName: "version",
type: "number",
Expand Down
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v1/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ import { IPPrefixesAgents } from "./IPPrefixesAgents";
import { IPPrefixesLogs } from "./IPPrefixesLogs";
import { IPPrefixesProcess } from "./IPPrefixesProcess";
import { IPPrefixesSynthetics } from "./IPPrefixesSynthetics";
import { IPPrefixesSyntheticsPrivateLocations } from "./IPPrefixesSyntheticsPrivateLocations";
import { IPPrefixesWebhooks } from "./IPPrefixesWebhooks";
import { IPRanges } from "./IPRanges";
import { IdpFormData } from "./IdpFormData";
Expand Down Expand Up @@ -1354,6 +1355,7 @@ const typeMap: { [index: string]: any } = {
IPPrefixesLogs: IPPrefixesLogs,
IPPrefixesProcess: IPPrefixesProcess,
IPPrefixesSynthetics: IPPrefixesSynthetics,
IPPrefixesSyntheticsPrivateLocations: IPPrefixesSyntheticsPrivateLocations,
IPPrefixesWebhooks: IPPrefixesWebhooks,
IPRanges: IPRanges,
IdpFormData: IdpFormData,
Expand Down