Documentation ¶
Index ¶
- type CloudError
- type CloudErrorBody
- type ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties
- type CreatedByType
- type ImageTemplate
- type ImageTemplateCustomizer
- type ImageTemplateCustomizerClassification
- type ImageTemplateDistributor
- type ImageTemplateDistributorClassification
- type ImageTemplateFileCustomizer
- type ImageTemplateIdentity
- type ImageTemplateLastRunStatus
- type ImageTemplateListResult
- type ImageTemplateManagedImageDistributor
- type ImageTemplateManagedImageSource
- type ImageTemplatePlatformImageSource
- type ImageTemplatePowerShellCustomizer
- type ImageTemplateProperties
- type ImageTemplateRestartCustomizer
- type ImageTemplateSharedImageDistributor
- type ImageTemplateSharedImageVersionSource
- type ImageTemplateShellCustomizer
- type ImageTemplateSource
- type ImageTemplateSourceClassification
- type ImageTemplateUpdateParameters
- type ImageTemplateVMProfile
- type ImageTemplateVhdDistributor
- type ImageTemplateWindowsUpdateCustomizer
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PlatformImagePurchasePlan
- type ProvisioningError
- type ProvisioningErrorCode
- type ProvisioningState
- type Resource
- type ResourceIdentityType
- type RunOutput
- type RunOutputCollection
- type RunOutputProperties
- type RunState
- type RunSubState
- type SharedImageStorageAccountType
- type SubResource
- type SystemData
- type TrackedResource
- type VirtualMachineImageTemplatesClient
- func (client *VirtualMachineImageTemplatesClient) BeginCancel(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (*armruntime.Poller[VirtualMachineImageTemplatesClientCancelResponse], error)
- func (client *VirtualMachineImageTemplatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (*armruntime.Poller[VirtualMachineImageTemplatesClientCreateOrUpdateResponse], ...)
- func (client *VirtualMachineImageTemplatesClient) BeginDelete(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (*armruntime.Poller[VirtualMachineImageTemplatesClientDeleteResponse], error)
- func (client *VirtualMachineImageTemplatesClient) BeginRun(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (*armruntime.Poller[VirtualMachineImageTemplatesClientRunResponse], error)
- func (client *VirtualMachineImageTemplatesClient) BeginUpdate(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (*armruntime.Poller[VirtualMachineImageTemplatesClientUpdateResponse], error)
- func (client *VirtualMachineImageTemplatesClient) Get(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (VirtualMachineImageTemplatesClientGetResponse, error)
- func (client *VirtualMachineImageTemplatesClient) GetRunOutput(ctx context.Context, resourceGroupName string, imageTemplateName string, ...) (VirtualMachineImageTemplatesClientGetRunOutputResponse, error)
- func (client *VirtualMachineImageTemplatesClient) List(options *VirtualMachineImageTemplatesClientListOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListResponse]
- func (client *VirtualMachineImageTemplatesClient) ListByResourceGroup(resourceGroupName string, ...) *runtime.Pager[VirtualMachineImageTemplatesClientListByResourceGroupResponse]
- func (client *VirtualMachineImageTemplatesClient) ListRunOutputs(resourceGroupName string, imageTemplateName string, ...) *runtime.Pager[VirtualMachineImageTemplatesClientListRunOutputsResponse]
- type VirtualMachineImageTemplatesClientBeginCancelOptions
- type VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions
- type VirtualMachineImageTemplatesClientBeginDeleteOptions
- type VirtualMachineImageTemplatesClientBeginRunOptions
- type VirtualMachineImageTemplatesClientBeginUpdateOptions
- type VirtualMachineImageTemplatesClientCancelResponse
- type VirtualMachineImageTemplatesClientCreateOrUpdateResponse
- type VirtualMachineImageTemplatesClientDeleteResponse
- type VirtualMachineImageTemplatesClientGetOptions
- type VirtualMachineImageTemplatesClientGetResponse
- type VirtualMachineImageTemplatesClientGetRunOutputOptions
- type VirtualMachineImageTemplatesClientGetRunOutputResponse
- type VirtualMachineImageTemplatesClientListByResourceGroupOptions
- type VirtualMachineImageTemplatesClientListByResourceGroupResponse
- type VirtualMachineImageTemplatesClientListOptions
- type VirtualMachineImageTemplatesClientListResponse
- type VirtualMachineImageTemplatesClientListRunOutputsOptions
- type VirtualMachineImageTemplatesClientListRunOutputsResponse
- type VirtualMachineImageTemplatesClientRunResponse
- type VirtualMachineImageTemplatesClientUpdateResponse
- type VirtualNetworkConfig
Examples ¶
- OperationsClient.List
- VirtualMachineImageTemplatesClient.BeginCancel
- VirtualMachineImageTemplatesClient.BeginCreateOrUpdate
- VirtualMachineImageTemplatesClient.BeginDelete
- VirtualMachineImageTemplatesClient.BeginRun
- VirtualMachineImageTemplatesClient.BeginUpdate
- VirtualMachineImageTemplatesClient.Get
- VirtualMachineImageTemplatesClient.GetRunOutput
- VirtualMachineImageTemplatesClient.List
- VirtualMachineImageTemplatesClient.ListByResourceGroup
- VirtualMachineImageTemplatesClient.ListRunOutputs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudError ¶
type CloudError struct { // Details about the error. Error *CloudErrorBody `json:"error,omitempty"` }
CloudError - An error response from the Azure VM Image Builder service.
type CloudErrorBody ¶
type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string `json:"code,omitempty"` // A list of additional details about the error. Details []*CloudErrorBody `json:"details,omitempty"` // A message describing the error, intended to be suitable for display in a user interface. Message *string `json:"message,omitempty"` // The target of the particular error. For example, the name of the property in error. Target *string `json:"target,omitempty"` }
CloudErrorBody - An error response from the Azure VM Image Builder service.
func (CloudErrorBody) MarshalJSON ¶
func (c CloudErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.
type ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties ¶
type ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties struct { // READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty" azure:"ro"` // READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` }
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type ImageTemplate ¶
type ImageTemplate struct { // REQUIRED; The identity of the image template, if configured. Identity *ImageTemplateIdentity `json:"identity,omitempty"` // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // The properties of the image template Properties *ImageTemplateProperties `json:"properties,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ImageTemplate - Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider
func (ImageTemplate) MarshalJSON ¶
func (i ImageTemplate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplate.
type ImageTemplateCustomizer ¶
type ImageTemplateCustomizer struct { // REQUIRED; The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Type *string `json:"type,omitempty"` // Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` }
ImageTemplateCustomizer - Describes a unit of image customization
func (*ImageTemplateCustomizer) GetImageTemplateCustomizer ¶
func (i *ImageTemplateCustomizer) GetImageTemplateCustomizer() *ImageTemplateCustomizer
GetImageTemplateCustomizer implements the ImageTemplateCustomizerClassification interface for type ImageTemplateCustomizer.
type ImageTemplateCustomizerClassification ¶
type ImageTemplateCustomizerClassification interface { // GetImageTemplateCustomizer returns the ImageTemplateCustomizer content of the underlying type. GetImageTemplateCustomizer() *ImageTemplateCustomizer }
ImageTemplateCustomizerClassification provides polymorphic access to related types. Call the interface's GetImageTemplateCustomizer() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ImageTemplateCustomizer, *ImageTemplateFileCustomizer, *ImageTemplatePowerShellCustomizer, *ImageTemplateRestartCustomizer, - *ImageTemplateShellCustomizer, *ImageTemplateWindowsUpdateCustomizer
type ImageTemplateDistributor ¶
type ImageTemplateDistributor struct { // REQUIRED; The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` // REQUIRED; Type of distribution. Type *string `json:"type,omitempty"` // Tags that will be applied to the artifact once it has been created/updated by the distributor. ArtifactTags map[string]*string `json:"artifactTags,omitempty"` }
ImageTemplateDistributor - Generic distribution object
func (*ImageTemplateDistributor) GetImageTemplateDistributor ¶
func (i *ImageTemplateDistributor) GetImageTemplateDistributor() *ImageTemplateDistributor
GetImageTemplateDistributor implements the ImageTemplateDistributorClassification interface for type ImageTemplateDistributor.
func (ImageTemplateDistributor) MarshalJSON ¶ added in v0.2.0
func (i ImageTemplateDistributor) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateDistributor.
type ImageTemplateDistributorClassification ¶
type ImageTemplateDistributorClassification interface { // GetImageTemplateDistributor returns the ImageTemplateDistributor content of the underlying type. GetImageTemplateDistributor() *ImageTemplateDistributor }
ImageTemplateDistributorClassification provides polymorphic access to related types. Call the interface's GetImageTemplateDistributor() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ImageTemplateDistributor, *ImageTemplateManagedImageDistributor, *ImageTemplateSharedImageDistributor, *ImageTemplateVhdDistributor
type ImageTemplateFileCustomizer ¶
type ImageTemplateFileCustomizer struct { // REQUIRED; The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Type *string `json:"type,omitempty"` // The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be // uploaded to in the VM Destination *string `json:"destination,omitempty"` // Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // SHA256 checksum of the file provided in the sourceUri field above SHA256Checksum *string `json:"sha256Checksum,omitempty"` // The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc SourceURI *string `json:"sourceUri,omitempty"` }
ImageTemplateFileCustomizer - Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner
func (*ImageTemplateFileCustomizer) GetImageTemplateCustomizer ¶ added in v0.2.0
func (i *ImageTemplateFileCustomizer) GetImageTemplateCustomizer() *ImageTemplateCustomizer
GetImageTemplateCustomizer implements the ImageTemplateCustomizerClassification interface for type ImageTemplateFileCustomizer.
func (ImageTemplateFileCustomizer) MarshalJSON ¶
func (i ImageTemplateFileCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateFileCustomizer.
func (*ImageTemplateFileCustomizer) UnmarshalJSON ¶
func (i *ImageTemplateFileCustomizer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateFileCustomizer.
type ImageTemplateIdentity ¶
type ImageTemplateIdentity struct { // The type of identity used for the image template. The type 'None' will remove any identities from the image template. Type *ResourceIdentityType `json:"type,omitempty"` // The list of user identities associated with the image template. The user identity dictionary key references will be ARM // resource ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties `json:"userAssignedIdentities,omitempty"` }
ImageTemplateIdentity - Identity for the image template.
func (ImageTemplateIdentity) MarshalJSON ¶
func (i ImageTemplateIdentity) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateIdentity.
type ImageTemplateLastRunStatus ¶
type ImageTemplateLastRunStatus struct { // End time of the last run (UTC) EndTime *time.Time `json:"endTime,omitempty"` // Verbose information about the last run state Message *string `json:"message,omitempty"` // State of the last run RunState *RunState `json:"runState,omitempty"` // Sub-state of the last run RunSubState *RunSubState `json:"runSubState,omitempty"` // Start time of the last run (UTC) StartTime *time.Time `json:"startTime,omitempty"` }
ImageTemplateLastRunStatus - Describes the latest status of running an image template
func (ImageTemplateLastRunStatus) MarshalJSON ¶
func (i ImageTemplateLastRunStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateLastRunStatus.
func (*ImageTemplateLastRunStatus) UnmarshalJSON ¶
func (i *ImageTemplateLastRunStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateLastRunStatus.
type ImageTemplateListResult ¶
type ImageTemplateListResult struct { // The continuation token. NextLink *string `json:"nextLink,omitempty"` // An array of image templates Value []*ImageTemplate `json:"value,omitempty"` }
ImageTemplateListResult - The result of List image templates operation
func (ImageTemplateListResult) MarshalJSON ¶
func (i ImageTemplateListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateListResult.
type ImageTemplateManagedImageDistributor ¶
type ImageTemplateManagedImageDistributor struct { // REQUIRED; Resource Id of the Managed Disk Image ImageID *string `json:"imageId,omitempty"` // REQUIRED; Azure location for the image, should match if image already exists Location *string `json:"location,omitempty"` // REQUIRED; The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` // REQUIRED; Type of distribution. Type *string `json:"type,omitempty"` // Tags that will be applied to the artifact once it has been created/updated by the distributor. ArtifactTags map[string]*string `json:"artifactTags,omitempty"` }
ImageTemplateManagedImageDistributor - Distribute as a Managed Disk Image.
func (*ImageTemplateManagedImageDistributor) GetImageTemplateDistributor ¶ added in v0.2.0
func (i *ImageTemplateManagedImageDistributor) GetImageTemplateDistributor() *ImageTemplateDistributor
GetImageTemplateDistributor implements the ImageTemplateDistributorClassification interface for type ImageTemplateManagedImageDistributor.
func (ImageTemplateManagedImageDistributor) MarshalJSON ¶
func (i ImageTemplateManagedImageDistributor) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateManagedImageDistributor.
func (*ImageTemplateManagedImageDistributor) UnmarshalJSON ¶
func (i *ImageTemplateManagedImageDistributor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateManagedImageDistributor.
type ImageTemplateManagedImageSource ¶
type ImageTemplateManagedImageSource struct { // REQUIRED; ARM resource id of the managed image in customer subscription ImageID *string `json:"imageId,omitempty"` // REQUIRED; Specifies the type of source image you want to start with. Type *string `json:"type,omitempty"` }
ImageTemplateManagedImageSource - Describes an image source that is a managed image in customer subscription.
func (*ImageTemplateManagedImageSource) GetImageTemplateSource ¶ added in v0.2.0
func (i *ImageTemplateManagedImageSource) GetImageTemplateSource() *ImageTemplateSource
GetImageTemplateSource implements the ImageTemplateSourceClassification interface for type ImageTemplateManagedImageSource.
func (ImageTemplateManagedImageSource) MarshalJSON ¶
func (i ImageTemplateManagedImageSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateManagedImageSource.
func (*ImageTemplateManagedImageSource) UnmarshalJSON ¶
func (i *ImageTemplateManagedImageSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateManagedImageSource.
type ImageTemplatePlatformImageSource ¶
type ImageTemplatePlatformImageSource struct { // REQUIRED; Specifies the type of source image you want to start with. Type *string `json:"type,omitempty"` // Image offer from the Azure Gallery Images [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages]. Offer *string `json:"offer,omitempty"` // Optional configuration of purchase plan for platform image. PlanInfo *PlatformImagePurchasePlan `json:"planInfo,omitempty"` // Image Publisher in Azure Gallery Images [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages]. Publisher *string `json:"publisher,omitempty"` // Image sku from the Azure Gallery Images [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages]. SKU *string `json:"sku,omitempty"` // Image version from the Azure Gallery Images [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages]. If // 'latest' is specified here, the version is evaluated when the image build takes // place, not when the template is submitted. Version *string `json:"version,omitempty"` // READ-ONLY; Image version from the Azure Gallery Images [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages]. // This readonly field differs from 'version', only if the value specified in // 'version' field is 'latest'. ExactVersion *string `json:"exactVersion,omitempty" azure:"ro"` }
ImageTemplatePlatformImageSource - Describes an image source from Azure Gallery Images [https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages].
func (*ImageTemplatePlatformImageSource) GetImageTemplateSource ¶ added in v0.2.0
func (i *ImageTemplatePlatformImageSource) GetImageTemplateSource() *ImageTemplateSource
GetImageTemplateSource implements the ImageTemplateSourceClassification interface for type ImageTemplatePlatformImageSource.
func (ImageTemplatePlatformImageSource) MarshalJSON ¶
func (i ImageTemplatePlatformImageSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplatePlatformImageSource.
func (*ImageTemplatePlatformImageSource) UnmarshalJSON ¶
func (i *ImageTemplatePlatformImageSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplatePlatformImageSource.
type ImageTemplatePowerShellCustomizer ¶
type ImageTemplatePowerShellCustomizer struct { // REQUIRED; The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Type *string `json:"type,omitempty"` // Array of PowerShell commands to execute Inline []*string `json:"inline,omitempty"` // Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true // when the runElevated field above is set to true. RunAsSystem *bool `json:"runAsSystem,omitempty"` // If specified, the PowerShell script will be run with elevated privileges RunElevated *bool `json:"runElevated,omitempty"` // SHA256 checksum of the power shell script provided in the scriptUri field above SHA256Checksum *string `json:"sha256Checksum,omitempty"` // URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc ScriptURI *string `json:"scriptUri,omitempty"` // Valid exit codes for the PowerShell script. [Default: 0] ValidExitCodes []*int32 `json:"validExitCodes,omitempty"` }
ImageTemplatePowerShellCustomizer - Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
func (*ImageTemplatePowerShellCustomizer) GetImageTemplateCustomizer ¶ added in v0.2.0
func (i *ImageTemplatePowerShellCustomizer) GetImageTemplateCustomizer() *ImageTemplateCustomizer
GetImageTemplateCustomizer implements the ImageTemplateCustomizerClassification interface for type ImageTemplatePowerShellCustomizer.
func (ImageTemplatePowerShellCustomizer) MarshalJSON ¶
func (i ImageTemplatePowerShellCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplatePowerShellCustomizer.
func (*ImageTemplatePowerShellCustomizer) UnmarshalJSON ¶
func (i *ImageTemplatePowerShellCustomizer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplatePowerShellCustomizer.
type ImageTemplateProperties ¶
type ImageTemplateProperties struct { // REQUIRED; The distribution targets where the image output needs to go to. Distribute []ImageTemplateDistributorClassification `json:"distribute,omitempty"` // REQUIRED; Specifies the properties used to describe the source image. Source ImageTemplateSourceClassification `json:"source,omitempty"` // Maximum duration to wait while building the image template. Omit or specify 0 to use the default (4 hours). BuildTimeoutInMinutes *int32 `json:"buildTimeoutInMinutes,omitempty"` // Specifies the properties used to describe the customization steps of the image, like Image source etc Customize []ImageTemplateCustomizerClassification `json:"customize,omitempty"` // Describes how virtual machine is set up to build images VMProfile *ImageTemplateVMProfile `json:"vmProfile,omitempty"` // READ-ONLY; State of 'run' that is currently executing or was last executed. LastRunStatus *ImageTemplateLastRunStatus `json:"lastRunStatus,omitempty" azure:"ro"` // READ-ONLY; Provisioning error, if any ProvisioningError *ProvisioningError `json:"provisioningError,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the resource ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
ImageTemplateProperties - Describes the properties of an image template
func (ImageTemplateProperties) MarshalJSON ¶
func (i ImageTemplateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateProperties.
func (*ImageTemplateProperties) UnmarshalJSON ¶
func (i *ImageTemplateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateProperties.
type ImageTemplateRestartCustomizer ¶
type ImageTemplateRestartCustomizer struct { // REQUIRED; The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Type *string `json:"type,omitempty"` // Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Command to check if restart succeeded [Default: ”] RestartCheckCommand *string `json:"restartCheckCommand,omitempty"` // Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"'] RestartCommand *string `json:"restartCommand,omitempty"` // Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m'] RestartTimeout *string `json:"restartTimeout,omitempty"` }
ImageTemplateRestartCustomizer - Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner
func (*ImageTemplateRestartCustomizer) GetImageTemplateCustomizer ¶ added in v0.2.0
func (i *ImageTemplateRestartCustomizer) GetImageTemplateCustomizer() *ImageTemplateCustomizer
GetImageTemplateCustomizer implements the ImageTemplateCustomizerClassification interface for type ImageTemplateRestartCustomizer.
func (ImageTemplateRestartCustomizer) MarshalJSON ¶
func (i ImageTemplateRestartCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateRestartCustomizer.
func (*ImageTemplateRestartCustomizer) UnmarshalJSON ¶
func (i *ImageTemplateRestartCustomizer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateRestartCustomizer.
type ImageTemplateSharedImageDistributor ¶
type ImageTemplateSharedImageDistributor struct { string `json:"galleryImageId,omitempty"` ReplicationRegions []*string `json:"replicationRegions,omitempty"` RunOutputName *string `json:"runOutputName,omitempty"` Type *string `json:"type,omitempty"` ArtifactTags map[string]*string `json:"artifactTags,omitempty"` ExcludeFromLatest *bool `json:"excludeFromLatest,omitempty"` StorageAccountType *SharedImageStorageAccountType `json:"storageAccountType,omitempty"` }GalleryImageID *
ImageTemplateSharedImageDistributor - Distribute via Shared Image Gallery.
func (*ImageTemplateSharedImageDistributor) GetImageTemplateDistributor ¶ added in v0.2.0
func (i *ImageTemplateSharedImageDistributor) GetImageTemplateDistributor() *ImageTemplateDistributor
GetImageTemplateDistributor implements the ImageTemplateDistributorClassification interface for type ImageTemplateSharedImageDistributor.
func (ImageTemplateSharedImageDistributor) MarshalJSON ¶
func (i ImageTemplateSharedImageDistributor) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateSharedImageDistributor.
func (*ImageTemplateSharedImageDistributor) UnmarshalJSON ¶
func (i *ImageTemplateSharedImageDistributor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateSharedImageDistributor.
type ImageTemplateSharedImageVersionSource ¶
type ImageTemplateSharedImageVersionSource struct { string `json:"imageVersionId,omitempty"` Type *string `json:"type,omitempty"` }ImageVersionID *
ImageTemplateSharedImageVersionSource - Describes an image source that is an image version in a shared image gallery.
func (*ImageTemplateSharedImageVersionSource) GetImageTemplateSource ¶ added in v0.2.0
func (i *ImageTemplateSharedImageVersionSource) GetImageTemplateSource() *ImageTemplateSource
GetImageTemplateSource implements the ImageTemplateSourceClassification interface for type ImageTemplateSharedImageVersionSource.
func (ImageTemplateSharedImageVersionSource) MarshalJSON ¶
func (i ImageTemplateSharedImageVersionSource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateSharedImageVersionSource.
func (*ImageTemplateSharedImageVersionSource) UnmarshalJSON ¶
func (i *ImageTemplateSharedImageVersionSource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateSharedImageVersionSource.
type ImageTemplateShellCustomizer ¶
type ImageTemplateShellCustomizer struct { // REQUIRED; The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Type *string `json:"type,omitempty"` // Array of shell commands to execute Inline []*string `json:"inline,omitempty"` // Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // SHA256 checksum of the shell script provided in the scriptUri field SHA256Checksum *string `json:"sha256Checksum,omitempty"` // URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc ScriptURI *string `json:"scriptUri,omitempty"` }
ImageTemplateShellCustomizer - Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
func (*ImageTemplateShellCustomizer) GetImageTemplateCustomizer ¶ added in v0.2.0
func (i *ImageTemplateShellCustomizer) GetImageTemplateCustomizer() *ImageTemplateCustomizer
GetImageTemplateCustomizer implements the ImageTemplateCustomizerClassification interface for type ImageTemplateShellCustomizer.
func (ImageTemplateShellCustomizer) MarshalJSON ¶
func (i ImageTemplateShellCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateShellCustomizer.
func (*ImageTemplateShellCustomizer) UnmarshalJSON ¶
func (i *ImageTemplateShellCustomizer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateShellCustomizer.
type ImageTemplateSource ¶
type ImageTemplateSource struct { // REQUIRED; Specifies the type of source image you want to start with. Type *string `json:"type,omitempty"` }
ImageTemplateSource - Describes a virtual machine image source for building, customizing and distributing
func (*ImageTemplateSource) GetImageTemplateSource ¶
func (i *ImageTemplateSource) GetImageTemplateSource() *ImageTemplateSource
GetImageTemplateSource implements the ImageTemplateSourceClassification interface for type ImageTemplateSource.
type ImageTemplateSourceClassification ¶
type ImageTemplateSourceClassification interface { // GetImageTemplateSource returns the ImageTemplateSource content of the underlying type. GetImageTemplateSource() *ImageTemplateSource }
ImageTemplateSourceClassification provides polymorphic access to related types. Call the interface's GetImageTemplateSource() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ImageTemplateManagedImageSource, *ImageTemplatePlatformImageSource, *ImageTemplateSharedImageVersionSource, *ImageTemplateSource
type ImageTemplateUpdateParameters ¶
type ImageTemplateUpdateParameters struct { // The identity of the image template, if configured. Identity *ImageTemplateIdentity `json:"identity,omitempty"` // The user-specified tags associated with the image template. Tags map[string]*string `json:"tags,omitempty"` }
ImageTemplateUpdateParameters - Parameters for updating an image template.
func (ImageTemplateUpdateParameters) MarshalJSON ¶
func (i ImageTemplateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateUpdateParameters.
type ImageTemplateVMProfile ¶
type ImageTemplateVMProfile struct { // Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size. OSDiskSizeGB *int32 `json:"osDiskSizeGB,omitempty"` // Optional array of resource IDs of user assigned managed identities to be configured on the build VM. This may include the // identity of the image template. UserAssignedIdentities []*string `json:"userAssignedIdentities,omitempty"` // Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default // (StandardD2dsv4). VMSize *string `json:"vmSize,omitempty"` // Optional configuration of the virtual network to use to deploy the build virtual machine in. Omit if no specific virtual // network needs to be used. VnetConfig *VirtualNetworkConfig `json:"vnetConfig,omitempty"` }
ImageTemplateVMProfile - Describes the virtual machine used to build, customize and capture images
func (ImageTemplateVMProfile) MarshalJSON ¶
func (i ImageTemplateVMProfile) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateVMProfile.
type ImageTemplateVhdDistributor ¶
type ImageTemplateVhdDistributor struct { // REQUIRED; The name to be used for the associated RunOutput. RunOutputName *string `json:"runOutputName,omitempty"` // REQUIRED; Type of distribution. Type *string `json:"type,omitempty"` // Tags that will be applied to the artifact once it has been created/updated by the distributor. ArtifactTags map[string]*string `json:"artifactTags,omitempty"` }
ImageTemplateVhdDistributor - Distribute via VHD in a storage account.
func (*ImageTemplateVhdDistributor) GetImageTemplateDistributor ¶ added in v0.2.0
func (i *ImageTemplateVhdDistributor) GetImageTemplateDistributor() *ImageTemplateDistributor
GetImageTemplateDistributor implements the ImageTemplateDistributorClassification interface for type ImageTemplateVhdDistributor.
func (ImageTemplateVhdDistributor) MarshalJSON ¶
func (i ImageTemplateVhdDistributor) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateVhdDistributor.
func (*ImageTemplateVhdDistributor) UnmarshalJSON ¶ added in v0.2.0
func (i *ImageTemplateVhdDistributor) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateVhdDistributor.
type ImageTemplateWindowsUpdateCustomizer ¶
type ImageTemplateWindowsUpdateCustomizer struct { // REQUIRED; The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Type *string `json:"type,omitempty"` // Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above // link for examples and detailed description of this field. Filters []*string `json:"filters,omitempty"` // Friendly Name to provide context on what this customization step does Name *string `json:"name,omitempty"` // Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples // and detailed description of this field. SearchCriteria *string `json:"searchCriteria,omitempty"` // Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000) UpdateLimit *int32 `json:"updateLimit,omitempty"` }
ImageTemplateWindowsUpdateCustomizer - Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update)
func (*ImageTemplateWindowsUpdateCustomizer) GetImageTemplateCustomizer ¶ added in v0.2.0
func (i *ImageTemplateWindowsUpdateCustomizer) GetImageTemplateCustomizer() *ImageTemplateCustomizer
GetImageTemplateCustomizer implements the ImageTemplateCustomizerClassification interface for type ImageTemplateWindowsUpdateCustomizer.
func (ImageTemplateWindowsUpdateCustomizer) MarshalJSON ¶
func (i ImageTemplateWindowsUpdateCustomizer) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ImageTemplateWindowsUpdateCustomizer.
func (*ImageTemplateWindowsUpdateCustomizer) UnmarshalJSON ¶
func (i *ImageTemplateWindowsUpdateCustomizer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ImageTemplateWindowsUpdateCustomizer.
type Operation ¶
type Operation struct { // The object that describes the operation. Display *OperationDisplay `json:"display,omitempty"` // The flag that indicates whether the operation applies to data plane. IsDataAction *bool `json:"isDataAction,omitempty"` // This is of the format {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // The intended executor of the operation. Origin *string `json:"origin,omitempty"` // Properties of the operation. Properties interface{} `json:"properties,omitempty"` }
Operation - A REST API operation
type OperationDisplay ¶
type OperationDisplay struct { // The friendly name of the operation Description *string `json:"description,omitempty"` // For example: read, write, delete, or listKeys/action Operation *string `json:"operation,omitempty"` // Friendly name of the resource provider. Provider *string `json:"provider,omitempty"` // The resource type on which the operation is performed. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that describes the operation.
type OperationListResult ¶
type OperationListResult struct { // The URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // The list of operations supported by the resource provider. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) List ¶
func (client *OperationsClient) List(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
List - Lists available operations for the Microsoft.VirtualMachineImages provider If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/OperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type PlatformImagePurchasePlan ¶
type PlatformImagePurchasePlan struct { // REQUIRED; Name of the purchase plan. PlanName *string `json:"planName,omitempty"` // REQUIRED; Product of the purchase plan. PlanProduct *string `json:"planProduct,omitempty"` // REQUIRED; Publisher of the purchase plan. PlanPublisher *string `json:"planPublisher,omitempty"` }
PlatformImagePurchasePlan - Purchase plan configuration for platform image.
type ProvisioningError ¶
type ProvisioningError struct { // Verbose error message about the provisioning failure Message *string `json:"message,omitempty"` // Error code of the provisioning failure ProvisioningErrorCode *ProvisioningErrorCode `json:"provisioningErrorCode,omitempty"` }
ProvisioningError - Describes the error happened when create or update an image template
type ProvisioningErrorCode ¶
type ProvisioningErrorCode string
ProvisioningErrorCode - Error code of the provisioning failure
const ( ProvisioningErrorCodeBadCustomizerType ProvisioningErrorCode = "BadCustomizerType" ProvisioningErrorCodeBadDistributeType ProvisioningErrorCode = "BadDistributeType" ProvisioningErrorCodeBadManagedImageSource ProvisioningErrorCode = "BadManagedImageSource" ProvisioningErrorCodeBadPIRSource ProvisioningErrorCode = "BadPIRSource" ProvisioningErrorCodeBadSourceType ProvisioningErrorCode = "BadSourceType" ProvisioningErrorCodeNoCustomizerScript ProvisioningErrorCode = "NoCustomizerScript" ProvisioningErrorCodeOther ProvisioningErrorCode = "Other" ProvisioningErrorCodeServerError ProvisioningErrorCode = "ServerError" ProvisioningErrorCodeUnsupportedCustomizerType ProvisioningErrorCode = "UnsupportedCustomizerType" )
func PossibleProvisioningErrorCodeValues ¶
func PossibleProvisioningErrorCodeValues() []ProvisioningErrorCode
PossibleProvisioningErrorCodeValues returns the possible values for the ProvisioningErrorCode const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Provisioning state of the resource
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateUpdating ProvisioningState = "Updating" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateDeleting ProvisioningState = "Deleting" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type Resource ¶
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType - The type of identity used for the image template. The type 'None' will remove any identities from the image template.
const ( ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ResourceIdentityTypeNone ResourceIdentityType = "None" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
type RunOutput ¶
type RunOutput struct { // REQUIRED; Resource name Name *string `json:"name,omitempty"` // The properties of the run output Properties *RunOutputProperties `json:"properties,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
RunOutput - Represents an output that was created by running an image template.
type RunOutputCollection ¶
type RunOutputCollection struct { // The continuation token. NextLink *string `json:"nextLink,omitempty"` // An array of run outputs Value []*RunOutput `json:"value,omitempty"` }
RunOutputCollection - The result of List run outputs operation
func (RunOutputCollection) MarshalJSON ¶
func (r RunOutputCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RunOutputCollection.
type RunOutputProperties ¶
type RunOutputProperties struct { // The resource id of the artifact. ArtifactID *string `json:"artifactId,omitempty"` // The location URI of the artifact. ArtifactURI *string `json:"artifactUri,omitempty"` // READ-ONLY; Provisioning state of the resource ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
RunOutputProperties - Describes the properties of a run output
type RunState ¶
type RunState string
RunState - State of the last run
func PossibleRunStateValues ¶
func PossibleRunStateValues() []RunState
PossibleRunStateValues returns the possible values for the RunState const type.
type RunSubState ¶
type RunSubState string
RunSubState - Sub-state of the last run
const ( RunSubStateQueued RunSubState = "Queued" RunSubStateBuilding RunSubState = "Building" RunSubStateCustomizing RunSubState = "Customizing" RunSubStateDistributing RunSubState = "Distributing" )
func PossibleRunSubStateValues ¶
func PossibleRunSubStateValues() []RunSubState
PossibleRunSubStateValues returns the possible values for the RunSubState const type.
type SharedImageStorageAccountType ¶
type SharedImageStorageAccountType string
SharedImageStorageAccountType - Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).
const ()
func PossibleSharedImageStorageAccountTypeValues ¶
func PossibleSharedImageStorageAccountTypeValues() []SharedImageStorageAccountType
PossibleSharedImageStorageAccountTypeValues returns the possible values for the SharedImageStorageAccountType const type.
type SubResource ¶
type SubResource struct { // REQUIRED; Resource name Name *string `json:"name,omitempty"` // READ-ONLY; Resource Id ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
SubResource - The Sub Resource model definition.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TrackedResource ¶
type TrackedResource struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (t TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrackedResource.
type VirtualMachineImageTemplatesClient ¶
type VirtualMachineImageTemplatesClient struct {
// contains filtered or unexported fields
}
VirtualMachineImageTemplatesClient contains the methods for the VirtualMachineImageTemplates group. Don't use this type directly, use NewVirtualMachineImageTemplatesClient() instead.
func NewVirtualMachineImageTemplatesClient ¶
func NewVirtualMachineImageTemplatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VirtualMachineImageTemplatesClient, error)
NewVirtualMachineImageTemplatesClient creates a new instance of VirtualMachineImageTemplatesClient with the specified values. subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription Id forms part of the URI for every service call. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*VirtualMachineImageTemplatesClient) BeginCancel ¶
func (client *VirtualMachineImageTemplatesClient) BeginCancel(ctx context.Context, resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientBeginCancelOptions) (*armruntime.Poller[VirtualMachineImageTemplatesClientCancelResponse], error)
BeginCancel - Cancel the long running image build based on the image template If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template options - VirtualMachineImageTemplatesClientBeginCancelOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginCancel method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CancelImageBuild.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCancel(ctx, "<resource-group-name>", "<image-template-name>", &armvirtualmachineimagebuilder.VirtualMachineImageTemplatesClientBeginCancelOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*VirtualMachineImageTemplatesClient) BeginCreateOrUpdate ¶
func (client *VirtualMachineImageTemplatesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, imageTemplateName string, parameters ImageTemplate, options *VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions) (*armruntime.Poller[VirtualMachineImageTemplatesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create or update a virtual machine image template If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template parameters - Parameters supplied to the CreateImageTemplate operation options - VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/CreateImageTemplateLinux.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreateOrUpdate(ctx, "<resource-group-name>", "<image-template-name>", armvirtualmachineimagebuilder.ImageTemplate{ Location: to.Ptr("<location>"), Tags: map[string]*string{ "imagetemplate_tag1": to.Ptr("IT_T1"), "imagetemplate_tag2": to.Ptr("IT_T2"), }, Identity: &armvirtualmachineimagebuilder.ImageTemplateIdentity{ Type: to.Ptr(armvirtualmachineimagebuilder.ResourceIdentityTypeUserAssigned), UserAssignedIdentities: map[string]*armvirtualmachineimagebuilder.ComponentsVrq145SchemasImagetemplateidentityPropertiesUserassignedidentitiesAdditionalproperties{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {}, }, }, Properties: &armvirtualmachineimagebuilder.ImageTemplateProperties{ Customize: []armvirtualmachineimagebuilder.ImageTemplateCustomizerClassification{ &armvirtualmachineimagebuilder.ImageTemplateShellCustomizer{ Name: to.Ptr("<name>"), Type: to.Ptr("<type>"), ScriptURI: to.Ptr("<script-uri>"), }}, Distribute: []armvirtualmachineimagebuilder.ImageTemplateDistributorClassification{ &armvirtualmachineimagebuilder.ImageTemplateManagedImageDistributor{ Type: to.Ptr("<type>"), ArtifactTags: map[string]*string{ "tagName": to.Ptr("value"), }, RunOutputName: to.Ptr("<run-output-name>"), ImageID: to.Ptr("<image-id>"), Location: to.Ptr("<location>"), }}, Source: &armvirtualmachineimagebuilder.ImageTemplateManagedImageSource{ Type: to.Ptr("<type>"), ImageID: to.Ptr("<image-id>"), }, VMProfile: &armvirtualmachineimagebuilder.ImageTemplateVMProfile{ OSDiskSizeGB: to.Ptr[int32](64), VMSize: to.Ptr("<vmsize>"), VnetConfig: &armvirtualmachineimagebuilder.VirtualNetworkConfig{ SubnetID: to.Ptr("<subnet-id>"), }, }, }, }, &armvirtualmachineimagebuilder.VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*VirtualMachineImageTemplatesClient) BeginDelete ¶
func (client *VirtualMachineImageTemplatesClient) BeginDelete(ctx context.Context, resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientBeginDeleteOptions) (*armruntime.Poller[VirtualMachineImageTemplatesClientDeleteResponse], error)
BeginDelete - Delete a virtual machine image template If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template options - VirtualMachineImageTemplatesClientBeginDeleteOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/DeleteImageTemplate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<image-template-name>", &armvirtualmachineimagebuilder.VirtualMachineImageTemplatesClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*VirtualMachineImageTemplatesClient) BeginRun ¶
func (client *VirtualMachineImageTemplatesClient) BeginRun(ctx context.Context, resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientBeginRunOptions) (*armruntime.Poller[VirtualMachineImageTemplatesClientRunResponse], error)
BeginRun - Create artifacts from a existing image template If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template options - VirtualMachineImageTemplatesClientBeginRunOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginRun method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/RunImageTemplate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginRun(ctx, "<resource-group-name>", "<image-template-name>", &armvirtualmachineimagebuilder.VirtualMachineImageTemplatesClientBeginRunOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*VirtualMachineImageTemplatesClient) BeginUpdate ¶
func (client *VirtualMachineImageTemplatesClient) BeginUpdate(ctx context.Context, resourceGroupName string, imageTemplateName string, parameters ImageTemplateUpdateParameters, options *VirtualMachineImageTemplatesClientBeginUpdateOptions) (*armruntime.Poller[VirtualMachineImageTemplatesClientUpdateResponse], error)
BeginUpdate - Update the tags for this Virtual Machine Image Template If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template parameters - Additional parameters for Image Template update. options - VirtualMachineImageTemplatesClientBeginUpdateOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/UpdateImageTemplateToRemoveIdentities.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginUpdate(ctx, "<resource-group-name>", "<image-template-name>", armvirtualmachineimagebuilder.ImageTemplateUpdateParameters{ Identity: &armvirtualmachineimagebuilder.ImageTemplateIdentity{ Type: to.Ptr(armvirtualmachineimagebuilder.ResourceIdentityTypeNone), }, }, &armvirtualmachineimagebuilder.VirtualMachineImageTemplatesClientBeginUpdateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*VirtualMachineImageTemplatesClient) Get ¶
func (client *VirtualMachineImageTemplatesClient) Get(ctx context.Context, resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientGetOptions) (VirtualMachineImageTemplatesClientGetResponse, error)
Get - Get information about a virtual machine image template If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template options - VirtualMachineImageTemplatesClientGetOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/GetImageTemplate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<image-template-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*VirtualMachineImageTemplatesClient) GetRunOutput ¶
func (client *VirtualMachineImageTemplatesClient) GetRunOutput(ctx context.Context, resourceGroupName string, imageTemplateName string, runOutputName string, options *VirtualMachineImageTemplatesClientGetRunOutputOptions) (VirtualMachineImageTemplatesClientGetRunOutputResponse, error)
GetRunOutput - Get the specified run output for the specified image template resource If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template runOutputName - The name of the run output options - VirtualMachineImageTemplatesClientGetRunOutputOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.GetRunOutput method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/GetRunOutput.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.GetRunOutput(ctx, "<resource-group-name>", "<image-template-name>", "<run-output-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*VirtualMachineImageTemplatesClient) List ¶
func (client *VirtualMachineImageTemplatesClient) List(options *VirtualMachineImageTemplatesClientListOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListResponse]
List - Gets information about the VM image templates associated with the subscription. If the operation fails it returns an *azcore.ResponseError type. options - VirtualMachineImageTemplatesClientListOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplates.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.List(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualMachineImageTemplatesClient) ListByResourceGroup ¶
func (client *VirtualMachineImageTemplatesClient) ListByResourceGroup(resourceGroupName string, options *VirtualMachineImageTemplatesClientListByResourceGroupOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListByResourceGroupResponse]
ListByResourceGroup - Gets information about the VM image templates associated with the specified resource group. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. options - VirtualMachineImageTemplatesClientListByResourceGroupOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.ListByResourceGroup method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListImageTemplatesByRg.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListByResourceGroup("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*VirtualMachineImageTemplatesClient) ListRunOutputs ¶
func (client *VirtualMachineImageTemplatesClient) ListRunOutputs(resourceGroupName string, imageTemplateName string, options *VirtualMachineImageTemplatesClientListRunOutputsOptions) *runtime.Pager[VirtualMachineImageTemplatesClientListRunOutputsResponse]
ListRunOutputs - List all run outputs for the specified Image Template resource If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - The name of the resource group. imageTemplateName - The name of the image Template options - VirtualMachineImageTemplatesClientListRunOutputsOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.ListRunOutputs method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2021-10-01/examples/ListRunOutputs.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armvirtualmachineimagebuilder.NewVirtualMachineImageTemplatesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.ListRunOutputs("<resource-group-name>", "<image-template-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type VirtualMachineImageTemplatesClientBeginCancelOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientBeginCancelOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualMachineImageTemplatesClientBeginCancelOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginCancel method.
type VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualMachineImageTemplatesClientBeginCreateOrUpdateOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginCreateOrUpdate method.
type VirtualMachineImageTemplatesClientBeginDeleteOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualMachineImageTemplatesClientBeginDeleteOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginDelete method.
type VirtualMachineImageTemplatesClientBeginRunOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientBeginRunOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualMachineImageTemplatesClientBeginRunOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginRun method.
type VirtualMachineImageTemplatesClientBeginUpdateOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VirtualMachineImageTemplatesClientBeginUpdateOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.BeginUpdate method.
type VirtualMachineImageTemplatesClientCancelResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientCancelResponse struct { }
VirtualMachineImageTemplatesClientCancelResponse contains the response from method VirtualMachineImageTemplatesClient.Cancel.
type VirtualMachineImageTemplatesClientCreateOrUpdateResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientCreateOrUpdateResponse struct {
ImageTemplate
}
VirtualMachineImageTemplatesClientCreateOrUpdateResponse contains the response from method VirtualMachineImageTemplatesClient.CreateOrUpdate.
type VirtualMachineImageTemplatesClientDeleteResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientDeleteResponse struct { }
VirtualMachineImageTemplatesClientDeleteResponse contains the response from method VirtualMachineImageTemplatesClient.Delete.
type VirtualMachineImageTemplatesClientGetOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientGetOptions struct { }
VirtualMachineImageTemplatesClientGetOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.Get method.
type VirtualMachineImageTemplatesClientGetResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientGetResponse struct {
ImageTemplate
}
VirtualMachineImageTemplatesClientGetResponse contains the response from method VirtualMachineImageTemplatesClient.Get.
type VirtualMachineImageTemplatesClientGetRunOutputOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientGetRunOutputOptions struct { }
VirtualMachineImageTemplatesClientGetRunOutputOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.GetRunOutput method.
type VirtualMachineImageTemplatesClientGetRunOutputResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientGetRunOutputResponse struct {
RunOutput
}
VirtualMachineImageTemplatesClientGetRunOutputResponse contains the response from method VirtualMachineImageTemplatesClient.GetRunOutput.
type VirtualMachineImageTemplatesClientListByResourceGroupOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientListByResourceGroupOptions struct { }
VirtualMachineImageTemplatesClientListByResourceGroupOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.ListByResourceGroup method.
type VirtualMachineImageTemplatesClientListByResourceGroupResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientListByResourceGroupResponse struct {
ImageTemplateListResult
}
VirtualMachineImageTemplatesClientListByResourceGroupResponse contains the response from method VirtualMachineImageTemplatesClient.ListByResourceGroup.
type VirtualMachineImageTemplatesClientListOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientListOptions struct { }
VirtualMachineImageTemplatesClientListOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.List method.
type VirtualMachineImageTemplatesClientListResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientListResponse struct {
ImageTemplateListResult
}
VirtualMachineImageTemplatesClientListResponse contains the response from method VirtualMachineImageTemplatesClient.List.
type VirtualMachineImageTemplatesClientListRunOutputsOptions ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientListRunOutputsOptions struct { }
VirtualMachineImageTemplatesClientListRunOutputsOptions contains the optional parameters for the VirtualMachineImageTemplatesClient.ListRunOutputs method.
type VirtualMachineImageTemplatesClientListRunOutputsResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientListRunOutputsResponse struct {
RunOutputCollection
}
VirtualMachineImageTemplatesClientListRunOutputsResponse contains the response from method VirtualMachineImageTemplatesClient.ListRunOutputs.
type VirtualMachineImageTemplatesClientRunResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientRunResponse struct { }
VirtualMachineImageTemplatesClientRunResponse contains the response from method VirtualMachineImageTemplatesClient.Run.
type VirtualMachineImageTemplatesClientUpdateResponse ¶ added in v0.2.0
type VirtualMachineImageTemplatesClientUpdateResponse struct {
ImageTemplate
}
VirtualMachineImageTemplatesClientUpdateResponse contains the response from method VirtualMachineImageTemplatesClient.Update.
type VirtualNetworkConfig ¶
type VirtualNetworkConfig struct { // Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default // (StandardD1v2 for Gen1 images and StandardD2dsv4 for Gen2 images). ProxyVMSize *string `json:"proxyVmSize,omitempty"` // Resource id of a pre-existing subnet. SubnetID *string `json:"subnetId,omitempty"` }
VirtualNetworkConfig - Virtual Network configuration.