github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/plain-object-disable-defaults/dotnet/Provider.cs (about)

     1  // *** WARNING: this file was generated by test. ***
     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.Example
    11  {
    12      /// <summary>
    13      /// The provider type for the kubernetes package.
    14      /// </summary>
    15      [ExampleResourceType("pulumi:providers:example")]
    16      public partial class Provider : global::Pulumi.ProviderResource
    17      {
    18          /// <summary>
    19          /// Create a Provider resource with the given unique name, arguments, and options.
    20          /// </summary>
    21          ///
    22          /// <param name="name">The unique name of the resource</param>
    23          /// <param name="args">The arguments used to populate this resource's properties</param>
    24          /// <param name="options">A bag of options that control this resource's behavior</param>
    25          public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
    26              : base("example", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
    27          {
    28          }
    29  
    30          private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
    31          {
    32              var defaultOptions = new CustomResourceOptions
    33              {
    34                  Version = Utilities.Version,
    35              };
    36              var merged = CustomResourceOptions.Merge(defaultOptions, options);
    37              // Override the ID if one was specified for consistency with other language SDKs.
    38              merged.Id = id ?? merged.Id;
    39              return merged;
    40          }
    41      }
    42  
    43      public sealed class ProviderArgs : global::Pulumi.ResourceArgs
    44      {
    45          /// <summary>
    46          /// BETA FEATURE - Options to configure the Helm Release resource.
    47          /// </summary>
    48          [Input("helmReleaseSettings", json: true)]
    49          public Input<Inputs.HelmReleaseSettingsArgs>? HelmReleaseSettings { get; set; }
    50  
    51          public ProviderArgs()
    52          {
    53          }
    54          public static new ProviderArgs Empty => new ProviderArgs();
    55      }
    56  }