/
GetApp.cs
172 lines (154 loc) · 5.25 KB
/
GetApp.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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.DigitalOcean
{
public static class GetApp
{
/// <summary>
/// Get information on a DigitalOcean App.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// Get the account:
///
/// ```csharp
/// using Pulumi;
/// using DigitalOcean = Pulumi.DigitalOcean;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var example = Output.Create(DigitalOcean.GetApp.InvokeAsync(new DigitalOcean.GetAppArgs
/// {
/// AppId = "e665d18d-7b56-44a9-92ce-31979174d544",
/// }));
/// this.DefaultIngress = example.Apply(example => example.DefaultIngress);
/// }
///
/// [Output("defaultIngress")]
/// public Output<string> DefaultIngress { get; set; }
/// }
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.InvokeAsync<GetAppResult>("digitalocean:index/getApp:getApp", args ?? new GetAppArgs(), options.WithDefaults());
/// <summary>
/// Get information on a DigitalOcean App.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// Get the account:
///
/// ```csharp
/// using Pulumi;
/// using DigitalOcean = Pulumi.DigitalOcean;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var example = Output.Create(DigitalOcean.GetApp.InvokeAsync(new DigitalOcean.GetAppArgs
/// {
/// AppId = "e665d18d-7b56-44a9-92ce-31979174d544",
/// }));
/// this.DefaultIngress = example.Apply(example => example.DefaultIngress);
/// }
///
/// [Output("defaultIngress")]
/// public Output<string> DefaultIngress { get; set; }
/// }
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetAppResult> Invoke(GetAppInvokeArgs args, InvokeOptions? options = null)
=> Pulumi.Deployment.Instance.Invoke<GetAppResult>("digitalocean:index/getApp:getApp", args ?? new GetAppInvokeArgs(), options.WithDefaults());
}
public sealed class GetAppArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The ID of the app to retrieve information about.
/// </summary>
[Input("appId", required: true)]
public string AppId { get; set; } = null!;
public GetAppArgs()
{
}
}
public sealed class GetAppInvokeArgs : Pulumi.InvokeArgs
{
/// <summary>
/// The ID of the app to retrieve information about.
/// </summary>
[Input("appId", required: true)]
public Input<string> AppId { get; set; } = null!;
public GetAppInvokeArgs()
{
}
}
[OutputType]
public sealed class GetAppResult
{
/// <summary>
/// The ID the app's currently active deployment.
/// </summary>
public readonly string ActiveDeploymentId;
public readonly string AppId;
/// <summary>
/// The date and time of when the app was created.
/// </summary>
public readonly string CreatedAt;
/// <summary>
/// The default URL to access the app.
/// </summary>
public readonly string DefaultIngress;
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
public readonly string Id;
/// <summary>
/// The live URL of the app.
/// </summary>
public readonly string LiveUrl;
/// <summary>
/// A DigitalOcean App spec describing the app.
/// </summary>
public readonly ImmutableArray<Outputs.GetAppSpecResult> Specs;
/// <summary>
/// The date and time of when the app was last updated.
/// </summary>
public readonly string UpdatedAt;
[OutputConstructor]
private GetAppResult(
string activeDeploymentId,
string appId,
string createdAt,
string defaultIngress,
string id,
string liveUrl,
ImmutableArray<Outputs.GetAppSpecResult> specs,
string updatedAt)
{
ActiveDeploymentId = activeDeploymentId;
AppId = appId;
CreatedAt = createdAt;
DefaultIngress = defaultIngress;
Id = id;
LiveUrl = liveUrl;
Specs = specs;
UpdatedAt = updatedAt;
}
}
}