This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getApplicationPackage.go
50 lines (45 loc) · 1.91 KB
/
getApplicationPackage.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
45
46
47
48
49
50
// *** 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 v20181201
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupApplicationPackage(ctx *pulumi.Context, args *LookupApplicationPackageArgs, opts ...pulumi.InvokeOption) (*LookupApplicationPackageResult, error) {
var rv LookupApplicationPackageResult
err := ctx.Invoke("azure-nextgen:batch/v20181201:getApplicationPackage", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupApplicationPackageArgs 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"`
// The version of the application.
VersionName string `pulumi:"versionName"`
}
// An application package which represents a particular version of an application.
type LookupApplicationPackageResult struct {
// The ETag of the resource, used for concurrency statements.
Etag string `pulumi:"etag"`
// The format of the application package, if the package is active.
Format string `pulumi:"format"`
// The ID of the resource.
Id string `pulumi:"id"`
// The time at which the package was last activated, if the package is active.
LastActivationTime string `pulumi:"lastActivationTime"`
// The name of the resource.
Name string `pulumi:"name"`
// The current state of the application package.
State string `pulumi:"state"`
// The URL for the application package in Azure Storage.
StorageUrl string `pulumi:"storageUrl"`
// The UTC time at which the Azure Storage URL will expire.
StorageUrlExpiry string `pulumi:"storageUrlExpiry"`
// The type of the resource.
Type string `pulumi:"type"`
}