Skip to content

Commit

Permalink
Upgrade terraform-provider-github to v5.29.0 (#383)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks

---------

Co-authored-by: pulumi-bot <runner@fv-az629-134.1soobpoi4aruxfwmxrgofy2soh.cx.internal.cloudapp.net>
  • Loading branch information
pulumi-bot and pulumi-bot authored Jun 28, 2023
1 parent 9e1d640 commit 4ba1161
Show file tree
Hide file tree
Showing 87 changed files with 15,210 additions and 71 deletions.
523 changes: 486 additions & 37 deletions provider/cmd/pulumi-resource-github/bridge-metadata.json

Large diffs are not rendered by default.

774 changes: 756 additions & 18 deletions provider/cmd/pulumi-resource-github/schema.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.19

require (
github.com/hashicorp/terraform-plugin-sdk v1.17.2
github.com/integrations/terraform-provider-github/v5 v5.28.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1
github.com/pulumi/pulumi/sdk/v3 v3.71.0
github.com/integrations/terraform-provider-github/v5 v5.29.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.51.0
github.com/pulumi/pulumi/sdk/v3 v3.72.2
)

require (
Expand Down Expand Up @@ -159,9 +159,9 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.4 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect
github.com/pulumi/pulumi-yaml v1.1.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.71.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.72.2 // indirect
github.com/pulumi/schema-tools v0.2.2 // indirect
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e // indirect
github.com/pulumi/terraform-diff-reader v0.0.1 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
Expand Down
22 changes: 11 additions & 11 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/integrations/terraform-provider-github/v5 v5.28.1 h1:Kvb1fxzEVstKki8PZBadC6Ag0nmUDkiSO/x7YkvlPUs=
github.com/integrations/terraform-provider-github/v5 v5.28.1/go.mod h1:dpm/QaM6qI7GMgBuOrnxxSBPytAb++f4o78eAINPc8A=
github.com/integrations/terraform-provider-github/v5 v5.29.0 h1:4SkZPoGxi7ARdUSsCcmu0QfRs1+HjhDqaOUbpJfDFzw=
github.com/integrations/terraform-provider-github/v5 v5.29.0/go.mod h1:dpm/QaM6qI7GMgBuOrnxxSBPytAb++f4o78eAINPc8A=
github.com/intel/goresctrl v0.2.0/go.mod h1:+CZdzouYFn5EsxgqAQTEzMfwKwuc0fVdMrT9FCCAVRQ=
github.com/ionos-cloud/sdk-go/v6 v6.1.3/go.mod h1:Ox3W0iiEz0GHnfY9e5LmAxwklsxguuNFEUSu0gVRTME=
github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6tORTn+6F6j+Jc8TOr5osrynvN6ivFWZ2GA=
Expand Down Expand Up @@ -1974,20 +1974,20 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T
github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4=
github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1 h1:3lfYzYjs/8ZtJuOm3xHhnGV9T5FQ+MObIOIcNEOQxEk=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.50.1/go.mod h1:ek2NJSTqeI5+V6wL2Cv8qy3f7S0Uc04UT/m6U582fSs=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.51.0 h1:8ofaNPTN0Zhx1qdwKNpzR6fV/lvskmXhx+JtXiOBBT4=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.51.0/go.mod h1:egk8TtYfFb1VqnBk8iXcn9G5gl8XN4ZrhSBx/iGsRPc=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w=
github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=
github.com/pulumi/pulumi-yaml v1.1.1/go.mod h1:GhpdS6rFpwqvUtKdA+fQy8P28iNvncng39IXh5q68vE=
github.com/pulumi/pulumi/pkg/v3 v3.71.0 h1:SdmFCDKQGz6HxbHi+7CDTRQ9pQfWOJWmLL5Kh4ayQEk=
github.com/pulumi/pulumi/pkg/v3 v3.71.0/go.mod h1:U4IvxPAIezAbJwwyGl2faq09XC0BP3RxQbwZmBYy6fM=
github.com/pulumi/pulumi/sdk/v3 v3.71.0 h1:D/02vc3Xn/eKxwCDWuYmkxAO1Jm7waOeiuxercQQWLY=
github.com/pulumi/pulumi/sdk/v3 v3.71.0/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
github.com/pulumi/pulumi/pkg/v3 v3.72.2 h1:H9DU5/D73a4UIWEeCrb7N3P1ZrZ/M7r2VYmOlpFbjFg=
github.com/pulumi/pulumi/pkg/v3 v3.72.2/go.mod h1:roPEZwkXjJ7SgTizApJjJoxFlmvS9Uc6PPhXnA4WuGU=
github.com/pulumi/pulumi/sdk/v3 v3.72.2 h1:hw/iiPW2JfeCAR38kRZl/XdyFEvSPPrB5HaU/DmsIDs=
github.com/pulumi/pulumi/sdk/v3 v3.72.2/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
github.com/pulumi/schema-tools v0.2.2 h1:KiH/OP/mFF5XjXcOtrPOZ2Z5Sjtb0mLAaHgjJMcjMi4=
github.com/pulumi/schema-tools v0.2.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Dik4Qe/+xguB8JagPyXNlbOnRiXGmq/PSPQTGunYnTk=
github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/pulumi/terraform-diff-reader v0.0.1 h1:d42TUgaQewDVt9bG3GksVZMoUlEEqF171ak66OZVMjE=
github.com/pulumi/terraform-diff-reader v0.0.1/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ=
github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down Expand Up @@ -3310,7 +3310,7 @@ lukechampine.com/frand v1.4.2 h1:RzFIpOvkMXuPMBb9maa4ND4wjBn71E1Jpf8BzJHMaVw=
lukechampine.com/frand v1.4.2/go.mod h1:4S/TM2ZgrKejMcKMbeLjISpJMO+/eZ1zu3vYX9dtj3s=
mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA=
pgregory.net/rapid v0.6.1 h1:4eyrDxyht86tT4Ztm+kvlyNBLIk071gR+ZQdhphc9dQ=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
Expand Down
324 changes: 324 additions & 0 deletions sdk/dotnet/CodespacesOrganizationSecret.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,324 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Github
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Github = Pulumi.Github;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", new()
/// {
/// SecretName = "example_secret_name",
/// Visibility = "private",
/// PlaintextValue = @var.Some_secret_string,
/// });
///
/// var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", new()
/// {
/// SecretName = "example_secret_name",
/// Visibility = "private",
/// EncryptedValue = @var.Some_encrypted_secret_string,
/// });
///
/// });
/// ```
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Github = Pulumi.Github;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var repo = Github.GetRepository.Invoke(new()
/// {
/// FullName = "my-org/repo",
/// });
///
/// var exampleSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretCodespacesOrganizationSecret", new()
/// {
/// SecretName = "example_secret_name",
/// Visibility = "selected",
/// PlaintextValue = @var.Some_secret_string,
/// SelectedRepositoryIds = new[]
/// {
/// repo.Apply(getRepositoryResult =&gt; getRepositoryResult.RepoId),
/// },
/// });
///
/// var exampleSecretIndex_codespacesOrganizationSecretCodespacesOrganizationSecret = new Github.CodespacesOrganizationSecret("exampleSecretIndex/codespacesOrganizationSecretCodespacesOrganizationSecret", new()
/// {
/// SecretName = "example_secret_name",
/// Visibility = "selected",
/// EncryptedValue = @var.Some_encrypted_secret_string,
/// SelectedRepositoryIds = new[]
/// {
/// repo.Apply(getRepositoryResult =&gt; getRepositoryResult.RepoId),
/// },
/// });
///
/// });
/// ```
///
/// ## Import
///
/// This resource can be imported using an ID made up of the secret name
///
/// ```sh
/// $ pulumi import github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret test_secret test_secret_name
/// ```
///
/// NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
/// </summary>
[GithubResourceType("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret")]
public partial class CodespacesOrganizationSecret : global::Pulumi.CustomResource
{
/// <summary>
/// Date of codespaces_secret creation.
/// </summary>
[Output("createdAt")]
public Output<string> CreatedAt { get; private set; } = null!;

/// <summary>
/// Encrypted value of the secret using the GitHub public key in Base64 format.
/// </summary>
[Output("encryptedValue")]
public Output<string?> EncryptedValue { get; private set; } = null!;

/// <summary>
/// Plaintext value of the secret to be encrypted
/// </summary>
[Output("plaintextValue")]
public Output<string?> PlaintextValue { get; private set; } = null!;

/// <summary>
/// Name of the secret
/// </summary>
[Output("secretName")]
public Output<string> SecretName { get; private set; } = null!;

/// <summary>
/// An array of repository ids that can access the organization secret.
/// </summary>
[Output("selectedRepositoryIds")]
public Output<ImmutableArray<int>> SelectedRepositoryIds { get; private set; } = null!;

/// <summary>
/// Date of codespaces_secret update.
/// </summary>
[Output("updatedAt")]
public Output<string> UpdatedAt { get; private set; } = null!;

/// <summary>
/// Configures the access that repositories have to the organization secret.
/// Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
/// </summary>
[Output("visibility")]
public Output<string> Visibility { get; private set; } = null!;


/// <summary>
/// Create a CodespacesOrganizationSecret resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public CodespacesOrganizationSecret(string name, CodespacesOrganizationSecretArgs args, CustomResourceOptions? options = null)
: base("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, args ?? new CodespacesOrganizationSecretArgs(), MakeResourceOptions(options, ""))
{
}

private CodespacesOrganizationSecret(string name, Input<string> id, CodespacesOrganizationSecretState? state = null, CustomResourceOptions? options = null)
: base("github:index/codespacesOrganizationSecret:CodespacesOrganizationSecret", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
AdditionalSecretOutputs =
{
"encryptedValue",
"plaintextValue",
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing CodespacesOrganizationSecret resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static CodespacesOrganizationSecret Get(string name, Input<string> id, CodespacesOrganizationSecretState? state = null, CustomResourceOptions? options = null)
{
return new CodespacesOrganizationSecret(name, id, state, options);
}
}

public sealed class CodespacesOrganizationSecretArgs : global::Pulumi.ResourceArgs
{
[Input("encryptedValue")]
private Input<string>? _encryptedValue;

/// <summary>
/// Encrypted value of the secret using the GitHub public key in Base64 format.
/// </summary>
public Input<string>? EncryptedValue
{
get => _encryptedValue;
set
{
var emptySecret = Output.CreateSecret(0);
_encryptedValue = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

[Input("plaintextValue")]
private Input<string>? _plaintextValue;

/// <summary>
/// Plaintext value of the secret to be encrypted
/// </summary>
public Input<string>? PlaintextValue
{
get => _plaintextValue;
set
{
var emptySecret = Output.CreateSecret(0);
_plaintextValue = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

/// <summary>
/// Name of the secret
/// </summary>
[Input("secretName", required: true)]
public Input<string> SecretName { get; set; } = null!;

[Input("selectedRepositoryIds")]
private InputList<int>? _selectedRepositoryIds;

/// <summary>
/// An array of repository ids that can access the organization secret.
/// </summary>
public InputList<int> SelectedRepositoryIds
{
get => _selectedRepositoryIds ?? (_selectedRepositoryIds = new InputList<int>());
set => _selectedRepositoryIds = value;
}

/// <summary>
/// Configures the access that repositories have to the organization secret.
/// Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
/// </summary>
[Input("visibility", required: true)]
public Input<string> Visibility { get; set; } = null!;

public CodespacesOrganizationSecretArgs()
{
}
public static new CodespacesOrganizationSecretArgs Empty => new CodespacesOrganizationSecretArgs();
}

public sealed class CodespacesOrganizationSecretState : global::Pulumi.ResourceArgs
{
/// <summary>
/// Date of codespaces_secret creation.
/// </summary>
[Input("createdAt")]
public Input<string>? CreatedAt { get; set; }

[Input("encryptedValue")]
private Input<string>? _encryptedValue;

/// <summary>
/// Encrypted value of the secret using the GitHub public key in Base64 format.
/// </summary>
public Input<string>? EncryptedValue
{
get => _encryptedValue;
set
{
var emptySecret = Output.CreateSecret(0);
_encryptedValue = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

[Input("plaintextValue")]
private Input<string>? _plaintextValue;

/// <summary>
/// Plaintext value of the secret to be encrypted
/// </summary>
public Input<string>? PlaintextValue
{
get => _plaintextValue;
set
{
var emptySecret = Output.CreateSecret(0);
_plaintextValue = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

/// <summary>
/// Name of the secret
/// </summary>
[Input("secretName")]
public Input<string>? SecretName { get; set; }

[Input("selectedRepositoryIds")]
private InputList<int>? _selectedRepositoryIds;

/// <summary>
/// An array of repository ids that can access the organization secret.
/// </summary>
public InputList<int> SelectedRepositoryIds
{
get => _selectedRepositoryIds ?? (_selectedRepositoryIds = new InputList<int>());
set => _selectedRepositoryIds = value;
}

/// <summary>
/// Date of codespaces_secret update.
/// </summary>
[Input("updatedAt")]
public Input<string>? UpdatedAt { get; set; }

/// <summary>
/// Configures the access that repositories have to the organization secret.
/// Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
/// </summary>
[Input("visibility")]
public Input<string>? Visibility { get; set; }

public CodespacesOrganizationSecretState()
{
}
public static new CodespacesOrganizationSecretState Empty => new CodespacesOrganizationSecretState();
}
}
Loading

0 comments on commit 4ba1161

Please sign in to comment.