PatchDeployment constructor
PatchDeployment(
- String name, {
- PatchDeploymentArgs? args,
- CustomResourceOptions? options,
Creates a new PatchDeployment.
name The Pulumi resource name.
args Arguments used to configure this PatchDeployment. The set of arguments for PatchDeployment.
options Resource options controlling this resource's behavior.
Implementation
PatchDeployment(
String name, {
PatchDeploymentArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:osconfig/patchDeployment:PatchDeployment',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
) {
createTime = registerOutput<String>('createTime');
deletionPolicy = registerOutput<String>('deletionPolicy');
description = registerOutput<String?>('description');
duration = registerOutput<String?>('duration');
instanceFilter = registerOutput<PatchDeploymentInstanceFilter>('instanceFilter', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return PatchDeploymentInstanceFilter.fromMap((guardedValue as Map).cast<String, dynamic>()); });
lastExecuteTime = registerOutput<String>('lastExecuteTime');
this.name = registerOutput<String>('name');
oneTimeSchedule = registerOutput<PatchDeploymentOneTimeSchedule?>('oneTimeSchedule', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return PatchDeploymentOneTimeSchedule.fromMap((guardedValue as Map).cast<String, dynamic>()); });
patchConfig = registerOutput<PatchDeploymentPatchConfig?>('patchConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return PatchDeploymentPatchConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
patchDeploymentId = registerOutput<String>('patchDeploymentId');
project = registerOutput<String>('project');
recurringSchedule = registerOutput<PatchDeploymentRecurringSchedule?>('recurringSchedule', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return PatchDeploymentRecurringSchedule.fromMap((guardedValue as Map).cast<String, dynamic>()); });
rollout = registerOutput<PatchDeploymentRollout?>('rollout', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return PatchDeploymentRollout.fromMap((guardedValue as Map).cast<String, dynamic>()); });
updateTime = registerOutput<String>('updateTime');
}