-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade terraform-provider-github to v5.29.0 (#383)
* make tfgen * make build_sdks --------- Co-authored-by: pulumi-bot <runner@fv-az629-134.1soobpoi4aruxfwmxrgofy2soh.cx.internal.cloudapp.net>
- Loading branch information
1 parent
9e1d640
commit 4ba1161
Showing
87 changed files
with
15,210 additions
and
71 deletions.
There are no files selected for viewing
523 changes: 486 additions & 37 deletions
523
provider/cmd/pulumi-resource-github/bridge-metadata.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(() => | ||
/// { | ||
/// 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(() => | ||
/// { | ||
/// 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 => 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 => 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(); | ||
} | ||
} |
Oops, something went wrong.