Collection constructor
Collection(
- String name, {
- CollectionArgs? args,
- CustomResourceOptions? options,
Creates a new Collection.
name The Pulumi resource name.
args Arguments used to configure this Collection. The set of arguments for Collection.
options Resource options controlling this resource's behavior.
Implementation
Collection(
String name, {
CollectionArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:vectorsearch/collection:Collection',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
) {
collectionId = registerOutput<String>('collectionId');
createTime = registerOutput<String>('createTime');
dataSchema = registerOutput<String?>('dataSchema');
deletionPolicy = registerOutput<String>('deletionPolicy');
description = registerOutput<String?>('description');
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<CollectionEncryptionSpec?>('encryptionSpec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CollectionEncryptionSpec.fromMap((guardedValue 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');
project = registerOutput<String>('project');
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);
updateTime = registerOutput<String>('updateTime');
vectorSchemas = registerOutput<List<CollectionVectorSchema>?>('vectorSchemas', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<CollectionVectorSchema>(guardedValue, (value) => CollectionVectorSchema.fromMap((value as Map).cast<String, dynamic>())); });
}