@google-cloud/asset
Version:
Cloud Asset API client for Node.js
880 lines (741 loc) • 1.8 MB
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 asset. */
namespace asset {
/** Namespace v1. */
namespace v1 {
/** Properties of a ResourceOwners. */
interface IResourceOwners {
/** ResourceOwners resourceOwners */
resourceOwners?: (string[]|null);
}
/** Represents a ResourceOwners. */
class ResourceOwners implements IResourceOwners {
/**
* Constructs a new ResourceOwners.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.asset.v1.IResourceOwners);
/** ResourceOwners resourceOwners. */
public resourceOwners: string[];
/**
* Creates a new ResourceOwners instance using the specified properties.
* @param [properties] Properties to set
* @returns ResourceOwners instance
*/
public static create(properties?: google.cloud.asset.v1.IResourceOwners): google.cloud.asset.v1.ResourceOwners;
/**
* Encodes the specified ResourceOwners message. Does not implicitly {@link google.cloud.asset.v1.ResourceOwners.verify|verify} messages.
* @param message ResourceOwners message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.asset.v1.IResourceOwners, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ResourceOwners message, length delimited. Does not implicitly {@link google.cloud.asset.v1.ResourceOwners.verify|verify} messages.
* @param message ResourceOwners message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.asset.v1.IResourceOwners, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ResourceOwners message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ResourceOwners
* @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.asset.v1.ResourceOwners;
/**
* Decodes a ResourceOwners message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ResourceOwners
* @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.asset.v1.ResourceOwners;
/**
* Verifies a ResourceOwners 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 ResourceOwners message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ResourceOwners
*/
public static fromObject(object: { [k: string]: any }): google.cloud.asset.v1.ResourceOwners;
/**
* Creates a plain object from a ResourceOwners message. Also converts values to other types if specified.
* @param message ResourceOwners
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.asset.v1.ResourceOwners, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ResourceOwners to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ResourceOwners
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Represents an AssetService */
class AssetService extends $protobuf.rpc.Service {
/**
* Constructs a new AssetService 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 AssetService 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): AssetService;
/**
* Calls ExportAssets.
* @param request ExportAssetsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public exportAssets(request: google.cloud.asset.v1.IExportAssetsRequest, callback: google.cloud.asset.v1.AssetService.ExportAssetsCallback): void;
/**
* Calls ExportAssets.
* @param request ExportAssetsRequest message or plain object
* @returns Promise
*/
public exportAssets(request: google.cloud.asset.v1.IExportAssetsRequest): Promise<google.longrunning.Operation>;
/**
* Calls ListAssets.
* @param request ListAssetsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListAssetsResponse
*/
public listAssets(request: google.cloud.asset.v1.IListAssetsRequest, callback: google.cloud.asset.v1.AssetService.ListAssetsCallback): void;
/**
* Calls ListAssets.
* @param request ListAssetsRequest message or plain object
* @returns Promise
*/
public listAssets(request: google.cloud.asset.v1.IListAssetsRequest): Promise<google.cloud.asset.v1.ListAssetsResponse>;
/**
* Calls BatchGetAssetsHistory.
* @param request BatchGetAssetsHistoryRequest message or plain object
* @param callback Node-style callback called with the error, if any, and BatchGetAssetsHistoryResponse
*/
public batchGetAssetsHistory(request: google.cloud.asset.v1.IBatchGetAssetsHistoryRequest, callback: google.cloud.asset.v1.AssetService.BatchGetAssetsHistoryCallback): void;
/**
* Calls BatchGetAssetsHistory.
* @param request BatchGetAssetsHistoryRequest message or plain object
* @returns Promise
*/
public batchGetAssetsHistory(request: google.cloud.asset.v1.IBatchGetAssetsHistoryRequest): Promise<google.cloud.asset.v1.BatchGetAssetsHistoryResponse>;
/**
* Calls CreateFeed.
* @param request CreateFeedRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Feed
*/
public createFeed(request: google.cloud.asset.v1.ICreateFeedRequest, callback: google.cloud.asset.v1.AssetService.CreateFeedCallback): void;
/**
* Calls CreateFeed.
* @param request CreateFeedRequest message or plain object
* @returns Promise
*/
public createFeed(request: google.cloud.asset.v1.ICreateFeedRequest): Promise<google.cloud.asset.v1.Feed>;
/**
* Calls GetFeed.
* @param request GetFeedRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Feed
*/
public getFeed(request: google.cloud.asset.v1.IGetFeedRequest, callback: google.cloud.asset.v1.AssetService.GetFeedCallback): void;
/**
* Calls GetFeed.
* @param request GetFeedRequest message or plain object
* @returns Promise
*/
public getFeed(request: google.cloud.asset.v1.IGetFeedRequest): Promise<google.cloud.asset.v1.Feed>;
/**
* Calls ListFeeds.
* @param request ListFeedsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListFeedsResponse
*/
public listFeeds(request: google.cloud.asset.v1.IListFeedsRequest, callback: google.cloud.asset.v1.AssetService.ListFeedsCallback): void;
/**
* Calls ListFeeds.
* @param request ListFeedsRequest message or plain object
* @returns Promise
*/
public listFeeds(request: google.cloud.asset.v1.IListFeedsRequest): Promise<google.cloud.asset.v1.ListFeedsResponse>;
/**
* Calls UpdateFeed.
* @param request UpdateFeedRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Feed
*/
public updateFeed(request: google.cloud.asset.v1.IUpdateFeedRequest, callback: google.cloud.asset.v1.AssetService.UpdateFeedCallback): void;
/**
* Calls UpdateFeed.
* @param request UpdateFeedRequest message or plain object
* @returns Promise
*/
public updateFeed(request: google.cloud.asset.v1.IUpdateFeedRequest): Promise<google.cloud.asset.v1.Feed>;
/**
* Calls DeleteFeed.
* @param request DeleteFeedRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteFeed(request: google.cloud.asset.v1.IDeleteFeedRequest, callback: google.cloud.asset.v1.AssetService.DeleteFeedCallback): void;
/**
* Calls DeleteFeed.
* @param request DeleteFeedRequest message or plain object
* @returns Promise
*/
public deleteFeed(request: google.cloud.asset.v1.IDeleteFeedRequest): Promise<google.protobuf.Empty>;
/**
* Calls SearchAllResources.
* @param request SearchAllResourcesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and SearchAllResourcesResponse
*/
public searchAllResources(request: google.cloud.asset.v1.ISearchAllResourcesRequest, callback: google.cloud.asset.v1.AssetService.SearchAllResourcesCallback): void;
/**
* Calls SearchAllResources.
* @param request SearchAllResourcesRequest message or plain object
* @returns Promise
*/
public searchAllResources(request: google.cloud.asset.v1.ISearchAllResourcesRequest): Promise<google.cloud.asset.v1.SearchAllResourcesResponse>;
/**
* Calls SearchAllIamPolicies.
* @param request SearchAllIamPoliciesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and SearchAllIamPoliciesResponse
*/
public searchAllIamPolicies(request: google.cloud.asset.v1.ISearchAllIamPoliciesRequest, callback: google.cloud.asset.v1.AssetService.SearchAllIamPoliciesCallback): void;
/**
* Calls SearchAllIamPolicies.
* @param request SearchAllIamPoliciesRequest message or plain object
* @returns Promise
*/
public searchAllIamPolicies(request: google.cloud.asset.v1.ISearchAllIamPoliciesRequest): Promise<google.cloud.asset.v1.SearchAllIamPoliciesResponse>;
/**
* Calls AnalyzeIamPolicy.
* @param request AnalyzeIamPolicyRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AnalyzeIamPolicyResponse
*/
public analyzeIamPolicy(request: google.cloud.asset.v1.IAnalyzeIamPolicyRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeIamPolicyCallback): void;
/**
* Calls AnalyzeIamPolicy.
* @param request AnalyzeIamPolicyRequest message or plain object
* @returns Promise
*/
public analyzeIamPolicy(request: google.cloud.asset.v1.IAnalyzeIamPolicyRequest): Promise<google.cloud.asset.v1.AnalyzeIamPolicyResponse>;
/**
* Calls AnalyzeIamPolicyLongrunning.
* @param request AnalyzeIamPolicyLongrunningRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public analyzeIamPolicyLongrunning(request: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunningCallback): void;
/**
* Calls AnalyzeIamPolicyLongrunning.
* @param request AnalyzeIamPolicyLongrunningRequest message or plain object
* @returns Promise
*/
public analyzeIamPolicyLongrunning(request: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningRequest): Promise<google.longrunning.Operation>;
/**
* Calls AnalyzeMove.
* @param request AnalyzeMoveRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AnalyzeMoveResponse
*/
public analyzeMove(request: google.cloud.asset.v1.IAnalyzeMoveRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeMoveCallback): void;
/**
* Calls AnalyzeMove.
* @param request AnalyzeMoveRequest message or plain object
* @returns Promise
*/
public analyzeMove(request: google.cloud.asset.v1.IAnalyzeMoveRequest): Promise<google.cloud.asset.v1.AnalyzeMoveResponse>;
/**
* Calls QueryAssets.
* @param request QueryAssetsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and QueryAssetsResponse
*/
public queryAssets(request: google.cloud.asset.v1.IQueryAssetsRequest, callback: google.cloud.asset.v1.AssetService.QueryAssetsCallback): void;
/**
* Calls QueryAssets.
* @param request QueryAssetsRequest message or plain object
* @returns Promise
*/
public queryAssets(request: google.cloud.asset.v1.IQueryAssetsRequest): Promise<google.cloud.asset.v1.QueryAssetsResponse>;
/**
* Calls CreateSavedQuery.
* @param request CreateSavedQueryRequest message or plain object
* @param callback Node-style callback called with the error, if any, and SavedQuery
*/
public createSavedQuery(request: google.cloud.asset.v1.ICreateSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.CreateSavedQueryCallback): void;
/**
* Calls CreateSavedQuery.
* @param request CreateSavedQueryRequest message or plain object
* @returns Promise
*/
public createSavedQuery(request: google.cloud.asset.v1.ICreateSavedQueryRequest): Promise<google.cloud.asset.v1.SavedQuery>;
/**
* Calls GetSavedQuery.
* @param request GetSavedQueryRequest message or plain object
* @param callback Node-style callback called with the error, if any, and SavedQuery
*/
public getSavedQuery(request: google.cloud.asset.v1.IGetSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.GetSavedQueryCallback): void;
/**
* Calls GetSavedQuery.
* @param request GetSavedQueryRequest message or plain object
* @returns Promise
*/
public getSavedQuery(request: google.cloud.asset.v1.IGetSavedQueryRequest): Promise<google.cloud.asset.v1.SavedQuery>;
/**
* Calls ListSavedQueries.
* @param request ListSavedQueriesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse
*/
public listSavedQueries(request: google.cloud.asset.v1.IListSavedQueriesRequest, callback: google.cloud.asset.v1.AssetService.ListSavedQueriesCallback): void;
/**
* Calls ListSavedQueries.
* @param request ListSavedQueriesRequest message or plain object
* @returns Promise
*/
public listSavedQueries(request: google.cloud.asset.v1.IListSavedQueriesRequest): Promise<google.cloud.asset.v1.ListSavedQueriesResponse>;
/**
* Calls UpdateSavedQuery.
* @param request UpdateSavedQueryRequest message or plain object
* @param callback Node-style callback called with the error, if any, and SavedQuery
*/
public updateSavedQuery(request: google.cloud.asset.v1.IUpdateSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.UpdateSavedQueryCallback): void;
/**
* Calls UpdateSavedQuery.
* @param request UpdateSavedQueryRequest message or plain object
* @returns Promise
*/
public updateSavedQuery(request: google.cloud.asset.v1.IUpdateSavedQueryRequest): Promise<google.cloud.asset.v1.SavedQuery>;
/**
* Calls DeleteSavedQuery.
* @param request DeleteSavedQueryRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Empty
*/
public deleteSavedQuery(request: google.cloud.asset.v1.IDeleteSavedQueryRequest, callback: google.cloud.asset.v1.AssetService.DeleteSavedQueryCallback): void;
/**
* Calls DeleteSavedQuery.
* @param request DeleteSavedQueryRequest message or plain object
* @returns Promise
*/
public deleteSavedQuery(request: google.cloud.asset.v1.IDeleteSavedQueryRequest): Promise<google.protobuf.Empty>;
/**
* Calls BatchGetEffectiveIamPolicies.
* @param request BatchGetEffectiveIamPoliciesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and BatchGetEffectiveIamPoliciesResponse
*/
public batchGetEffectiveIamPolicies(request: google.cloud.asset.v1.IBatchGetEffectiveIamPoliciesRequest, callback: google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPoliciesCallback): void;
/**
* Calls BatchGetEffectiveIamPolicies.
* @param request BatchGetEffectiveIamPoliciesRequest message or plain object
* @returns Promise
*/
public batchGetEffectiveIamPolicies(request: google.cloud.asset.v1.IBatchGetEffectiveIamPoliciesRequest): Promise<google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse>;
/**
* Calls AnalyzeOrgPolicies.
* @param request AnalyzeOrgPoliciesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AnalyzeOrgPoliciesResponse
*/
public analyzeOrgPolicies(request: google.cloud.asset.v1.IAnalyzeOrgPoliciesRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeOrgPoliciesCallback): void;
/**
* Calls AnalyzeOrgPolicies.
* @param request AnalyzeOrgPoliciesRequest message or plain object
* @returns Promise
*/
public analyzeOrgPolicies(request: google.cloud.asset.v1.IAnalyzeOrgPoliciesRequest): Promise<google.cloud.asset.v1.AnalyzeOrgPoliciesResponse>;
/**
* Calls AnalyzeOrgPolicyGovernedContainers.
* @param request AnalyzeOrgPolicyGovernedContainersRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AnalyzeOrgPolicyGovernedContainersResponse
*/
public analyzeOrgPolicyGovernedContainers(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedContainersRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedContainersCallback): void;
/**
* Calls AnalyzeOrgPolicyGovernedContainers.
* @param request AnalyzeOrgPolicyGovernedContainersRequest message or plain object
* @returns Promise
*/
public analyzeOrgPolicyGovernedContainers(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedContainersRequest): Promise<google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse>;
/**
* Calls AnalyzeOrgPolicyGovernedAssets.
* @param request AnalyzeOrgPolicyGovernedAssetsRequest message or plain object
* @param callback Node-style callback called with the error, if any, and AnalyzeOrgPolicyGovernedAssetsResponse
*/
public analyzeOrgPolicyGovernedAssets(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedAssetsRequest, callback: google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssetsCallback): void;
/**
* Calls AnalyzeOrgPolicyGovernedAssets.
* @param request AnalyzeOrgPolicyGovernedAssetsRequest message or plain object
* @returns Promise
*/
public analyzeOrgPolicyGovernedAssets(request: google.cloud.asset.v1.IAnalyzeOrgPolicyGovernedAssetsRequest): Promise<google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse>;
}
namespace AssetService {
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|exportAssets}.
* @param error Error, if any
* @param [response] Operation
*/
type ExportAssetsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|listAssets}.
* @param error Error, if any
* @param [response] ListAssetsResponse
*/
type ListAssetsCallback = (error: (Error|null), response?: google.cloud.asset.v1.ListAssetsResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|batchGetAssetsHistory}.
* @param error Error, if any
* @param [response] BatchGetAssetsHistoryResponse
*/
type BatchGetAssetsHistoryCallback = (error: (Error|null), response?: google.cloud.asset.v1.BatchGetAssetsHistoryResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|createFeed}.
* @param error Error, if any
* @param [response] Feed
*/
type CreateFeedCallback = (error: (Error|null), response?: google.cloud.asset.v1.Feed) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|getFeed}.
* @param error Error, if any
* @param [response] Feed
*/
type GetFeedCallback = (error: (Error|null), response?: google.cloud.asset.v1.Feed) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|listFeeds}.
* @param error Error, if any
* @param [response] ListFeedsResponse
*/
type ListFeedsCallback = (error: (Error|null), response?: google.cloud.asset.v1.ListFeedsResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|updateFeed}.
* @param error Error, if any
* @param [response] Feed
*/
type UpdateFeedCallback = (error: (Error|null), response?: google.cloud.asset.v1.Feed) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|deleteFeed}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteFeedCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|searchAllResources}.
* @param error Error, if any
* @param [response] SearchAllResourcesResponse
*/
type SearchAllResourcesCallback = (error: (Error|null), response?: google.cloud.asset.v1.SearchAllResourcesResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|searchAllIamPolicies}.
* @param error Error, if any
* @param [response] SearchAllIamPoliciesResponse
*/
type SearchAllIamPoliciesCallback = (error: (Error|null), response?: google.cloud.asset.v1.SearchAllIamPoliciesResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|analyzeIamPolicy}.
* @param error Error, if any
* @param [response] AnalyzeIamPolicyResponse
*/
type AnalyzeIamPolicyCallback = (error: (Error|null), response?: google.cloud.asset.v1.AnalyzeIamPolicyResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|analyzeIamPolicyLongrunning}.
* @param error Error, if any
* @param [response] Operation
*/
type AnalyzeIamPolicyLongrunningCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|analyzeMove}.
* @param error Error, if any
* @param [response] AnalyzeMoveResponse
*/
type AnalyzeMoveCallback = (error: (Error|null), response?: google.cloud.asset.v1.AnalyzeMoveResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|queryAssets}.
* @param error Error, if any
* @param [response] QueryAssetsResponse
*/
type QueryAssetsCallback = (error: (Error|null), response?: google.cloud.asset.v1.QueryAssetsResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|createSavedQuery}.
* @param error Error, if any
* @param [response] SavedQuery
*/
type CreateSavedQueryCallback = (error: (Error|null), response?: google.cloud.asset.v1.SavedQuery) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|getSavedQuery}.
* @param error Error, if any
* @param [response] SavedQuery
*/
type GetSavedQueryCallback = (error: (Error|null), response?: google.cloud.asset.v1.SavedQuery) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|listSavedQueries}.
* @param error Error, if any
* @param [response] ListSavedQueriesResponse
*/
type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.asset.v1.ListSavedQueriesResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|updateSavedQuery}.
* @param error Error, if any
* @param [response] SavedQuery
*/
type UpdateSavedQueryCallback = (error: (Error|null), response?: google.cloud.asset.v1.SavedQuery) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|deleteSavedQuery}.
* @param error Error, if any
* @param [response] Empty
*/
type DeleteSavedQueryCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|batchGetEffectiveIamPolicies}.
* @param error Error, if any
* @param [response] BatchGetEffectiveIamPoliciesResponse
*/
type BatchGetEffectiveIamPoliciesCallback = (error: (Error|null), response?: google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|analyzeOrgPolicies}.
* @param error Error, if any
* @param [response] AnalyzeOrgPoliciesResponse
*/
type AnalyzeOrgPoliciesCallback = (error: (Error|null), response?: google.cloud.asset.v1.AnalyzeOrgPoliciesResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|analyzeOrgPolicyGovernedContainers}.
* @param error Error, if any
* @param [response] AnalyzeOrgPolicyGovernedContainersResponse
*/
type AnalyzeOrgPolicyGovernedContainersCallback = (error: (Error|null), response?: google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse) => void;
/**
* Callback as used by {@link google.cloud.asset.v1.AssetService|analyzeOrgPolicyGovernedAssets}.
* @param error Error, if any
* @param [response] AnalyzeOrgPolicyGovernedAssetsResponse
*/
type AnalyzeOrgPolicyGovernedAssetsCallback = (error: (Error|null), response?: google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse) => void;
}
/** Properties of an AnalyzeIamPolicyLongrunningMetadata. */
interface IAnalyzeIamPolicyLongrunningMetadata {
/** AnalyzeIamPolicyLongrunningMetadata createTime */
createTime?: (google.protobuf.ITimestamp|null);
}
/** Represents an AnalyzeIamPolicyLongrunningMetadata. */
class AnalyzeIamPolicyLongrunningMetadata implements IAnalyzeIamPolicyLongrunningMetadata {
/**
* Constructs a new AnalyzeIamPolicyLongrunningMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningMetadata);
/** AnalyzeIamPolicyLongrunningMetadata createTime. */
public createTime?: (google.protobuf.ITimestamp|null);
/**
* Creates a new AnalyzeIamPolicyLongrunningMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns AnalyzeIamPolicyLongrunningMetadata instance
*/
public static create(properties?: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningMetadata): google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
/**
* Encodes the specified AnalyzeIamPolicyLongrunningMetadata message. Does not implicitly {@link google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.verify|verify} messages.
* @param message AnalyzeIamPolicyLongrunningMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AnalyzeIamPolicyLongrunningMetadata message, length delimited. Does not implicitly {@link google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata.verify|verify} messages.
* @param message AnalyzeIamPolicyLongrunningMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.asset.v1.IAnalyzeIamPolicyLongrunningMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AnalyzeIamPolicyLongrunningMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AnalyzeIamPolicyLongrunningMetadata
* @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.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
/**
* Decodes an AnalyzeIamPolicyLongrunningMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AnalyzeIamPolicyLongrunningMetadata
* @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.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
/**
* Verifies an AnalyzeIamPolicyLongrunningMetadata 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 AnalyzeIamPolicyLongrunningMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AnalyzeIamPolicyLongrunningMetadata
*/
public static fromObject(object: { [k: string]: any }): google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata;
/**
* Creates a plain object from an AnalyzeIamPolicyLongrunningMetadata message. Also converts values to other types if specified.
* @param message AnalyzeIamPolicyLongrunningMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.asset.v1.AnalyzeIamPolicyLongrunningMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AnalyzeIamPolicyLongrunningMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AnalyzeIamPolicyLongrunningMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an ExportAssetsRequest. */
interface IExportAssetsRequest {
/** ExportAssetsRequest parent */
parent?: (string|null);
/** ExportAssetsRequest readTime */
readTime?: (google.protobuf.ITimestamp|null);
/** ExportAssetsRequest assetTypes */
assetTypes?: (string[]|null);
/** ExportAssetsRequest contentType */
contentType?: (google.cloud.asset.v1.ContentType|keyof typeof google.cloud.asset.v1.ContentType|null);
/** ExportAssetsRequest outputConfig */
outputConfig?: (google.cloud.asset.v1.IOutputConfig|null);
/** ExportAssetsRequest relationshipTypes */
relationshipTypes?: (string[]|null);
}
/** Represents an ExportAssetsRequest. */
class ExportAssetsRequest implements IExportAssetsRequest {
/**
* Constructs a new ExportAssetsRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.asset.v1.IExportAssetsRequest);
/** ExportAssetsRequest parent. */
public parent: string;
/** ExportAssetsRequest readTime. */
public readTime?: (google.protobuf.ITimestamp|null);
/** ExportAssetsRequest assetTypes. */
public assetTypes: string[];
/** ExportAssetsRequest contentType. */
public contentType: (google.cloud.asset.v1.ContentType|keyof typeof google.cloud.asset.v1.ContentType);
/** ExportAssetsRequest outputConfig. */
public outputConfig?: (google.cloud.asset.v1.IOutputConfig|null);
/** ExportAssetsRequest relationshipTypes. */
public relationshipTypes: string[];
/**
* Creates a new ExportAssetsRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns ExportAssetsRequest instance
*/
public static create(properties?: google.cloud.asset.v1.IExportAssetsRequest): google.cloud.asset.v1.ExportAssetsRequest;
/**
* Encodes the specified ExportAssetsRequest message. Does not implicitly {@link google.cloud.asset.v1.ExportAssetsRequest.verify|verify} messages.
* @param message ExportAssetsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.asset.v1.IExportAssetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ExportAssetsRequest message, length delimited. Does not implicitly {@link google.cloud.asset.v1.ExportAssetsRequest.verify|verify} messages.
* @param message ExportAssetsRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.asset.v1.IExportAssetsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an ExportAssetsRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ExportAssetsRequest
* @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.asset.v1.ExportAssetsRequest;
/**
* Decodes an ExportAssetsRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ExportAssetsRequest
* @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.asset.v1.ExportAssetsRequest;
/**
* Verifies an ExportAssetsRequest 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 ExportAssetsRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ExportAssetsRequest
*/
public static fromObject(object: { [k: string]: any }): google.cloud.asset.v1.ExportAssetsRequest;
/**
* Creates a plain object from an ExportAssetsRequest message. Also converts values to other types if specified.
* @param message ExportAssetsRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.asset.v1.ExportAssetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ExportAssetsRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ExportAssetsRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an ExportAssetsResponse. */
interface IExportAssetsResponse {
/** ExportAssetsResponse readTime */
readTime?: (google.protobuf.ITimestamp|null);
/** ExportAssetsResponse outputConfig */
outputConfig?: (google.cloud.asset.v1.IOutputConfig|null);
/** ExportAssetsResponse outputResult */
outputResult?: (google.cloud.asset.v1.IOutputResult|null);
}
/** Represents an ExportAssetsResponse. */
class ExportAssetsResponse implements IExportAssetsResponse {
/**
* Constructs a new ExportAssetsResponse.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.asset.v1.IExportAssetsResponse);
/** ExportAssetsResponse readTime. */
public readTime?: (google.p