Skip to content

Commit c5de623

Browse files
Merge pull request #355 from pulumi/upgrade-terraform-provider-terraform-provider-github-to-v5.25.0
Upgrade terraform-provider-github to v5.25.0
2 parents 963eb76 + dbf2326 commit c5de623

Some content is hidden

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

58 files changed

+1801
-129
lines changed

provider/cmd/pulumi-resource-github/bridge-metadata.json

Lines changed: 309 additions & 24 deletions
Large diffs are not rendered by default.

provider/cmd/pulumi-resource-github/schema.json

Lines changed: 81 additions & 11 deletions
Large diffs are not rendered by default.

provider/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.19
44

55
require (
66
github.com/hashicorp/terraform-plugin-sdk v1.17.2
7-
github.com/integrations/terraform-provider-github/v5 v5.23.0
8-
github.com/pulumi/pulumi-terraform-bridge/v3 v3.44.3
7+
github.com/integrations/terraform-provider-github/v5 v5.25.0
8+
github.com/pulumi/pulumi-terraform-bridge/v3 v3.46.1
99
github.com/pulumi/pulumi/sdk/v3 v3.64.0
1010
)
1111

provider/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,8 +1509,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
15091509
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
15101510
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
15111511
github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
1512-
github.com/integrations/terraform-provider-github/v5 v5.23.0 h1:omF/5vK1/xicBFaBS6B9z9nPitOODYt5SH49vlyR2Po=
1513-
github.com/integrations/terraform-provider-github/v5 v5.23.0/go.mod h1:povahq/iLe9ejasI9fF7l03LX9KoNiU+4txDIviLDSk=
1512+
github.com/integrations/terraform-provider-github/v5 v5.25.0 h1:6wgDgBRTAYb5e8FymPJqoiE/b1HL6mOllZqNfndV2KI=
1513+
github.com/integrations/terraform-provider-github/v5 v5.25.0/go.mod h1:povahq/iLe9ejasI9fF7l03LX9KoNiU+4txDIviLDSk=
15141514
github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ=
15151515
github.com/ionos-cloud/sdk-go/v6 v6.1.3/go.mod h1:Ox3W0iiEz0GHnfY9e5LmAxwklsxguuNFEUSu0gVRTME=
15161516
github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA=
@@ -1972,8 +1972,8 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T
19721972
github.com/pulumi/pulumi-java/pkg v0.9.2 h1:fpBwf1NHf3j5YuigOWsXPvJCAFivEp1D6aOlYIrSbr0=
19731973
github.com/pulumi/pulumi-java/pkg v0.9.2/go.mod h1:+5V4jggi3063hksi28zYvLm42UWVg3VqpR6qGZraIdM=
19741974
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
1975-
github.com/pulumi/pulumi-terraform-bridge/v3 v3.44.3 h1:CET8z6seLHtEYj3OnrFh/XRaqi1Jyj9xxQWQVFZzZIw=
1976-
github.com/pulumi/pulumi-terraform-bridge/v3 v3.44.3/go.mod h1:MbllbPNA49TmCI2N0awqHCHdB7JrdFB7odFUEo4WRXk=
1975+
github.com/pulumi/pulumi-terraform-bridge/v3 v3.46.1 h1:XfUExAjQC7lPPxaC1P9F7TfzUhGxTqteVOJ+2PJ3Bwk=
1976+
github.com/pulumi/pulumi-terraform-bridge/v3 v3.46.1/go.mod h1:wh/eLoqGimL30Dueh51O2wOYKIt6ejzO5GDdDA0KVds=
19771977
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.3 h1:1SmRVwRnrplcdBVVgoKYL8xqW8dCeiQPSwpGkx4ga6U=
19781978
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.3/go.mod h1:n0TS1WsPjOfto6hyDZbXfNZQuLli2X9iDWt2nzmQJsg=
19791979
github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=

sdk/dotnet/Config/Config.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,18 @@ public static string? Owner
8383
set => _owner.Set(value);
8484
}
8585

86+
private static readonly __Value<bool?> _parallelRequests = new __Value<bool?>(() => __config.GetBoolean("parallelRequests"));
87+
/// <summary>
88+
/// Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github
89+
/// Enterprise without strict rate limits. Although, it is not possible to enable this setting on github.com because we
90+
/// enforce the respect of github.com's best practices to avoid hitting abuse rate limitsDefaults to false if not set
91+
/// </summary>
92+
public static bool? ParallelRequests
93+
{
94+
get => _parallelRequests.Get();
95+
set => _parallelRequests.Set(value);
96+
}
97+
8698
private static readonly __Value<int?> _readDelayMs = new __Value<int?>(() => __config.GetInt32("readDelayMs"));
8799
/// <summary>
88100
/// Amount of time in milliseconds to sleep in between non-write requests to GitHub API. Defaults to 0ms if not set.

sdk/dotnet/EnterpriseOrganization.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
namespace Pulumi.Github
1111
{
1212
/// <summary>
13+
/// This resource allows you to create and manage a GitHub enterprise organization.
14+
///
1315
/// ## Example Usage
1416
///
1517
/// ```csharp
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.Immutable;
7+
using System.Threading.Tasks;
8+
using Pulumi.Serialization;
9+
10+
namespace Pulumi.Github
11+
{
12+
public static class GetBranchProtectionRules
13+
{
14+
/// <summary>
15+
/// Use this data source to retrieve a list of repository branch protection rules.
16+
///
17+
/// {{% examples %}}
18+
/// ## Example Usage
19+
/// {{% example %}}
20+
///
21+
/// ```csharp
22+
/// using System.Collections.Generic;
23+
/// using System.Linq;
24+
/// using Pulumi;
25+
/// using Github = Pulumi.Github;
26+
///
27+
/// return await Deployment.RunAsync(() =&gt;
28+
/// {
29+
/// var example = Github.GetBranchProtectionRules.Invoke(new()
30+
/// {
31+
/// Repository = "example",
32+
/// });
33+
///
34+
/// });
35+
/// ```
36+
/// {{% /example %}}
37+
/// {{% /examples %}}
38+
/// </summary>
39+
public static Task<GetBranchProtectionRulesResult> InvokeAsync(GetBranchProtectionRulesArgs args, InvokeOptions? options = null)
40+
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetBranchProtectionRulesResult>("github:index/getBranchProtectionRules:getBranchProtectionRules", args ?? new GetBranchProtectionRulesArgs(), options.WithDefaults());
41+
42+
/// <summary>
43+
/// Use this data source to retrieve a list of repository branch protection rules.
44+
///
45+
/// {{% examples %}}
46+
/// ## Example Usage
47+
/// {{% example %}}
48+
///
49+
/// ```csharp
50+
/// using System.Collections.Generic;
51+
/// using System.Linq;
52+
/// using Pulumi;
53+
/// using Github = Pulumi.Github;
54+
///
55+
/// return await Deployment.RunAsync(() =&gt;
56+
/// {
57+
/// var example = Github.GetBranchProtectionRules.Invoke(new()
58+
/// {
59+
/// Repository = "example",
60+
/// });
61+
///
62+
/// });
63+
/// ```
64+
/// {{% /example %}}
65+
/// {{% /examples %}}
66+
/// </summary>
67+
public static Output<GetBranchProtectionRulesResult> Invoke(GetBranchProtectionRulesInvokeArgs args, InvokeOptions? options = null)
68+
=> global::Pulumi.Deployment.Instance.Invoke<GetBranchProtectionRulesResult>("github:index/getBranchProtectionRules:getBranchProtectionRules", args ?? new GetBranchProtectionRulesInvokeArgs(), options.WithDefaults());
69+
}
70+
71+
72+
public sealed class GetBranchProtectionRulesArgs : global::Pulumi.InvokeArgs
73+
{
74+
/// <summary>
75+
/// The GitHub repository name.
76+
/// </summary>
77+
[Input("repository", required: true)]
78+
public string Repository { get; set; } = null!;
79+
80+
public GetBranchProtectionRulesArgs()
81+
{
82+
}
83+
public static new GetBranchProtectionRulesArgs Empty => new GetBranchProtectionRulesArgs();
84+
}
85+
86+
public sealed class GetBranchProtectionRulesInvokeArgs : global::Pulumi.InvokeArgs
87+
{
88+
/// <summary>
89+
/// The GitHub repository name.
90+
/// </summary>
91+
[Input("repository", required: true)]
92+
public Input<string> Repository { get; set; } = null!;
93+
94+
public GetBranchProtectionRulesInvokeArgs()
95+
{
96+
}
97+
public static new GetBranchProtectionRulesInvokeArgs Empty => new GetBranchProtectionRulesInvokeArgs();
98+
}
99+
100+
101+
[OutputType]
102+
public sealed class GetBranchProtectionRulesResult
103+
{
104+
/// <summary>
105+
/// The provider-assigned unique ID for this managed resource.
106+
/// </summary>
107+
public readonly string Id;
108+
public readonly string Repository;
109+
/// <summary>
110+
/// Collection of Branch Protection Rules. Each of the results conforms to the following scheme:
111+
/// </summary>
112+
public readonly ImmutableArray<Outputs.GetBranchProtectionRulesRuleResult> Rules;
113+
114+
[OutputConstructor]
115+
private GetBranchProtectionRulesResult(
116+
string id,
117+
118+
string repository,
119+
120+
ImmutableArray<Outputs.GetBranchProtectionRulesRuleResult> rules)
121+
{
122+
Id = id;
123+
Repository = repository;
124+
Rules = rules;
125+
}
126+
}
127+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Collections.Immutable;
7+
using System.Threading.Tasks;
8+
using Pulumi.Serialization;
9+
10+
namespace Pulumi.Github.Outputs
11+
{
12+
13+
[OutputType]
14+
public sealed class GetBranchProtectionRulesRuleResult
15+
{
16+
/// <summary>
17+
/// Identifies the protection rule pattern.
18+
/// </summary>
19+
public readonly string Pattern;
20+
21+
[OutputConstructor]
22+
private GetBranchProtectionRulesRuleResult(string pattern)
23+
{
24+
Pattern = pattern;
25+
}
26+
}
27+
}

sdk/dotnet/Provider.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs
101101
[Input("owner")]
102102
public Input<string>? Owner { get; set; }
103103

104+
/// <summary>
105+
/// Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github
106+
/// Enterprise without strict rate limits. Although, it is not possible to enable this setting on github.com because we
107+
/// enforce the respect of github.com's best practices to avoid hitting abuse rate limitsDefaults to false if not set
108+
/// </summary>
109+
[Input("parallelRequests", json: true)]
110+
public Input<bool>? ParallelRequests { get; set; }
111+
104112
/// <summary>
105113
/// Amount of time in milliseconds to sleep in between non-write requests to GitHub API. Defaults to 0ms if not set.
106114
/// </summary>

sdk/dotnet/Team.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ namespace Pulumi.Github
3737
///
3838
/// ## Import
3939
///
40-
/// GitHub Teams can be imported using the GitHub team ID e.g.
40+
/// GitHub Teams can be imported using the GitHub team ID or name e.g.
4141
///
4242
/// ```sh
4343
/// $ pulumi import github:index/team:Team core 1234567
4444
/// ```
45+
///
46+
/// ```sh
47+
/// $ pulumi import github:index/team:Team core Administrators
48+
/// ```
4549
/// </summary>
4650
[GithubResourceType("github:index/team:Team")]
4751
public partial class Team : global::Pulumi.CustomResource
@@ -83,10 +87,10 @@ public partial class Team : global::Pulumi.CustomResource
8387
public Output<string> NodeId { get; private set; } = null!;
8488

8589
/// <summary>
86-
/// The ID of the parent team, if this is a nested team.
90+
/// The ID or slug of the parent team, if this is a nested team.
8791
/// </summary>
8892
[Output("parentTeamId")]
89-
public Output<int?> ParentTeamId { get; private set; } = null!;
93+
public Output<string?> ParentTeamId { get; private set; } = null!;
9094

9195
/// <summary>
9296
/// The level of privacy for the team. Must be one of `secret` or `closed`.
@@ -174,10 +178,10 @@ public sealed class TeamArgs : global::Pulumi.ResourceArgs
174178
public Input<string>? Name { get; set; }
175179

176180
/// <summary>
177-
/// The ID of the parent team, if this is a nested team.
181+
/// The ID or slug of the parent team, if this is a nested team.
178182
/// </summary>
179183
[Input("parentTeamId")]
180-
public Input<int>? ParentTeamId { get; set; }
184+
public Input<string>? ParentTeamId { get; set; }
181185

182186
/// <summary>
183187
/// The level of privacy for the team. Must be one of `secret` or `closed`.
@@ -231,10 +235,10 @@ public sealed class TeamState : global::Pulumi.ResourceArgs
231235
public Input<string>? NodeId { get; set; }
232236

233237
/// <summary>
234-
/// The ID of the parent team, if this is a nested team.
238+
/// The ID or slug of the parent team, if this is a nested team.
235239
/// </summary>
236240
[Input("parentTeamId")]
237-
public Input<int>? ParentTeamId { get; set; }
241+
public Input<string>? ParentTeamId { get; set; }
238242

239243
/// <summary>
240244
/// The level of privacy for the team. Must be one of `secret` or `closed`.

0 commit comments

Comments
 (0)