github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/dotnet/GetBastionShareableLink.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.Mypkg
    11  {
    12      public static class GetBastionShareableLink
    13      {
    14          /// <summary>
    15          /// Response for all the Bastion Shareable Link endpoints.
    16          /// API Version: 2020-11-01.
    17          /// </summary>
    18          public static Task<GetBastionShareableLinkResult> InvokeAsync(GetBastionShareableLinkArgs args, InvokeOptions? options = null)
    19              => global::Pulumi.Deployment.Instance.InvokeAsync<GetBastionShareableLinkResult>("mypkg::getBastionShareableLink", args ?? new GetBastionShareableLinkArgs(), options.WithDefaults());
    20  
    21          /// <summary>
    22          /// Response for all the Bastion Shareable Link endpoints.
    23          /// API Version: 2020-11-01.
    24          /// </summary>
    25          public static Output<GetBastionShareableLinkResult> Invoke(GetBastionShareableLinkInvokeArgs args, InvokeOptions? options = null)
    26              => global::Pulumi.Deployment.Instance.Invoke<GetBastionShareableLinkResult>("mypkg::getBastionShareableLink", args ?? new GetBastionShareableLinkInvokeArgs(), options.WithDefaults());
    27      }
    28  
    29  
    30      public sealed class GetBastionShareableLinkArgs : global::Pulumi.InvokeArgs
    31      {
    32          /// <summary>
    33          /// The name of the Bastion Host.
    34          /// </summary>
    35          [Input("bastionHostName", required: true)]
    36          public string BastionHostName { get; set; } = null!;
    37  
    38          /// <summary>
    39          /// The name of the resource group.
    40          /// </summary>
    41          [Input("resourceGroupName", required: true)]
    42          public string ResourceGroupName { get; set; } = null!;
    43  
    44          [Input("vms")]
    45          private List<Inputs.BastionShareableLink>? _vms;
    46  
    47          /// <summary>
    48          /// List of VM references.
    49          /// </summary>
    50          public List<Inputs.BastionShareableLink> Vms
    51          {
    52              get => _vms ?? (_vms = new List<Inputs.BastionShareableLink>());
    53              set => _vms = value;
    54          }
    55  
    56          public GetBastionShareableLinkArgs()
    57          {
    58          }
    59          public static new GetBastionShareableLinkArgs Empty => new GetBastionShareableLinkArgs();
    60      }
    61  
    62      public sealed class GetBastionShareableLinkInvokeArgs : global::Pulumi.InvokeArgs
    63      {
    64          /// <summary>
    65          /// The name of the Bastion Host.
    66          /// </summary>
    67          [Input("bastionHostName", required: true)]
    68          public Input<string> BastionHostName { get; set; } = null!;
    69  
    70          /// <summary>
    71          /// The name of the resource group.
    72          /// </summary>
    73          [Input("resourceGroupName", required: true)]
    74          public Input<string> ResourceGroupName { get; set; } = null!;
    75  
    76          [Input("vms")]
    77          private InputList<Inputs.BastionShareableLinkArgs>? _vms;
    78  
    79          /// <summary>
    80          /// List of VM references.
    81          /// </summary>
    82          public InputList<Inputs.BastionShareableLinkArgs> Vms
    83          {
    84              get => _vms ?? (_vms = new InputList<Inputs.BastionShareableLinkArgs>());
    85              set => _vms = value;
    86          }
    87  
    88          public GetBastionShareableLinkInvokeArgs()
    89          {
    90          }
    91          public static new GetBastionShareableLinkInvokeArgs Empty => new GetBastionShareableLinkInvokeArgs();
    92      }
    93  
    94  
    95      [OutputType]
    96      public sealed class GetBastionShareableLinkResult
    97      {
    98          /// <summary>
    99          /// The URL to get the next set of results.
   100          /// </summary>
   101          public readonly string? NextLink;
   102  
   103          [OutputConstructor]
   104          private GetBastionShareableLinkResult(string? nextLink)
   105          {
   106              NextLink = nextLink;
   107          }
   108      }
   109  }