Skip to content

Commit

Permalink
chore: proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubisoft-potato authored Dec 6, 2024
1 parent 86e2056 commit 25e31fd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
8 changes: 8 additions & 0 deletions api-description/web-api.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ paths:
- NAME
- CREATED_AT
- UPDATED_AT
- ROLE
- ENVIRONMENT
default: DEFAULT
- name: orderDirection
in: query
Expand Down Expand Up @@ -962,6 +964,10 @@ paths:
items:
type: string
collectionFormat: multi
- name: organizationId
in: query
required: false
type: string
tags:
- API Key
/v1/account/my_organizations:
Expand Down Expand Up @@ -3381,6 +3387,8 @@ definitions:
- NAME
- CREATED_AT
- UPDATED_AT
- ROLE
- ENVIRONMENT
default: DEFAULT
accountListAPIKeysRequestOrderDirection:
type: string
Expand Down
6 changes: 6 additions & 0 deletions ui/web-v2/src/proto/account/service_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,9 @@ export class ListAPIKeysRequest extends jspb.Message {
setEnvironmentIdsList(value: Array<string>): void;
addEnvironmentIds(value: string, index?: number): string;

getOrganizationId(): string;
setOrganizationId(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListAPIKeysRequest.AsObject;
static toObject(
Expand Down Expand Up @@ -1496,13 +1499,16 @@ export namespace ListAPIKeysRequest {
disabled?: google_protobuf_wrappers_pb.BoolValue.AsObject;
environmentId: string;
environmentIdsList: Array<string>;
organizationId: string;
};

export interface OrderByMap {
DEFAULT: 0;
NAME: 1;
CREATED_AT: 2;
UPDATED_AT: 3;
ROLE: 4;
ENVIRONMENT: 5;
}

export const OrderBy: OrderByMap;
Expand Down
35 changes: 33 additions & 2 deletions ui/web-v2/src/proto/account/service_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -9050,7 +9050,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f),
environmentId: jspb.Message.getFieldWithDefault(msg, 8, ''),
environmentIdsList:
(f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f
(f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
organizationId: jspb.Message.getFieldWithDefault(msg, 10, '')
};

if (includeInstance) {
Expand Down Expand Up @@ -9133,6 +9134,10 @@ proto.bucketeer.account.ListAPIKeysRequest.deserializeBinaryFromReader =
var value = /** @type {string} */ (reader.readString());
msg.addEnvironmentIds(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setOrganizationId(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -9203,6 +9208,10 @@ proto.bucketeer.account.ListAPIKeysRequest.serializeBinaryToWriter = function (
if (f.length > 0) {
writer.writeRepeatedString(9, f);
}
f = message.getOrganizationId();
if (f.length > 0) {
writer.writeString(10, f);
}
};

/**
Expand All @@ -9212,7 +9221,9 @@ proto.bucketeer.account.ListAPIKeysRequest.OrderBy = {
DEFAULT: 0,
NAME: 1,
CREATED_AT: 2,
UPDATED_AT: 3
UPDATED_AT: 3,
ROLE: 4,
ENVIRONMENT: 5
};

/**
Expand Down Expand Up @@ -9415,6 +9426,26 @@ proto.bucketeer.account.ListAPIKeysRequest.prototype.clearEnvironmentIdsList =
return this.setEnvironmentIdsList([]);
};

/**
* optional string organization_id = 10;
* @return {string}
*/
proto.bucketeer.account.ListAPIKeysRequest.prototype.getOrganizationId =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 10, '')
);
};

/**
* @param {string} value
* @return {!proto.bucketeer.account.ListAPIKeysRequest} returns this
*/
proto.bucketeer.account.ListAPIKeysRequest.prototype.setOrganizationId =
function (value) {
return jspb.Message.setProto3StringField(this, 10, value);
};

/**
* List of repeated fields within this message type.
* @private {!Array<number>}
Expand Down

0 comments on commit 25e31fd

Please sign in to comment.