This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getWebAppSourceControl.go
46 lines (41 loc) · 1.7 KB
/
getWebAppSourceControl.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
// *** 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 v20180201
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupWebAppSourceControl(ctx *pulumi.Context, args *LookupWebAppSourceControlArgs, opts ...pulumi.InvokeOption) (*LookupWebAppSourceControlResult, error) {
var rv LookupWebAppSourceControlResult
err := ctx.Invoke("azure-nextgen:web/v20180201:getWebAppSourceControl", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupWebAppSourceControlArgs struct {
// Name of the app.
Name string `pulumi:"name"`
// Name of the resource group to which the resource belongs.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Source control configuration for an app.
type LookupWebAppSourceControlResult struct {
// Name of branch to use for deployment.
Branch *string `pulumi:"branch"`
// <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
DeploymentRollbackEnabled *bool `pulumi:"deploymentRollbackEnabled"`
// Resource Id.
Id string `pulumi:"id"`
// <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
IsManualIntegration *bool `pulumi:"isManualIntegration"`
// <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
IsMercurial *bool `pulumi:"isMercurial"`
// Kind of resource.
Kind *string `pulumi:"kind"`
// Resource Name.
Name string `pulumi:"name"`
// Repository or source control URL.
RepoUrl *string `pulumi:"repoUrl"`
// Resource type.
Type string `pulumi:"type"`
}