@kubernetes-models/argo-cd
Version:
74 lines (73 loc) • 3.15 kB
TypeScript
import { IComGithubArgoprojGitopsEnginePkgSyncCommonOperationPhase } from "../../github.com/argoproj/gitops-engine/pkg/sync/common/OperationPhase.js";
import { IComGithubArgoprojGitopsEnginePkgSyncCommonHookType } from "../../github.com/argoproj/gitops-engine/pkg/sync/common/HookType.js";
import { IComGithubArgoprojGitopsEnginePkgSyncCommonResultCode } from "../../github.com/argoproj/gitops-engine/pkg/sync/common/ResultCode.js";
import { IComGithubArgoprojGitopsEnginePkgSyncCommonSyncPhase } from "../../github.com/argoproj/gitops-engine/pkg/sync/common/SyncPhase.js";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ResourceResult holds the operation result details of a specific resource
*/
export interface IResourceResult {
/**
* Group specifies the API group of the resource
*/
"group": string;
/**
* HookPhase contains the state of any operation associated with this resource OR hook
* This can also contain values for non-hook resources.
*/
"hookPhase"?: IComGithubArgoprojGitopsEnginePkgSyncCommonOperationPhase;
/**
* HookType specifies the type of the hook. Empty for non-hook resources
*/
"hookType"?: IComGithubArgoprojGitopsEnginePkgSyncCommonHookType;
/**
* Images contains the images related to the ResourceResult
*/
"images"?: Array<string>;
/**
* Kind specifies the API kind of the resource
*/
"kind": string;
/**
* Message contains an informational or error message for the last sync OR operation
*/
"message"?: string;
/**
* Name specifies the name of the resource
*/
"name": string;
/**
* Namespace specifies the target namespace of the resource
*/
"namespace": string;
/**
* Status holds the final result of the sync. Will be empty if the resources is yet to be applied/pruned and is always zero-value for hooks
*/
"status"?: IComGithubArgoprojGitopsEnginePkgSyncCommonResultCode;
/**
* SyncPhase indicates the particular phase of the sync that this result was acquired in
*/
"syncPhase"?: IComGithubArgoprojGitopsEnginePkgSyncCommonSyncPhase;
/**
* Version specifies the API version of the resource
*/
"version": string;
}
/**
* ResourceResult holds the operation result details of a specific resource
*/
export declare class ResourceResult extends Model<IResourceResult> implements IResourceResult {
"group": string;
"hookPhase"?: IComGithubArgoprojGitopsEnginePkgSyncCommonOperationPhase;
"hookType"?: IComGithubArgoprojGitopsEnginePkgSyncCommonHookType;
"images"?: Array<string>;
"kind": string;
"message"?: string;
"name": string;
"namespace": string;
"status"?: IComGithubArgoprojGitopsEnginePkgSyncCommonResultCode;
"syncPhase"?: IComGithubArgoprojGitopsEnginePkgSyncCommonSyncPhase;
"version": string;
constructor(data?: ModelData<IResourceResult>);
}
export type { IResourceResult as IComGithubArgoprojArgoCdV3PkgApisApplicationV1alpha1ResourceResult, ResourceResult as ComGithubArgoprojArgoCdV3PkgApisApplicationV1alpha1ResourceResult };