This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getJobDefinition.go
56 lines (51 loc) · 2.39 KB
/
getJobDefinition.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
// *** 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 v20190601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupJobDefinition(ctx *pulumi.Context, args *LookupJobDefinitionArgs, opts ...pulumi.InvokeOption) (*LookupJobDefinitionResult, error) {
var rv LookupJobDefinitionResult
err := ctx.Invoke("azure-nextgen:hybriddata/v20190601:getJobDefinition", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupJobDefinitionArgs struct {
// The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
DataManagerName string `pulumi:"dataManagerName"`
// The data service name of the job definition
DataServiceName string `pulumi:"dataServiceName"`
// The job definition name that is being queried.
JobDefinitionName string `pulumi:"jobDefinitionName"`
// The Resource Group Name
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Job Definition.
type LookupJobDefinitionResult struct {
// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
CustomerSecrets []CustomerSecretResponse `pulumi:"customerSecrets"`
// A generic json used differently by each data service type.
DataServiceInput interface{} `pulumi:"dataServiceInput"`
// Data Sink Id associated to the job definition.
DataSinkId string `pulumi:"dataSinkId"`
// Data Source Id associated to the job definition.
DataSourceId string `pulumi:"dataSourceId"`
// Id of the object.
Id string `pulumi:"id"`
// Last modified time of the job definition.
LastModifiedTime *string `pulumi:"lastModifiedTime"`
// Name of the object.
Name string `pulumi:"name"`
// This is the preferred geo location for the job to run.
RunLocation *string `pulumi:"runLocation"`
// Schedule for running the job definition
Schedules []ScheduleResponse `pulumi:"schedules"`
// State of the job definition.
State string `pulumi:"state"`
// Type of the object.
Type string `pulumi:"type"`
// Enum to detect if user confirmation is required. If not passed will default to NotRequired.
UserConfirmation *string `pulumi:"userConfirmation"`
}