-
Notifications
You must be signed in to change notification settings - Fork 51
/
getJobCollection.go
59 lines (54 loc) · 2.17 KB
/
getJobCollection.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
// *** 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! ***
package scheduler
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to access information about an existing Scheduler Job Collection.
//
// > **NOTE:** Support for Scheduler Job Collections has been deprecated by Microsoft in favour of Logic Apps ([more information can be found at this link](https://docs.microsoft.com/en-us/azure/scheduler/migrate-from-scheduler-to-logic-apps)) - as such we plan to remove support for this data source as a part of version 2.0 of the AzureRM Provider.
func LookupJobCollection(ctx *pulumi.Context, args *GetJobCollectionArgs) (*GetJobCollectionResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["name"] = args.Name
inputs["resourceGroupName"] = args.ResourceGroupName
}
outputs, err := ctx.Invoke("azure:scheduler/getJobCollection:getJobCollection", inputs)
if err != nil {
return nil, err
}
return &GetJobCollectionResult{
Location: outputs["location"],
Name: outputs["name"],
Quotas: outputs["quotas"],
ResourceGroupName: outputs["resourceGroupName"],
Sku: outputs["sku"],
State: outputs["state"],
Tags: outputs["tags"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getJobCollection.
type GetJobCollectionArgs struct {
// Specifies the name of the Scheduler Job Collection.
Name interface{}
// Specifies the name of the resource group in which the Scheduler Job Collection resides.
ResourceGroupName interface{}
}
// A collection of values returned by getJobCollection.
type GetJobCollectionResult struct {
// The Azure location where the resource exists.
Location interface{}
Name interface{}
// The Job collection quotas as documented in the `quota` block below.
Quotas interface{}
ResourceGroupName interface{}
// The Job Collection's pricing level's SKU.
Sku interface{}
// The Job Collection's state.
State interface{}
// A mapping of tags assigned to the resource.
Tags interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}