@animeapis/resourcemanager
Version:
Resourcemanager client for Node.js
933 lines (784 loc) • 317 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 resourcemanager. */
namespace resourcemanager {
/** Namespace v1alpha1. */
namespace v1alpha1 {
/** Represents a ResourceManager */
class ResourceManager extends $protobuf.rpc.Service {
/**
* Constructs a new ResourceManager 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 ResourceManager 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): ResourceManager;
/**
* Calls GetOrganization.
* @param request GetOrganizationRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Organization
*/
public getOrganization(request: animeshon.resourcemanager.v1alpha1.IGetOrganizationRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.GetOrganizationCallback): void;
/**
* Calls GetOrganization.
* @param request GetOrganizationRequest message or plain object
* @returns Promise
*/
public getOrganization(request: animeshon.resourcemanager.v1alpha1.IGetOrganizationRequest): Promise<animeshon.resourcemanager.v1alpha1.Organization>;
/**
* Calls ListOrganizations.
* @param request ListOrganizationsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListOrganizationsResponse
*/
public listOrganizations(request: animeshon.resourcemanager.v1alpha1.IListOrganizationsRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.ListOrganizationsCallback): void;
/**
* Calls ListOrganizations.
* @param request ListOrganizationsRequest message or plain object
* @returns Promise
*/
public listOrganizations(request: animeshon.resourcemanager.v1alpha1.IListOrganizationsRequest): Promise<animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse>;
/**
* Calls CreateOrganization.
* @param request CreateOrganizationRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Organization
*/
public createOrganization(request: animeshon.resourcemanager.v1alpha1.ICreateOrganizationRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.CreateOrganizationCallback): void;
/**
* Calls CreateOrganization.
* @param request CreateOrganizationRequest message or plain object
* @returns Promise
*/
public createOrganization(request: animeshon.resourcemanager.v1alpha1.ICreateOrganizationRequest): Promise<animeshon.resourcemanager.v1alpha1.Organization>;
/**
* Calls UpdateOrganization.
* @param request UpdateOrganizationRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Organization
*/
public updateOrganization(request: animeshon.resourcemanager.v1alpha1.IUpdateOrganizationRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.UpdateOrganizationCallback): void;
/**
* Calls UpdateOrganization.
* @param request UpdateOrganizationRequest message or plain object
* @returns Promise
*/
public updateOrganization(request: animeshon.resourcemanager.v1alpha1.IUpdateOrganizationRequest): Promise<animeshon.resourcemanager.v1alpha1.Organization>;
/**
* Calls DeleteOrganization.
* @param request DeleteOrganizationRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteOrganization(request: animeshon.resourcemanager.v1alpha1.IDeleteOrganizationRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.DeleteOrganizationCallback): void;
/**
* Calls DeleteOrganization.
* @param request DeleteOrganizationRequest message or plain object
* @returns Promise
*/
public deleteOrganization(request: animeshon.resourcemanager.v1alpha1.IDeleteOrganizationRequest): Promise<google.protobuf.Empty>;
/**
* Calls GetTeam.
* @param request GetTeamRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Team
*/
public getTeam(request: animeshon.resourcemanager.v1alpha1.IGetTeamRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.GetTeamCallback): void;
/**
* Calls GetTeam.
* @param request GetTeamRequest message or plain object
* @returns Promise
*/
public getTeam(request: animeshon.resourcemanager.v1alpha1.IGetTeamRequest): Promise<animeshon.resourcemanager.v1alpha1.Team>;
/**
* Calls ListTeams.
* @param request ListTeamsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListTeamsResponse
*/
public listTeams(request: animeshon.resourcemanager.v1alpha1.IListTeamsRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.ListTeamsCallback): void;
/**
* Calls ListTeams.
* @param request ListTeamsRequest message or plain object
* @returns Promise
*/
public listTeams(request: animeshon.resourcemanager.v1alpha1.IListTeamsRequest): Promise<animeshon.resourcemanager.v1alpha1.ListTeamsResponse>;
/**
* Calls CreateTeam.
* @param request CreateTeamRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Team
*/
public createTeam(request: animeshon.resourcemanager.v1alpha1.ICreateTeamRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.CreateTeamCallback): void;
/**
* Calls CreateTeam.
* @param request CreateTeamRequest message or plain object
* @returns Promise
*/
public createTeam(request: animeshon.resourcemanager.v1alpha1.ICreateTeamRequest): Promise<animeshon.resourcemanager.v1alpha1.Team>;
/**
* Calls UpdateTeam.
* @param request UpdateTeamRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Team
*/
public updateTeam(request: animeshon.resourcemanager.v1alpha1.IUpdateTeamRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.UpdateTeamCallback): void;
/**
* Calls UpdateTeam.
* @param request UpdateTeamRequest message or plain object
* @returns Promise
*/
public updateTeam(request: animeshon.resourcemanager.v1alpha1.IUpdateTeamRequest): Promise<animeshon.resourcemanager.v1alpha1.Team>;
/**
* Calls DeleteTeam.
* @param request DeleteTeamRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteTeam(request: animeshon.resourcemanager.v1alpha1.IDeleteTeamRequest, callback: animeshon.resourcemanager.v1alpha1.ResourceManager.DeleteTeamCallback): void;
/**
* Calls DeleteTeam.
* @param request DeleteTeamRequest message or plain object
* @returns Promise
*/
public deleteTeam(request: animeshon.resourcemanager.v1alpha1.IDeleteTeamRequest): Promise<google.protobuf.Empty>;
}
namespace ResourceManager {
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#getOrganization}.
* @param error Error, if any
* @param [response] Organization
*/
type GetOrganizationCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.Organization) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#listOrganizations}.
* @param error Error, if any
* @param [response] ListOrganizationsResponse
*/
type ListOrganizationsCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#createOrganization}.
* @param error Error, if any
* @param [response] Organization
*/
type CreateOrganizationCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.Organization) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#updateOrganization}.
* @param error Error, if any
* @param [response] Organization
*/
type UpdateOrganizationCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.Organization) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#deleteOrganization}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteOrganizationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#getTeam}.
* @param error Error, if any
* @param [response] Team
*/
type GetTeamCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.Team) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#listTeams}.
* @param error Error, if any
* @param [response] ListTeamsResponse
*/
type ListTeamsCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.ListTeamsResponse) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#createTeam}.
* @param error Error, if any
* @param [response] Team
*/
type CreateTeamCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.Team) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#updateTeam}.
* @param error Error, if any
* @param [response] Team
*/
type UpdateTeamCallback = (error: (Error|null), response?: animeshon.resourcemanager.v1alpha1.Team) => void;
/**
* Callback as used by {@link animeshon.resourcemanager.v1alpha1.ResourceManager#deleteTeam}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteTeamCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
}
/** Properties of an Organization. */
interface IOrganization {
/** Organization name */
name?: (string|null);
}
/** Represents an Organization. */
class Organization implements IOrganization {
/**
* Constructs a new Organization.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.IOrganization);
/** Organization name. */
public name: string;
/**
* Creates a new Organization instance using the specified properties.
* @param [properties] Properties to set
* @returns Organization instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.IOrganization): animeshon.resourcemanager.v1alpha1.Organization;
/**
* Encodes the specified Organization message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.Organization.verify|verify} messages.
* @param message Organization message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.IOrganization, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Organization message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.Organization.verify|verify} messages.
* @param message Organization message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.IOrganization, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an Organization message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Organization
* @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.resourcemanager.v1alpha1.Organization;
/**
* Decodes an Organization message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Organization
* @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.resourcemanager.v1alpha1.Organization;
/**
* Verifies an Organization 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 an Organization message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Organization
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.Organization;
/**
* Creates a plain object from an Organization message. Also converts values to other types if specified.
* @param message Organization
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.Organization, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Organization to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Team. */
interface ITeam {
/** Team name */
name?: (string|null);
}
/** Represents a Team. */
class Team implements ITeam {
/**
* Constructs a new Team.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.ITeam);
/** Team name. */
public name: string;
/**
* Creates a new Team instance using the specified properties.
* @param [properties] Properties to set
* @returns Team instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.ITeam): animeshon.resourcemanager.v1alpha1.Team;
/**
* Encodes the specified Team message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.Team.verify|verify} messages.
* @param message Team message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.ITeam, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Team message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.Team.verify|verify} messages.
* @param message Team message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.ITeam, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Team message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Team
* @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.resourcemanager.v1alpha1.Team;
/**
* Decodes a Team message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Team
* @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.resourcemanager.v1alpha1.Team;
/**
* Verifies a Team 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 Team message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Team
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.Team;
/**
* Creates a plain object from a Team message. Also converts values to other types if specified.
* @param message Team
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.Team, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Team to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a GetOrganizationRequest. */
interface IGetOrganizationRequest {
/** GetOrganizationRequest name */
name?: (string|null);
}
/** Represents a GetOrganizationRequest. */
class GetOrganizationRequest implements IGetOrganizationRequest {
/**
* Constructs a new GetOrganizationRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.IGetOrganizationRequest);
/** GetOrganizationRequest name. */
public name: string;
/**
* Creates a new GetOrganizationRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns GetOrganizationRequest instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.IGetOrganizationRequest): animeshon.resourcemanager.v1alpha1.GetOrganizationRequest;
/**
* Encodes the specified GetOrganizationRequest message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.GetOrganizationRequest.verify|verify} messages.
* @param message GetOrganizationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.IGetOrganizationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GetOrganizationRequest message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.GetOrganizationRequest.verify|verify} messages.
* @param message GetOrganizationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.IGetOrganizationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GetOrganizationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GetOrganizationRequest
* @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.resourcemanager.v1alpha1.GetOrganizationRequest;
/**
* Decodes a GetOrganizationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GetOrganizationRequest
* @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.resourcemanager.v1alpha1.GetOrganizationRequest;
/**
* Verifies a GetOrganizationRequest 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 GetOrganizationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GetOrganizationRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.GetOrganizationRequest;
/**
* Creates a plain object from a GetOrganizationRequest message. Also converts values to other types if specified.
* @param message GetOrganizationRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.GetOrganizationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GetOrganizationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ListOrganizationsRequest. */
interface IListOrganizationsRequest {
/** ListOrganizationsRequest pageSize */
pageSize?: (number|null);
/** ListOrganizationsRequest pageToken */
pageToken?: (string|null);
/** ListOrganizationsRequest filter */
filter?: (string|null);
}
/** Represents a ListOrganizationsRequest. */
class ListOrganizationsRequest implements IListOrganizationsRequest {
/**
* Constructs a new ListOrganizationsRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.IListOrganizationsRequest);
/** ListOrganizationsRequest pageSize. */
public pageSize: number;
/** ListOrganizationsRequest pageToken. */
public pageToken: string;
/** ListOrganizationsRequest filter. */
public filter: string;
/**
* Creates a new ListOrganizationsRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns ListOrganizationsRequest instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.IListOrganizationsRequest): animeshon.resourcemanager.v1alpha1.ListOrganizationsRequest;
/**
* Encodes the specified ListOrganizationsRequest message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.ListOrganizationsRequest.verify|verify} messages.
* @param message ListOrganizationsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.IListOrganizationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListOrganizationsRequest message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.ListOrganizationsRequest.verify|verify} messages.
* @param message ListOrganizationsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.IListOrganizationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListOrganizationsRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListOrganizationsRequest
* @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.resourcemanager.v1alpha1.ListOrganizationsRequest;
/**
* Decodes a ListOrganizationsRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListOrganizationsRequest
* @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.resourcemanager.v1alpha1.ListOrganizationsRequest;
/**
* Verifies a ListOrganizationsRequest 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 ListOrganizationsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListOrganizationsRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.ListOrganizationsRequest;
/**
* Creates a plain object from a ListOrganizationsRequest message. Also converts values to other types if specified.
* @param message ListOrganizationsRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.ListOrganizationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListOrganizationsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a ListOrganizationsResponse. */
interface IListOrganizationsResponse {
/** ListOrganizationsResponse organizations */
organizations?: (animeshon.resourcemanager.v1alpha1.IOrganization[]|null);
/** ListOrganizationsResponse nextPageToken */
nextPageToken?: (string|null);
}
/** Represents a ListOrganizationsResponse. */
class ListOrganizationsResponse implements IListOrganizationsResponse {
/**
* Constructs a new ListOrganizationsResponse.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.IListOrganizationsResponse);
/** ListOrganizationsResponse organizations. */
public organizations: animeshon.resourcemanager.v1alpha1.IOrganization[];
/** ListOrganizationsResponse nextPageToken. */
public nextPageToken: string;
/**
* Creates a new ListOrganizationsResponse instance using the specified properties.
* @param [properties] Properties to set
* @returns ListOrganizationsResponse instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.IListOrganizationsResponse): animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse;
/**
* Encodes the specified ListOrganizationsResponse message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse.verify|verify} messages.
* @param message ListOrganizationsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.IListOrganizationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListOrganizationsResponse message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse.verify|verify} messages.
* @param message ListOrganizationsResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.IListOrganizationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListOrganizationsResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListOrganizationsResponse
* @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.resourcemanager.v1alpha1.ListOrganizationsResponse;
/**
* Decodes a ListOrganizationsResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListOrganizationsResponse
* @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.resourcemanager.v1alpha1.ListOrganizationsResponse;
/**
* Verifies a ListOrganizationsResponse 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 ListOrganizationsResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListOrganizationsResponse
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse;
/**
* Creates a plain object from a ListOrganizationsResponse message. Also converts values to other types if specified.
* @param message ListOrganizationsResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.ListOrganizationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListOrganizationsResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CreateOrganizationRequest. */
interface ICreateOrganizationRequest {
/** CreateOrganizationRequest organization */
organization?: (animeshon.resourcemanager.v1alpha1.IOrganization|null);
}
/** Represents a CreateOrganizationRequest. */
class CreateOrganizationRequest implements ICreateOrganizationRequest {
/**
* Constructs a new CreateOrganizationRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.ICreateOrganizationRequest);
/** CreateOrganizationRequest organization. */
public organization?: (animeshon.resourcemanager.v1alpha1.IOrganization|null);
/**
* Creates a new CreateOrganizationRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CreateOrganizationRequest instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.ICreateOrganizationRequest): animeshon.resourcemanager.v1alpha1.CreateOrganizationRequest;
/**
* Encodes the specified CreateOrganizationRequest message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.CreateOrganizationRequest.verify|verify} messages.
* @param message CreateOrganizationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.ICreateOrganizationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CreateOrganizationRequest message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.CreateOrganizationRequest.verify|verify} messages.
* @param message CreateOrganizationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.ICreateOrganizationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CreateOrganizationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CreateOrganizationRequest
* @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.resourcemanager.v1alpha1.CreateOrganizationRequest;
/**
* Decodes a CreateOrganizationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CreateOrganizationRequest
* @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.resourcemanager.v1alpha1.CreateOrganizationRequest;
/**
* Verifies a CreateOrganizationRequest 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 CreateOrganizationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateOrganizationRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.CreateOrganizationRequest;
/**
* Creates a plain object from a CreateOrganizationRequest message. Also converts values to other types if specified.
* @param message CreateOrganizationRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.CreateOrganizationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CreateOrganizationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of an UpdateOrganizationRequest. */
interface IUpdateOrganizationRequest {
/** UpdateOrganizationRequest organization */
organization?: (animeshon.resourcemanager.v1alpha1.IOrganization|null);
/** UpdateOrganizationRequest updateMask */
updateMask?: (google.protobuf.IFieldMask|null);
}
/** Represents an UpdateOrganizationRequest. */
class UpdateOrganizationRequest implements IUpdateOrganizationRequest {
/**
* Constructs a new UpdateOrganizationRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.IUpdateOrganizationRequest);
/** UpdateOrganizationRequest organization. */
public organization?: (animeshon.resourcemanager.v1alpha1.IOrganization|null);
/** UpdateOrganizationRequest updateMask. */
public updateMask?: (google.protobuf.IFieldMask|null);
/**
* Creates a new UpdateOrganizationRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns UpdateOrganizationRequest instance
*/
public static create(properties?: animeshon.resourcemanager.v1alpha1.IUpdateOrganizationRequest): animeshon.resourcemanager.v1alpha1.UpdateOrganizationRequest;
/**
* Encodes the specified UpdateOrganizationRequest message. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.UpdateOrganizationRequest.verify|verify} messages.
* @param message UpdateOrganizationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: animeshon.resourcemanager.v1alpha1.IUpdateOrganizationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UpdateOrganizationRequest message, length delimited. Does not implicitly {@link animeshon.resourcemanager.v1alpha1.UpdateOrganizationRequest.verify|verify} messages.
* @param message UpdateOrganizationRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: animeshon.resourcemanager.v1alpha1.IUpdateOrganizationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an UpdateOrganizationRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UpdateOrganizationRequest
* @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.resourcemanager.v1alpha1.UpdateOrganizationRequest;
/**
* Decodes an UpdateOrganizationRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UpdateOrganizationRequest
* @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.resourcemanager.v1alpha1.UpdateOrganizationRequest;
/**
* Verifies an UpdateOrganizationRequest 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 an UpdateOrganizationRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UpdateOrganizationRequest
*/
public static fromObject(object: { [k: string]: any }): animeshon.resourcemanager.v1alpha1.UpdateOrganizationRequest;
/**
* Creates a plain object from an UpdateOrganizationRequest message. Also converts values to other types if specified.
* @param message UpdateOrganizationRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: animeshon.resourcemanager.v1alpha1.UpdateOrganizationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UpdateOrganizationRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a DeleteOrganizationRequest. */
interface IDeleteOrganizationRequest {
/** DeleteOrganizationRequest name */
name?: (string|null);
}
/** Represents a DeleteOrganizationRequest. */
class DeleteOrganizationRequest implements IDeleteOrganizationRequest {
/**
* Constructs a new DeleteOrganizationRequest.
* @param [properties] Properties to set
*/
constructor(properties?: animeshon.resourcemanager.v1alpha1.IDeleteOrganizationRequest);
/** DeleteOrganizationRequest name. */
public name: string;
/**