This page documents the language specification for the azuredevops package. If you're looking for help working with the inputs, outputs, or functions of azuredevops resources in a Pulumi program, please see the resource documentation for examples and API reference.
repository¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azuredevops repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azuredevops repo.
- class
pulumi_azuredevops.repository.AwaitableGetRepositoriesResult(id=None, include_hidden=None, name=None, project_id=None, repositories=None)¶
- class
pulumi_azuredevops.repository.GetRepositoriesResult(id=None, include_hidden=None, name=None, project_id=None, repositories=None)¶ A collection of values returned by getRepositories.
id= None¶The provider-assigned unique ID for this managed resource.
- class
pulumi_azuredevops.repository.Git(resource_name, opts=None, default_branch=None, initialization=None, name=None, parent_repository_id=None, project_id=None, __props__=None, __name__=None, __opts__=None)¶ Manages a git repository within Azure DevOps.
import pulumi import pulumi_azuredevops as azuredevops project = azuredevops.core.Project("project", project_name="Sample Project", visibility="private", version_control="Git", work_item_template="Agile") repo = azuredevops.repository.Git("repo", project_id=project.id, initialization={ "initType": "Clean", })
import pulumi import pulumi_azuredevops as azuredevops repo = azuredevops.repository.Git("repo", project_id=azuredevops_project["project"]["id"], parent_id=azuredevops_git_repository["parent"]["id"])
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
default_branch (pulumi.Input[str]) – The ref of the default branch.
initialization (pulumi.Input[dict]) – An
initializationblock as documented below.name (pulumi.Input[str]) – The name of the git repository.
project_id (pulumi.Input[str]) – The project ID or project name.
The initialization object supports the following:
initType(pulumi.Input[str]) - The type of repository to create. Valid values:Uninitialized,Clean, orImport. Defaults toUninitialized.sourceType(pulumi.Input[str]) - Type type of the source repository. Used if theinit_typeisImport.sourceUrl(pulumi.Input[str]) - The URL of the source repository. Used if theinit_typeisImport.
default_branch: pulumi.Output[str] = None¶The ref of the default branch.
initialization: pulumi.Output[dict] = None¶An
initializationblock as documented below.initType(str) - The type of repository to create. Valid values:Uninitialized,Clean, orImport. Defaults toUninitialized.sourceType(str) - Type type of the source repository. Used if theinit_typeisImport.sourceUrl(str) - The URL of the source repository. Used if theinit_typeisImport.
is_fork: pulumi.Output[bool] = None¶True if the repository was created as a fork.
name: pulumi.Output[str] = None¶The name of the git repository.
project_id: pulumi.Output[str] = None¶The project ID or project name.
remote_url: pulumi.Output[str] = None¶Git HTTPS URL of the repository
size: pulumi.Output[float] = None¶Size in bytes.
ssh_url: pulumi.Output[str] = None¶Git SSH URL of the repository.
url: pulumi.Output[str] = None¶REST API URL of the repository.
web_url: pulumi.Output[str] = None¶Web link to the repository.
- static
get(resource_name, id, opts=None, default_branch=None, initialization=None, is_fork=None, name=None, parent_repository_id=None, project_id=None, remote_url=None, size=None, ssh_url=None, url=None, web_url=None)¶ Get an existing Git resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
default_branch (pulumi.Input[str]) – The ref of the default branch.
initialization (pulumi.Input[dict]) – An
initializationblock as documented below.is_fork (pulumi.Input[bool]) – True if the repository was created as a fork.
name (pulumi.Input[str]) – The name of the git repository.
project_id (pulumi.Input[str]) – The project ID or project name.
remote_url (pulumi.Input[str]) – Git HTTPS URL of the repository
size (pulumi.Input[float]) – Size in bytes.
ssh_url (pulumi.Input[str]) – Git SSH URL of the repository.
url (pulumi.Input[str]) – REST API URL of the repository.
web_url (pulumi.Input[str]) – Web link to the repository.
The initialization object supports the following:
initType(pulumi.Input[str]) - The type of repository to create. Valid values:Uninitialized,Clean, orImport. Defaults toUninitialized.sourceType(pulumi.Input[str]) - Type type of the source repository. Used if theinit_typeisImport.sourceUrl(pulumi.Input[str]) - The URL of the source repository. Used if theinit_typeisImport.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
pulumi_azuredevops.repository.get_repositories(include_hidden=None, name=None, project_id=None, opts=None)¶Use this data source to access information about an existing Git Repositories within Azure DevOps.
import pulumi import pulumi_azuredevops as azuredevops project = azuredevops.Core.get_project(project_name="contoso-project") all_repos = azuredevops.Repository.get_repositories(project_id=project.id, include_hidden=True) single_repo = azuredevops.Repository.get_repositories(project_id=project.id, name="contoso-repo")