1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. gemini
  5. CodeRepositoryIndex
Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi

gcp.gemini.CodeRepositoryIndex

Explore with Pulumi AI

Example Usage

Gemini Code Repository Index Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const example = new gcp.gemini.CodeRepositoryIndex("example", {
    location: "us-central1",
    codeRepositoryIndexId: "",
    kmsKey: "projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample",
});
Copy
import pulumi
import pulumi_gcp as gcp

example = gcp.gemini.CodeRepositoryIndex("example",
    location="us-central1",
    code_repository_index_id="",
    kms_key="projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/gemini"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gemini.NewCodeRepositoryIndex(ctx, "example", &gemini.CodeRepositoryIndexArgs{
			Location:              pulumi.String("us-central1"),
			CodeRepositoryIndexId: pulumi.String(""),
			KmsKey:                pulumi.String("projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var example = new Gcp.Gemini.CodeRepositoryIndex("example", new()
    {
        Location = "us-central1",
        CodeRepositoryIndexId = "",
        KmsKey = "projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.gemini.CodeRepositoryIndex;
import com.pulumi.gcp.gemini.CodeRepositoryIndexArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new CodeRepositoryIndex("example", CodeRepositoryIndexArgs.builder()
            .location("us-central1")
            .codeRepositoryIndexId("")
            .kmsKey("projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample")
            .build());

    }
}
Copy
resources:
  example:
    type: gcp:gemini:CodeRepositoryIndex
    properties:
      location: us-central1
      codeRepositoryIndexId: ""
      kmsKey: projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample
Copy

Create CodeRepositoryIndex Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CodeRepositoryIndex(name: string, args: CodeRepositoryIndexArgs, opts?: CustomResourceOptions);
@overload
def CodeRepositoryIndex(resource_name: str,
                        args: CodeRepositoryIndexArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def CodeRepositoryIndex(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        code_repository_index_id: Optional[str] = None,
                        location: Optional[str] = None,
                        kms_key: Optional[str] = None,
                        labels: Optional[Mapping[str, str]] = None,
                        project: Optional[str] = None)
func NewCodeRepositoryIndex(ctx *Context, name string, args CodeRepositoryIndexArgs, opts ...ResourceOption) (*CodeRepositoryIndex, error)
public CodeRepositoryIndex(string name, CodeRepositoryIndexArgs args, CustomResourceOptions? opts = null)
public CodeRepositoryIndex(String name, CodeRepositoryIndexArgs args)
public CodeRepositoryIndex(String name, CodeRepositoryIndexArgs args, CustomResourceOptions options)
type: gcp:gemini:CodeRepositoryIndex
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CodeRepositoryIndexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CodeRepositoryIndexArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CodeRepositoryIndexArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CodeRepositoryIndexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CodeRepositoryIndexArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var codeRepositoryIndexResource = new Gcp.Gemini.CodeRepositoryIndex("codeRepositoryIndexResource", new()
{
    CodeRepositoryIndexId = "string",
    Location = "string",
    KmsKey = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Project = "string",
});
Copy
example, err := gemini.NewCodeRepositoryIndex(ctx, "codeRepositoryIndexResource", &gemini.CodeRepositoryIndexArgs{
	CodeRepositoryIndexId: pulumi.String("string"),
	Location:              pulumi.String("string"),
	KmsKey:                pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Project: pulumi.String("string"),
})
Copy
var codeRepositoryIndexResource = new CodeRepositoryIndex("codeRepositoryIndexResource", CodeRepositoryIndexArgs.builder()
    .codeRepositoryIndexId("string")
    .location("string")
    .kmsKey("string")
    .labels(Map.of("string", "string"))
    .project("string")
    .build());
Copy
code_repository_index_resource = gcp.gemini.CodeRepositoryIndex("codeRepositoryIndexResource",
    code_repository_index_id="string",
    location="string",
    kms_key="string",
    labels={
        "string": "string",
    },
    project="string")
Copy
const codeRepositoryIndexResource = new gcp.gemini.CodeRepositoryIndex("codeRepositoryIndexResource", {
    codeRepositoryIndexId: "string",
    location: "string",
    kmsKey: "string",
    labels: {
        string: "string",
    },
    project: "string",
});
Copy
type: gcp:gemini:CodeRepositoryIndex
properties:
    codeRepositoryIndexId: string
    kmsKey: string
    labels:
        string: string
    location: string
    project: string
Copy

CodeRepositoryIndex Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CodeRepositoryIndex resource accepts the following input properties:

CodeRepositoryIndexId
This property is required.
Changes to this property will trigger replacement.
string
Required. Id of the Code Repository Index.


Location
This property is required.
Changes to this property will trigger replacement.
string
The location of the Code Repository Index, for example us-central1.
KmsKey Changes to this property will trigger replacement. string
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
Labels Dictionary<string, string>
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
CodeRepositoryIndexId
This property is required.
Changes to this property will trigger replacement.
string
Required. Id of the Code Repository Index.


Location
This property is required.
Changes to this property will trigger replacement.
string
The location of the Code Repository Index, for example us-central1.
KmsKey Changes to this property will trigger replacement. string
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
Labels map[string]string
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
codeRepositoryIndexId
This property is required.
Changes to this property will trigger replacement.
String
Required. Id of the Code Repository Index.


location
This property is required.
Changes to this property will trigger replacement.
String
The location of the Code Repository Index, for example us-central1.
kmsKey Changes to this property will trigger replacement. String
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels Map<String,String>
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
codeRepositoryIndexId
This property is required.
Changes to this property will trigger replacement.
string
Required. Id of the Code Repository Index.


location
This property is required.
Changes to this property will trigger replacement.
string
The location of the Code Repository Index, for example us-central1.
kmsKey Changes to this property will trigger replacement. string
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels {[key: string]: string}
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
code_repository_index_id
This property is required.
Changes to this property will trigger replacement.
str
Required. Id of the Code Repository Index.


location
This property is required.
Changes to this property will trigger replacement.
str
The location of the Code Repository Index, for example us-central1.
kms_key Changes to this property will trigger replacement. str
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels Mapping[str, str]
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
codeRepositoryIndexId
This property is required.
Changes to this property will trigger replacement.
String
Required. Id of the Code Repository Index.


location
This property is required.
Changes to this property will trigger replacement.
String
The location of the Code Repository Index, for example us-central1.
kmsKey Changes to this property will trigger replacement. String
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels Map<String>
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the CodeRepositoryIndex resource produces the following output properties:

CreateTime string
Output only. Create time stamp.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Immutable. Identifier. Name of Code Repository Index.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
UpdateTime string
Output only. Update time stamp.
CreateTime string
Output only. Create time stamp.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Immutable. Identifier. Name of Code Repository Index.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
UpdateTime string
Output only. Update time stamp.
createTime String
Output only. Create time stamp.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
name String
Immutable. Identifier. Name of Code Repository Index.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
updateTime String
Output only. Update time stamp.
createTime string
Output only. Create time stamp.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id string
The provider-assigned unique ID for this managed resource.
name string
Immutable. Identifier. Name of Code Repository Index.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
state string
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
updateTime string
Output only. Update time stamp.
create_time str
Output only. Create time stamp.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id str
The provider-assigned unique ID for this managed resource.
name str
Immutable. Identifier. Name of Code Repository Index.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
state str
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
update_time str
Output only. Update time stamp.
createTime String
Output only. Create time stamp.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
name String
Immutable. Identifier. Name of Code Repository Index.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
updateTime String
Output only. Update time stamp.

Look up Existing CodeRepositoryIndex Resource

Get an existing CodeRepositoryIndex resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CodeRepositoryIndexState, opts?: CustomResourceOptions): CodeRepositoryIndex
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        code_repository_index_id: Optional[str] = None,
        create_time: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        kms_key: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        state: Optional[str] = None,
        update_time: Optional[str] = None) -> CodeRepositoryIndex
func GetCodeRepositoryIndex(ctx *Context, name string, id IDInput, state *CodeRepositoryIndexState, opts ...ResourceOption) (*CodeRepositoryIndex, error)
public static CodeRepositoryIndex Get(string name, Input<string> id, CodeRepositoryIndexState? state, CustomResourceOptions? opts = null)
public static CodeRepositoryIndex get(String name, Output<String> id, CodeRepositoryIndexState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CodeRepositoryIndexId Changes to this property will trigger replacement. string
Required. Id of the Code Repository Index.


CreateTime string
Output only. Create time stamp.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
KmsKey Changes to this property will trigger replacement. string
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
Labels Dictionary<string, string>
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The location of the Code Repository Index, for example us-central1.
Name string
Immutable. Identifier. Name of Code Repository Index.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
UpdateTime string
Output only. Update time stamp.
CodeRepositoryIndexId Changes to this property will trigger replacement. string
Required. Id of the Code Repository Index.


CreateTime string
Output only. Create time stamp.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
KmsKey Changes to this property will trigger replacement. string
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
Labels map[string]string
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The location of the Code Repository Index, for example us-central1.
Name string
Immutable. Identifier. Name of Code Repository Index.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
UpdateTime string
Output only. Update time stamp.
codeRepositoryIndexId Changes to this property will trigger replacement. String
Required. Id of the Code Repository Index.


createTime String
Output only. Create time stamp.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
kmsKey Changes to this property will trigger replacement. String
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels Map<String,String>
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The location of the Code Repository Index, for example us-central1.
name String
Immutable. Identifier. Name of Code Repository Index.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
updateTime String
Output only. Update time stamp.
codeRepositoryIndexId Changes to this property will trigger replacement. string
Required. Id of the Code Repository Index.


createTime string
Output only. Create time stamp.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
kmsKey Changes to this property will trigger replacement. string
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels {[key: string]: string}
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. string
The location of the Code Repository Index, for example us-central1.
name string
Immutable. Identifier. Name of Code Repository Index.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
state string
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
updateTime string
Output only. Update time stamp.
code_repository_index_id Changes to this property will trigger replacement. str
Required. Id of the Code Repository Index.


create_time str
Output only. Create time stamp.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
kms_key Changes to this property will trigger replacement. str
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels Mapping[str, str]
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. str
The location of the Code Repository Index, for example us-central1.
name str
Immutable. Identifier. Name of Code Repository Index.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
state str
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
update_time str
Output only. Update time stamp.
codeRepositoryIndexId Changes to this property will trigger replacement. String
Required. Id of the Code Repository Index.


createTime String
Output only. Create time stamp.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
kmsKey Changes to this property will trigger replacement. String
Optional. Immutable. Customer-managed encryption key name, in the format projects//locations//keyRings//cryptoKeys/.
labels Map<String>
Optional. Labels as key value pairs. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The location of the Code Repository Index, for example us-central1.
name String
Immutable. Identifier. Name of Code Repository Index.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
Output only. Code Repository Index instance State. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING SUSPENDED
updateTime String
Output only. Update time stamp.

Import

CodeRepositoryIndex can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index_id}}

  • {{project}}/{{location}}/{{code_repository_index_id}}

  • {{location}}/{{code_repository_index_id}}

When using the pulumi import command, CodeRepositoryIndex can be imported using one of the formats above. For example:

$ pulumi import gcp:gemini/codeRepositoryIndex:CodeRepositoryIndex default projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index_id}}
Copy
$ pulumi import gcp:gemini/codeRepositoryIndex:CodeRepositoryIndex default {{project}}/{{location}}/{{code_repository_index_id}}
Copy
$ pulumi import gcp:gemini/codeRepositoryIndex:CodeRepositoryIndex default {{location}}/{{code_repository_index_id}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.