Skip to content

Commit bc9cbb4

Browse files
authored
Merge branch 'main' into v1.6201.0
2 parents 70c482a + 5160083 commit bc9cbb4

File tree

8 files changed

+24
-63
lines changed

8 files changed

+24
-63
lines changed

packages/clients/src/api/billing/v2beta1/api.gen.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,16 @@ export class API extends ParentAPI {
221221
)
222222

223223
/**
224-
* List discounts. List all discounts for your organization and usable
224+
* List discounts. List all discounts for your Organization and usable
225225
* categories, products, offers, references, regions and zones where the
226-
* discount can be applied.
226+
* discount can be applied. As a reseller:
227+
*
228+
* - If you do not specify an `organization_id` you will list the discounts
229+
* applied to your own Organization and your customers
230+
* - If you indicate your `organization_id` you will list only the discounts
231+
* applied to your Organization
232+
* - If you indicate `the organization_id` of one of your customers, you will
233+
* list the discounts applied to their Organization.
227234
*
228235
* @param request - The request {@link ListDiscountsRequest}
229236
* @returns A Promise of ListDiscountsResponse

packages/clients/src/api/billing/v2beta1/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export interface Discount {
119119
id: string
120120
/** The creation date of the discount. */
121121
creationDate?: Date
122-
/** The organization ID of the discount. */
122+
/** The Organization ID of the discount. */
123123
organizationId: string
124124
/** The description of the discount. */
125125
description: string

packages/clients/src/api/mongodb/v1alpha1/types.gen.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ export type SnapshotStatus =
4848
| 'error'
4949
| 'locked'
5050

51-
export type UserRoleRole = 'unknown_role' | 'read' | 'read_write' | 'db_admin'
51+
export type UserRoleRole =
52+
| 'unknown_role'
53+
| 'read'
54+
| 'read_write'
55+
| 'db_admin'
56+
| 'sync'
5257

5358
export type VolumeType = 'unknown_type' | 'sbs_5k' | 'sbs_15k'
5459

packages/clients/src/api/secret/v1beta1/api.gen.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ import type {
4646
ListTagsRequest,
4747
ListTagsResponse,
4848
ProtectSecretRequest,
49-
RestoreSecretRequest,
50-
RestoreSecretVersionRequest,
5149
Secret,
5250
SecretVersion,
5351
UnprotectSecretRequest,
@@ -499,40 +497,4 @@ export class API extends ParentAPI {
499497
*/
500498
listSecretTypes = (request: Readonly<ListSecretTypesRequest> = {}) =>
501499
enrichForPagination('types', this.pageOfListSecretTypes, request)
502-
503-
/**
504-
* Restore a version.. Restore a secret's version specified by the `region`,
505-
* `secret_id` and `revision` parameters.
506-
*
507-
* @param request - The request {@link RestoreSecretVersionRequest}
508-
* @returns A Promise of SecretVersion
509-
*/
510-
restoreSecretVersion = (request: Readonly<RestoreSecretVersionRequest>) =>
511-
this.client.fetch<SecretVersion>(
512-
{
513-
body: '{}',
514-
headers: jsonContentHeaders,
515-
method: 'POST',
516-
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/versions/${validatePathParam('revision', request.revision)}/restore`,
517-
},
518-
unmarshalSecretVersion,
519-
)
520-
521-
/**
522-
* Restore a secret.. Restore a secret and all its versions scheduled for
523-
* deletion specified by the `region` and `secret_id` parameters.
524-
*
525-
* @param request - The request {@link RestoreSecretRequest}
526-
* @returns A Promise of Secret
527-
*/
528-
restoreSecret = (request: Readonly<RestoreSecretRequest>) =>
529-
this.client.fetch<Secret>(
530-
{
531-
body: '{}',
532-
headers: jsonContentHeaders,
533-
method: 'POST',
534-
path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam('secretId', request.secretId)}/restore`,
535-
},
536-
unmarshalSecret,
537-
)
538500
}

packages/clients/src/api/secret/v1beta1/index.gen.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export type {
3636
ListTagsResponse,
3737
Product,
3838
ProtectSecretRequest,
39-
RestoreSecretRequest,
40-
RestoreSecretVersionRequest,
4139
SSHKey,
4240
Secret,
4341
SecretStatus,

packages/clients/src/api/secret/v1beta1/types.gen.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -550,25 +550,6 @@ export type ProtectSecretRequest = {
550550
secretId: string
551551
}
552552

553-
export type RestoreSecretRequest = {
554-
/**
555-
* Region to target. If none is passed will use default region from the
556-
* config.
557-
*/
558-
region?: ScwRegion
559-
secretId: string
560-
}
561-
562-
export type RestoreSecretVersionRequest = {
563-
/**
564-
* Region to target. If none is passed will use default region from the
565-
* config.
566-
*/
567-
region?: ScwRegion
568-
secretId: string
569-
revision: string
570-
}
571-
572553
export interface SSHKey {
573554
/** The private SSH key. */
574555
sshPrivateKey: string

packages/clients/src/api/vpcgw/v1/api.gen.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,13 @@ export class API extends ParentAPI {
945945
unmarshalGateway,
946946
)
947947

948+
/**
949+
* Put a Public Gateway in IPAM mode. Put a Public Gateway in IPAM mode, so
950+
* that it can be used with the Public Gateways API v2. This call is
951+
* idempotent.
952+
*
953+
* @param request - The request {@link MigrateToV2Request}
954+
*/
948955
migrateToV2 = (request: Readonly<MigrateToV2Request>) =>
949956
this.client.fetch<void>({
950957
body: '{}',

packages/clients/src/api/vpcgw/v1/types.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ export interface ListPATRulesResponse {
818818
export type MigrateToV2Request = {
819819
/** Zone to target. If none is passed will use default zone from the config. */
820820
zone?: ScwZone
821+
/** ID of the gateway to put into IPAM mode. */
821822
gatewayId: string
822823
}
823824

0 commit comments

Comments
 (0)