pulumi/tests/testdata/codegen/hyphen-url/dotnet/RegistryGeoReplication.cs

73 lines
2.9 KiB
C#

// *** WARNING: this file was generated by test. ***
// *** 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.Registrygeoreplication
{
[RegistrygeoreplicationResourceType("registrygeoreplication:index:RegistryGeoReplication")]
public partial class RegistryGeoReplication : global::Pulumi.ComponentResource
{
/// <summary>
/// The login server url
/// </summary>
[Output("acrLoginServerOut")]
public Output<string> AcrLoginServerOut { get; private set; } = null!;
/// <summary>
/// The Registry
/// </summary>
[Output("registry")]
public Output<Pulumi.AzureNative.ContainerRegistry.Registry> Registry { get; private set; } = null!;
/// <summary>
/// The replication policy
/// </summary>
[Output("replication")]
public Output<Pulumi.AzureNative.ContainerRegistry.Replication> Replication { get; private set; } = null!;
/// <summary>
/// Create a RegistryGeoReplication 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 RegistryGeoReplication(string name, RegistryGeoReplicationArgs args, ComponentResourceOptions? options = null)
: base("registrygeoreplication:index:RegistryGeoReplication", name, args ?? new RegistryGeoReplicationArgs(), MakeResourceOptions(options, ""), remote: true)
{
}
private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOptions? options, Input<string>? id)
{
var defaultOptions = new ComponentResourceOptions
{
Version = Utilities.Version,
};
var merged = ComponentResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
}
public sealed class RegistryGeoReplicationArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The resource group that hosts the component resource
/// </summary>
[Input("resourceGroup", required: true)]
public Input<Pulumi.AzureNative.Resources.ResourceGroup> ResourceGroup { get; set; } = null!;
public RegistryGeoReplicationArgs()
{
}
public static new RegistryGeoReplicationArgs Empty => new RegistryGeoReplicationArgs();
}
}