@animeapis/credentials
Version:
Animeshon Credentials API Client for Node.js
965 lines (799 loc) • 416 kB
TypeScript
// Copyright 2022 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 * as Long from "long";
import {protobuf as $protobuf} from "google-gax";
/** Namespace animeshon. */
export namespace animeshon {
/** Namespace credentials. */
namespace credentials {
/** Namespace v1alpha1. */
namespace v1alpha1 {
/** Represents a Keeper */
class Keeper extends $protobuf.rpc.Service {
/**
* Constructs a new Keeper 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 Keeper 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): Keeper;
/**
* Calls GetCredentials.
* @param request GetCredentialsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Credentials
*/
public getCredentials(request: animeshon.credentials.v1alpha1.IGetCredentialsRequest, callback: animeshon.credentials.v1alpha1.Keeper.GetCredentialsCallback): void;
/**
* Calls GetCredentials.
* @param request GetCredentialsRequest message or plain object
* @returns Promise
*/
public getCredentials(request: animeshon.credentials.v1alpha1.IGetCredentialsRequest): Promise<animeshon.credentials.v1alpha1.Credentials>;
/**
* Calls ListCredentials.
* @param request ListCredentialsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListCredentialsResponse
*/
public listCredentials(request: animeshon.credentials.v1alpha1.IListCredentialsRequest, callback: animeshon.credentials.v1alpha1.Keeper.ListCredentialsCallback): void;
/**
* Calls ListCredentials.
* @param request ListCredentialsRequest message or plain object
* @returns Promise
*/
public listCredentials(request: animeshon.credentials.v1alpha1.IListCredentialsRequest): Promise<animeshon.credentials.v1alpha1.ListCredentialsResponse>;
/**
* Calls CreateCredentials.
* @param request CreateCredentialsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Credentials
*/
public createCredentials(request: animeshon.credentials.v1alpha1.ICreateCredentialsRequest, callback: animeshon.credentials.v1alpha1.Keeper.CreateCredentialsCallback): void;
/**
* Calls CreateCredentials.
* @param request CreateCredentialsRequest message or plain object
* @returns Promise
*/
public createCredentials(request: animeshon.credentials.v1alpha1.ICreateCredentialsRequest): Promise<animeshon.credentials.v1alpha1.Credentials>;
/**
* Calls DeleteCredentials.
* @param request DeleteCredentialsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteCredentials(request: animeshon.credentials.v1alpha1.IDeleteCredentialsRequest, callback: animeshon.credentials.v1alpha1.Keeper.DeleteCredentialsCallback): void;
/**
* Calls DeleteCredentials.
* @param request DeleteCredentialsRequest message or plain object
* @returns Promise
*/
public deleteCredentials(request: animeshon.credentials.v1alpha1.IDeleteCredentialsRequest): Promise<google.protobuf.Empty>;
/**
* Calls ActAsCredentials.
* @param request ActAsCredentialsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ActAsCredentialsResponse
*/
public actAsCredentials(request: animeshon.credentials.v1alpha1.IActAsCredentialsRequest, callback: animeshon.credentials.v1alpha1.Keeper.ActAsCredentialsCallback): void;
/**
* Calls ActAsCredentials.
* @param request ActAsCredentialsRequest message or plain object
* @returns Promise
*/
public actAsCredentials(request: animeshon.credentials.v1alpha1.IActAsCredentialsRequest): Promise<animeshon.credentials.v1alpha1.ActAsCredentialsResponse>;
}
namespace Keeper {
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.Keeper#getCredentials}.
* @param error Error, if any
* @param [response] Credentials
*/
type GetCredentialsCallback = (error: (Error|null), response?: animeshon.credentials.v1alpha1.Credentials) => void;
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.Keeper#listCredentials}.
* @param error Error, if any
* @param [response] ListCredentialsResponse
*/
type ListCredentialsCallback = (error: (Error|null), response?: animeshon.credentials.v1alpha1.ListCredentialsResponse) => void;
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.Keeper#createCredentials}.
* @param error Error, if any
* @param [response] Credentials
*/
type CreateCredentialsCallback = (error: (Error|null), response?: animeshon.credentials.v1alpha1.Credentials) => void;
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.Keeper#deleteCredentials}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteCredentialsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.Keeper#actAsCredentials}.
* @param error Error, if any
* @param [response] ActAsCredentialsResponse
*/
type ActAsCredentialsCallback = (error: (Error|null), response?: animeshon.credentials.v1alpha1.ActAsCredentialsResponse) => void;
}
/** Represents a OAuth2 */
class OAuth2 extends $protobuf.rpc.Service {
/**
* Constructs a new OAuth2 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 OAuth2 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): OAuth2;
/**
* Calls SignIn.
* @param request SignInRequest message or plain object
* @param callback Node-style callback called with the error, if any, and SignInResponse
*/
public signIn(request: animeshon.credentials.v1alpha1.ISignInRequest, callback: animeshon.credentials.v1alpha1.OAuth2.SignInCallback): void;
/**
* Calls SignIn.
* @param request SignInRequest message or plain object
* @returns Promise
*/
public signIn(request: animeshon.credentials.v1alpha1.ISignInRequest): Promise<animeshon.credentials.v1alpha1.SignInResponse>;
/**
* Calls Exchange.
* @param request ExchangeRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ExchangeResponse
*/
public exchange(request: animeshon.credentials.v1alpha1.IExchangeRequest, callback: animeshon.credentials.v1alpha1.OAuth2.ExchangeCallback): void;
/**
* Calls Exchange.
* @param request ExchangeRequest message or plain object
* @returns Promise
*/
public exchange(request: animeshon.credentials.v1alpha1.IExchangeRequest): Promise<animeshon.credentials.v1alpha1.ExchangeResponse>;
}
namespace OAuth2 {
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.OAuth2#signIn}.
* @param error Error, if any
* @param [response] SignInResponse
*/
type SignInCallback = (error: (Error|null), response?: animeshon.credentials.v1alpha1.SignInResponse) => void;
/**
* Callback as used by {@link animeshon.credentials.v1alpha1.OAuth2#exchange}.
* @param error Error, if any
* @param [response] ExchangeResponse
*/
type ExchangeCallback = (error: (Error|null), response?: animeshon.credentials.v1alpha1.ExchangeResponse) => void;
}
/** Properties of a Credentials. */
interface ICredentials {
/** Credentials name */
name?: (string|null);
/** Credentials uid */
uid?: (string|null);
/** Credentials principal */
principal?: (string|null);
/** Credentials active */
active?: (google.protobuf.IBoolValue|null);
/** Credentials authenticationMethod */
authenticationMethod?: (animeshon.credentials.v1alpha1.Credentials.AuthenticationMethod|keyof typeof animeshon.credentials.v1alpha1.Credentials.AuthenticationMethod|null);
/** Credentials lastActivityTime */
lastActivityTime?: (google.protobuf.ITimestamp|null);
}
/** Represents a Credentials. */
class Credentials implements ICredentials {
/**
* Constructs a new Credentials.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.ICredentials);
/** Credentials name. */
public name: string;
/** Credentials uid. */
public uid: string;
/** Credentials principal. */
public principal: string;
/** Credentials active. */
public active?: (google.protobuf.IBoolValue|null);
/** Credentials authenticationMethod. */
public authenticationMethod: (animeshon.credentials.v1alpha1.Credentials.AuthenticationMethod|keyof typeof animeshon.credentials.v1alpha1.Credentials.AuthenticationMethod);
/** Credentials lastActivityTime. */
public lastActivityTime?: (google.protobuf.ITimestamp|null);
/**
* Creates a new Credentials instance using the specified properties.
* @param [properties] Properties to set
* @returns Credentials instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.ICredentials): animeshon.credentials.v1alpha1.Credentials;
/**
* Encodes the specified Credentials message. Does not implicitly {@link animeshon.credentials.v1alpha1.Credentials.verify|verify} messages.
* @param message Credentials message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Credentials message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.Credentials.verify|verify} messages.
* @param message Credentials message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.ICredentials, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Credentials message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Credentials
* @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): animeshon.credentials.v1alpha1.Credentials;
/**
* Decodes a Credentials message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Credentials
* @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)): animeshon.credentials.v1alpha1.Credentials;
/**
* Verifies a Credentials 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 Credentials message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Credentials
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.Credentials;
/**
* Creates a plain object from a Credentials message. Also converts values to other types if specified.
* @param message Credentials
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.Credentials, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Credentials to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
namespace Credentials {
/** AuthenticationMethod enum. */
enum AuthenticationMethod {
AUTHENTICATION_METHOD_UNSPECIFIED = 0,
BASIC = 1,
OAUTH2 = 2
}
}
/** Properties of a CreateCredentialsRequest. */
interface ICreateCredentialsRequest {
/** CreateCredentialsRequest credentials */
credentials?: (animeshon.credentials.v1alpha1.ICredentials|null);
/** CreateCredentialsRequest basic */
basic?: (animeshon.credentials.v1alpha1.CreateCredentialsRequest.IBasic|null);
/** CreateCredentialsRequest oauth2 */
oauth2?: (animeshon.credentials.v1alpha1.CreateCredentialsRequest.IOAuth2|null);
}
/** Represents a CreateCredentialsRequest. */
class CreateCredentialsRequest implements ICreateCredentialsRequest {
/**
* Constructs a new CreateCredentialsRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.ICreateCredentialsRequest);
/** CreateCredentialsRequest credentials. */
public credentials?: (animeshon.credentials.v1alpha1.ICredentials|null);
/** CreateCredentialsRequest basic. */
public basic?: (animeshon.credentials.v1alpha1.CreateCredentialsRequest.IBasic|null);
/** CreateCredentialsRequest oauth2. */
public oauth2?: (animeshon.credentials.v1alpha1.CreateCredentialsRequest.IOAuth2|null);
/** CreateCredentialsRequest payload. */
public payload?: ("basic"|"oauth2");
/**
* Creates a new CreateCredentialsRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CreateCredentialsRequest instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.ICreateCredentialsRequest): animeshon.credentials.v1alpha1.CreateCredentialsRequest;
/**
* Encodes the specified CreateCredentialsRequest message. Does not implicitly {@link animeshon.credentials.v1alpha1.CreateCredentialsRequest.verify|verify} messages.
* @param message CreateCredentialsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.ICreateCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CreateCredentialsRequest message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.CreateCredentialsRequest.verify|verify} messages.
* @param message CreateCredentialsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.ICreateCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CreateCredentialsRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CreateCredentialsRequest
* @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): animeshon.credentials.v1alpha1.CreateCredentialsRequest;
/**
* Decodes a CreateCredentialsRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CreateCredentialsRequest
* @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)): animeshon.credentials.v1alpha1.CreateCredentialsRequest;
/**
* Verifies a CreateCredentialsRequest 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 CreateCredentialsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateCredentialsRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.CreateCredentialsRequest;
/**
* Creates a plain object from a CreateCredentialsRequest message. Also converts values to other types if specified.
* @param message CreateCredentialsRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CreateCredentialsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
namespace CreateCredentialsRequest {
/** Properties of a Basic. */
interface IBasic {
/** Basic username */
username?: (string|null);
/** Basic password */
password?: (string|null);
}
/** Represents a Basic. */
class Basic implements IBasic {
/**
* Constructs a new Basic.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IBasic);
/** Basic username. */
public username: string;
/** Basic password. */
public password: string;
/**
* Creates a new Basic instance using the specified properties.
* @param [properties] Properties to set
* @returns Basic instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IBasic): animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic;
/**
* Encodes the specified Basic message. Does not implicitly {@link animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic.verify|verify} messages.
* @param message Basic message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IBasic, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Basic message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic.verify|verify} messages.
* @param message Basic message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IBasic, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Basic message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Basic
* @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): animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic;
/**
* Decodes a Basic message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Basic
* @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)): animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic;
/**
* Verifies a Basic 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 Basic message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Basic
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic;
/**
* Creates a plain object from a Basic message. Also converts values to other types if specified.
* @param message Basic
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest.Basic, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Basic to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a OAuth2. */
interface IOAuth2 {
/** OAuth2 principal */
principal?: (string|null);
/** OAuth2 refreshToken */
refreshToken?: (string|null);
}
/** Represents a OAuth2. */
class OAuth2 implements IOAuth2 {
/**
* Constructs a new OAuth2.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IOAuth2);
/** OAuth2 principal. */
public principal: string;
/** OAuth2 refreshToken. */
public refreshToken: string;
/**
* Creates a new OAuth2 instance using the specified properties.
* @param [properties] Properties to set
* @returns OAuth2 instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IOAuth2): animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2;
/**
* Encodes the specified OAuth2 message. Does not implicitly {@link animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2.verify|verify} messages.
* @param message OAuth2 message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IOAuth2, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified OAuth2 message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2.verify|verify} messages.
* @param message OAuth2 message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest.IOAuth2, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a OAuth2 message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns OAuth2
* @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): animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2;
/**
* Decodes a OAuth2 message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns OAuth2
* @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)): animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2;
/**
* Verifies a OAuth2 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 OAuth2 message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns OAuth2
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2;
/**
* Creates a plain object from a OAuth2 message. Also converts values to other types if specified.
* @param message OAuth2
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.CreateCredentialsRequest.OAuth2, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this OAuth2 to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
}
/** Properties of a GetCredentialsRequest. */
interface IGetCredentialsRequest {
/** GetCredentialsRequest name */
name?: (string|null);
}
/** Represents a GetCredentialsRequest. */
class GetCredentialsRequest implements IGetCredentialsRequest {
/**
* Constructs a new GetCredentialsRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.IGetCredentialsRequest);
/** GetCredentialsRequest name. */
public name: string;
/**
* Creates a new GetCredentialsRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns GetCredentialsRequest instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.IGetCredentialsRequest): animeshon.credentials.v1alpha1.GetCredentialsRequest;
/**
* Encodes the specified GetCredentialsRequest message. Does not implicitly {@link animeshon.credentials.v1alpha1.GetCredentialsRequest.verify|verify} messages.
* @param message GetCredentialsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.IGetCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GetCredentialsRequest message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.GetCredentialsRequest.verify|verify} messages.
* @param message GetCredentialsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.IGetCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GetCredentialsRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GetCredentialsRequest
* @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): animeshon.credentials.v1alpha1.GetCredentialsRequest;
/**
* Decodes a GetCredentialsRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GetCredentialsRequest
* @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)): animeshon.credentials.v1alpha1.GetCredentialsRequest;
/**
* Verifies a GetCredentialsRequest 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 GetCredentialsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GetCredentialsRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.GetCredentialsRequest;
/**
* Creates a plain object from a GetCredentialsRequest message. Also converts values to other types if specified.
* @param message GetCredentialsRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.GetCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GetCredentialsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ListCredentialsRequest. */
interface IListCredentialsRequest {
/** ListCredentialsRequest parent */
parent?: (string|null);
/** ListCredentialsRequest pageSize */
pageSize?: (number|null);
/** ListCredentialsRequest pageToken */
pageToken?: (string|null);
/** ListCredentialsRequest filter */
filter?: (string|null);
}
/** Represents a ListCredentialsRequest. */
class ListCredentialsRequest implements IListCredentialsRequest {
/**
* Constructs a new ListCredentialsRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.IListCredentialsRequest);
/** ListCredentialsRequest parent. */
public parent: string;
/** ListCredentialsRequest pageSize. */
public pageSize: number;
/** ListCredentialsRequest pageToken. */
public pageToken: string;
/** ListCredentialsRequest filter. */
public filter: string;
/**
* Creates a new ListCredentialsRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns ListCredentialsRequest instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.IListCredentialsRequest): animeshon.credentials.v1alpha1.ListCredentialsRequest;
/**
* Encodes the specified ListCredentialsRequest message. Does not implicitly {@link animeshon.credentials.v1alpha1.ListCredentialsRequest.verify|verify} messages.
* @param message ListCredentialsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.IListCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListCredentialsRequest message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.ListCredentialsRequest.verify|verify} messages.
* @param message ListCredentialsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.IListCredentialsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListCredentialsRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListCredentialsRequest
* @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): animeshon.credentials.v1alpha1.ListCredentialsRequest;
/**
* Decodes a ListCredentialsRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListCredentialsRequest
* @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)): animeshon.credentials.v1alpha1.ListCredentialsRequest;
/**
* Verifies a ListCredentialsRequest 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 ListCredentialsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListCredentialsRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.ListCredentialsRequest;
/**
* Creates a plain object from a ListCredentialsRequest message. Also converts values to other types if specified.
* @param message ListCredentialsRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.ListCredentialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListCredentialsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ListCredentialsResponse. */
interface IListCredentialsResponse {
/** ListCredentialsResponse credentials */
credentials?: (animeshon.credentials.v1alpha1.ICredentials[]|null);
/** ListCredentialsResponse nextPageToken */
nextPageToken?: (string|null);
}
/** Represents a ListCredentialsResponse. */
class ListCredentialsResponse implements IListCredentialsResponse {
/**
* Constructs a new ListCredentialsResponse.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.IListCredentialsResponse);
/** ListCredentialsResponse credentials. */
public credentials: animeshon.credentials.v1alpha1.ICredentials[];
/** ListCredentialsResponse nextPageToken. */
public nextPageToken: string;
/**
* Creates a new ListCredentialsResponse instance using the specified properties.
* @param [properties] Properties to set
* @returns ListCredentialsResponse instance
*/
public static create(properties?: animeshon.credentials.v1alpha1.IListCredentialsResponse): animeshon.credentials.v1alpha1.ListCredentialsResponse;
/**
* Encodes the specified ListCredentialsResponse message. Does not implicitly {@link animeshon.credentials.v1alpha1.ListCredentialsResponse.verify|verify} messages.
* @param message ListCredentialsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.credentials.v1alpha1.IListCredentialsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListCredentialsResponse message, length delimited. Does not implicitly {@link animeshon.credentials.v1alpha1.ListCredentialsResponse.verify|verify} messages.
* @param message ListCredentialsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.credentials.v1alpha1.IListCredentialsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListCredentialsResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListCredentialsResponse
* @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): animeshon.credentials.v1alpha1.ListCredentialsResponse;
/**
* Decodes a ListCredentialsResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListCredentialsResponse
* @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)): animeshon.credentials.v1alpha1.ListCredentialsResponse;
/**
* Verifies a ListCredentialsResponse 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 ListCredentialsResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListCredentialsResponse
*/
public static fromObject(object: { [k: string]: any }): animeshon.credentials.v1alpha1.ListCredentialsResponse;
/**
* Creates a plain object from a ListCredentialsResponse message. Also converts values to other types if specified.
* @param message ListCredentialsResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.credentials.v1alpha1.ListCredentialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListCredentialsResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a DeleteCredentialsRequest. */
interface IDeleteCredentialsRequest {
/** DeleteCredentialsRequest name */
name?: (string|null);
}
/** Represents a DeleteCredentialsRequest. */
class DeleteCredentialsRequest implements IDeleteCredentialsRequest {
/**
* Constructs a new DeleteCredentialsRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.credentials.v1alpha1.IDeleteCredentialsRequest);
/** DeleteCredentialsRequest name. */
public name: string;
/**
* Creates a new DeleteCredentialsRequest instance using the speci