Skip to content

Commit

Permalink
Merge pull request #10145 from linode/staging
Browse files Browse the repository at this point in the history
Release v1.111.0 - staging → master
  • Loading branch information
cpathipa authored Feb 5, 2024
2 parents 8bbaaad + 875d020 commit 1f5650a
Show file tree
Hide file tree
Showing 470 changed files with 12,210 additions and 5,549 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"docs": "bunx vitepress@1.0.0-rc.35 dev docs"
},
"resolutions": {
"@babel/traverse": "^7.23.3",
"minimist": "^1.2.3",
"yargs-parser": "^18.1.3",
"kind-of": "^6.0.3",
Expand Down
13 changes: 13 additions & 0 deletions packages/api-v4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## [2024-02-05] - v0.109.0


### Fixed:

- Accept `InterfacePayload` type when creating a Linode with interfaces specified ([#10086](https://github.com/linode/manager/pull/10086))
- Remove incorrect `_initial` property on `Event` type ([#9949](https://github.com/linode/manager/pull/9949))

### Upcoming Features:

- Add `user_type` to /profile endpoint for Parent/Child user roles ([#10080](https://github.com/linode/manager/pull/10080))
- Add `Akamai Cloud Load Balancer` to `AccountCapability` type ([#10098](https://github.com/linode/manager/pull/10098))

## [2024-01-22] - v0.108.0


Expand Down
2 changes: 1 addition & 1 deletion packages/api-v4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linode/api-v4",
"version": "0.108.0",
"version": "0.109.0",
"homepage": "https://github.com/linode/manager/tree/develop/packages/api-v4",
"bugs": {
"url": "https://github.com/linode/manager/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/api-v4/src/account/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface Account {
export type BillingSource = 'linode' | 'akamai';

export type AccountCapability =
| 'Akamai Cloud Load Balancer'
| 'Block Storage'
| 'Cloud Firewall'
| 'Kubernetes'
Expand Down Expand Up @@ -410,7 +411,6 @@ export interface Event {
time_remaining: null | string;
username: string | null;
secondary_entity: Entity | null;
_initial?: boolean;
message: string | null;
}
/**
Expand Down
10 changes: 5 additions & 5 deletions packages/api-v4/src/aglb/certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
/**
* getLoadbalancerCertificates
*
* Returns a paginated list of Akamai Global Load Balancer certificates
* Returns a paginated list of Akamai Cloud Load Balancer certificates
*/
export const getLoadbalancerCertificates = (
loadbalancerId: number,
Expand All @@ -39,7 +39,7 @@ export const getLoadbalancerCertificates = (
/**
* getLoadbalancerCertificate
*
* Returns an Akamai Global Load Balancer certificate
* Returns an Akamai Cloud Load Balancer certificate
*/
export const getLoadbalancerCertificate = (
loadbalancerId: number,
Expand All @@ -57,7 +57,7 @@ export const getLoadbalancerCertificate = (
/**
* createLoadbalancerCertificate
*
* Creates an Akamai Global Load Balancer certificate
* Creates an Akamai Cloud Load Balancer certificate
*/
export const createLoadbalancerCertificate = (
loadbalancerId: number,
Expand All @@ -74,7 +74,7 @@ export const createLoadbalancerCertificate = (
/**
* updateLoadbalancerCertificate
*
* Updates an Akamai Global Load Balancer certificate
* Updates an Akamai Cloud Load Balancer certificate
*/
export const updateLoadbalancerCertificate = (
loadbalancerId: number,
Expand All @@ -94,7 +94,7 @@ export const updateLoadbalancerCertificate = (
/**
* deleteLoadbalancerCertificate
*
* Deletes an Akamai Global Load Balancer certificate
* Deletes an Akamai Cloud Load Balancer certificate
*/
export const deleteLoadbalancerCertificate = (
loadbalancerId: number,
Expand Down
12 changes: 6 additions & 6 deletions packages/api-v4/src/aglb/configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
/**
* getLoadbalancerConfigurations
*
* Returns a paginated list of Akamai Global Load Balancer configurations
* Returns a paginated list of Akamai Cloud Load Balancer configurations
*/
export const getLoadbalancerConfigurations = (
loadbalancerId: number,
Expand All @@ -42,7 +42,7 @@ export const getLoadbalancerConfigurations = (
/**
* getLoadbalancerConfiguration
*
* Returns an Akamai Global Load Balancer configuration
* Returns an Akamai Cloud Load Balancer configuration
*/
export const getLoadbalancerConfiguration = (
loadbalancerId: number,
Expand All @@ -60,7 +60,7 @@ export const getLoadbalancerConfiguration = (
/**
* getLoadbalancerConfigurationsEndpointHealth
*
* Returns endpoint health for an Akamai Global Load Balancer configuration
* Returns endpoint health for an Akamai Cloud Load Balancer configuration
*/
export const getLoadbalancerConfigurationsEndpointHealth = (
loadbalancerId: number
Expand All @@ -77,7 +77,7 @@ export const getLoadbalancerConfigurationsEndpointHealth = (
/**
* createLoadbalancerConfiguration
*
* Creates an Akamai Global Load Balancer configuration
* Creates an Akamai Cloud Load Balancer configuration
*/
export const createLoadbalancerConfiguration = (
loadbalancerId: number,
Expand All @@ -96,7 +96,7 @@ export const createLoadbalancerConfiguration = (
/**
* updateLoadbalancerConfiguration
*
* Updates an Akamai Global Load Balancer configuration
* Updates an Akamai Cloud Load Balancer configuration
*/
export const updateLoadbalancerConfiguration = (
loadbalancerId: number,
Expand All @@ -116,7 +116,7 @@ export const updateLoadbalancerConfiguration = (
/**
* deleteLoadbalancerConfiguration
*
* Deletes an Akamai Global Load Balancer configuration
* Deletes an Akamai Cloud Load Balancer configuration
*/
export const deleteLoadbalancerConfiguration = (
loadbalancerId: number,
Expand Down
14 changes: 7 additions & 7 deletions packages/api-v4/src/aglb/loadbalancers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CreateBasicLoadbalancerSchema } from '@linode/validation';
/**
* getLoadbalancers
*
* Returns a paginated list of Akamai Global Load Balancers
* Returns a paginated list of Akamai Cloud Load Balancers
*/
export const getLoadbalancers = (params?: Params, filter?: Filter) =>
Request<ResourcePage<Loadbalancer>>(
Expand All @@ -32,7 +32,7 @@ export const getLoadbalancers = (params?: Params, filter?: Filter) =>
/**
* getLoadbalancer
*
* Returns an Akamai Global Load Balancer
* Returns an Akamai Cloud Load Balancer
*/
export const getLoadbalancer = (id: number) =>
Request<Loadbalancer>(
Expand All @@ -43,7 +43,7 @@ export const getLoadbalancer = (id: number) =>
/**
* getLoadbalancerEndpointHealth
*
* Returns the general endpoint health of an Akamai Global Load Balancer
* Returns the general endpoint health of an Akamai Cloud Load Balancer
*/
export const getLoadbalancerEndpointHealth = (id: number) =>
Request<LoadBalancerEndpointHealth>(
Expand All @@ -54,7 +54,7 @@ export const getLoadbalancerEndpointHealth = (id: number) =>
/**
* createLoadbalancer
*
* Creates an Akamai Global Load Balancer
* Creates an Akamai Cloud Load Balancer
*/
export const createLoadbalancer = (data: CreateLoadbalancerPayload) =>
Request<Loadbalancer>(
Expand All @@ -66,7 +66,7 @@ export const createLoadbalancer = (data: CreateLoadbalancerPayload) =>
/**
* createBasicLoadbalancer
*
* Creates an unconfigured Akamai Global Load Balancer
* Creates an unconfigured Akamai Cloud Load Balancer
*/
export const createBasicLoadbalancer = (data: CreateBasicLoadbalancerPayload) =>
Request<Loadbalancer>(
Expand All @@ -78,7 +78,7 @@ export const createBasicLoadbalancer = (data: CreateBasicLoadbalancerPayload) =>
/**
* updateLoadbalancer
*
* Updates an Akamai Global Load Balancer
* Updates an Akamai Cloud Load Balancer
*/
export const updateLoadbalancer = (
id: number,
Expand All @@ -93,7 +93,7 @@ export const updateLoadbalancer = (
/**
* deleteLoadbalancer
*
* Deletes an Akamai Global Load Balancer
* Deletes an Akamai Cloud Load Balancer
*/
export const deleteLoadbalancer = (id: number) =>
Request<{}>(
Expand Down
10 changes: 5 additions & 5 deletions packages/api-v4/src/aglb/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { UpdateRouteSchema, CreateRouteSchema } from '@linode/validation';
/**
* getLoadbalancerRoutes
*
* Returns a paginated list of Akamai Global Load Balancer routes
* Returns a paginated list of Akamai Cloud Load Balancer routes
*/
export const getLoadbalancerRoutes = (
loadbalancerId: number,
Expand All @@ -32,7 +32,7 @@ export const getLoadbalancerRoutes = (
/**
* getLoadbalancerRoute
*
* Returns an Akamai Global Load Balancer route
* Returns an Akamai Cloud Load Balancer route
*/
export const getLoadbalancerRoute = (loadbalancerId: number, routeId: number) =>
Request<Route>(
Expand All @@ -47,7 +47,7 @@ export const getLoadbalancerRoute = (loadbalancerId: number, routeId: number) =>
/**
* createLoadbalancerRoute
*
* Creates an Akamai Global Load Balancer route
* Creates an Akamai Cloud Load Balancer route
*/
export const createLoadbalancerRoute = (
loadbalancerId: number,
Expand All @@ -64,7 +64,7 @@ export const createLoadbalancerRoute = (
/**
* updateLoadbalancerRoute
*
* Updates an Akamai Global Load Balancer route
* Updates an Akamai Cloud Load Balancer route
*/
export const updateLoadbalancerRoute = (
loadbalancerId: number,
Expand All @@ -84,7 +84,7 @@ export const updateLoadbalancerRoute = (
/**
* deleteLoadbalancerRoute
*
* Deletes an Akamai Global Load Balancer route
* Deletes an Akamai Cloud Load Balancer route
*/
export const deleteLoadbalancerRoute = (
loadbalancerId: number,
Expand Down
12 changes: 6 additions & 6 deletions packages/api-v4/src/aglb/service-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
/**
* getLoadbalancerServiceTargets
*
* Returns a paginated list of Akamai Global Load Balancer service targets
* Returns a paginated list of Akamai Cloud Load Balancer service targets
*/
export const getLoadbalancerServiceTargets = (
loadbalancerId: number,
Expand All @@ -41,7 +41,7 @@ export const getLoadbalancerServiceTargets = (
/**
* getServiceTarget
*
* Returns an Akamai Global Load Balancer service target
* Returns an Akamai Cloud Load Balancer service target
*/
export const getServiceTarget = (
loadbalancerId: number,
Expand All @@ -59,7 +59,7 @@ export const getServiceTarget = (
/**
* getServiceTargetsEndpointHealth
*
* Returns endpoint health data for each service targets on an Akamai Global Load Balancer
* Returns endpoint health data for each service targets on an Akamai Cloud Load Balancer
*/
export const getServiceTargetsEndpointHealth = (loadbalancerId: number) =>
Request<ServiceTargetsEndpointHealth>(
Expand All @@ -74,7 +74,7 @@ export const getServiceTargetsEndpointHealth = (loadbalancerId: number) =>
/**
* createLoadbalancerServiceTarget
*
* Creates an Akamai Global Load Balancer service target
* Creates an Akamai Cloud Load Balancer service target
*/
export const createLoadbalancerServiceTarget = (
loadbalancerId: number,
Expand All @@ -93,7 +93,7 @@ export const createLoadbalancerServiceTarget = (
/**
* updateLoadbalancerServiceTarget
*
* Updates an Akamai Global Load Balancer service target
* Updates an Akamai Cloud Load Balancer service target
*/
export const updateLoadbalancerServiceTarget = (
loadbalancerId: number,
Expand All @@ -113,7 +113,7 @@ export const updateLoadbalancerServiceTarget = (
/**
* deleteLoadbalancerServiceTarget
*
* Deletes an Akamai Global Load Balancer service target
* Deletes an Akamai Cloud Load Balancer service target
*/
export const deleteLoadbalancerServiceTarget = (
loadbalancerId: number,
Expand Down
11 changes: 6 additions & 5 deletions packages/api-v4/src/aglb/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface CreateLoadbalancerPayload {
}

/**
* TODO: AGLB - remove when we move to full creation flow
* TODO: ACLB - remove when we move to full creation flow
*/
export interface CreateBasicLoadbalancerPayload {
label: string;
Expand All @@ -45,6 +45,7 @@ type Policy =
export type MatchField =
| 'always_match'
| 'path_prefix'
| 'path_regex'
| 'query'
| 'header'
| 'method';
Expand Down Expand Up @@ -221,22 +222,22 @@ export interface EndpointHealth {

export interface ConfigurationsEndpointHealth {
/**
* The id of the AGLB
* The id of the ACLB
*/
id: number;
/**
* An array of health data for each configuration on the AGLB
* An array of health data for each configuration on the ACLB
*/
configurations: EndpointHealth[];
}

export interface ServiceTargetsEndpointHealth {
/**
* The id of the AGLB
* The id of the ACLB
*/
id: number;
/**
* An array of health data for each service target on the AGLB
* An array of health data for each service target on the ACLB
*/
service_targets: EndpointHealth[];
}
2 changes: 1 addition & 1 deletion packages/api-v4/src/linodes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export interface CreateLinodeRequest {
tags?: string[];
private_ip?: boolean;
authorized_users?: string[];
interfaces?: Interface[];
interfaces?: InterfacePayload[];
metadata?: UserData;
firewall_id?: number;
}
Expand Down
17 changes: 17 additions & 0 deletions packages/api-v4/src/object-storage/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,23 @@ export const getBucketsInCluster = (
)
);

/**
* getBucketsInRegion
*
* Gets a list of a user's Object Storage Buckets in the specified region.
*/
export const getBucketsInRegion = (
regionId: string,
params?: Params,
filters?: Filter
) =>
Request<Page<ObjectStorageBucket>>(
setMethod('GET'),
setParams(params),
setXFilter(filters),
setURL(`${API_ROOT}/object-storage/buckets/${encodeURIComponent(regionId)}`)
);

/**
* createBucket
*
Expand Down
Loading

0 comments on commit 1f5650a

Please sign in to comment.