-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26fad17
commit 7533bd2
Showing
160 changed files
with
3,912 additions
and
383 deletions.
There are no files selected for viewing
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
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
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
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
139 changes: 139 additions & 0 deletions
139
sdk/dotnet/Certificates/V1/CertificateSigningRequest.cs
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,139 @@ | ||
// *** WARNING: this file was generated by pulumigen. *** | ||
// *** 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.Kubernetes.Certificates.V1 | ||
{ | ||
/// <summary> | ||
/// CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. | ||
/// | ||
/// Kubelets use this API to obtain: | ||
/// 1. client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client-kubelet" signerName). | ||
/// 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the "kubernetes.io/kubelet-serving" signerName). | ||
/// | ||
/// This API can be used to request client certificates to authenticate to kube-apiserver (with the "kubernetes.io/kube-apiserver-client" signerName), or to obtain certificates from custom non-Kubernetes signers. | ||
/// </summary> | ||
public partial class CertificateSigningRequest : KubernetesResource | ||
{ | ||
/// <summary> | ||
/// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
/// </summary> | ||
[Output("apiVersion")] | ||
public Output<string> ApiVersion { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
/// </summary> | ||
[Output("kind")] | ||
public Output<string> Kind { get; private set; } = null!; | ||
|
||
[Output("metadata")] | ||
public Output<Pulumi.Kubernetes.Types.Outputs.Meta.V1.ObjectMeta> Metadata { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. | ||
/// </summary> | ||
[Output("spec")] | ||
public Output<Pulumi.Kubernetes.Types.Outputs.Certificates.V1.CertificateSigningRequestSpec> Spec { get; private set; } = null!; | ||
|
||
/// <summary> | ||
/// status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure. | ||
/// </summary> | ||
[Output("status")] | ||
public Output<Pulumi.Kubernetes.Types.Outputs.Certificates.V1.CertificateSigningRequestStatus> Status { get; private set; } = null!; | ||
|
||
|
||
/// <summary> | ||
/// Create a CertificateSigningRequest 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 CertificateSigningRequest(string name, Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs? args = null, CustomResourceOptions? options = null) | ||
: base("kubernetes:certificates.k8s.io/v1:CertificateSigningRequest", name, MakeArgs(args), MakeResourceOptions(options, "")) | ||
{ | ||
} | ||
internal CertificateSigningRequest(string name, ImmutableDictionary<string, object?> dictionary, CustomResourceOptions? options = null) | ||
: base("kubernetes:certificates.k8s.io/v1:CertificateSigningRequest", name, new DictionaryResourceArgs(dictionary), MakeResourceOptions(options, "")) | ||
{ | ||
} | ||
|
||
private CertificateSigningRequest(string name, Input<string> id, CustomResourceOptions? options = null) | ||
: base("kubernetes:certificates.k8s.io/v1:CertificateSigningRequest", name, null, MakeResourceOptions(options, id)) | ||
{ | ||
} | ||
|
||
private static Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs? MakeArgs(Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs? args) | ||
{ | ||
args ??= new Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestArgs(); | ||
args.ApiVersion = "certificates.k8s.io/v1"; | ||
args.Kind = "CertificateSigningRequest"; | ||
return args; | ||
} | ||
|
||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) | ||
{ | ||
var defaultOptions = new CustomResourceOptions | ||
{ | ||
Version = Utilities.Version, | ||
Aliases = | ||
{ | ||
new Alias { Type = "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest"}, | ||
}, | ||
}; | ||
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 CertificateSigningRequest 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="options">A bag of options that control this resource's behavior</param> | ||
public static CertificateSigningRequest Get(string name, Input<string> id, CustomResourceOptions? options = null) | ||
{ | ||
return new CertificateSigningRequest(name, id, options); | ||
} | ||
} | ||
} | ||
namespace Pulumi.Kubernetes.Types.Inputs.Certificates.V1 | ||
{ | ||
|
||
public class CertificateSigningRequestArgs : Pulumi.ResourceArgs | ||
{ | ||
/// <summary> | ||
/// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
/// </summary> | ||
[Input("apiVersion")] | ||
public Input<string>? ApiVersion { get; set; } | ||
|
||
/// <summary> | ||
/// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
/// </summary> | ||
[Input("kind")] | ||
public Input<string>? Kind { get; set; } | ||
|
||
[Input("metadata")] | ||
public Input<Pulumi.Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs>? Metadata { get; set; } | ||
|
||
/// <summary> | ||
/// spec contains the certificate request, and is immutable after creation. Only the request, signerName, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users. | ||
/// </summary> | ||
[Input("spec", required: true)] | ||
public Input<Pulumi.Kubernetes.Types.Inputs.Certificates.V1.CertificateSigningRequestSpecArgs> Spec { get; set; } = null!; | ||
|
||
public CertificateSigningRequestArgs() | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.