This is an automated email from the ASF dual-hosted git repository. ocket8888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
commit 456922f02b93d4932a4a5236ab746bd9fbcb93b7 Author: ocket8888 <[email protected]> AuthorDate: Wed Apr 27 21:24:50 2022 -0600 Add license headers --- src/about.ts | 18 ++++++++++++++++++ src/acme.ts | 18 ++++++++++++++++++ src/alert.ts | 18 ++++++++++++++++++ src/cache.group.ts | 18 ++++++++++++++++++ src/capability.ts | 18 ++++++++++++++++++ src/cdn.ts | 18 ++++++++++++++++++ src/coordinate.ts | 18 ++++++++++++++++++ src/delivery.service.request.ts | 18 ++++++++++++++++++ src/delivery.service.ts | 18 ++++++++++++++++++ src/division.ts | 18 ++++++++++++++++++ src/dnssec.ts | 18 ++++++++++++++++++ src/federation.ts | 18 ++++++++++++++++++ src/index.ts | 18 ++++++++++++++++++ src/invalidation.ts | 18 ++++++++++++++++++ src/iso.ts | 18 ++++++++++++++++++ src/login.ts | 18 ++++++++++++++++++ src/logs.ts | 18 ++++++++++++++++++ src/origin.ts | 18 ++++++++++++++++++ src/physical.location.ts | 18 ++++++++++++++++++ src/plugin.ts | 18 ++++++++++++++++++ src/profile.ts | 18 ++++++++++++++++++ src/router.ts | 18 ++++++++++++++++++ src/server.capability.ts | 18 ++++++++++++++++++ src/server.ts | 18 ++++++++++++++++++ src/snap.and.queue.ts | 18 ++++++++++++++++++ src/ssl.ts | 18 ++++++++++++++++++ src/stats.ts | 18 ++++++++++++++++++ src/status.ts | 18 ++++++++++++++++++ src/steering.ts | 18 ++++++++++++++++++ src/topology.ts | 18 ++++++++++++++++++ src/type.ts | 18 ++++++++++++++++++ src/uri.signing.ts | 18 ++++++++++++++++++ src/user.ts | 18 ++++++++++++++++++ src/vault.ts | 18 ++++++++++++++++++ 34 files changed, 612 insertions(+) diff --git a/src/about.ts b/src/about.ts index b7c4e1e..0803626 100644 --- a/src/about.ts +++ b/src/about.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** Represents the response to a request made to the /about API endpoint. */ export interface About { commitHash?: string; diff --git a/src/acme.ts b/src/acme.ts index 0be2dcb..56eb3ee 100644 --- a/src/acme.ts +++ b/src/acme.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * ACMEAccount represents an ACME account as required by and given in requests * to and responses from /acme_accounts. diff --git a/src/alert.ts b/src/alert.ts index 943b266..fdde9e2 100644 --- a/src/alert.ts +++ b/src/alert.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** The allowed/known "level"s of Traffic Ops API Alerts. */ export const enum AlertLevel { /** An error occurred, and the request could not be fulfilled. */ diff --git a/src/cache.group.ts b/src/cache.group.ts index b221ac1..d610a21 100644 --- a/src/cache.group.ts +++ b/src/cache.group.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** Represents an ASN in an API response. */ export interface ResponseASN { asn: number; diff --git a/src/capability.ts b/src/capability.ts index 1db867a..5c44698 100644 --- a/src/capability.ts +++ b/src/capability.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a mapping of a Traffic Ops API route to a Capability it might * require. These cannot be modified through the API. diff --git a/src/cdn.ts b/src/cdn.ts index 938eed8..aea8099 100644 --- a/src/cdn.ts +++ b/src/cdn.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a CDN as required by the Traffic Ops API in requests. */ diff --git a/src/coordinate.ts b/src/coordinate.ts index b26e12a..5f423ef 100644 --- a/src/coordinate.ts +++ b/src/coordinate.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a Coordinate as Traffic Ops requires it in requests made to the * `/coordinates` endpoint of its API. diff --git a/src/delivery.service.request.ts b/src/delivery.service.request.ts index 64503a4..d8e8d1d 100644 --- a/src/delivery.service.request.ts +++ b/src/delivery.service.request.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + import type { DeliveryService } from "./delivery.service"; /** diff --git a/src/delivery.service.ts b/src/delivery.service.ts index 0e910eb..f5dcd64 100644 --- a/src/delivery.service.ts +++ b/src/delivery.service.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents the `geoLimit` field of a Delivery Service */ diff --git a/src/division.ts b/src/division.ts index 4a9e2c6..aec5307 100644 --- a/src/division.ts +++ b/src/division.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a Division as required by the Traffic Ops API in requests. */ diff --git a/src/dnssec.ts b/src/dnssec.ts index 54d1ab3..c599c06 100644 --- a/src/dnssec.ts +++ b/src/dnssec.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a request to generate DNSSEC Keys for a CDN. */ diff --git a/src/federation.ts b/src/federation.ts index c8153f1..fc0d6d5 100644 --- a/src/federation.ts +++ b/src/federation.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a "CDN Federation" in a response to a GET made to the * `/cdns/{{name}}/federations` endpoint of the Traffic Ops API diff --git a/src/index.ts b/src/index.ts index 5971cec..c1e6fe6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + import type { Alert } from "./alert"; export * from "./about"; diff --git a/src/invalidation.ts b/src/invalidation.ts index 80b05f0..72a051e 100644 --- a/src/invalidation.ts +++ b/src/invalidation.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** JobType enumerates the valid types of Job. */ export const enum JobType { /** Content Invalidation Request. */ diff --git a/src/iso.ts b/src/iso.ts index fb17d39..ae14f34 100644 --- a/src/iso.ts +++ b/src/iso.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** The basic fields common to all ISO request bodies. */ interface ISOFields { disk: string; diff --git a/src/login.ts b/src/login.ts index 3483865..ce600f7 100644 --- a/src/login.ts +++ b/src/login.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * The standard, traditional body of a login request. */ diff --git a/src/logs.ts b/src/logs.ts index 5aecd12..c644a5e 100644 --- a/src/logs.ts +++ b/src/logs.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a single Traffic Ops ChangeLog entry as returned by the `/logs` * endpoint of its API. diff --git a/src/origin.ts b/src/origin.ts index e9c237e..ade5c51 100644 --- a/src/origin.ts +++ b/src/origin.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents an Origin in the context of a request body. */ diff --git a/src/physical.location.ts b/src/physical.location.ts index 729f59f..fced469 100644 --- a/src/physical.location.ts +++ b/src/physical.location.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a Physical Location as returned by the Traffic Ops API in * responses. diff --git a/src/plugin.ts b/src/plugin.ts index 7df1df7..4778593 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a Traffic Ops plugin as reported by the `/plugins` API endpoint. * diff --git a/src/profile.ts b/src/profile.ts index facb8e5..e63cbd9 100644 --- a/src/profile.ts +++ b/src/profile.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** ProfileTypes are the valid `type`s of Profiles. */ export const enum ProfileType { /** diff --git a/src/router.ts b/src/router.ts index e618f4a..56cd22b 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a Consistent Hashing Regular Expression and a sample route * submitted to the API to test how it would be routed. diff --git a/src/server.capability.ts b/src/server.capability.ts index 360ec6f..b8784fa 100644 --- a/src/server.capability.ts +++ b/src/server.capability.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** Represents a request to create or modify a Server Capability. */ export interface RequestServerCapability { name: string; diff --git a/src/server.ts b/src/server.ts index 6c91136..b0292e3 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * This file is for modeling and functionality related to Server objects */ diff --git a/src/snap.and.queue.ts b/src/snap.and.queue.ts index 45330dd..2aa3346 100644 --- a/src/snap.and.queue.ts +++ b/src/snap.and.queue.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + import type { LocalizationMethod } from "./cache.group"; import type { Interface } from "./server"; diff --git a/src/ssl.ts b/src/ssl.ts index bb1c6e6..1fd2fe0 100644 --- a/src/ssl.ts +++ b/src/ssl.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents the SSL Keys for a Delivery Service within a CDN as presented by * Traffic Ops in its responses to requests made to its diff --git a/src/stats.ts b/src/stats.ts index 507ce73..b38df27 100644 --- a/src/stats.ts +++ b/src/stats.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** CacheStatsSeries is a set of data collected by Traffic Stats. */ export interface CacheStatsSeries { columns: ["time", "sum_count"]; diff --git a/src/status.ts b/src/status.ts index 339596b..eceee0a 100644 --- a/src/status.ts +++ b/src/status.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** ResponseStatus represents a Status as returned in responses from the API. */ export interface ResponseStatus { description: string | null; diff --git a/src/steering.ts b/src/steering.ts index 662ae30..09b9cd2 100644 --- a/src/steering.ts +++ b/src/steering.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents all of the information necessary to route a steered Delivery * Service. diff --git a/src/topology.ts b/src/topology.ts index 1c99f84..39c286a 100644 --- a/src/topology.ts +++ b/src/topology.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * Represents a Topology as Traffic Ops requires it in requests to its API. */ diff --git a/src/type.ts b/src/type.ts index 4eb59bb..c4570b0 100644 --- a/src/type.ts +++ b/src/type.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * TypeFromResponse represents a Type as shown in the responses from the API. * diff --git a/src/uri.signing.ts b/src/uri.signing.ts index b88709b..16befcd 100644 --- a/src/uri.signing.ts +++ b/src/uri.signing.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** Represents the URL-signing keys of a Delivery Service. */ export type DSURLKeys = Record<`key${number}`, string>; diff --git a/src/user.ts b/src/user.ts index dd810ff..d23ecfc 100644 --- a/src/user.ts +++ b/src/user.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * PostRequestUser is a user as it appears in a POST request to /users. * This is subtly different from a user as required in other contexts. For more diff --git a/src/vault.ts b/src/vault.ts index 9fc84f9..088be05 100644 --- a/src/vault.ts +++ b/src/vault.ts @@ -1,3 +1,21 @@ +/* + * trafficops-types Typings and utility functions for Traffic Ops API objects. + * Copyright (C) 2022 ocket8888 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + /** * The type of a response from the `vault/ping` endpoint of the Traffic Ops API. */
