gcp.securesourcemanager.Repository
Explore with Pulumi AI
Repositories store source code. It supports all Git SCM client commands and has built-in pull requests and issue tracking. Both HTTPS and SSH authentication are supported.
To get more information about Repository, see:
- How-to Guides
Example Usage
Secure Source Manager Repository Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.securesourcemanager.Instance("instance", {
location: "us-central1",
instanceId: "my-instance",
});
const _default = new gcp.securesourcemanager.Repository("default", {
location: "us-central1",
repositoryId: "my-repository",
instance: instance.name,
});
import pulumi
import pulumi_gcp as gcp
instance = gcp.securesourcemanager.Instance("instance",
location="us-central1",
instance_id="my-instance")
default = gcp.securesourcemanager.Repository("default",
location="us-central1",
repository_id="my-repository",
instance=instance.name)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securesourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := securesourcemanager.NewInstance(ctx, "instance", &securesourcemanager.InstanceArgs{
Location: pulumi.String("us-central1"),
InstanceId: pulumi.String("my-instance"),
})
if err != nil {
return err
}
_, err = securesourcemanager.NewRepository(ctx, "default", &securesourcemanager.RepositoryArgs{
Location: pulumi.String("us-central1"),
RepositoryId: pulumi.String("my-repository"),
Instance: instance.Name,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.SecureSourceManager.Instance("instance", new()
{
Location = "us-central1",
InstanceId = "my-instance",
});
var @default = new Gcp.SecureSourceManager.Repository("default", new()
{
Location = "us-central1",
RepositoryId = "my-repository",
Instance = instance.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.securesourcemanager.Instance;
import com.pulumi.gcp.securesourcemanager.InstanceArgs;
import com.pulumi.gcp.securesourcemanager.Repository;
import com.pulumi.gcp.securesourcemanager.RepositoryArgs;
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 instance = new Instance("instance", InstanceArgs.builder()
.location("us-central1")
.instanceId("my-instance")
.build());
var default_ = new Repository("default", RepositoryArgs.builder()
.location("us-central1")
.repositoryId("my-repository")
.instance(instance.name())
.build());
}
}
resources:
instance:
type: gcp:securesourcemanager:Instance
properties:
location: us-central1
instanceId: my-instance
default:
type: gcp:securesourcemanager:Repository
properties:
location: us-central1
repositoryId: my-repository
instance: ${instance.name}
Secure Source Manager Repository Initial Config
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.securesourcemanager.Instance("instance", {
location: "us-central1",
instanceId: "my-instance",
});
const _default = new gcp.securesourcemanager.Repository("default", {
location: "us-central1",
repositoryId: "my-repository",
instance: instance.name,
description: "This is a test repository",
initialConfig: {
defaultBranch: "main",
gitignores: ["python"],
license: "mit",
readme: "default",
},
});
import pulumi
import pulumi_gcp as gcp
instance = gcp.securesourcemanager.Instance("instance",
location="us-central1",
instance_id="my-instance")
default = gcp.securesourcemanager.Repository("default",
location="us-central1",
repository_id="my-repository",
instance=instance.name,
description="This is a test repository",
initial_config={
"default_branch": "main",
"gitignores": ["python"],
"license": "mit",
"readme": "default",
})
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securesourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := securesourcemanager.NewInstance(ctx, "instance", &securesourcemanager.InstanceArgs{
Location: pulumi.String("us-central1"),
InstanceId: pulumi.String("my-instance"),
})
if err != nil {
return err
}
_, err = securesourcemanager.NewRepository(ctx, "default", &securesourcemanager.RepositoryArgs{
Location: pulumi.String("us-central1"),
RepositoryId: pulumi.String("my-repository"),
Instance: instance.Name,
Description: pulumi.String("This is a test repository"),
InitialConfig: &securesourcemanager.RepositoryInitialConfigArgs{
DefaultBranch: pulumi.String("main"),
Gitignores: pulumi.StringArray{
pulumi.String("python"),
},
License: pulumi.String("mit"),
Readme: pulumi.String("default"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.SecureSourceManager.Instance("instance", new()
{
Location = "us-central1",
InstanceId = "my-instance",
});
var @default = new Gcp.SecureSourceManager.Repository("default", new()
{
Location = "us-central1",
RepositoryId = "my-repository",
Instance = instance.Name,
Description = "This is a test repository",
InitialConfig = new Gcp.SecureSourceManager.Inputs.RepositoryInitialConfigArgs
{
DefaultBranch = "main",
Gitignores = new[]
{
"python",
},
License = "mit",
Readme = "default",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.securesourcemanager.Instance;
import com.pulumi.gcp.securesourcemanager.InstanceArgs;
import com.pulumi.gcp.securesourcemanager.Repository;
import com.pulumi.gcp.securesourcemanager.RepositoryArgs;
import com.pulumi.gcp.securesourcemanager.inputs.RepositoryInitialConfigArgs;
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 instance = new Instance("instance", InstanceArgs.builder()
.location("us-central1")
.instanceId("my-instance")
.build());
var default_ = new Repository("default", RepositoryArgs.builder()
.location("us-central1")
.repositoryId("my-repository")
.instance(instance.name())
.description("This is a test repository")
.initialConfig(RepositoryInitialConfigArgs.builder()
.defaultBranch("main")
.gitignores("python")
.license("mit")
.readme("default")
.build())
.build());
}
}
resources:
instance:
type: gcp:securesourcemanager:Instance
properties:
location: us-central1
instanceId: my-instance
default:
type: gcp:securesourcemanager:Repository
properties:
location: us-central1
repositoryId: my-repository
instance: ${instance.name}
description: This is a test repository
initialConfig:
defaultBranch: main
gitignores:
- python
license: mit
readme: default
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
@overload
def Repository(resource_name: str,
args: RepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
location: Optional[str] = None,
repository_id: Optional[str] = None,
description: Optional[str] = None,
initial_config: Optional[RepositoryInitialConfigArgs] = None,
project: Optional[str] = None)
func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: gcp:securesourcemanager:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- 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 examplerepositoryResourceResourceFromSecuresourcemanagerrepository = new Gcp.SecureSourceManager.Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository", new()
{
Instance = "string",
Location = "string",
RepositoryId = "string",
Description = "string",
InitialConfig = new Gcp.SecureSourceManager.Inputs.RepositoryInitialConfigArgs
{
DefaultBranch = "string",
Gitignores = new[]
{
"string",
},
License = "string",
Readme = "string",
},
Project = "string",
});
example, err := securesourcemanager.NewRepository(ctx, "examplerepositoryResourceResourceFromSecuresourcemanagerrepository", &securesourcemanager.RepositoryArgs{
Instance: pulumi.String("string"),
Location: pulumi.String("string"),
RepositoryId: pulumi.String("string"),
Description: pulumi.String("string"),
InitialConfig: &securesourcemanager.RepositoryInitialConfigArgs{
DefaultBranch: pulumi.String("string"),
Gitignores: pulumi.StringArray{
pulumi.String("string"),
},
License: pulumi.String("string"),
Readme: pulumi.String("string"),
},
Project: pulumi.String("string"),
})
var examplerepositoryResourceResourceFromSecuresourcemanagerrepository = new Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository", RepositoryArgs.builder()
.instance("string")
.location("string")
.repositoryId("string")
.description("string")
.initialConfig(RepositoryInitialConfigArgs.builder()
.defaultBranch("string")
.gitignores("string")
.license("string")
.readme("string")
.build())
.project("string")
.build());
examplerepository_resource_resource_from_securesourcemanagerrepository = gcp.securesourcemanager.Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository",
instance="string",
location="string",
repository_id="string",
description="string",
initial_config={
"default_branch": "string",
"gitignores": ["string"],
"license": "string",
"readme": "string",
},
project="string")
const examplerepositoryResourceResourceFromSecuresourcemanagerrepository = new gcp.securesourcemanager.Repository("examplerepositoryResourceResourceFromSecuresourcemanagerrepository", {
instance: "string",
location: "string",
repositoryId: "string",
description: "string",
initialConfig: {
defaultBranch: "string",
gitignores: ["string"],
license: "string",
readme: "string",
},
project: "string",
});
type: gcp:securesourcemanager:Repository
properties:
description: string
initialConfig:
defaultBranch: string
gitignores:
- string
license: string
readme: string
instance: string
location: string
project: string
repositoryId: string
Repository 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 Repository resource accepts the following input properties:
- Instance string
- The name of the instance in which the repository is hosted.
- Location string
- The location for the Repository.
- Repository
Id string - The ID for the Repository.
- Description string
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config RepositoryInitial Config - Initial configurations for the repository. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Instance string
- The name of the instance in which the repository is hosted.
- Location string
- The location for the Repository.
- Repository
Id string - The ID for the Repository.
- Description string
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config RepositoryInitial Config Args - Initial configurations for the repository. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- instance String
- The name of the instance in which the repository is hosted.
- location String
- The location for the Repository.
- repository
Id String - The ID for the Repository.
- description String
- Description of the repository, which cannot exceed 500 characters.
- initial
Config RepositoryInitial Config - Initial configurations for the repository. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- instance string
- The name of the instance in which the repository is hosted.
- location string
- The location for the Repository.
- repository
Id string - The ID for the Repository.
- description string
- Description of the repository, which cannot exceed 500 characters.
- initial
Config RepositoryInitial Config - Initial configurations for the repository. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- instance str
- The name of the instance in which the repository is hosted.
- location str
- The location for the Repository.
- repository_
id str - The ID for the Repository.
- description str
- Description of the repository, which cannot exceed 500 characters.
- initial_
config RepositoryInitial Config Args - Initial configurations for the repository. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- instance String
- The name of the instance in which the repository is hosted.
- location String
- The location for the Repository.
- repository
Id String - The ID for the Repository.
- description String
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Property Map - Initial configurations for the repository. Structure is documented below.
- project 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 Repository resource produces the following output properties:
- Create
Time string - Time the repository was created in UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name for the Repository.
- Uid string
- Unique identifier of the repository.
- Update
Time string - Time the repository was updated in UTC.
- Uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- Create
Time string - Time the repository was created in UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The resource name for the Repository.
- Uid string
- Unique identifier of the repository.
- Update
Time string - Time the repository was updated in UTC.
- Uris
[]Repository
Uri - URIs for the repository. Structure is documented below.
- create
Time String - Time the repository was created in UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name for the Repository.
- uid String
- Unique identifier of the repository.
- update
Time String - Time the repository was updated in UTC.
- uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- create
Time string - Time the repository was created in UTC.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The resource name for the Repository.
- uid string
- Unique identifier of the repository.
- update
Time string - Time the repository was updated in UTC.
- uris
Repository
Uri[] - URIs for the repository. Structure is documented below.
- create_
time str - Time the repository was created in UTC.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The resource name for the Repository.
- uid str
- Unique identifier of the repository.
- update_
time str - Time the repository was updated in UTC.
- uris
Sequence[Repository
Uri] - URIs for the repository. Structure is documented below.
- create
Time String - Time the repository was created in UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The resource name for the Repository.
- uid String
- Unique identifier of the repository.
- update
Time String - Time the repository was updated in UTC.
- uris List<Property Map>
- URIs for the repository. Structure is documented below.
Look up Existing Repository Resource
Get an existing Repository 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?: RepositoryState, opts?: CustomResourceOptions): Repository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
initial_config: Optional[RepositoryInitialConfigArgs] = None,
instance: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
repository_id: Optional[str] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None,
uris: Optional[Sequence[RepositoryUriArgs]] = None) -> Repository
func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Create
Time string - Time the repository was created in UTC.
- Description string
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config RepositoryInitial Config - Initial configurations for the repository. Structure is documented below.
- Instance string
- The name of the instance in which the repository is hosted.
- Location string
- The location for the Repository.
- Name string
- The resource name for the Repository.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Repository
Id string - The ID for the Repository.
- Uid string
- Unique identifier of the repository.
- Update
Time string - Time the repository was updated in UTC.
- Uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- Create
Time string - Time the repository was created in UTC.
- Description string
- Description of the repository, which cannot exceed 500 characters.
- Initial
Config RepositoryInitial Config Args - Initial configurations for the repository. Structure is documented below.
- Instance string
- The name of the instance in which the repository is hosted.
- Location string
- The location for the Repository.
- Name string
- The resource name for the Repository.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Repository
Id string - The ID for the Repository.
- Uid string
- Unique identifier of the repository.
- Update
Time string - Time the repository was updated in UTC.
- Uris
[]Repository
Uri Args - URIs for the repository. Structure is documented below.
- create
Time String - Time the repository was created in UTC.
- description String
- Description of the repository, which cannot exceed 500 characters.
- initial
Config RepositoryInitial Config - Initial configurations for the repository. Structure is documented below.
- instance String
- The name of the instance in which the repository is hosted.
- location String
- The location for the Repository.
- name String
- The resource name for the Repository.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- repository
Id String - The ID for the Repository.
- uid String
- Unique identifier of the repository.
- update
Time String - Time the repository was updated in UTC.
- uris
List<Repository
Uri> - URIs for the repository. Structure is documented below.
- create
Time string - Time the repository was created in UTC.
- description string
- Description of the repository, which cannot exceed 500 characters.
- initial
Config RepositoryInitial Config - Initial configurations for the repository. Structure is documented below.
- instance string
- The name of the instance in which the repository is hosted.
- location string
- The location for the Repository.
- name string
- The resource name for the Repository.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- repository
Id string - The ID for the Repository.
- uid string
- Unique identifier of the repository.
- update
Time string - Time the repository was updated in UTC.
- uris
Repository
Uri[] - URIs for the repository. Structure is documented below.
- create_
time str - Time the repository was created in UTC.
- description str
- Description of the repository, which cannot exceed 500 characters.
- initial_
config RepositoryInitial Config Args - Initial configurations for the repository. Structure is documented below.
- instance str
- The name of the instance in which the repository is hosted.
- location str
- The location for the Repository.
- name str
- The resource name for the Repository.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- repository_
id str - The ID for the Repository.
- uid str
- Unique identifier of the repository.
- update_
time str - Time the repository was updated in UTC.
- uris
Sequence[Repository
Uri Args] - URIs for the repository. Structure is documented below.
- create
Time String - Time the repository was created in UTC.
- description String
- Description of the repository, which cannot exceed 500 characters.
- initial
Config Property Map - Initial configurations for the repository. Structure is documented below.
- instance String
- The name of the instance in which the repository is hosted.
- location String
- The location for the Repository.
- name String
- The resource name for the Repository.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- repository
Id String - The ID for the Repository.
- uid String
- Unique identifier of the repository.
- update
Time String - Time the repository was updated in UTC.
- uris List<Property Map>
- URIs for the repository. Structure is documented below.
Supporting Types
RepositoryInitialConfig, RepositoryInitialConfigArgs
- Default
Branch string - Default branch name of the repository.
- Gitignores List<string>
- List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- License string
- License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- Readme string
- README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- Default
Branch string - Default branch name of the repository.
- Gitignores []string
- List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- License string
- License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- Readme string
- README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- default
Branch String - Default branch name of the repository.
- gitignores List<String>
- List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- license String
- License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- readme String
- README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- default
Branch string - Default branch name of the repository.
- gitignores string[]
- List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- license string
- License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- readme string
- README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- default_
branch str - Default branch name of the repository.
- gitignores Sequence[str]
- List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- license str
- License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- readme str
- README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- default
Branch String - Default branch name of the repository.
- gitignores List<String>
- List of gitignore template names user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- license String
- License template name user can choose from. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
- readme String
- README template name. Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
RepositoryUri, RepositoryUriArgs
Import
Repository can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}
{{project}}/{{location}}/{{repository_id}}
{{location}}/{{repository_id}}
{{repository_id}}
When using the pulumi import
command, Repository can be imported using one of the formats above. For example:
$ pulumi import gcp:securesourcemanager/repository:Repository default projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}
$ pulumi import gcp:securesourcemanager/repository:Repository default {{project}}/{{location}}/{{repository_id}}
$ pulumi import gcp:securesourcemanager/repository:Repository default {{location}}/{{repository_id}}
$ pulumi import gcp:securesourcemanager/repository:Repository default {{repository_id}}
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.