ResourceQuotaCoreV1 constructor

ResourceQuotaCoreV1(
  1. String name, {
  2. ResourceQuotaArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ResourceQuotaCoreV1(
  String name, {
  ResourceQuotaArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'kubernetes:core/v1:ResourceQuota',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        options ?? pulumi.CustomResourceOptions(),
      ) {
  apiVersion = registerOutput<String>('apiVersion');
  kind = registerOutput<String>('kind');
  metadata = registerOutput<ObjectMeta>('metadata', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ObjectMeta.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  spec = registerOutput<ResourceQuotaSpec>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ResourceQuotaSpec.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  status = registerOutput<ResourceQuotaStatus?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ResourceQuotaStatus.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}