Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.cloudbuild/v2.Repository
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a Repository.
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,
connection_id: Optional[str] = None,
remote_uri: Optional[str] = None,
repository_id: Optional[str] = None,
annotations: Optional[Mapping[str, str]] = None,
etag: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = 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: google-native:cloudbuild/v2: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 examplerepositoryResourceResourceFromCloudbuildv2 = new GoogleNative.CloudBuild.V2.Repository("examplerepositoryResourceResourceFromCloudbuildv2", new()
{
ConnectionId = "string",
RemoteUri = "string",
RepositoryId = "string",
Annotations =
{
{ "string", "string" },
},
Etag = "string",
Location = "string",
Name = "string",
Project = "string",
});
example, err := cloudbuildv2.NewRepository(ctx, "examplerepositoryResourceResourceFromCloudbuildv2", &cloudbuildv2.RepositoryArgs{
ConnectionId: pulumi.String("string"),
RemoteUri: pulumi.String("string"),
RepositoryId: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Etag: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var examplerepositoryResourceResourceFromCloudbuildv2 = new Repository("examplerepositoryResourceResourceFromCloudbuildv2", RepositoryArgs.builder()
.connectionId("string")
.remoteUri("string")
.repositoryId("string")
.annotations(Map.of("string", "string"))
.etag("string")
.location("string")
.name("string")
.project("string")
.build());
examplerepository_resource_resource_from_cloudbuildv2 = google_native.cloudbuild.v2.Repository("examplerepositoryResourceResourceFromCloudbuildv2",
connection_id="string",
remote_uri="string",
repository_id="string",
annotations={
"string": "string",
},
etag="string",
location="string",
name="string",
project="string")
const examplerepositoryResourceResourceFromCloudbuildv2 = new google_native.cloudbuild.v2.Repository("examplerepositoryResourceResourceFromCloudbuildv2", {
connectionId: "string",
remoteUri: "string",
repositoryId: "string",
annotations: {
string: "string",
},
etag: "string",
location: "string",
name: "string",
project: "string",
});
type: google-native:cloudbuild/v2:Repository
properties:
annotations:
string: string
connectionId: string
etag: string
location: string
name: string
project: string
remoteUri: 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:
- Connection
Id string - Remote
Uri string - Git Clone HTTPS URI.
- Repository
Id string - Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
- Annotations Dictionary<string, string>
- Allows clients to store small amounts of arbitrary data.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Location string
- Name string
- Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
. - Project string
- Connection
Id string - Remote
Uri string - Git Clone HTTPS URI.
- Repository
Id string - Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
- Annotations map[string]string
- Allows clients to store small amounts of arbitrary data.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Location string
- Name string
- Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
. - Project string
- connection
Id String - remote
Uri String - Git Clone HTTPS URI.
- repository
Id String - Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
- annotations Map<String,String>
- Allows clients to store small amounts of arbitrary data.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- location String
- name String
- Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
. - project String
- connection
Id string - remote
Uri string - Git Clone HTTPS URI.
- repository
Id string - Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
- annotations {[key: string]: string}
- Allows clients to store small amounts of arbitrary data.
- etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- location string
- name string
- Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
. - project string
- connection_
id str - remote_
uri str - Git Clone HTTPS URI.
- repository_
id str - Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
- annotations Mapping[str, str]
- Allows clients to store small amounts of arbitrary data.
- etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- location str
- name str
- Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
. - project str
- connection
Id String - remote
Uri String - Git Clone HTTPS URI.
- repository
Id String - Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
- annotations Map<String>
- Allows clients to store small amounts of arbitrary data.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- location String
- name String
- Immutable. Resource name of the repository, in the format
projects/*/locations/*/connections/*/repositories/*
. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- Create
Time string - Server assigned timestamp for when the connection was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Server assigned timestamp for when the connection was updated.
- Webhook
Id string - External ID of the webhook created for the repository.
- Create
Time string - Server assigned timestamp for when the connection was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Server assigned timestamp for when the connection was updated.
- Webhook
Id string - External ID of the webhook created for the repository.
- create
Time String - Server assigned timestamp for when the connection was created.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Server assigned timestamp for when the connection was updated.
- webhook
Id String - External ID of the webhook created for the repository.
- create
Time string - Server assigned timestamp for when the connection was created.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Server assigned timestamp for when the connection was updated.
- webhook
Id string - External ID of the webhook created for the repository.
- create_
time str - Server assigned timestamp for when the connection was created.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Server assigned timestamp for when the connection was updated.
- webhook_
id str - External ID of the webhook created for the repository.
- create
Time String - Server assigned timestamp for when the connection was created.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Server assigned timestamp for when the connection was updated.
- webhook
Id String - External ID of the webhook created for the repository.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.