softwareupdateconfigurationmachinerun

package
v0.20230407.1003117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun Documentation

The softwareupdateconfigurationmachinerun SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2022-08-08).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun"

Client Initialization

client := softwareupdateconfigurationmachinerun.NewSoftwareUpdateConfigurationMachineRunClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SoftwareUpdateConfigurationMachineRunClient.SoftwareUpdateConfigurationMachineRunsGetById

ctx := context.TODO()
id := softwareupdateconfigurationmachinerun.NewSoftwareUpdateConfigurationMachineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "softwareUpdateConfigurationMachineRunIdValue")

read, err := client.SoftwareUpdateConfigurationMachineRunsGetById(ctx, id, softwareupdateconfigurationmachinerun.DefaultSoftwareUpdateConfigurationMachineRunsGetByIdOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SoftwareUpdateConfigurationMachineRunClient.SoftwareUpdateConfigurationMachineRunsList

ctx := context.TODO()
id := softwareupdateconfigurationmachinerun.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue")

read, err := client.SoftwareUpdateConfigurationMachineRunsList(ctx, id, softwareupdateconfigurationmachinerun.DefaultSoftwareUpdateConfigurationMachineRunsListOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAutomationAccountID

func ValidateAutomationAccountID(input interface{}, key string) (warnings []string, errors []error)

ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID

func ValidateSoftwareUpdateConfigurationMachineRunID

func ValidateSoftwareUpdateConfigurationMachineRunID(input interface{}, key string) (warnings []string, errors []error)

ValidateSoftwareUpdateConfigurationMachineRunID checks that 'input' can be parsed as a Software Update Configuration Machine Run ID

Types

type AutomationAccountId

type AutomationAccountId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
}

AutomationAccountId is a struct representing the Resource ID for a Automation Account

func NewAutomationAccountID

func NewAutomationAccountID(subscriptionId string, resourceGroupName string, automationAccountName string) AutomationAccountId

NewAutomationAccountID returns a new AutomationAccountId struct

func ParseAutomationAccountID

func ParseAutomationAccountID(input string) (*AutomationAccountId, error)

ParseAutomationAccountID parses 'input' into a AutomationAccountId

func ParseAutomationAccountIDInsensitively

func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, error)

ParseAutomationAccountIDInsensitively parses 'input' case-insensitively into a AutomationAccountId note: this method should only be used for API response data and not user input

func (AutomationAccountId) ID

func (id AutomationAccountId) ID() string

ID returns the formatted Automation Account ID

func (AutomationAccountId) Segments

func (id AutomationAccountId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Automation Account ID

func (AutomationAccountId) String

func (id AutomationAccountId) String() string

String returns a human-readable description of this Automation Account ID

type ErrorResponse

type ErrorResponse struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type JobNavigation

type JobNavigation struct {
	Id *string `json:"id,omitempty"`
}

type SoftwareUpdateConfigurationMachineRun

type SoftwareUpdateConfigurationMachineRun struct {
	Id         *string                                  `json:"id,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *UpdateConfigurationMachineRunProperties `json:"properties,omitempty"`
}

type SoftwareUpdateConfigurationMachineRunClient

type SoftwareUpdateConfigurationMachineRunClient struct {
	Client *resourcemanager.Client
}

func NewSoftwareUpdateConfigurationMachineRunClientWithBaseURI

func NewSoftwareUpdateConfigurationMachineRunClientWithBaseURI(api environments.Api) (*SoftwareUpdateConfigurationMachineRunClient, error)

func (SoftwareUpdateConfigurationMachineRunClient) SoftwareUpdateConfigurationMachineRunsGetById

SoftwareUpdateConfigurationMachineRunsGetById ...

func (SoftwareUpdateConfigurationMachineRunClient) SoftwareUpdateConfigurationMachineRunsList

SoftwareUpdateConfigurationMachineRunsList ...

type SoftwareUpdateConfigurationMachineRunId

type SoftwareUpdateConfigurationMachineRunId struct {
	SubscriptionId                          string
	ResourceGroupName                       string
	AutomationAccountName                   string
	SoftwareUpdateConfigurationMachineRunId string
}

SoftwareUpdateConfigurationMachineRunId is a struct representing the Resource ID for a Software Update Configuration Machine Run

func NewSoftwareUpdateConfigurationMachineRunID

func NewSoftwareUpdateConfigurationMachineRunID(subscriptionId string, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationMachineRunId string) SoftwareUpdateConfigurationMachineRunId

NewSoftwareUpdateConfigurationMachineRunID returns a new SoftwareUpdateConfigurationMachineRunId struct

func ParseSoftwareUpdateConfigurationMachineRunID

func ParseSoftwareUpdateConfigurationMachineRunID(input string) (*SoftwareUpdateConfigurationMachineRunId, error)

ParseSoftwareUpdateConfigurationMachineRunID parses 'input' into a SoftwareUpdateConfigurationMachineRunId

func ParseSoftwareUpdateConfigurationMachineRunIDInsensitively

func ParseSoftwareUpdateConfigurationMachineRunIDInsensitively(input string) (*SoftwareUpdateConfigurationMachineRunId, error)

ParseSoftwareUpdateConfigurationMachineRunIDInsensitively parses 'input' case-insensitively into a SoftwareUpdateConfigurationMachineRunId note: this method should only be used for API response data and not user input

func (SoftwareUpdateConfigurationMachineRunId) ID

ID returns the formatted Software Update Configuration Machine Run ID

func (SoftwareUpdateConfigurationMachineRunId) Segments

Segments returns a slice of Resource ID Segments which comprise this Software Update Configuration Machine Run ID

func (SoftwareUpdateConfigurationMachineRunId) String

String returns a human-readable description of this Software Update Configuration Machine Run ID

type SoftwareUpdateConfigurationMachineRunListResult

type SoftwareUpdateConfigurationMachineRunListResult struct {
	NextLink *string                                  `json:"nextLink,omitempty"`
	Value    *[]SoftwareUpdateConfigurationMachineRun `json:"value,omitempty"`
}

type SoftwareUpdateConfigurationMachineRunsGetByIdOperationOptions

type SoftwareUpdateConfigurationMachineRunsGetByIdOperationOptions struct {
	ClientRequestId *string
}

func (SoftwareUpdateConfigurationMachineRunsGetByIdOperationOptions) ToHeaders added in v0.20230216.1112329

func (SoftwareUpdateConfigurationMachineRunsGetByIdOperationOptions) ToOData added in v0.20230216.1112329

func (SoftwareUpdateConfigurationMachineRunsGetByIdOperationOptions) ToQuery added in v0.20230216.1112329

type SoftwareUpdateConfigurationMachineRunsGetByIdOperationResponse

type SoftwareUpdateConfigurationMachineRunsGetByIdOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SoftwareUpdateConfigurationMachineRun
}

type SoftwareUpdateConfigurationMachineRunsListOperationOptions

type SoftwareUpdateConfigurationMachineRunsListOperationOptions struct {
	ClientRequestId *string
	Filter          *string
	Skip            *string
	Top             *string
}

func (SoftwareUpdateConfigurationMachineRunsListOperationOptions) ToHeaders added in v0.20230216.1112329

func (SoftwareUpdateConfigurationMachineRunsListOperationOptions) ToOData added in v0.20230216.1112329

func (SoftwareUpdateConfigurationMachineRunsListOperationOptions) ToQuery added in v0.20230216.1112329

type SoftwareUpdateConfigurationMachineRunsListOperationResponse

type SoftwareUpdateConfigurationMachineRunsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SoftwareUpdateConfigurationMachineRunListResult
}

type UpdateConfigurationMachineRunProperties

type UpdateConfigurationMachineRunProperties struct {
	ConfiguredDuration          *string                        `json:"configuredDuration,omitempty"`
	CorrelationId               *string                        `json:"correlationId,omitempty"`
	CreatedBy                   *string                        `json:"createdBy,omitempty"`
	CreationTime                *string                        `json:"creationTime,omitempty"`
	EndTime                     *string                        `json:"endTime,omitempty"`
	Error                       *ErrorResponse                 `json:"error,omitempty"`
	Job                         *JobNavigation                 `json:"job,omitempty"`
	LastModifiedBy              *string                        `json:"lastModifiedBy,omitempty"`
	LastModifiedTime            *string                        `json:"lastModifiedTime,omitempty"`
	OsType                      *string                        `json:"osType,omitempty"`
	SoftwareUpdateConfiguration *UpdateConfigurationNavigation `json:"softwareUpdateConfiguration,omitempty"`
	SourceComputerId            *string                        `json:"sourceComputerId,omitempty"`
	StartTime                   *string                        `json:"startTime,omitempty"`
	Status                      *string                        `json:"status,omitempty"`
	TargetComputer              *string                        `json:"targetComputer,omitempty"`
	TargetComputerType          *string                        `json:"targetComputerType,omitempty"`
}

func (*UpdateConfigurationMachineRunProperties) GetCreationTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*UpdateConfigurationMachineRunProperties) GetEndTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) GetEndTimeAsTime() (*time.Time, error)

func (*UpdateConfigurationMachineRunProperties) GetLastModifiedTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*UpdateConfigurationMachineRunProperties) GetStartTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) GetStartTimeAsTime() (*time.Time, error)

func (*UpdateConfigurationMachineRunProperties) SetCreationTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) SetCreationTimeAsTime(input time.Time)

func (*UpdateConfigurationMachineRunProperties) SetEndTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) SetEndTimeAsTime(input time.Time)

func (*UpdateConfigurationMachineRunProperties) SetLastModifiedTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) SetLastModifiedTimeAsTime(input time.Time)

func (*UpdateConfigurationMachineRunProperties) SetStartTimeAsTime

func (o *UpdateConfigurationMachineRunProperties) SetStartTimeAsTime(input time.Time)

type UpdateConfigurationNavigation

type UpdateConfigurationNavigation struct {
	Name *string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL