-
Notifications
You must be signed in to change notification settings - Fork 370
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 #9571 from linode/staging
Release v1.100.0 - staging → master
- Loading branch information
Showing
649 changed files
with
8,393 additions
and
6,751 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,5 +68,6 @@ | |
"version": "0.0.0", | ||
"volta": { | ||
"node": "18.14.1" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
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,102 @@ | ||
import Request, { | ||
setData, | ||
setMethod, | ||
setParams, | ||
setURL, | ||
setXFilter, | ||
} from '../request'; | ||
import { BETA_API_ROOT } from 'src/constants'; | ||
import { Filter, Params, ResourcePage } from '../types'; | ||
import { Certificate, CreateCertificatePayload } from './types'; | ||
|
||
/** | ||
* getLoadbalancerCertificates | ||
* | ||
* Returns a paginated list of Akamai Global Load Balancer certificates | ||
*/ | ||
export const getLoadbalancerCertificates = ( | ||
loadbalancerId: number, | ||
params?: Params, | ||
filter?: Filter | ||
) => | ||
Request<ResourcePage<Certificate>>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent(loadbalancerId)}/certificates` | ||
), | ||
setMethod('GET'), | ||
setParams(params), | ||
setXFilter(filter) | ||
); | ||
|
||
/** | ||
* getLoadbalancerCertificate | ||
* | ||
* Returns an Akamai Global Load Balancer certificate | ||
*/ | ||
export const getLoadbalancerCertificate = ( | ||
loadbalancerId: number, | ||
certificateId: number | ||
) => | ||
Request<Certificate>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/certificates/${encodeURIComponent(certificateId)}` | ||
), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* createLoadbalancerCertificate | ||
* | ||
* Creates an Akamai Global Load Balancer certificate | ||
*/ | ||
export const createLoadbalancerCertificate = ( | ||
loadbalancerId: number, | ||
data: CreateCertificatePayload | ||
) => | ||
Request<Certificate>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent(loadbalancerId)}/certificates` | ||
), | ||
setMethod('POST'), | ||
setData(data) | ||
); | ||
|
||
/** | ||
* updateLoadbalancerCertificate | ||
* | ||
* Creates an Akamai Global Load Balancer certificate | ||
*/ | ||
export const updateLoadbalancerCertificate = ( | ||
loadbalancerId: number, | ||
certificateId: number, | ||
data: Partial<CreateCertificatePayload> | ||
) => | ||
Request<Certificate>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/certificates/${encodeURIComponent(certificateId)}` | ||
), | ||
setMethod('PUT'), | ||
setData(data) | ||
); | ||
|
||
/** | ||
* deleteLoadbalancerCertificate | ||
* | ||
* Deletes an Akamai Global Load Balancer certificate | ||
*/ | ||
export const deleteLoadbalancerCertificate = ( | ||
loadbalancerId: number, | ||
certificateId: number | ||
) => | ||
Request<{}>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/certificates/${encodeURIComponent(certificateId)}` | ||
), | ||
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,106 @@ | ||
import Request, { | ||
setData, | ||
setMethod, | ||
setParams, | ||
setURL, | ||
setXFilter, | ||
} from '../request'; | ||
import { Filter, Params, ResourcePage } from '../types'; | ||
import { BETA_API_ROOT } from '../constants'; | ||
import type { Configuration, ConfigurationPayload } from './types'; | ||
|
||
/** | ||
* getLoadbalancerConfigurations | ||
* | ||
* Returns a paginated list of Akamai Global Load Balancer configurations | ||
*/ | ||
export const getLoadbalancerConfigurations = ( | ||
loadbalancerId: number, | ||
params?: Params, | ||
filter?: Filter | ||
) => | ||
Request<ResourcePage<Configuration>>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/configurations` | ||
), | ||
setMethod('GET'), | ||
setParams(params), | ||
setXFilter(filter) | ||
); | ||
|
||
/** | ||
* getLoadbalancerConfiguration | ||
* | ||
* Returns an Akamai Global Load Balancer configuration | ||
*/ | ||
export const getLoadbalancerConfiguration = ( | ||
loadbalancerId: number, | ||
configurationId: number | ||
) => | ||
Request<Configuration>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/configurations/${encodeURIComponent(configurationId)}` | ||
), | ||
setMethod('GET') | ||
); | ||
|
||
/** | ||
* createLoadbalancerConfiguration | ||
* | ||
* Creates an Akamai Global Load Balancer configuration | ||
*/ | ||
export const createLoadbalancerConfiguration = ( | ||
loadbalancerId: number, | ||
data: ConfigurationPayload | ||
) => | ||
Request<Configuration>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/configurations` | ||
), | ||
setData(data), | ||
setMethod('POST') | ||
); | ||
|
||
/** | ||
* updateLoadbalancerConfiguration | ||
* | ||
* Updates an Akamai Global Load Balancer configuration | ||
*/ | ||
export const updateLoadbalancerConfiguration = ( | ||
loadbalancerId: number, | ||
configurationId: number, | ||
data: Partial<ConfigurationPayload> | ||
) => | ||
Request<Configuration>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/configurations/${encodeURIComponent(configurationId)}` | ||
), | ||
setData(data), | ||
setMethod('PUT') | ||
); | ||
|
||
/** | ||
* deleteLoadbalancerConfiguration | ||
* | ||
* Deletes an Akamai Global Load Balancer configuration | ||
*/ | ||
export const deleteLoadbalancerConfiguration = ( | ||
loadbalancerId: number, | ||
configurationId: number | ||
) => | ||
Request<{}>( | ||
setURL( | ||
`${BETA_API_ROOT}/aglb/${encodeURIComponent( | ||
loadbalancerId | ||
)}/configurations/${encodeURIComponent(configurationId)}` | ||
), | ||
setMethod('DELETE') | ||
); |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './entrypoints'; | ||
export * from './configurations'; | ||
|
||
export * from './loadbalancers'; | ||
|
||
|
Oops, something went wrong.