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
/
getTask.go
61 lines (56 loc) · 2.29 KB
/
getTask.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
51
52
53
54
55
56
57
58
59
60
61
// *** 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 v20190401
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupTask(ctx *pulumi.Context, args *LookupTaskArgs, opts ...pulumi.InvokeOption) (*LookupTaskResult, error) {
var rv LookupTaskResult
err := ctx.Invoke("azure-nextgen:containerregistry/v20190401:getTask", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupTaskArgs struct {
// The name of the container registry.
RegistryName string `pulumi:"registryName"`
// The name of the resource group to which the container registry belongs.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the container registry task.
TaskName string `pulumi:"taskName"`
}
// The task that has the ARM resource and task properties.
// The task will have all information to schedule a run against it.
type LookupTaskResult struct {
// The machine configuration of the run agent.
AgentConfiguration *AgentPropertiesResponse `pulumi:"agentConfiguration"`
// The creation date of task.
CreationDate string `pulumi:"creationDate"`
// The properties that describes a set of credentials that will be used when this run is invoked.
Credentials *CredentialsResponse `pulumi:"credentials"`
// The resource ID.
Id string `pulumi:"id"`
// Identity for the resource.
Identity *IdentityPropertiesResponse `pulumi:"identity"`
// The location of the resource. This cannot be changed after the resource is created.
Location string `pulumi:"location"`
// The name of the resource.
Name string `pulumi:"name"`
// The platform properties against which the run has to happen.
Platform PlatformPropertiesResponse `pulumi:"platform"`
// The provisioning state of the task.
ProvisioningState string `pulumi:"provisioningState"`
// The current status of task.
Status *string `pulumi:"status"`
// The properties of a task step.
Step interface{} `pulumi:"step"`
// The tags of the resource.
Tags map[string]string `pulumi:"tags"`
// Run timeout in seconds.
Timeout *int `pulumi:"timeout"`
// The properties that describe all triggers for the task.
Trigger *TriggerPropertiesResponse `pulumi:"trigger"`
// The type of the resource.
Type string `pulumi:"type"`
}