github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/hyphen-url/dotnet/RegistryGeoReplication.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.Registrygeoreplication
    11  {
    12      [RegistrygeoreplicationResourceType("registrygeoreplication:index:RegistryGeoReplication")]
    13      public partial class RegistryGeoReplication : global::Pulumi.ComponentResource
    14      {
    15          /// <summary>
    16          /// The login server url
    17          /// </summary>
    18          [Output("acrLoginServerOut")]
    19          public Output<string> AcrLoginServerOut { get; private set; } = null!;
    20  
    21          /// <summary>
    22          /// The Registry
    23          /// </summary>
    24          [Output("registry")]
    25          public Output<Pulumi.AzureNative.ContainerRegistry.Registry> Registry { get; private set; } = null!;
    26  
    27          /// <summary>
    28          /// The replication policy
    29          /// </summary>
    30          [Output("replication")]
    31          public Output<Pulumi.AzureNative.ContainerRegistry.Replication> Replication { get; private set; } = null!;
    32  
    33  
    34          /// <summary>
    35          /// Create a RegistryGeoReplication resource with the given unique name, arguments, and options.
    36          /// </summary>
    37          ///
    38          /// <param name="name">The unique name of the resource</param>
    39          /// <param name="args">The arguments used to populate this resource's properties</param>
    40          /// <param name="options">A bag of options that control this resource's behavior</param>
    41          public RegistryGeoReplication(string name, RegistryGeoReplicationArgs args, ComponentResourceOptions? options = null)
    42              : base("registrygeoreplication:index:RegistryGeoReplication", name, args ?? new RegistryGeoReplicationArgs(), MakeResourceOptions(options, ""), remote: true)
    43          {
    44          }
    45  
    46          private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOptions? options, Input<string>? id)
    47          {
    48              var defaultOptions = new ComponentResourceOptions
    49              {
    50                  Version = Utilities.Version,
    51              };
    52              var merged = ComponentResourceOptions.Merge(defaultOptions, options);
    53              // Override the ID if one was specified for consistency with other language SDKs.
    54              merged.Id = id ?? merged.Id;
    55              return merged;
    56          }
    57      }
    58  
    59      public sealed class RegistryGeoReplicationArgs : global::Pulumi.ResourceArgs
    60      {
    61          /// <summary>
    62          /// The resource group that hosts the component resource
    63          /// </summary>
    64          [Input("resourceGroup", required: true)]
    65          public Input<Pulumi.AzureNative.Resources.ResourceGroup> ResourceGroup { get; set; } = null!;
    66  
    67          public RegistryGeoReplicationArgs()
    68          {
    69          }
    70          public static new RegistryGeoReplicationArgs Empty => new RegistryGeoReplicationArgs();
    71      }
    72  }