bitbucket.Repository
Explore with Pulumi AI
Provides a Bitbucket repository resource.
This resource allows you manage your repositories such as scm type, if it is private, how to fork the repository and other options.
OAuth2 Scopes: repository
, repository:admin
, and repository:delete
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const infrastructure = new bitbucket.Repository("infrastructure", {owner: "myteam"});
import pulumi
import pulumi_bitbucket as bitbucket
infrastructure = bitbucket.Repository("infrastructure", owner="myteam")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.NewRepository(ctx, "infrastructure", &bitbucket.RepositoryArgs{
Owner: pulumi.String("myteam"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var infrastructure = new Bitbucket.Repository("infrastructure", new()
{
Owner = "myteam",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.Repository;
import com.pulumi.bitbucket.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 infrastructure = new Repository("infrastructure", RepositoryArgs.builder()
.owner("myteam")
.build());
}
}
resources:
infrastructure:
type: bitbucket:Repository
properties:
owner: myteam
If you want to create a repository with a CamelCase name, you should provide a separate slug
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const infrastructure = new bitbucket.Repository("infrastructure", {
owner: "myteam",
slug: "terraform-code",
});
import pulumi
import pulumi_bitbucket as bitbucket
infrastructure = bitbucket.Repository("infrastructure",
owner="myteam",
slug="terraform-code")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.NewRepository(ctx, "infrastructure", &bitbucket.RepositoryArgs{
Owner: pulumi.String("myteam"),
Slug: pulumi.String("terraform-code"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var infrastructure = new Bitbucket.Repository("infrastructure", new()
{
Owner = "myteam",
Slug = "terraform-code",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.Repository;
import com.pulumi.bitbucket.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 infrastructure = new Repository("infrastructure", RepositoryArgs.builder()
.owner("myteam")
.slug("terraform-code")
.build());
}
}
resources:
infrastructure:
type: bitbucket:Repository
properties:
owner: myteam
slug: terraform-code
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,
owner: Optional[str] = None,
link: Optional[RepositoryLinkArgs] = None,
fork_policy: Optional[str] = None,
has_wiki: Optional[bool] = None,
inherit_branching_model: Optional[bool] = None,
inherit_default_merge_strategy: Optional[bool] = None,
is_private: Optional[bool] = None,
has_issues: Optional[bool] = None,
language: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None,
pipelines_enabled: Optional[bool] = None,
project_key: Optional[str] = None,
repository_id: Optional[str] = None,
scm: Optional[str] = None,
slug: Optional[str] = None,
website: 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: bitbucket: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 repositoryResource = new Bitbucket.Repository("repositoryResource", new()
{
Owner = "string",
Link = new Bitbucket.Inputs.RepositoryLinkArgs
{
Avatar = new Bitbucket.Inputs.RepositoryLinkAvatarArgs
{
Href = "string",
},
},
ForkPolicy = "string",
HasWiki = false,
InheritBranchingModel = false,
InheritDefaultMergeStrategy = false,
IsPrivate = false,
HasIssues = false,
Language = "string",
Name = "string",
Description = "string",
PipelinesEnabled = false,
ProjectKey = "string",
RepositoryId = "string",
Scm = "string",
Slug = "string",
Website = "string",
});
example, err := bitbucket.NewRepository(ctx, "repositoryResource", &bitbucket.RepositoryArgs{
Owner: pulumi.String("string"),
Link: &bitbucket.RepositoryLinkArgs{
Avatar: &bitbucket.RepositoryLinkAvatarArgs{
Href: pulumi.String("string"),
},
},
ForkPolicy: pulumi.String("string"),
HasWiki: pulumi.Bool(false),
InheritBranchingModel: pulumi.Bool(false),
InheritDefaultMergeStrategy: pulumi.Bool(false),
IsPrivate: pulumi.Bool(false),
HasIssues: pulumi.Bool(false),
Language: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
PipelinesEnabled: pulumi.Bool(false),
ProjectKey: pulumi.String("string"),
RepositoryId: pulumi.String("string"),
Scm: pulumi.String("string"),
Slug: pulumi.String("string"),
Website: pulumi.String("string"),
})
var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
.owner("string")
.link(RepositoryLinkArgs.builder()
.avatar(RepositoryLinkAvatarArgs.builder()
.href("string")
.build())
.build())
.forkPolicy("string")
.hasWiki(false)
.inheritBranchingModel(false)
.inheritDefaultMergeStrategy(false)
.isPrivate(false)
.hasIssues(false)
.language("string")
.name("string")
.description("string")
.pipelinesEnabled(false)
.projectKey("string")
.repositoryId("string")
.scm("string")
.slug("string")
.website("string")
.build());
repository_resource = bitbucket.Repository("repositoryResource",
owner="string",
link={
"avatar": {
"href": "string",
},
},
fork_policy="string",
has_wiki=False,
inherit_branching_model=False,
inherit_default_merge_strategy=False,
is_private=False,
has_issues=False,
language="string",
name="string",
description="string",
pipelines_enabled=False,
project_key="string",
repository_id="string",
scm="string",
slug="string",
website="string")
const repositoryResource = new bitbucket.Repository("repositoryResource", {
owner: "string",
link: {
avatar: {
href: "string",
},
},
forkPolicy: "string",
hasWiki: false,
inheritBranchingModel: false,
inheritDefaultMergeStrategy: false,
isPrivate: false,
hasIssues: false,
language: "string",
name: "string",
description: "string",
pipelinesEnabled: false,
projectKey: "string",
repositoryId: "string",
scm: "string",
slug: "string",
website: "string",
});
type: bitbucket:Repository
properties:
description: string
forkPolicy: string
hasIssues: false
hasWiki: false
inheritBranchingModel: false
inheritDefaultMergeStrategy: false
isPrivate: false
language: string
link:
avatar:
href: string
name: string
owner: string
pipelinesEnabled: false
projectKey: string
repositoryId: string
scm: string
slug: string
website: 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:
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Inherit
Branching boolModel - Whether to inherit branching model from project.
- Inherit
Default boolMerge Strategy - Whether to inherit default merge strategy from project.
- Is
Private bool - If this should be private or not. Defaults to
true
. - Language string
- What the language of this repository should be.
- Link
Repository
Link - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Repository
Id string - Scm string
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - Slug string
- The slug of the repository.
- Website string
- URL of website associated with this repository.
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Inherit
Branching boolModel - Whether to inherit branching model from project.
- Inherit
Default boolMerge Strategy - Whether to inherit default merge strategy from project.
- Is
Private bool - If this should be private or not. Defaults to
true
. - Language string
- What the language of this repository should be.
- Link
Repository
Link Args - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Repository
Id string - Scm string
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - Slug string
- The slug of the repository.
- Website string
- URL of website associated with this repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- inherit
Branching BooleanModel - Whether to inherit branching model from project.
- inherit
Default BooleanMerge Strategy - Whether to inherit default merge strategy from project.
- is
Private Boolean - If this should be private or not. Defaults to
true
. - language String
- What the language of this repository should be.
- link
Repository
Link - A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- repository
Id String - scm String
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug String
- The slug of the repository.
- website String
- URL of website associated with this repository.
- owner string
- The owner of this repository. Can be you or any team you have write access to.
- description string
- What the description of the repo is.
- fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has
Issues boolean - If this should have issues turned on or not.
- has
Wiki boolean - If this should have wiki turned on or not.
- inherit
Branching booleanModel - Whether to inherit branching model from project.
- inherit
Default booleanMerge Strategy - Whether to inherit default merge strategy from project.
- is
Private boolean - If this should be private or not. Defaults to
true
. - language string
- What the language of this repository should be.
- link
Repository
Link - A set of links to a resource related to this object. See Link Below.
- name string
- The name of the repository.
- pipelines
Enabled boolean - Turn on to enable pipelines support.
- project
Key string - If you want to have this repo associated with a project.
- repository
Id string - scm string
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug string
- The slug of the repository.
- website string
- URL of website associated with this repository.
- owner str
- The owner of this repository. Can be you or any team you have write access to.
- description str
- What the description of the repo is.
- fork_
policy str - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has_
issues bool - If this should have issues turned on or not.
- has_
wiki bool - If this should have wiki turned on or not.
- inherit_
branching_ boolmodel - Whether to inherit branching model from project.
- inherit_
default_ boolmerge_ strategy - Whether to inherit default merge strategy from project.
- is_
private bool - If this should be private or not. Defaults to
true
. - language str
- What the language of this repository should be.
- link
Repository
Link Args - A set of links to a resource related to this object. See Link Below.
- name str
- The name of the repository.
- pipelines_
enabled bool - Turn on to enable pipelines support.
- project_
key str - If you want to have this repo associated with a project.
- repository_
id str - scm str
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug str
- The slug of the repository.
- website str
- URL of website associated with this repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- inherit
Branching BooleanModel - Whether to inherit branching model from project.
- inherit
Default BooleanMerge Strategy - Whether to inherit default merge strategy from project.
- is
Private Boolean - If this should be private or not. Defaults to
true
. - language String
- What the language of this repository should be.
- link Property Map
- A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- repository
Id String - scm String
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug String
- The slug of the repository.
- website String
- URL of website associated with this repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Uuid string
- the uuid of the repository resource.
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Uuid string
- the uuid of the repository resource.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- id String
- The provider-assigned unique ID for this managed resource.
- uuid String
- the uuid of the repository resource.
- clone
Https string - The HTTPS clone URL.
- clone
Ssh string - The SSH clone URL.
- id string
- The provider-assigned unique ID for this managed resource.
- uuid string
- the uuid of the repository resource.
- clone_
https str - The HTTPS clone URL.
- clone_
ssh str - The SSH clone URL.
- id str
- The provider-assigned unique ID for this managed resource.
- uuid str
- the uuid of the repository resource.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- id String
- The provider-assigned unique ID for this managed resource.
- uuid String
- the uuid of the repository resource.
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,
clone_https: Optional[str] = None,
clone_ssh: Optional[str] = None,
description: Optional[str] = None,
fork_policy: Optional[str] = None,
has_issues: Optional[bool] = None,
has_wiki: Optional[bool] = None,
inherit_branching_model: Optional[bool] = None,
inherit_default_merge_strategy: Optional[bool] = None,
is_private: Optional[bool] = None,
language: Optional[str] = None,
link: Optional[RepositoryLinkArgs] = None,
name: Optional[str] = None,
owner: Optional[str] = None,
pipelines_enabled: Optional[bool] = None,
project_key: Optional[str] = None,
repository_id: Optional[str] = None,
scm: Optional[str] = None,
slug: Optional[str] = None,
uuid: Optional[str] = None,
website: Optional[str] = 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)
resources: _: type: bitbucket:Repository get: id: ${id}
- 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.
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Inherit
Branching boolModel - Whether to inherit branching model from project.
- Inherit
Default boolMerge Strategy - Whether to inherit default merge strategy from project.
- Is
Private bool - If this should be private or not. Defaults to
true
. - Language string
- What the language of this repository should be.
- Link
Repository
Link - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Repository
Id string - Scm string
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - Slug string
- The slug of the repository.
- Uuid string
- the uuid of the repository resource.
- Website string
- URL of website associated with this repository.
- Clone
Https string - The HTTPS clone URL.
- Clone
Ssh string - The SSH clone URL.
- Description string
- What the description of the repo is.
- Fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - Has
Issues bool - If this should have issues turned on or not.
- Has
Wiki bool - If this should have wiki turned on or not.
- Inherit
Branching boolModel - Whether to inherit branching model from project.
- Inherit
Default boolMerge Strategy - Whether to inherit default merge strategy from project.
- Is
Private bool - If this should be private or not. Defaults to
true
. - Language string
- What the language of this repository should be.
- Link
Repository
Link Args - A set of links to a resource related to this object. See Link Below.
- Name string
- The name of the repository.
- Owner string
- The owner of this repository. Can be you or any team you have write access to.
- Pipelines
Enabled bool - Turn on to enable pipelines support.
- Project
Key string - If you want to have this repo associated with a project.
- Repository
Id string - Scm string
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - Slug string
- The slug of the repository.
- Uuid string
- the uuid of the repository resource.
- Website string
- URL of website associated with this repository.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- inherit
Branching BooleanModel - Whether to inherit branching model from project.
- inherit
Default BooleanMerge Strategy - Whether to inherit default merge strategy from project.
- is
Private Boolean - If this should be private or not. Defaults to
true
. - language String
- What the language of this repository should be.
- link
Repository
Link - A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- repository
Id String - scm String
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug String
- The slug of the repository.
- uuid String
- the uuid of the repository resource.
- website String
- URL of website associated with this repository.
- clone
Https string - The HTTPS clone URL.
- clone
Ssh string - The SSH clone URL.
- description string
- What the description of the repo is.
- fork
Policy string - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has
Issues boolean - If this should have issues turned on or not.
- has
Wiki boolean - If this should have wiki turned on or not.
- inherit
Branching booleanModel - Whether to inherit branching model from project.
- inherit
Default booleanMerge Strategy - Whether to inherit default merge strategy from project.
- is
Private boolean - If this should be private or not. Defaults to
true
. - language string
- What the language of this repository should be.
- link
Repository
Link - A set of links to a resource related to this object. See Link Below.
- name string
- The name of the repository.
- owner string
- The owner of this repository. Can be you or any team you have write access to.
- pipelines
Enabled boolean - Turn on to enable pipelines support.
- project
Key string - If you want to have this repo associated with a project.
- repository
Id string - scm string
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug string
- The slug of the repository.
- uuid string
- the uuid of the repository resource.
- website string
- URL of website associated with this repository.
- clone_
https str - The HTTPS clone URL.
- clone_
ssh str - The SSH clone URL.
- description str
- What the description of the repo is.
- fork_
policy str - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has_
issues bool - If this should have issues turned on or not.
- has_
wiki bool - If this should have wiki turned on or not.
- inherit_
branching_ boolmodel - Whether to inherit branching model from project.
- inherit_
default_ boolmerge_ strategy - Whether to inherit default merge strategy from project.
- is_
private bool - If this should be private or not. Defaults to
true
. - language str
- What the language of this repository should be.
- link
Repository
Link Args - A set of links to a resource related to this object. See Link Below.
- name str
- The name of the repository.
- owner str
- The owner of this repository. Can be you or any team you have write access to.
- pipelines_
enabled bool - Turn on to enable pipelines support.
- project_
key str - If you want to have this repo associated with a project.
- repository_
id str - scm str
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug str
- The slug of the repository.
- uuid str
- the uuid of the repository resource.
- website str
- URL of website associated with this repository.
- clone
Https String - The HTTPS clone URL.
- clone
Ssh String - The SSH clone URL.
- description String
- What the description of the repo is.
- fork
Policy String - What the fork policy should be. Defaults to
allow_forks
. Valid values areallow_forks
,no_public_forks
,no_forks
. - has
Issues Boolean - If this should have issues turned on or not.
- has
Wiki Boolean - If this should have wiki turned on or not.
- inherit
Branching BooleanModel - Whether to inherit branching model from project.
- inherit
Default BooleanMerge Strategy - Whether to inherit default merge strategy from project.
- is
Private Boolean - If this should be private or not. Defaults to
true
. - language String
- What the language of this repository should be.
- link Property Map
- A set of links to a resource related to this object. See Link Below.
- name String
- The name of the repository.
- owner String
- The owner of this repository. Can be you or any team you have write access to.
- pipelines
Enabled Boolean - Turn on to enable pipelines support.
- project
Key String - If you want to have this repo associated with a project.
- repository
Id String - scm String
- What SCM you want to use. Valid options are
hg
orgit
. Defaults togit
. - slug String
- The slug of the repository.
- uuid String
- the uuid of the repository resource.
- website String
- URL of website associated with this repository.
Supporting Types
RepositoryLink, RepositoryLinkArgs
- Avatar
Repository
Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- Avatar
Repository
Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar
Repository
Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar
Repository
Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar
Repository
Link Avatar - An avatar link to a resource related to this object. See Avatar Below.
- avatar Property Map
- An avatar link to a resource related to this object. See Avatar Below.
RepositoryLinkAvatar, RepositoryLinkAvatarArgs
- Href string
- href of the avatar.
- Href string
- href of the avatar.
- href String
- href of the avatar.
- href string
- href of the avatar.
- href str
- href of the avatar.
- href String
- href of the avatar.
Import
Repositories can be imported using their owner/name
ID, e.g.
$ pulumi import bitbucket:index/repository:Repository my-repo my-account/my-repo
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the
bitbucket
Terraform Provider.