Documentation ¶
Overview ¶
nolint: lll
nolint: lll
Index ¶
- type Index
- type IndexArgs
- type IndexField
- type IndexFieldArgs
- type IndexFieldArray
- type IndexFieldArrayInput
- type IndexFieldArrayOutput
- func (IndexFieldArrayOutput) ElementType() reflect.Type
- func (o IndexFieldArrayOutput) Index(i pulumi.IntInput) IndexFieldOutput
- func (o IndexFieldArrayOutput) ToIndexFieldArrayOutput() IndexFieldArrayOutput
- func (o IndexFieldArrayOutput) ToIndexFieldArrayOutputWithContext(ctx context.Context) IndexFieldArrayOutput
- type IndexFieldInput
- type IndexFieldOutput
- func (o IndexFieldOutput) ArrayConfig() pulumi.StringPtrOutput
- func (IndexFieldOutput) ElementType() reflect.Type
- func (o IndexFieldOutput) FieldPath() pulumi.StringPtrOutput
- func (o IndexFieldOutput) Order() pulumi.StringPtrOutput
- func (o IndexFieldOutput) ToIndexFieldOutput() IndexFieldOutput
- func (o IndexFieldOutput) ToIndexFieldOutputWithContext(ctx context.Context) IndexFieldOutput
- type IndexState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct { pulumi.CustomResourceState // The collection being indexed. Collection pulumi.StringOutput `pulumi:"collection"` // The Firestore database id. Defaults to '"(default)"'. Database pulumi.StringPtrOutput `pulumi:"database"` // The fields supported by this index. The last field entry is always for the field path '__name__'. If, on creation, // '__name__' was not specified as the last field, it will be added automatically with the same direction as that of the // last field defined. If the final field in a composite index is not directional, the '__name__' will be ordered // '"ASCENDING"' (unless explicitly specified otherwise). Fields IndexFieldArrayOutput `pulumi:"fields"` // A server defined name for this index. Format: // 'projects/{{project}}/databases/{{database}}/collectionGroups/{{collection}}/indexes/{{server_generated_id}}' Name pulumi.StringOutput `pulumi:"name"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The scope at which a query is run. One of '"COLLECTION"' or '"COLLECTION_GROUP"'. Defaults to '"COLLECTION"'. QueryScope pulumi.StringPtrOutput `pulumi:"queryScope"` }
Cloud Firestore indexes enable simple and complex queries against documents in a database.
This resource manages composite indexes and not single
field indexes.
To get more information about Index, see:
* [API documentation](https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.collectionGroups.indexes) * How-to Guides
- [Official Documentation](https://cloud.google.com/firestore/docs/query-data/indexing)
> This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/firestore_index.html.markdown.
func GetIndex ¶
func GetIndex(ctx *pulumi.Context, name string, id pulumi.IDInput, state *IndexState, opts ...pulumi.ResourceOption) (*Index, error)
GetIndex gets an existing Index resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type IndexArgs ¶
type IndexArgs struct { // The collection being indexed. Collection pulumi.StringInput // The Firestore database id. Defaults to '"(default)"'. Database pulumi.StringPtrInput // The fields supported by this index. The last field entry is always for the field path '__name__'. If, on creation, // '__name__' was not specified as the last field, it will be added automatically with the same direction as that of the // last field defined. If the final field in a composite index is not directional, the '__name__' will be ordered // '"ASCENDING"' (unless explicitly specified otherwise). Fields IndexFieldArrayInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The scope at which a query is run. One of '"COLLECTION"' or '"COLLECTION_GROUP"'. Defaults to '"COLLECTION"'. QueryScope pulumi.StringPtrInput }
The set of arguments for constructing a Index resource.
func (IndexArgs) ElementType ¶
type IndexField ¶
type IndexFieldArgs ¶
type IndexFieldArgs struct { ArrayConfig pulumi.StringPtrInput `pulumi:"arrayConfig"` FieldPath pulumi.StringPtrInput `pulumi:"fieldPath"` Order pulumi.StringPtrInput `pulumi:"order"` }
func (IndexFieldArgs) ElementType ¶
func (IndexFieldArgs) ElementType() reflect.Type
func (IndexFieldArgs) ToIndexFieldOutput ¶
func (i IndexFieldArgs) ToIndexFieldOutput() IndexFieldOutput
func (IndexFieldArgs) ToIndexFieldOutputWithContext ¶
func (i IndexFieldArgs) ToIndexFieldOutputWithContext(ctx context.Context) IndexFieldOutput
type IndexFieldArray ¶
type IndexFieldArray []IndexFieldInput
func (IndexFieldArray) ElementType ¶
func (IndexFieldArray) ElementType() reflect.Type
func (IndexFieldArray) ToIndexFieldArrayOutput ¶
func (i IndexFieldArray) ToIndexFieldArrayOutput() IndexFieldArrayOutput
func (IndexFieldArray) ToIndexFieldArrayOutputWithContext ¶
func (i IndexFieldArray) ToIndexFieldArrayOutputWithContext(ctx context.Context) IndexFieldArrayOutput
type IndexFieldArrayInput ¶
type IndexFieldArrayInput interface { pulumi.Input ToIndexFieldArrayOutput() IndexFieldArrayOutput ToIndexFieldArrayOutputWithContext(context.Context) IndexFieldArrayOutput }
type IndexFieldArrayOutput ¶
type IndexFieldArrayOutput struct{ *pulumi.OutputState }
func (IndexFieldArrayOutput) ElementType ¶
func (IndexFieldArrayOutput) ElementType() reflect.Type
func (IndexFieldArrayOutput) Index ¶
func (o IndexFieldArrayOutput) Index(i pulumi.IntInput) IndexFieldOutput
func (IndexFieldArrayOutput) ToIndexFieldArrayOutput ¶
func (o IndexFieldArrayOutput) ToIndexFieldArrayOutput() IndexFieldArrayOutput
func (IndexFieldArrayOutput) ToIndexFieldArrayOutputWithContext ¶
func (o IndexFieldArrayOutput) ToIndexFieldArrayOutputWithContext(ctx context.Context) IndexFieldArrayOutput
type IndexFieldInput ¶
type IndexFieldInput interface { pulumi.Input ToIndexFieldOutput() IndexFieldOutput ToIndexFieldOutputWithContext(context.Context) IndexFieldOutput }
type IndexFieldOutput ¶
type IndexFieldOutput struct{ *pulumi.OutputState }
func (IndexFieldOutput) ArrayConfig ¶
func (o IndexFieldOutput) ArrayConfig() pulumi.StringPtrOutput
func (IndexFieldOutput) ElementType ¶
func (IndexFieldOutput) ElementType() reflect.Type
func (IndexFieldOutput) FieldPath ¶
func (o IndexFieldOutput) FieldPath() pulumi.StringPtrOutput
func (IndexFieldOutput) Order ¶
func (o IndexFieldOutput) Order() pulumi.StringPtrOutput
func (IndexFieldOutput) ToIndexFieldOutput ¶
func (o IndexFieldOutput) ToIndexFieldOutput() IndexFieldOutput
func (IndexFieldOutput) ToIndexFieldOutputWithContext ¶
func (o IndexFieldOutput) ToIndexFieldOutputWithContext(ctx context.Context) IndexFieldOutput
type IndexState ¶
type IndexState struct { // The collection being indexed. Collection pulumi.StringPtrInput // The Firestore database id. Defaults to '"(default)"'. Database pulumi.StringPtrInput // The fields supported by this index. The last field entry is always for the field path '__name__'. If, on creation, // '__name__' was not specified as the last field, it will be added automatically with the same direction as that of the // last field defined. If the final field in a composite index is not directional, the '__name__' will be ordered // '"ASCENDING"' (unless explicitly specified otherwise). Fields IndexFieldArrayInput // A server defined name for this index. Format: // 'projects/{{project}}/databases/{{database}}/collectionGroups/{{collection}}/indexes/{{server_generated_id}}' Name pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The scope at which a query is run. One of '"COLLECTION"' or '"COLLECTION_GROUP"'. Defaults to '"COLLECTION"'. QueryScope pulumi.StringPtrInput }
func (IndexState) ElementType ¶
func (IndexState) ElementType() reflect.Type