DeploymentPatchAppsV1 constructor
DeploymentPatchAppsV1(
- String name, {
- DeploymentPatchArgs? args,
- CustomResourceOptions? options,
Creates a new DeploymentPatchAppsV1.
name The Pulumi resource name.
args Arguments used to configure this DeploymentPatchAppsV1. The set of arguments for DeploymentPatch.
options Resource options controlling this resource's behavior.
Implementation
DeploymentPatchAppsV1(
String name, {
DeploymentPatchArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'kubernetes:apps/v1:DeploymentPatch',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
apiVersion = registerOutput<String?>('apiVersion');
kind = registerOutput<String?>('kind');
metadata = registerOutput<ObjectMetaPatch?>('metadata', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ObjectMetaPatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
spec = registerOutput<DeploymentSpecPatch?>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeploymentSpecPatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
status = registerOutput<DeploymentStatusPatch?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeploymentStatusPatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}