ServicePatchCoreV1 constructor
ServicePatchCoreV1(
- String name, {
- ServicePatchArgs? args,
- CustomResourceOptions? options,
Creates a new ServicePatchCoreV1.
name The Pulumi resource name.
args Arguments used to configure this ServicePatchCoreV1. The set of arguments for ServicePatch.
options Resource options controlling this resource's behavior.
Implementation
ServicePatchCoreV1(
String name, {
ServicePatchArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'kubernetes:core/v1:ServicePatch',
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<ServiceSpecPatch?>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceSpecPatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
status = registerOutput<ServiceStatusPatch?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceStatusPatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}