DeploymentPatchResource constructor

DeploymentPatchResource(
  1. String name, {
  2. DeploymentPatchAppsV1beta1Args? args,
  3. CustomResourceOptions? options,
})

Creates a new DeploymentPatchResource. name The Pulumi resource name. args Arguments used to configure this DeploymentPatchResource. The set of arguments for DeploymentPatch. options Resource options controlling this resource's behavior.

Implementation

DeploymentPatchResource(
  String name, {
  DeploymentPatchAppsV1beta1Args? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'kubernetes:apps/v1beta1: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<DeploymentSpecPatchAppsV1beta1?>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeploymentSpecPatchAppsV1beta1.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  status = registerOutput<DeploymentStatusPatchAppsV1beta1?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeploymentStatusPatchAppsV1beta1.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}