import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Run the specified patch on the application by running patch action to update vm configuration, add nics, add disks, add/delete categories. * * ## Example 1: Update VM Configuration * * This will run set patch config action in application. * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Provision Application * const test = new nutanix.SelfServiceAppProvision("test", { * bpName: "NAME OF BLUEPRINT", * appName: "NAME OF APPLICATION", * appDescription: "DESCRIPTION OF APPLICATION", * }); * // Run patch config (update config) * const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("test", { * appUuid: test.id, * patchName: "NAME OF PATCH ACTION", * configName: "NAME OF PATCH CONFIG", * }); * ``` * * * ## Example 2: Update VM Configuration with runtime editable * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Provision Application * const test = new nutanix.SelfServiceAppProvision("test", { * bpName: "NAME OF BLUEPRINT", * appName: "NAME OF APPLICATION", * appDescription: "DESCRIPTION OF APPLICATION", * }); * // Run patch config (update config) * const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("test", { * appUuid: test.id, * patchName: "NAME OF PATCH ACTION", * configName: "NAME OF PATCH CONFIG", * vmConfigs: [{ * memorySizeMib: Number("SIZE IN MiB"), * numSockets: Number("vCPU count"), * numVcpusPerSocket: Number("NUMBER OF CORES VCPU"), * }], * }); * ``` * * * ## Example 3: Add Category * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Provision Application * const test = new nutanix.SelfServiceAppProvision("test", { * bpName: "NAME OF BLUEPRINT", * appName: "NAME OF APPLICATION", * appDescription: "DESCRIPTION OF APPLICATION", * }); * // Run patch config (update config) * const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("test", { * appUuid: test.id, * patchName: "NAME OF PATCH ACTION", * configName: "NAME OF PATCH CONFIG", * categories: [{ * value: "CATEGORY TO BE ADDED (KEY:VALUE PAIR)", * operation: "add", * }], * }); * ``` * * * ## Example 4: Delete Category * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Provision Application * const test = new nutanix.SelfServiceAppProvision("test", { * bpName: "NAME OF BLUEPRINT", * appName: "NAME OF APPLICATION", * appDescription: "DESCRIPTION OF APPLICATION", * }); * // Run patch config (update config) * const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("test", { * appUuid: test.id, * patchName: "NAME OF PATCH ACTION", * configName: "NAME OF PATCH CONFIG", * categories: [{ * value: "CATEGORY TO BE ADDED (KEY:VALUE PAIR)", * operation: "delete", * }], * }); * ``` * * * ## Example 5: Add Disk * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Provision Application * const test = new nutanix.SelfServiceAppProvision("test", { * bpName: "NAME OF BLUEPRINT", * appName: "NAME OF APPLICATION", * appDescription: "DESCRIPTION OF APPLICATION", * }); * // Run patch config (update config) * const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("test", { * appUuid: test.id, * patchName: "NAME OF PATCH ACTION", * configName: "NAME OF PATCH CONFIG", * disks: [{ * diskSizeMib: Number("SIZE OF DISK IN MiB"), * operation: "add", * }], * }); * ``` * * * ## Example 6: Add Nic * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Provision Application * const test = new nutanix.SelfServiceAppProvision("test", { * bpName: "NAME OF BLUEPRINT", * appName: "NAME OF APPLICATION", * appDescription: "DESCRIPTION OF APPLICATION", * }); * // Run patch config (update config) * const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("test", { * appUuid: test.id, * patchName: "NAME OF PATCH ACTION", * configName: "NAME OF PATCH CONFIG", * nics: [{ * index: Number("DUMMY INDEX VALUE"), * operation: "add", * subnetUuid: "VALID SUBNET UUID IN PROJECT ATTACHED TO APP", * }], * }); * ``` * */ export declare class SelfServiceAppPatch extends pulumi.CustomResource { /** * Get an existing SelfServiceAppPatch resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SelfServiceAppPatchState, opts?: pulumi.CustomResourceOptions): SelfServiceAppPatch; /** * Returns true if the given object is an instance of SelfServiceAppPatch. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SelfServiceAppPatch; /** * - (Required) The UUID of the application. */ readonly appUuid: pulumi.Output; readonly categories: pulumi.Output; /** * - (Required) The name of the patch configuration. (Same as patchName for SINGLE VM) */ readonly configName: pulumi.Output; readonly disks: pulumi.Output; readonly nics: pulumi.Output; /** * - (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application. */ readonly patchName: pulumi.Output; /** * - (Computed) The UUID of the runlog that records the patch operation's execution details. */ readonly runlogUuid: pulumi.Output; readonly vmConfigs: pulumi.Output; /** * Create a SelfServiceAppPatch resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SelfServiceAppPatchArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SelfServiceAppPatch resources. */ export interface SelfServiceAppPatchState { /** * - (Required) The UUID of the application. */ appUuid?: pulumi.Input; categories?: pulumi.Input[] | undefined>; /** * - (Required) The name of the patch configuration. (Same as patchName for SINGLE VM) */ configName?: pulumi.Input; disks?: pulumi.Input[] | undefined>; nics?: pulumi.Input[] | undefined>; /** * - (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application. */ patchName?: pulumi.Input; /** * - (Computed) The UUID of the runlog that records the patch operation's execution details. */ runlogUuid?: pulumi.Input; vmConfigs?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a SelfServiceAppPatch resource. */ export interface SelfServiceAppPatchArgs { /** * - (Required) The UUID of the application. */ appUuid: pulumi.Input; categories?: pulumi.Input[] | undefined>; /** * - (Required) The name of the patch configuration. (Same as patchName for SINGLE VM) */ configName: pulumi.Input; disks?: pulumi.Input[] | undefined>; nics?: pulumi.Input[] | undefined>; /** * - (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application. */ patchName: pulumi.Input; /** * - (Computed) The UUID of the runlog that records the patch operation's execution details. */ runlogUuid?: pulumi.Input; vmConfigs?: pulumi.Input[] | undefined>; } //# sourceMappingURL=selfServiceAppPatch.d.ts.map