Skip to content

Commit db6962f

Browse files
committed
make build_sdks
1 parent 80d7385 commit db6962f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1496
-343
lines changed

sdk/dotnet/BranchDefault.cs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ namespace Pulumi.Github
1818
///
1919
/// ## Example Usage
2020
///
21+
/// Basic usage:
22+
///
2123
/// ```csharp
2224
/// using System.Collections.Generic;
2325
/// using Pulumi;
@@ -46,6 +48,31 @@ namespace Pulumi.Github
4648
/// });
4749
/// ```
4850
///
51+
/// Renaming to a branch that doesn't exist:
52+
///
53+
/// ```csharp
54+
/// using System.Collections.Generic;
55+
/// using Pulumi;
56+
/// using Github = Pulumi.Github;
57+
///
58+
/// return await Deployment.RunAsync(() =>
59+
/// {
60+
/// var example = new Github.Repository("example", new()
61+
/// {
62+
/// Description = "My awesome codebase",
63+
/// AutoInit = true,
64+
/// });
65+
///
66+
/// var @default = new Github.BranchDefault("default", new()
67+
/// {
68+
/// Repository = example.Name,
69+
/// Branch = "development",
70+
/// Rename = true,
71+
/// });
72+
///
73+
/// });
74+
/// ```
75+
///
4976
/// ## Import
5077
///
5178
/// GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
@@ -63,6 +90,12 @@ public partial class BranchDefault : global::Pulumi.CustomResource
6390
[Output("branch")]
6491
public Output<string> Branch { get; private set; } = null!;
6592

93+
/// <summary>
94+
/// Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
95+
/// </summary>
96+
[Output("rename")]
97+
public Output<bool?> Rename { get; private set; } = null!;
98+
6699
/// <summary>
67100
/// The GitHub repository
68101
/// </summary>
@@ -121,6 +154,12 @@ public sealed class BranchDefaultArgs : global::Pulumi.ResourceArgs
121154
[Input("branch", required: true)]
122155
public Input<string> Branch { get; set; } = null!;
123156

157+
/// <summary>
158+
/// Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
159+
/// </summary>
160+
[Input("rename")]
161+
public Input<bool>? Rename { get; set; }
162+
124163
/// <summary>
125164
/// The GitHub repository
126165
/// </summary>
@@ -141,6 +180,12 @@ public sealed class BranchDefaultState : global::Pulumi.ResourceArgs
141180
[Input("branch")]
142181
public Input<string>? Branch { get; set; }
143182

183+
/// <summary>
184+
/// Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
185+
/// </summary>
186+
[Input("rename")]
187+
public Input<bool>? Rename { get; set; }
188+
144189
/// <summary>
145190
/// The GitHub repository
146191
/// </summary>

sdk/dotnet/EnterpriseOrganization.cs

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,64 @@
99

1010
namespace Pulumi.Github
1111
{
12+
/// <summary>
13+
/// ## Example Usage
14+
///
15+
/// ```csharp
16+
/// using System.Collections.Generic;
17+
/// using Pulumi;
18+
/// using Github = Pulumi.Github;
19+
///
20+
/// return await Deployment.RunAsync(() =&gt;
21+
/// {
22+
/// var org = new Github.EnterpriseOrganization("org", new()
23+
/// {
24+
/// EnterpriseId = data.Github_enterprise.Enterprise.Id,
25+
/// Description = "Organization created with terraform",
26+
/// BillingEmail = "[email protected]",
27+
/// AdminLogins = new[]
28+
/// {
29+
/// "jon-snow",
30+
/// },
31+
/// });
32+
///
33+
/// });
34+
/// ```
35+
///
36+
/// ## Import
37+
///
38+
/// Support for importing organizations is not currently supported.
39+
/// </summary>
1240
[GithubResourceType("github:index/enterpriseOrganization:EnterpriseOrganization")]
1341
public partial class EnterpriseOrganization : global::Pulumi.CustomResource
1442
{
43+
/// <summary>
44+
/// List of organization owner usernames.
45+
/// </summary>
1546
[Output("adminLogins")]
1647
public Output<ImmutableArray<string>> AdminLogins { get; private set; } = null!;
1748

49+
/// <summary>
50+
/// The billing email address.
51+
/// </summary>
1852
[Output("billingEmail")]
1953
public Output<string> BillingEmail { get; private set; } = null!;
2054

55+
/// <summary>
56+
/// The description of the organization.
57+
/// </summary>
2158
[Output("description")]
2259
public Output<string?> Description { get; private set; } = null!;
2360

61+
/// <summary>
62+
/// The ID of the enterprise.
63+
/// </summary>
2464
[Output("enterpriseId")]
2565
public Output<string> EnterpriseId { get; private set; } = null!;
2666

67+
/// <summary>
68+
/// The name of the organization.
69+
/// </summary>
2770
[Output("name")]
2871
public Output<string> Name { get; private set; } = null!;
2972

@@ -75,21 +118,37 @@ public sealed class EnterpriseOrganizationArgs : global::Pulumi.ResourceArgs
75118
{
76119
[Input("adminLogins", required: true)]
77120
private InputList<string>? _adminLogins;
121+
122+
/// <summary>
123+
/// List of organization owner usernames.
124+
/// </summary>
78125
public InputList<string> AdminLogins
79126
{
80127
get => _adminLogins ?? (_adminLogins = new InputList<string>());
81128
set => _adminLogins = value;
82129
}
83130

131+
/// <summary>
132+
/// The billing email address.
133+
/// </summary>
84134
[Input("billingEmail", required: true)]
85135
public Input<string> BillingEmail { get; set; } = null!;
86136

137+
/// <summary>
138+
/// The description of the organization.
139+
/// </summary>
87140
[Input("description")]
88141
public Input<string>? Description { get; set; }
89142

143+
/// <summary>
144+
/// The ID of the enterprise.
145+
/// </summary>
90146
[Input("enterpriseId", required: true)]
91147
public Input<string> EnterpriseId { get; set; } = null!;
92148

149+
/// <summary>
150+
/// The name of the organization.
151+
/// </summary>
93152
[Input("name")]
94153
public Input<string>? Name { get; set; }
95154

@@ -103,21 +162,37 @@ public sealed class EnterpriseOrganizationState : global::Pulumi.ResourceArgs
103162
{
104163
[Input("adminLogins")]
105164
private InputList<string>? _adminLogins;
165+
166+
/// <summary>
167+
/// List of organization owner usernames.
168+
/// </summary>
106169
public InputList<string> AdminLogins
107170
{
108171
get => _adminLogins ?? (_adminLogins = new InputList<string>());
109172
set => _adminLogins = value;
110173
}
111174

175+
/// <summary>
176+
/// The billing email address.
177+
/// </summary>
112178
[Input("billingEmail")]
113179
public Input<string>? BillingEmail { get; set; }
114180

181+
/// <summary>
182+
/// The description of the organization.
183+
/// </summary>
115184
[Input("description")]
116185
public Input<string>? Description { get; set; }
117186

187+
/// <summary>
188+
/// The ID of the enterprise.
189+
/// </summary>
118190
[Input("enterpriseId")]
119191
public Input<string>? EnterpriseId { get; set; }
120192

193+
/// <summary>
194+
/// The name of the organization.
195+
/// </summary>
121196
[Input("name")]
122197
public Input<string>? Name { get; set; }
123198

sdk/dotnet/GetEnterprise.cs

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,54 @@ public static class GetEnterprise
1313
{
1414
/// <summary>
1515
/// Use this data source to retrieve basic information about a GitHub enterprise.
16+
///
17+
/// {{% examples %}}
18+
/// ## Example Usage
19+
/// {{% example %}}
20+
///
21+
/// ```csharp
22+
/// using System.Collections.Generic;
23+
/// using Pulumi;
24+
/// using Github = Pulumi.Github;
25+
///
26+
/// return await Deployment.RunAsync(() =&gt;
27+
/// {
28+
/// var example = Github.GetEnterprise.Invoke(new()
29+
/// {
30+
/// Slug = "example-co",
31+
/// });
32+
///
33+
/// });
34+
/// ```
35+
/// {{% /example %}}
36+
/// {{% /examples %}}
1637
/// </summary>
1738
public static Task<GetEnterpriseResult> InvokeAsync(GetEnterpriseArgs args, InvokeOptions? options = null)
1839
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetEnterpriseResult>("github:index/getEnterprise:getEnterprise", args ?? new GetEnterpriseArgs(), options.WithDefaults());
1940

2041
/// <summary>
2142
/// Use this data source to retrieve basic information about a GitHub enterprise.
43+
///
44+
/// {{% examples %}}
45+
/// ## Example Usage
46+
/// {{% example %}}
47+
///
48+
/// ```csharp
49+
/// using System.Collections.Generic;
50+
/// using Pulumi;
51+
/// using Github = Pulumi.Github;
52+
///
53+
/// return await Deployment.RunAsync(() =&gt;
54+
/// {
55+
/// var example = Github.GetEnterprise.Invoke(new()
56+
/// {
57+
/// Slug = "example-co",
58+
/// });
59+
///
60+
/// });
61+
/// ```
62+
/// {{% /example %}}
63+
/// {{% /examples %}}
2264
/// </summary>
2365
public static Output<GetEnterpriseResult> Invoke(GetEnterpriseInvokeArgs args, InvokeOptions? options = null)
2466
=> global::Pulumi.Deployment.Instance.Invoke<GetEnterpriseResult>("github:index/getEnterprise:getEnterprise", args ?? new GetEnterpriseInvokeArgs(), options.WithDefaults());
@@ -62,15 +104,15 @@ public sealed class GetEnterpriseResult
62104
/// </summary>
63105
public readonly string CreatedAt;
64106
/// <summary>
65-
/// The description of the enterpise.
107+
/// The description of the enterprise.
66108
/// </summary>
67109
public readonly string Description;
68110
/// <summary>
69111
/// The provider-assigned unique ID for this managed resource.
70112
/// </summary>
71113
public readonly string Id;
72114
/// <summary>
73-
/// The name of the enteprise.
115+
/// The name of the enterprise.
74116
/// </summary>
75117
public readonly string Name;
76118
/// <summary>

sdk/dotnet/GetExternalGroups.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static class GetExternalGroups
2727
/// {
2828
/// var exampleExternalGroups = Github.GetExternalGroups.Invoke();
2929
///
30-
/// var localGroups = exampleExternalGroups.Apply(getExternalGroupsResult =&gt; getExternalGroupsResult);
30+
/// var localGroups = exampleExternalGroups;
3131
///
3232
/// return new Dictionary&lt;string, object?&gt;
3333
/// {

sdk/dotnet/RepositoryWebhook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Pulumi.Github
2626
/// {
2727
/// Description = "Terraform acceptance tests",
2828
/// HomepageUrl = "http://example.com/",
29-
/// Private = false,
29+
/// Visibility = "public",
3030
/// });
3131
///
3232
/// var foo = new Github.RepositoryWebhook("foo", new()

sdk/dotnet/TeamMembership.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public partial class TeamMembership : global::Pulumi.CustomResource
6363
public Output<string?> Role { get; private set; } = null!;
6464

6565
/// <summary>
66-
/// The GitHub team id
66+
/// The GitHub team id or the GitHub team slug
6767
/// </summary>
6868
[Output("teamId")]
6969
public Output<string> TeamId { get; private set; } = null!;
@@ -128,7 +128,7 @@ public sealed class TeamMembershipArgs : global::Pulumi.ResourceArgs
128128
public Input<string>? Role { get; set; }
129129

130130
/// <summary>
131-
/// The GitHub team id
131+
/// The GitHub team id or the GitHub team slug
132132
/// </summary>
133133
[Input("teamId", required: true)]
134134
public Input<string> TeamId { get; set; } = null!;
@@ -158,7 +158,7 @@ public sealed class TeamMembershipState : global::Pulumi.ResourceArgs
158158
public Input<string>? Role { get; set; }
159159

160160
/// <summary>
161-
/// The GitHub team id
161+
/// The GitHub team id or the GitHub team slug
162162
/// </summary>
163163
[Input("teamId")]
164164
public Input<string>? TeamId { get; set; }

sdk/dotnet/TeamRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace Pulumi.Github
4949
///
5050
/// ## Import
5151
///
52-
/// GitHub Team Repository can be imported using an ID made up of `teamid:repository`, e.g.
52+
/// GitHub Team Repository can be imported using an ID made up of `team_id:repository`, e.g.
5353
///
5454
/// ```sh
5555
/// $ pulumi import github:index/teamRepository:TeamRepository terraform_repo 1234567:terraform

0 commit comments

Comments
 (0)