/
virtual_machines_extension_spec_arm_types_gen.go
116 lines (87 loc) · 4.74 KB
/
virtual_machines_extension_spec_arm_types_gen.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
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20220301
import (
"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
)
type VirtualMachines_Extension_Spec_ARM struct {
// Location: Resource location
Location *string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
// Properties: Describes the properties of a Virtual Machine Extension.
Properties *VirtualMachineExtensionProperties_ARM `json:"properties,omitempty"`
// Tags: Resource tags
Tags map[string]string `json:"tags,omitempty"`
}
var _ genruntime.ARMResourceSpec = &VirtualMachines_Extension_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2022-03-01"
func (extension VirtualMachines_Extension_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (extension *VirtualMachines_Extension_Spec_ARM) GetName() string {
return extension.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.Compute/virtualMachines/extensions"
func (extension *VirtualMachines_Extension_Spec_ARM) GetType() string {
return "Microsoft.Compute/virtualMachines/extensions"
}
// Describes the properties of a Virtual Machine Extension.
type VirtualMachineExtensionProperties_ARM struct {
// AutoUpgradeMinorVersion: 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 `json:"autoUpgradeMinorVersion,omitempty"`
// EnableAutomaticUpgrade: Indicates whether the extension should be automatically upgraded by the platform if there is a
// newer version of the extension available.
EnableAutomaticUpgrade *bool `json:"enableAutomaticUpgrade,omitempty"`
// ForceUpdateTag: How the extension handler should be forced to update even if the extension configuration has not changed.
ForceUpdateTag *string `json:"forceUpdateTag,omitempty"`
// InstanceView: The virtual machine extension instance view.
InstanceView *VirtualMachineExtensionInstanceView_ARM `json:"instanceView,omitempty"`
// ProtectedSettings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected
// settings at all.
ProtectedSettings map[string]string `json:"protectedSettings,omitempty"`
// ProtectedSettingsFromKeyVault: The extensions protected settings that are passed by reference, and consumed from key
// vault
ProtectedSettingsFromKeyVault *KeyVaultSecretReference_ARM `json:"protectedSettingsFromKeyVault,omitempty"`
// Publisher: The name of the extension handler publisher.
Publisher *string `json:"publisher,omitempty"`
// Settings: Json formatted public settings for the extension.
Settings map[string]v1.JSON `json:"settings,omitempty"`
// SuppressFailures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such
// as not connecting to the VM will not be suppressed regardless of this value). The default is false.
SuppressFailures *bool `json:"suppressFailures,omitempty"`
// Type: Specifies the type of the extension; an example is "CustomScriptExtension".
Type *string `json:"type,omitempty"`
// TypeHandlerVersion: Specifies the version of the script handler.
TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
}
// The instance view of a virtual machine extension.
type VirtualMachineExtensionInstanceView_ARM struct {
// Name: The virtual machine extension name.
Name *string `json:"name,omitempty"`
// Statuses: The resource status information.
Statuses []InstanceViewStatus_ARM `json:"statuses,omitempty"`
// Substatuses: The resource status information.
Substatuses []InstanceViewStatus_ARM `json:"substatuses,omitempty"`
// Type: Specifies the type of the extension; an example is "CustomScriptExtension".
Type *string `json:"type,omitempty"`
// TypeHandlerVersion: Specifies the version of the script handler.
TypeHandlerVersion *string `json:"typeHandlerVersion,omitempty"`
}
// Instance view status.
type InstanceViewStatus_ARM struct {
// Code: The status code.
Code *string `json:"code,omitempty"`
// DisplayStatus: The short localizable label for the status.
DisplayStatus *string `json:"displayStatus,omitempty"`
// Level: The level code.
Level *InstanceViewStatus_Level `json:"level,omitempty"`
// Message: The detailed status message, including for alerts and error messages.
Message *string `json:"message,omitempty"`
// Time: The time of the status.
Time *string `json:"time,omitempty"`
}