This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getApplication.go
44 lines (39 loc) · 1.69 KB
/
getApplication.go
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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20200901
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupApplication(ctx *pulumi.Context, args *LookupApplicationArgs, opts ...pulumi.InvokeOption) (*LookupApplicationResult, error) {
var rv LookupApplicationResult
err := ctx.Invoke("azure-nextgen:batch/v20200901:getApplication", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupApplicationArgs struct {
// The name of the Batch account.
AccountName string `pulumi:"accountName"`
// The name of the application. This must be unique within the account.
ApplicationName string `pulumi:"applicationName"`
// The name of the resource group that contains the Batch account.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Contains information about an application in a Batch account.
type LookupApplicationResult struct {
// A value indicating whether packages within the application may be overwritten using the same version string.
AllowUpdates *bool `pulumi:"allowUpdates"`
// The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.
DefaultVersion *string `pulumi:"defaultVersion"`
// The display name for the application.
DisplayName *string `pulumi:"displayName"`
// The ETag of the resource, used for concurrency statements.
Etag string `pulumi:"etag"`
// The ID of the resource.
Id string `pulumi:"id"`
// The name of the resource.
Name string `pulumi:"name"`
// The type of the resource.
Type string `pulumi:"type"`
}