You've already forked npm-core-sdk
Latest generation
This commit is contained in:
78
calendar.ts
78
calendar.ts
@@ -555,6 +555,14 @@ export interface ComputeSLAPeriodResponse {
|
||||
* @generated from protobuf field: string EndSLA = 2
|
||||
*/
|
||||
EndSLA: string;
|
||||
/**
|
||||
* @generated from protobuf field: int64 MinPeriodUsed = 4
|
||||
*/
|
||||
MinPeriodUsed: bigint; // value that represents what was used from the minperiod to compute the SLA
|
||||
/**
|
||||
* @generated from protobuf field: int64 MaxPeriodUsed = 5
|
||||
*/
|
||||
MaxPeriodUsed: bigint; // value that represents what was used from the maxperiod to compute the SLA
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SLAInfoPerReference
|
||||
@@ -597,6 +605,14 @@ export interface AllowedPeriod {
|
||||
* @generated from protobuf field: string LatestAvailableTime = 3
|
||||
*/
|
||||
LatestAvailableTime: string;
|
||||
/**
|
||||
* @generated from protobuf field: int64 MinPeriodUsed = 4
|
||||
*/
|
||||
MinPeriodUsed: bigint; // value that represents what was used from the minperiod to compute the SLA
|
||||
/**
|
||||
* @generated from protobuf field: int64 MaxPeriodUsed = 5
|
||||
*/
|
||||
MaxPeriodUsed: bigint; // value that represents what was used from the maxperiod to compute the SLA
|
||||
}
|
||||
/**
|
||||
* ComputeReferencesSLAPeriodsRequest
|
||||
@@ -618,6 +634,14 @@ export interface ComputeReferencesSLAPeriodRequest {
|
||||
* @generated from protobuf field: repeated api.SLAInfoPerReference SLAInfoPerReferences = 3
|
||||
*/
|
||||
SLAInfoPerReferences: SLAInfoPerReference[];
|
||||
/**
|
||||
* @generated from protobuf field: string LowerLimitSearchTime = 4
|
||||
*/
|
||||
LowerLimitSearchTime: string;
|
||||
/**
|
||||
* @generated from protobuf field: string UpperLimitSearchTime = 5
|
||||
*/
|
||||
UpperLimitSearchTime: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ComputeReferencesSLAPeriodResponse
|
||||
@@ -2266,13 +2290,17 @@ class ComputeSLAPeriodResponse$Type extends MessageType<ComputeSLAPeriodResponse
|
||||
constructor() {
|
||||
super("api.ComputeSLAPeriodResponse", [
|
||||
{ no: 1, name: "StartSLA", kind: "scalar", localName: "StartSLA", jsonName: "StartSLA", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "EndSLA", kind: "scalar", localName: "EndSLA", jsonName: "EndSLA", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 2, name: "EndSLA", kind: "scalar", localName: "EndSLA", jsonName: "EndSLA", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "MinPeriodUsed", kind: "scalar", localName: "MinPeriodUsed", jsonName: "MinPeriodUsed", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 5, name: "MaxPeriodUsed", kind: "scalar", localName: "MaxPeriodUsed", jsonName: "MaxPeriodUsed", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ComputeSLAPeriodResponse>): ComputeSLAPeriodResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.StartSLA = "";
|
||||
message.EndSLA = "";
|
||||
message.MinPeriodUsed = 0n;
|
||||
message.MaxPeriodUsed = 0n;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComputeSLAPeriodResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -2288,6 +2316,12 @@ class ComputeSLAPeriodResponse$Type extends MessageType<ComputeSLAPeriodResponse
|
||||
case /* string EndSLA */ 2:
|
||||
message.EndSLA = reader.string();
|
||||
break;
|
||||
case /* int64 MinPeriodUsed */ 4:
|
||||
message.MinPeriodUsed = reader.int64().toBigInt();
|
||||
break;
|
||||
case /* int64 MaxPeriodUsed */ 5:
|
||||
message.MaxPeriodUsed = reader.int64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2306,6 +2340,12 @@ class ComputeSLAPeriodResponse$Type extends MessageType<ComputeSLAPeriodResponse
|
||||
/* string EndSLA = 2; */
|
||||
if (message.EndSLA !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.EndSLA);
|
||||
/* int64 MinPeriodUsed = 4; */
|
||||
if (message.MinPeriodUsed !== 0n)
|
||||
writer.tag(4, WireType.Varint).int64(message.MinPeriodUsed);
|
||||
/* int64 MaxPeriodUsed = 5; */
|
||||
if (message.MaxPeriodUsed !== 0n)
|
||||
writer.tag(5, WireType.Varint).int64(message.MaxPeriodUsed);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2399,7 +2439,9 @@ class AllowedPeriod$Type extends MessageType<AllowedPeriod> {
|
||||
super("api.AllowedPeriod", [
|
||||
{ no: 1, name: "RefID", kind: "scalar", localName: "RefID", jsonName: "RefID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "EarliestAvailableTime", kind: "scalar", localName: "EarliestAvailableTime", jsonName: "EarliestAvailableTime", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "LatestAvailableTime", kind: "scalar", localName: "LatestAvailableTime", jsonName: "LatestAvailableTime", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 3, name: "LatestAvailableTime", kind: "scalar", localName: "LatestAvailableTime", jsonName: "LatestAvailableTime", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "MinPeriodUsed", kind: "scalar", localName: "MinPeriodUsed", jsonName: "MinPeriodUsed", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
||||
{ no: 5, name: "MaxPeriodUsed", kind: "scalar", localName: "MaxPeriodUsed", jsonName: "MaxPeriodUsed", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<AllowedPeriod>): AllowedPeriod {
|
||||
@@ -2407,6 +2449,8 @@ class AllowedPeriod$Type extends MessageType<AllowedPeriod> {
|
||||
message.RefID = "";
|
||||
message.EarliestAvailableTime = "";
|
||||
message.LatestAvailableTime = "";
|
||||
message.MinPeriodUsed = 0n;
|
||||
message.MaxPeriodUsed = 0n;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AllowedPeriod>(this, message, value);
|
||||
return message;
|
||||
@@ -2425,6 +2469,12 @@ class AllowedPeriod$Type extends MessageType<AllowedPeriod> {
|
||||
case /* string LatestAvailableTime */ 3:
|
||||
message.LatestAvailableTime = reader.string();
|
||||
break;
|
||||
case /* int64 MinPeriodUsed */ 4:
|
||||
message.MinPeriodUsed = reader.int64().toBigInt();
|
||||
break;
|
||||
case /* int64 MaxPeriodUsed */ 5:
|
||||
message.MaxPeriodUsed = reader.int64().toBigInt();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2446,6 +2496,12 @@ class AllowedPeriod$Type extends MessageType<AllowedPeriod> {
|
||||
/* string LatestAvailableTime = 3; */
|
||||
if (message.LatestAvailableTime !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.LatestAvailableTime);
|
||||
/* int64 MinPeriodUsed = 4; */
|
||||
if (message.MinPeriodUsed !== 0n)
|
||||
writer.tag(4, WireType.Varint).int64(message.MinPeriodUsed);
|
||||
/* int64 MaxPeriodUsed = 5; */
|
||||
if (message.MaxPeriodUsed !== 0n)
|
||||
writer.tag(5, WireType.Varint).int64(message.MaxPeriodUsed);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2462,13 +2518,17 @@ class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferenc
|
||||
super("api.ComputeReferencesSLAPeriodRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }
|
||||
{ no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 4, name: "LowerLimitSearchTime", kind: "scalar", localName: "LowerLimitSearchTime", jsonName: "LowerLimitSearchTime", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "UpperLimitSearchTime", kind: "scalar", localName: "UpperLimitSearchTime", jsonName: "UpperLimitSearchTime", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "CalendarID", "SLAInfos"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ComputeReferencesSLAPeriodRequest>): ComputeReferencesSLAPeriodRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.CalendarID = "";
|
||||
message.SLAInfoPerReferences = [];
|
||||
message.LowerLimitSearchTime = "";
|
||||
message.UpperLimitSearchTime = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ComputeReferencesSLAPeriodRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -2487,6 +2547,12 @@ class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferenc
|
||||
case /* repeated api.SLAInfoPerReference SLAInfoPerReferences */ 3:
|
||||
message.SLAInfoPerReferences.push(SLAInfoPerReference.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string LowerLimitSearchTime */ 4:
|
||||
message.LowerLimitSearchTime = reader.string();
|
||||
break;
|
||||
case /* string UpperLimitSearchTime */ 5:
|
||||
message.UpperLimitSearchTime = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2508,6 +2574,12 @@ class ComputeReferencesSLAPeriodRequest$Type extends MessageType<ComputeReferenc
|
||||
/* repeated api.SLAInfoPerReference SLAInfoPerReferences = 3; */
|
||||
for (let i = 0; i < message.SLAInfoPerReferences.length; i++)
|
||||
SLAInfoPerReference.internalBinaryWrite(message.SLAInfoPerReferences[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string LowerLimitSearchTime = 4; */
|
||||
if (message.LowerLimitSearchTime !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.LowerLimitSearchTime);
|
||||
/* string UpperLimitSearchTime = 5; */
|
||||
if (message.UpperLimitSearchTime !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.UpperLimitSearchTime);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user