forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getGitHubConnector.go
127 lines (106 loc) · 5.66 KB
/
getGitHubConnector.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package securitydevops
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
// Azure REST API version: 2022-09-01-preview.
func LookupGitHubConnector(ctx *pulumi.Context, args *LookupGitHubConnectorArgs, opts ...pulumi.InvokeOption) (*LookupGitHubConnectorResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv LookupGitHubConnectorResult
err := ctx.Invoke("azure-native:securitydevops:getGitHubConnector", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupGitHubConnectorArgs struct {
// Name of the GitHub Connector.
GitHubConnectorName string `pulumi:"gitHubConnectorName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
type LookupGitHubConnectorResult struct {
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// The geo-location where the resource lives
Location string `pulumi:"location"`
// The name of the resource
Name string `pulumi:"name"`
// Properties of the ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
Properties GitHubConnectorPropertiesResponse `pulumi:"properties"`
// Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData SystemDataResponse `pulumi:"systemData"`
// Resource tags.
Tags map[string]string `pulumi:"tags"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
}
func LookupGitHubConnectorOutput(ctx *pulumi.Context, args LookupGitHubConnectorOutputArgs, opts ...pulumi.InvokeOption) LookupGitHubConnectorResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupGitHubConnectorResult, error) {
args := v.(LookupGitHubConnectorArgs)
r, err := LookupGitHubConnector(ctx, &args, opts...)
var s LookupGitHubConnectorResult
if r != nil {
s = *r
}
return s, err
}).(LookupGitHubConnectorResultOutput)
}
type LookupGitHubConnectorOutputArgs struct {
// Name of the GitHub Connector.
GitHubConnectorName pulumi.StringInput `pulumi:"gitHubConnectorName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (LookupGitHubConnectorOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupGitHubConnectorArgs)(nil)).Elem()
}
// Represents an ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
type LookupGitHubConnectorResultOutput struct{ *pulumi.OutputState }
func (LookupGitHubConnectorResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupGitHubConnectorResult)(nil)).Elem()
}
func (o LookupGitHubConnectorResultOutput) ToLookupGitHubConnectorResultOutput() LookupGitHubConnectorResultOutput {
return o
}
func (o LookupGitHubConnectorResultOutput) ToLookupGitHubConnectorResultOutputWithContext(ctx context.Context) LookupGitHubConnectorResultOutput {
return o
}
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
func (o LookupGitHubConnectorResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) string { return v.Id }).(pulumi.StringOutput)
}
// The geo-location where the resource lives
func (o LookupGitHubConnectorResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) string { return v.Location }).(pulumi.StringOutput)
}
// The name of the resource
func (o LookupGitHubConnectorResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) string { return v.Name }).(pulumi.StringOutput)
}
// Properties of the ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
func (o LookupGitHubConnectorResultOutput) Properties() GitHubConnectorPropertiesResponseOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) GitHubConnectorPropertiesResponse { return v.Properties }).(GitHubConnectorPropertiesResponseOutput)
}
// Azure Resource Manager metadata containing createdBy and modifiedBy information.
func (o LookupGitHubConnectorResultOutput) SystemData() SystemDataResponseOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) SystemDataResponse { return v.SystemData }).(SystemDataResponseOutput)
}
// Resource tags.
func (o LookupGitHubConnectorResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
func (o LookupGitHubConnectorResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupGitHubConnectorResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupGitHubConnectorResultOutput{})
}