@google-cloud/confidentialcomputing
Version:
Confidential Computing API client for Node.js
902 lines (744 loc) • 519 kB
TypeScript
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type {protobuf as $protobuf} from "google-gax";
import Long = require("long");
/** Namespace google. */
export namespace google {
/** Namespace cloud. */
namespace cloud {
/** Namespace confidentialcomputing. */
namespace confidentialcomputing {
/** Namespace v1. */
namespace v1 {
/** Represents a ConfidentialComputing */
class ConfidentialComputing extends $protobuf.rpc.Service {
/**
* Constructs a new ConfidentialComputing service.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
*/
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
/**
* Creates new ConfidentialComputing service using the specified rpc implementation.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
* @returns RPC service. Useful where requests and/or responses are streamed.
*/
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ConfidentialComputing;
/**
* Calls CreateChallenge.
* @param request CreateChallengeRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Challenge
*/
public createChallenge(request: google.cloud.confidentialcomputing.v1.ICreateChallengeRequest, callback: google.cloud.confidentialcomputing.v1.ConfidentialComputing.CreateChallengeCallback): void;
/**
* Calls CreateChallenge.
* @param request CreateChallengeRequest message or plain object
* @returns Promise
*/
public createChallenge(request: google.cloud.confidentialcomputing.v1.ICreateChallengeRequest): Promise<google.cloud.confidentialcomputing.v1.Challenge>;
/**
* Calls VerifyAttestation.
* @param request VerifyAttestationRequest message or plain object
* @param callback Node-style callback called with the error, if any, and VerifyAttestationResponse
*/
public verifyAttestation(request: google.cloud.confidentialcomputing.v1.IVerifyAttestationRequest, callback: google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyAttestationCallback): void;
/**
* Calls VerifyAttestation.
* @param request VerifyAttestationRequest message or plain object
* @returns Promise
*/
public verifyAttestation(request: google.cloud.confidentialcomputing.v1.IVerifyAttestationRequest): Promise<google.cloud.confidentialcomputing.v1.VerifyAttestationResponse>;
/**
* Calls VerifyConfidentialSpace.
* @param request VerifyConfidentialSpaceRequest message or plain object
* @param callback Node-style callback called with the error, if any, and VerifyConfidentialSpaceResponse
*/
public verifyConfidentialSpace(request: google.cloud.confidentialcomputing.v1.IVerifyConfidentialSpaceRequest, callback: google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyConfidentialSpaceCallback): void;
/**
* Calls VerifyConfidentialSpace.
* @param request VerifyConfidentialSpaceRequest message or plain object
* @returns Promise
*/
public verifyConfidentialSpace(request: google.cloud.confidentialcomputing.v1.IVerifyConfidentialSpaceRequest): Promise<google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse>;
/**
* Calls VerifyConfidentialGke.
* @param request VerifyConfidentialGkeRequest message or plain object
* @param callback Node-style callback called with the error, if any, and VerifyConfidentialGkeResponse
*/
public verifyConfidentialGke(request: google.cloud.confidentialcomputing.v1.IVerifyConfidentialGkeRequest, callback: google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyConfidentialGkeCallback): void;
/**
* Calls VerifyConfidentialGke.
* @param request VerifyConfidentialGkeRequest message or plain object
* @returns Promise
*/
public verifyConfidentialGke(request: google.cloud.confidentialcomputing.v1.IVerifyConfidentialGkeRequest): Promise<google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse>;
}
namespace ConfidentialComputing {
/**
* Callback as used by {@link google.cloud.confidentialcomputing.v1.ConfidentialComputing|createChallenge}.
* @param error Error, if any
* @param [response] Challenge
*/
type CreateChallengeCallback = (error: (Error|null), response?: google.cloud.confidentialcomputing.v1.Challenge) => void;
/**
* Callback as used by {@link google.cloud.confidentialcomputing.v1.ConfidentialComputing|verifyAttestation}.
* @param error Error, if any
* @param [response] VerifyAttestationResponse
*/
type VerifyAttestationCallback = (error: (Error|null), response?: google.cloud.confidentialcomputing.v1.VerifyAttestationResponse) => void;
/**
* Callback as used by {@link google.cloud.confidentialcomputing.v1.ConfidentialComputing|verifyConfidentialSpace}.
* @param error Error, if any
* @param [response] VerifyConfidentialSpaceResponse
*/
type VerifyConfidentialSpaceCallback = (error: (Error|null), response?: google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse) => void;
/**
* Callback as used by {@link google.cloud.confidentialcomputing.v1.ConfidentialComputing|verifyConfidentialGke}.
* @param error Error, if any
* @param [response] VerifyConfidentialGkeResponse
*/
type VerifyConfidentialGkeCallback = (error: (Error|null), response?: google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse) => void;
}
/** SigningAlgorithm enum. */
enum SigningAlgorithm {
SIGNING_ALGORITHM_UNSPECIFIED = 0,
RSASSA_PSS_SHA256 = 1,
RSASSA_PKCS1V15_SHA256 = 2,
ECDSA_P256_SHA256 = 3
}
/** TokenType enum. */
enum TokenType {
TOKEN_TYPE_UNSPECIFIED = 0,
TOKEN_TYPE_OIDC = 1,
TOKEN_TYPE_PKI = 2,
TOKEN_TYPE_LIMITED_AWS = 3,
TOKEN_TYPE_AWS_PRINCIPALTAGS = 4
}
/** SignatureType enum. */
enum SignatureType {
SIGNATURE_TYPE_UNSPECIFIED = 0,
SIGNATURE_TYPE_OIDC = 1,
SIGNATURE_TYPE_PKI = 2
}
/** TokenProfile enum. */
enum TokenProfile {
TOKEN_PROFILE_UNSPECIFIED = 0,
TOKEN_PROFILE_DEFAULT_EAT = 1,
TOKEN_PROFILE_AWS = 2
}
/** Properties of a Challenge. */
interface IChallenge {
/** Challenge name */
name?: (string|null);
/** Challenge createTime */
createTime?: (google.protobuf.ITimestamp|null);
/** Challenge expireTime */
expireTime?: (google.protobuf.ITimestamp|null);
/** Challenge used */
used?: (boolean|null);
/** Challenge tpmNonce */
tpmNonce?: (string|null);
}
/** Represents a Challenge. */
class Challenge implements IChallenge {
/**
* Constructs a new Challenge.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.IChallenge);
/** Challenge name. */
public name: string;
/** Challenge createTime. */
public createTime?: (google.protobuf.ITimestamp|null);
/** Challenge expireTime. */
public expireTime?: (google.protobuf.ITimestamp|null);
/** Challenge used. */
public used: boolean;
/** Challenge tpmNonce. */
public tpmNonce: string;
/**
* Creates a new Challenge instance using the specified properties.
* @param [properties] Properties to set
* @returns Challenge instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.IChallenge): google.cloud.confidentialcomputing.v1.Challenge;
/**
* Encodes the specified Challenge message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.Challenge.verify|verify} messages.
* @param message Challenge message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.IChallenge, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Challenge message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.Challenge.verify|verify} messages.
* @param message Challenge message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.IChallenge, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Challenge message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Challenge
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.confidentialcomputing.v1.Challenge;
/**
* Decodes a Challenge message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Challenge
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.confidentialcomputing.v1.Challenge;
/**
* Verifies a Challenge message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Challenge message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Challenge
*/
public static fromObject(object: { [k: string]: any }): google.cloud.confidentialcomputing.v1.Challenge;
/**
* Creates a plain object from a Challenge message. Also converts values to other types if specified.
* @param message Challenge
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.confidentialcomputing.v1.Challenge, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Challenge to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Challenge
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CreateChallengeRequest. */
interface ICreateChallengeRequest {
/** CreateChallengeRequest parent */
parent?: (string|null);
/** CreateChallengeRequest challenge */
challenge?: (google.cloud.confidentialcomputing.v1.IChallenge|null);
}
/** Represents a CreateChallengeRequest. */
class CreateChallengeRequest implements ICreateChallengeRequest {
/**
* Constructs a new CreateChallengeRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.ICreateChallengeRequest);
/** CreateChallengeRequest parent. */
public parent: string;
/** CreateChallengeRequest challenge. */
public challenge?: (google.cloud.confidentialcomputing.v1.IChallenge|null);
/**
* Creates a new CreateChallengeRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CreateChallengeRequest instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.ICreateChallengeRequest): google.cloud.confidentialcomputing.v1.CreateChallengeRequest;
/**
* Encodes the specified CreateChallengeRequest message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.CreateChallengeRequest.verify|verify} messages.
* @param message CreateChallengeRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.ICreateChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CreateChallengeRequest message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.CreateChallengeRequest.verify|verify} messages.
* @param message CreateChallengeRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.ICreateChallengeRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CreateChallengeRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CreateChallengeRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.confidentialcomputing.v1.CreateChallengeRequest;
/**
* Decodes a CreateChallengeRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CreateChallengeRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.confidentialcomputing.v1.CreateChallengeRequest;
/**
* Verifies a CreateChallengeRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CreateChallengeRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateChallengeRequest
*/
public static fromObject(object: { [k: string]: any }): google.cloud.confidentialcomputing.v1.CreateChallengeRequest;
/**
* Creates a plain object from a CreateChallengeRequest message. Also converts values to other types if specified.
* @param message CreateChallengeRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.confidentialcomputing.v1.CreateChallengeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CreateChallengeRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CreateChallengeRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a VerifyAttestationRequest. */
interface IVerifyAttestationRequest {
/** VerifyAttestationRequest tdCcel */
tdCcel?: (google.cloud.confidentialcomputing.v1.ITdxCcelAttestation|null);
/** VerifyAttestationRequest sevSnpAttestation */
sevSnpAttestation?: (google.cloud.confidentialcomputing.v1.ISevSnpAttestation|null);
/** VerifyAttestationRequest challenge */
challenge?: (string|null);
/** VerifyAttestationRequest gcpCredentials */
gcpCredentials?: (google.cloud.confidentialcomputing.v1.IGcpCredentials|null);
/** VerifyAttestationRequest tpmAttestation */
tpmAttestation?: (google.cloud.confidentialcomputing.v1.ITpmAttestation|null);
/** VerifyAttestationRequest confidentialSpaceInfo */
confidentialSpaceInfo?: (google.cloud.confidentialcomputing.v1.IConfidentialSpaceInfo|null);
/** VerifyAttestationRequest tokenOptions */
tokenOptions?: (google.cloud.confidentialcomputing.v1.ITokenOptions|null);
/** VerifyAttestationRequest attester */
attester?: (string|null);
}
/** Represents a VerifyAttestationRequest. */
class VerifyAttestationRequest implements IVerifyAttestationRequest {
/**
* Constructs a new VerifyAttestationRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.IVerifyAttestationRequest);
/** VerifyAttestationRequest tdCcel. */
public tdCcel?: (google.cloud.confidentialcomputing.v1.ITdxCcelAttestation|null);
/** VerifyAttestationRequest sevSnpAttestation. */
public sevSnpAttestation?: (google.cloud.confidentialcomputing.v1.ISevSnpAttestation|null);
/** VerifyAttestationRequest challenge. */
public challenge: string;
/** VerifyAttestationRequest gcpCredentials. */
public gcpCredentials?: (google.cloud.confidentialcomputing.v1.IGcpCredentials|null);
/** VerifyAttestationRequest tpmAttestation. */
public tpmAttestation?: (google.cloud.confidentialcomputing.v1.ITpmAttestation|null);
/** VerifyAttestationRequest confidentialSpaceInfo. */
public confidentialSpaceInfo?: (google.cloud.confidentialcomputing.v1.IConfidentialSpaceInfo|null);
/** VerifyAttestationRequest tokenOptions. */
public tokenOptions?: (google.cloud.confidentialcomputing.v1.ITokenOptions|null);
/** VerifyAttestationRequest attester. */
public attester: string;
/** VerifyAttestationRequest teeAttestation. */
public teeAttestation?: ("tdCcel"|"sevSnpAttestation");
/**
* Creates a new VerifyAttestationRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns VerifyAttestationRequest instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.IVerifyAttestationRequest): google.cloud.confidentialcomputing.v1.VerifyAttestationRequest;
/**
* Encodes the specified VerifyAttestationRequest message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.verify|verify} messages.
* @param message VerifyAttestationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.IVerifyAttestationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified VerifyAttestationRequest message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.VerifyAttestationRequest.verify|verify} messages.
* @param message VerifyAttestationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.IVerifyAttestationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a VerifyAttestationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns VerifyAttestationRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.confidentialcomputing.v1.VerifyAttestationRequest;
/**
* Decodes a VerifyAttestationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns VerifyAttestationRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.confidentialcomputing.v1.VerifyAttestationRequest;
/**
* Verifies a VerifyAttestationRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a VerifyAttestationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns VerifyAttestationRequest
*/
public static fromObject(object: { [k: string]: any }): google.cloud.confidentialcomputing.v1.VerifyAttestationRequest;
/**
* Creates a plain object from a VerifyAttestationRequest message. Also converts values to other types if specified.
* @param message VerifyAttestationRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.confidentialcomputing.v1.VerifyAttestationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this VerifyAttestationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for VerifyAttestationRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a TdxCcelAttestation. */
interface ITdxCcelAttestation {
/** TdxCcelAttestation ccelAcpiTable */
ccelAcpiTable?: (Uint8Array|Buffer|string|null);
/** TdxCcelAttestation ccelData */
ccelData?: (Uint8Array|Buffer|string|null);
/** TdxCcelAttestation canonicalEventLog */
canonicalEventLog?: (Uint8Array|Buffer|string|null);
/** TdxCcelAttestation tdQuote */
tdQuote?: (Uint8Array|Buffer|string|null);
}
/** Represents a TdxCcelAttestation. */
class TdxCcelAttestation implements ITdxCcelAttestation {
/**
* Constructs a new TdxCcelAttestation.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.ITdxCcelAttestation);
/** TdxCcelAttestation ccelAcpiTable. */
public ccelAcpiTable: (Uint8Array|Buffer|string);
/** TdxCcelAttestation ccelData. */
public ccelData: (Uint8Array|Buffer|string);
/** TdxCcelAttestation canonicalEventLog. */
public canonicalEventLog: (Uint8Array|Buffer|string);
/** TdxCcelAttestation tdQuote. */
public tdQuote: (Uint8Array|Buffer|string);
/**
* Creates a new TdxCcelAttestation instance using the specified properties.
* @param [properties] Properties to set
* @returns TdxCcelAttestation instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.ITdxCcelAttestation): google.cloud.confidentialcomputing.v1.TdxCcelAttestation;
/**
* Encodes the specified TdxCcelAttestation message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.TdxCcelAttestation.verify|verify} messages.
* @param message TdxCcelAttestation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.ITdxCcelAttestation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified TdxCcelAttestation message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.TdxCcelAttestation.verify|verify} messages.
* @param message TdxCcelAttestation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.ITdxCcelAttestation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a TdxCcelAttestation message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns TdxCcelAttestation
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.confidentialcomputing.v1.TdxCcelAttestation;
/**
* Decodes a TdxCcelAttestation message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns TdxCcelAttestation
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.confidentialcomputing.v1.TdxCcelAttestation;
/**
* Verifies a TdxCcelAttestation message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a TdxCcelAttestation message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns TdxCcelAttestation
*/
public static fromObject(object: { [k: string]: any }): google.cloud.confidentialcomputing.v1.TdxCcelAttestation;
/**
* Creates a plain object from a TdxCcelAttestation message. Also converts values to other types if specified.
* @param message TdxCcelAttestation
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.confidentialcomputing.v1.TdxCcelAttestation, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this TdxCcelAttestation to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for TdxCcelAttestation
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a SevSnpAttestation. */
interface ISevSnpAttestation {
/** SevSnpAttestation report */
report?: (Uint8Array|Buffer|string|null);
/** SevSnpAttestation auxBlob */
auxBlob?: (Uint8Array|Buffer|string|null);
}
/** Represents a SevSnpAttestation. */
class SevSnpAttestation implements ISevSnpAttestation {
/**
* Constructs a new SevSnpAttestation.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.ISevSnpAttestation);
/** SevSnpAttestation report. */
public report: (Uint8Array|Buffer|string);
/** SevSnpAttestation auxBlob. */
public auxBlob: (Uint8Array|Buffer|string);
/**
* Creates a new SevSnpAttestation instance using the specified properties.
* @param [properties] Properties to set
* @returns SevSnpAttestation instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.ISevSnpAttestation): google.cloud.confidentialcomputing.v1.SevSnpAttestation;
/**
* Encodes the specified SevSnpAttestation message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.SevSnpAttestation.verify|verify} messages.
* @param message SevSnpAttestation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.ISevSnpAttestation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SevSnpAttestation message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.SevSnpAttestation.verify|verify} messages.
* @param message SevSnpAttestation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.ISevSnpAttestation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SevSnpAttestation message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SevSnpAttestation
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.confidentialcomputing.v1.SevSnpAttestation;
/**
* Decodes a SevSnpAttestation message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SevSnpAttestation
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.confidentialcomputing.v1.SevSnpAttestation;
/**
* Verifies a SevSnpAttestation message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SevSnpAttestation message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SevSnpAttestation
*/
public static fromObject(object: { [k: string]: any }): google.cloud.confidentialcomputing.v1.SevSnpAttestation;
/**
* Creates a plain object from a SevSnpAttestation message. Also converts values to other types if specified.
* @param message SevSnpAttestation
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.confidentialcomputing.v1.SevSnpAttestation, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SevSnpAttestation to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for SevSnpAttestation
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a VerifyAttestationResponse. */
interface IVerifyAttestationResponse {
/** VerifyAttestationResponse oidcClaimsToken */
oidcClaimsToken?: (string|null);
/** VerifyAttestationResponse partialErrors */
partialErrors?: (google.rpc.IStatus[]|null);
}
/** Represents a VerifyAttestationResponse. */
class VerifyAttestationResponse implements IVerifyAttestationResponse {
/**
* Constructs a new VerifyAttestationResponse.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.IVerifyAttestationResponse);
/** VerifyAttestationResponse oidcClaimsToken. */
public oidcClaimsToken: string;
/** VerifyAttestationResponse partialErrors. */
public partialErrors: google.rpc.IStatus[];
/**
* Creates a new VerifyAttestationResponse instance using the specified properties.
* @param [properties] Properties to set
* @returns VerifyAttestationResponse instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.IVerifyAttestationResponse): google.cloud.confidentialcomputing.v1.VerifyAttestationResponse;
/**
* Encodes the specified VerifyAttestationResponse message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.verify|verify} messages.
* @param message VerifyAttestationResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.IVerifyAttestationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified VerifyAttestationResponse message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.VerifyAttestationResponse.verify|verify} messages.
* @param message VerifyAttestationResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.IVerifyAttestationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a VerifyAttestationResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns VerifyAttestationResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.confidentialcomputing.v1.VerifyAttestationResponse;
/**
* Decodes a VerifyAttestationResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns VerifyAttestationResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.confidentialcomputing.v1.VerifyAttestationResponse;
/**
* Verifies a VerifyAttestationResponse message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a VerifyAttestationResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns VerifyAttestationResponse
*/
public static fromObject(object: { [k: string]: any }): google.cloud.confidentialcomputing.v1.VerifyAttestationResponse;
/**
* Creates a plain object from a VerifyAttestationResponse message. Also converts values to other types if specified.
* @param message VerifyAttestationResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.confidentialcomputing.v1.VerifyAttestationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this VerifyAttestationResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for VerifyAttestationResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a GcpCredentials. */
interface IGcpCredentials {
/** GcpCredentials serviceAccountIdTokens */
serviceAccountIdTokens?: (string[]|null);
}
/** Represents a GcpCredentials. */
class GcpCredentials implements IGcpCredentials {
/**
* Constructs a new GcpCredentials.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.confidentialcomputing.v1.IGcpCredentials);
/** GcpCredentials serviceAccountIdTokens. */
public serviceAccountIdTokens: string[];
/**
* Creates a new GcpCredentials instance using the specified properties.
* @param [properties] Properties to set
* @returns GcpCredentials instance
*/
public static create(properties?: google.cloud.confidentialcomputing.v1.IGcpCredentials): google.cloud.confidentialcomputing.v1.GcpCredentials;
/**
* Encodes the specified GcpCredentials message. Does not implicitly {@link google.cloud.confidentialcomputing.v1.GcpCredentials.verify|verify} messages.
* @param message GcpCredentials message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.confidentialcomputing.v1.IGcpCredentials, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GcpCredentials message, length delimited. Does not implicitly {@link google.cloud.confidentialcomputing.v1.GcpCredentials.verify|verify} messages.
* @param message GcpCredentials message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.confidentialcomputing.v1.IGcpCredentials, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GcpCredentials message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GcpCredentials
* @throws {Error} If the payload is not a reader or valid