GoogleVectorSearchCollection constructor
GoogleVectorSearchCollection(
- String localName, {
- required TfArg<
String> location, - required TfArg<
String> collectionId, - TfArg<
String> ? displayName, - TfArg<
String> ? description, - TfArg<
String> ? dataSchema, - List<
VectorSearchCollectionVectorSchema> ? vectorSchema, - VectorSearchCollectionEncryptionSpec? encryptionSpec,
- TfArg<
Map< ? labels,String, String> > - TfArg<
String> ? deletionPolicy, - TfArg<
String> ? project, - LifecycleOptions? lifecycle,
- List<
TfAddressed> ? dependsOn, - StackProvider? provider,
- TfTimeouts? timeouts,
Implementation
GoogleVectorSearchCollection(
super.localName, {
required TfArg<String> location,
required TfArg<String> collectionId,
TfArg<String>? displayName,
TfArg<String>? description,
TfArg<String>? dataSchema,
List<VectorSearchCollectionVectorSchema>? vectorSchema,
VectorSearchCollectionEncryptionSpec? encryptionSpec,
TfArg<Map<String, String>>? labels,
TfArg<String>? deletionPolicy,
TfArg<String>? project,
super.lifecycle,
super.dependsOn,
super.provider,
super.timeouts,
}) : super(
terraformType: tfType,
argMap: {
'location': location,
'collection_id': collectionId,
'display_name': ?displayName,
'description': ?description,
'data_schema': ?dataSchema,
if (vectorSchema != null)
'vector_schema': TfArg.literal([
for (final e in vectorSchema) e.encode(),
]),
if (encryptionSpec != null)
'encryption_spec': TfArg.literal(encryptionSpec.encode()),
'labels': ?labels,
'deletion_policy': ?deletionPolicy,
'project': ?project,
},
);