-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into M3-6922-v2
- Loading branch information
Showing
393 changed files
with
6,346 additions
and
5,156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/api-v4": Changed | ||
--- | ||
|
||
Include `vpc_id` and rename `subnet` to `subnet_id` in Linode config interface return object ([#9485](https://github.com/linode/manager/pull/9485)) |
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.