-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9382 from linode/staging
Release v1.97.0 - `staging` → `master`
- Loading branch information
Showing
803 changed files
with
6,756 additions
and
19,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import Request, { setData, setMethod, setURL } from '../request'; | ||
import { ResourcePage } from 'src/types'; | ||
import { BETA_API_ROOT } from 'src/constants'; | ||
import type { | ||
CreateEntrypointPayload, | ||
Entrypoint, | ||
EntrypointPayload, | ||
} from './types'; | ||
|
||
/** | ||
* getEntrypoints | ||
* | ||
* Returns a paginated list of Akamai Global Load Balancer entry points | ||
*/ | ||
export const getEntrypoints = () => | ||
Request<ResourcePage<Entrypoint>>( | ||
setURL(`${BETA_API_ROOT}/aglb/entrypoints`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* getEntrypoint | ||
* | ||
* Returns an Akamai Global Load Balancer entry point | ||
*/ | ||
export const getEntrypoint = (id: number) => | ||
Request<Entrypoint>( | ||
setURL(`${BETA_API_ROOT}/aglb/entrypoints/${encodeURIComponent(id)}`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* createEntrypoint | ||
* | ||
* Creates an Akamai Global Load Balancer entry point | ||
*/ | ||
export const createEntrypoint = (data: CreateEntrypointPayload) => | ||
Request<Entrypoint>( | ||
setURL(`${BETA_API_ROOT}/aglb/entrypoints`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* updateEntrypoint | ||
* | ||
* Updates an Akamai Global Load Balancer entry point | ||
*/ | ||
export const updateEntrypoint = ( | ||
id: number, | ||
data: Partial<EntrypointPayload> | ||
) => | ||
Request<Entrypoint>( | ||
setURL(`${BETA_API_ROOT}/aglb/entrypoints/${encodeURIComponent(id)}`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* deleteEntrypoint | ||
* | ||
* Deletes an Akamai Global Load Balancer entry point | ||
*/ | ||
export const deleteEntrypoint = (id: number) => | ||
Request<{}>( | ||
setURL(`${BETA_API_ROOT}/aglb/entrypoints/${encodeURIComponent(id)}`), | ||
setMethod('DELETE') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import Request, { setData, setMethod, setURL } from '../request'; | ||
import { BETA_API_ROOT } from 'src/constants'; | ||
import { ResourcePage } from 'src/types'; | ||
import type { | ||
CreateLoadbalancerPayload, | ||
Loadbalancer, | ||
UpdateLoadbalancerPayload, | ||
} from './types'; | ||
|
||
/** | ||
* getLoadbalancers | ||
* | ||
* Returns a paginated list of Akamai Global Load Balancers | ||
*/ | ||
export const getLoadbalancers = () => | ||
Request<ResourcePage<Loadbalancer>>( | ||
setURL(`${BETA_API_ROOT}/aglb/loadbalancers`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* getLoadbalancer | ||
* | ||
* Returns an Akamai Global Load Balancer | ||
*/ | ||
export const getLoadbalancer = (id: number) => | ||
Request<Loadbalancer>( | ||
setURL(`${BETA_API_ROOT}/aglb/loadbalancers/${encodeURIComponent(id)}`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* createLoadbalancer | ||
* | ||
* Creates an Akamai Global Load Balancer | ||
*/ | ||
export const createLoadbalancer = (data: CreateLoadbalancerPayload) => | ||
Request<Loadbalancer>( | ||
setURL(`${BETA_API_ROOT}/aglb/loadbalancers`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* updateLoadbalancer | ||
* | ||
* Updates an Akamai Global Load Balancer | ||
*/ | ||
export const updateLoadbalancer = ( | ||
id: number, | ||
data: UpdateLoadbalancerPayload | ||
) => | ||
Request<Loadbalancer>( | ||
setURL(`${BETA_API_ROOT}/aglb/loadbalancers/${encodeURIComponent(id)}`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* deleteLoadbalancer | ||
* | ||
* Deletes an Akamai Global Load Balancer | ||
*/ | ||
export const deleteLoadbalancer = (id: number) => | ||
Request<{}>( | ||
setURL(`${BETA_API_ROOT}/aglb/loadbalancers/${encodeURIComponent(id)}`), | ||
setMethod('DELETE') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import Request, { setData, setMethod, setURL } from '../request'; | ||
import { ResourcePage } from 'src/types'; | ||
import { BETA_API_ROOT } from 'src/constants'; | ||
import type { Route, RoutePayload } from './types'; | ||
|
||
/** | ||
* getRoutes | ||
* | ||
* Returns a paginated list of Akamai Global Load Balancer routes | ||
*/ | ||
export const getRoutes = () => | ||
Request<ResourcePage<Route>>( | ||
setURL(`${BETA_API_ROOT}/aglb/routes`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* getRoute | ||
* | ||
* Returns an Akamai Global Load Balancer route | ||
*/ | ||
export const getRoute = (id: number) => | ||
Request<Route>( | ||
setURL(`${BETA_API_ROOT}/aglb/routes/${encodeURIComponent(id)}`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* createRoute | ||
* | ||
* Creates an Akamai Global Load Balancer route | ||
*/ | ||
export const createRoute = (data: RoutePayload) => | ||
Request<Route>( | ||
setURL(`${BETA_API_ROOT}/aglb/routes`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* updateRoute | ||
* | ||
* Updates an Akamai Global Load Balancer route | ||
*/ | ||
export const updateRoute = (id: number, data: Partial<RoutePayload>) => | ||
Request<Route>( | ||
setURL(`${BETA_API_ROOT}/aglb/routes/${encodeURIComponent(id)}`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* deleteRoute | ||
* | ||
* Deletes an Akamai Global Load Balancer route | ||
*/ | ||
export const deleteRoute = (id: number) => | ||
Request<{}>( | ||
setURL(`${BETA_API_ROOT}/aglb/routes/${encodeURIComponent(id)}`), | ||
setMethod('DELETE') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import Request, { setData, setMethod, setURL } from '../request'; | ||
import { ResourcePage } from 'src/types'; | ||
import { BETA_API_ROOT } from 'src/constants'; | ||
import type { ServiceTarget, ServiceTargetPayload } from './types'; | ||
|
||
/** | ||
* getServiceTargets | ||
* | ||
* Returns a paginated list of Akamai Global Load Balancer service targets | ||
*/ | ||
export const getServiceTargets = () => | ||
Request<ResourcePage<ServiceTarget>>( | ||
setURL(`${BETA_API_ROOT}/aglb/service-targets`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* getServiceTarget | ||
* | ||
* Returns an Akamai Global Load Balancer route | ||
*/ | ||
export const getServiceTarget = (id: number) => | ||
Request<ServiceTarget>( | ||
setURL(`${BETA_API_ROOT}/aglb/service-targets/${encodeURIComponent(id)}`), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* createServiceTarget | ||
* | ||
* Creates an Akamai Global Load Balancer route | ||
*/ | ||
export const createServiceTarget = (data: ServiceTargetPayload) => | ||
Request<ServiceTarget>( | ||
setURL(`${BETA_API_ROOT}/aglb/service-targets`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* updateServiceTarget | ||
* | ||
* Updates an Akamai Global Load Balancer route | ||
*/ | ||
export const updateServiceTarget = ( | ||
id: number, | ||
data: Partial<ServiceTargetPayload> | ||
) => | ||
Request<ServiceTarget>( | ||
setURL(`${BETA_API_ROOT}/aglb/service-targets/${encodeURIComponent(id)}`), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* deleteServiceTarget | ||
* | ||
* Deletes an Akamai Global Load Balancer service target | ||
*/ | ||
export const deleteServiceTarget = (id: number) => | ||
Request<{}>( | ||
setURL(`${BETA_API_ROOT}/aglb/service-targets/${encodeURIComponent(id)}`), | ||
setMethod('DELETE') | ||
); |
Oops, something went wrong.