Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade terraform-provider-github to v5.29.0 #383

Merged
merged 2 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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