AiPersistentResource constructor

AiPersistentResource(
  1. String name, {
  2. AiPersistentResourceArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

AiPersistentResource(
  String name, {
  AiPersistentResourceArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:vertex/aiPersistentResource:AiPersistentResource',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
        additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
      ) {
  createTime = registerOutput<String>('createTime');
  deletionPolicy = registerOutput<String>('deletionPolicy');
  displayName = registerOutput<String?>('displayName');
  effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
  encryptionSpec = registerOutput<AiPersistentResourceEncryptionSpec?>('encryptionSpec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AiPersistentResourceEncryptionSpec.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  errors = registerOutput<List<AiPersistentResourceError>>('errors', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AiPersistentResourceError>(guardedValue, (value) => AiPersistentResourceError.fromMap((value as Map).cast<String, dynamic>())); });
  labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  location = registerOutput<String?>('location');
  this.name = registerOutput<String>('name');
  network = registerOutput<String?>('network');
  project = registerOutput<String>('project');
  pscInterfaceConfig = registerOutput<AiPersistentResourcePscInterfaceConfig?>('pscInterfaceConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AiPersistentResourcePscInterfaceConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
  reservedIpRanges = registerOutput<List<String>?>('reservedIpRanges', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  resourcePools = registerOutput<List<AiPersistentResourceResourcePool>>('resourcePools', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AiPersistentResourceResourcePool>(guardedValue, (value) => AiPersistentResourceResourcePool.fromMap((value as Map).cast<String, dynamic>())); });
  resourceRuntimeSpec = registerOutput<AiPersistentResourceResourceRuntimeSpec?>('resourceRuntimeSpec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AiPersistentResourceResourceRuntimeSpec.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  resourceRuntimes = registerOutput<List<AiPersistentResourceResourceRuntime>>('resourceRuntimes', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AiPersistentResourceResourceRuntime>(guardedValue, (value) => AiPersistentResourceResourceRuntime.fromMap((value as Map).cast<String, dynamic>())); });
  satisfiesPzi = registerOutput<bool>('satisfiesPzi');
  satisfiesPzs = registerOutput<bool>('satisfiesPzs');
  startTime = registerOutput<String>('startTime');
  state = registerOutput<String>('state');
  updateTime = registerOutput<String>('updateTime');
}