Class RepositoryProject
This resource allows you to create and manage projects for GitHub repository.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var example = new Github.Repository("example", new Github.RepositoryArgs
{
Description = "My awesome codebase",
HasProjects = true,
});
var project = new Github.RepositoryProject("project", new Github.RepositoryProjectArgs
{
Body = "This is a repository project.",
Repository = example.Name,
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public class RepositoryProject : CustomResource
Constructors
View SourceRepositoryProject(String, RepositoryProjectArgs, CustomResourceOptions)
Create a RepositoryProject resource with the given unique name, arguments, and options.
Declaration
public RepositoryProject(string name, RepositoryProjectArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RepositoryProjectArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBody
The body of the project.
Declaration
public Output<string> Body { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Etag
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the project.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Repository
The repository of the project.
Declaration
public Output<string> Repository { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Url
URL of the project
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, RepositoryProjectState, CustomResourceOptions)
Get an existing RepositoryProject resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static RepositoryProject Get(string name, Input<string> id, RepositoryProjectState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RepositoryProjectState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| RepositoryProject |