This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getMachineExtension.go
56 lines (51 loc) · 2.65 KB
/
getMachineExtension.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 v20200815preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupMachineExtension(ctx *pulumi.Context, args *LookupMachineExtensionArgs, opts ...pulumi.InvokeOption) (*LookupMachineExtensionResult, error) {
var rv LookupMachineExtensionResult
err := ctx.Invoke("azure-nextgen:hybridcompute/v20200815preview:getMachineExtension", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupMachineExtensionArgs struct {
// The name of the machine extension.
ExtensionName string `pulumi:"extensionName"`
// The name of the machine containing the extension.
Name string `pulumi:"name"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Describes a Machine Extension.
type LookupMachineExtensionResult struct {
// Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
AutoUpgradeMinorVersion *bool `pulumi:"autoUpgradeMinorVersion"`
// How the extension handler should be forced to update even if the extension configuration has not changed.
ForceUpdateTag *string `pulumi:"forceUpdateTag"`
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// The machine extension instance view.
InstanceView *MachineExtensionPropertiesResponseInstanceView `pulumi:"instanceView"`
// The geo-location where the resource lives
Location string `pulumi:"location"`
// The name of the resource
Name string `pulumi:"name"`
// The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
ProtectedSettings interface{} `pulumi:"protectedSettings"`
// The provisioning state, which only appears in the response.
ProvisioningState string `pulumi:"provisioningState"`
// The name of the extension handler publisher.
Publisher *string `pulumi:"publisher"`
// Json formatted public settings for the extension.
Settings interface{} `pulumi:"settings"`
// 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"`
// Specifies the version of the script handler.
TypeHandlerVersion *string `pulumi:"typeHandlerVersion"`
}