automation

package
Version: v58.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 12 Imported by: 77

Documentation

Overview

Package automation implements the Azure ARM Automation service API version .

Automation Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Automation
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type Account

type Account struct {
	autorest.Response `json:"-"`
	// AccountProperties - Gets or sets the automation account properties.
	*AccountProperties `json:"properties,omitempty"`
	// Etag - Gets or sets the etag of the resource.
	Etag *string `json:"etag,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The Azure Region where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Account definition of the automation account type.

func (Account) MarshalJSON

func (a Account) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Account.

func (*Account) UnmarshalJSON

func (a *Account) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Account struct.

type AccountClient

type AccountClient struct {
	BaseClient
}

AccountClient is the automation Client

func NewAccountClient

func NewAccountClient(subscriptionID string) AccountClient

NewAccountClient creates an instance of the AccountClient client.

func NewAccountClientWithBaseURI

func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountClient

NewAccountClientWithBaseURI creates an instance of the AccountClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AccountClient) CreateOrUpdate

func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (result Account, err error)

CreateOrUpdate create or update automation account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. parameters - parameters supplied to the create or update automation account.

func (AccountClient) CreateOrUpdatePreparer

func (client AccountClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccountClient) CreateOrUpdateResponder

func (client AccountClient) CreateOrUpdateResponder(resp *http.Response) (result Account, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AccountClient) CreateOrUpdateSender

func (client AccountClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AccountClient) Delete

func (client AccountClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string) (result autorest.Response, err error)

Delete delete an automation account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.

func (AccountClient) DeletePreparer

func (client AccountClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AccountClient) DeleteResponder

func (client AccountClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AccountClient) DeleteSender

func (client AccountClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AccountClient) Get

func (client AccountClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result Account, err error)

Get get information about an Automation Account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.

func (AccountClient) GetPreparer

func (client AccountClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccountClient) GetResponder

func (client AccountClient) GetResponder(resp *http.Response) (result Account, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AccountClient) GetSender

func (client AccountClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AccountClient) List

func (client AccountClient) List(ctx context.Context) (result AccountListResultPage, err error)

List retrieve a list of accounts within a given subscription.

func (AccountClient) ListByResourceGroup

func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error)

ListByResourceGroup retrieve a list of accounts within a given resource group. Parameters: resourceGroupName - name of an Azure Resource group.

func (AccountClient) ListByResourceGroupComplete

func (client AccountClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (AccountClient) ListByResourceGroupPreparer

func (client AccountClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AccountClient) ListByResourceGroupResponder

func (client AccountClient) ListByResourceGroupResponder(resp *http.Response) (result AccountListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AccountClient) ListByResourceGroupSender

func (client AccountClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (AccountClient) ListComplete

func (client AccountClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AccountClient) ListPreparer

func (client AccountClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountClient) ListResponder

func (client AccountClient) ListResponder(resp *http.Response) (result AccountListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AccountClient) ListSender

func (client AccountClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AccountClient) Update

func (client AccountClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (result Account, err error)

Update update an automation account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. parameters - parameters supplied to the update automation account.

func (AccountClient) UpdatePreparer

func (client AccountClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountClient) UpdateResponder

func (client AccountClient) UpdateResponder(resp *http.Response) (result Account, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AccountClient) UpdateSender

func (client AccountClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AccountCreateOrUpdateParameters

type AccountCreateOrUpdateParameters struct {
	// AccountCreateOrUpdateProperties - Gets or sets account create or update properties.
	*AccountCreateOrUpdateProperties `json:"properties,omitempty"`
	// Name - Gets or sets name of the resource.
	Name *string `json:"name,omitempty"`
	// Location - Gets or sets the location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Gets or sets the tags attached to the resource.
	Tags map[string]*string `json:"tags"`
}

AccountCreateOrUpdateParameters the parameters supplied to the create or update automation account operation.

func (AccountCreateOrUpdateParameters) MarshalJSON

func (acoup AccountCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountCreateOrUpdateParameters.

func (*AccountCreateOrUpdateParameters) UnmarshalJSON

func (acoup *AccountCreateOrUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccountCreateOrUpdateParameters struct.

type AccountCreateOrUpdateProperties

type AccountCreateOrUpdateProperties struct {
	// Sku - Gets or sets account SKU.
	Sku *Sku `json:"sku,omitempty"`
}

AccountCreateOrUpdateProperties the parameters supplied to the create or update account properties.

type AccountListResult

type AccountListResult struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets list of accounts.
	Value *[]Account `json:"value,omitempty"`
	// NextLink - Gets or sets the next link.
	NextLink *string `json:"nextLink,omitempty"`
}

AccountListResult the response model for the list account operation.

func (AccountListResult) IsEmpty

func (alr AccountListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AccountListResultIterator

type AccountListResultIterator struct {
	// contains filtered or unexported fields
}

AccountListResultIterator provides access to a complete listing of Account values.

func NewAccountListResultIterator

func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator

Creates a new instance of the AccountListResultIterator type.

func (*AccountListResultIterator) Next deprecated

func (iter *AccountListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AccountListResultIterator) NextWithContext

func (iter *AccountListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AccountListResultIterator) NotDone

func (iter AccountListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AccountListResultIterator) Response

Response returns the raw server response from the last page request.

func (AccountListResultIterator) Value

func (iter AccountListResultIterator) Value() Account

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AccountListResultPage

type AccountListResultPage struct {
	// contains filtered or unexported fields
}

AccountListResultPage contains a page of Account values.

func NewAccountListResultPage

func NewAccountListResultPage(cur AccountListResult, getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage

Creates a new instance of the AccountListResultPage type.

func (*AccountListResultPage) Next deprecated

func (page *AccountListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AccountListResultPage) NextWithContext

func (page *AccountListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AccountListResultPage) NotDone

func (page AccountListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AccountListResultPage) Response

func (page AccountListResultPage) Response() AccountListResult

Response returns the raw server response from the last page request.

func (AccountListResultPage) Values

func (page AccountListResultPage) Values() []Account

Values returns the slice of values for the current page or nil if there are no values.

type AccountProperties

type AccountProperties struct {
	// Sku - Gets or sets the SKU of account.
	Sku *Sku `json:"sku,omitempty"`
	// LastModifiedBy - Gets or sets the last modified by.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// State - READ-ONLY; Gets status of account. Possible values include: 'Ok', 'Unavailable', 'Suspended'
	State AccountState `json:"state,omitempty"`
	// CreationTime - READ-ONLY; Gets the creation time.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// LastModifiedTime - READ-ONLY; Gets the last modified time.
	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
	// Description - Gets or sets the description.
	Description *string `json:"description,omitempty"`
}

AccountProperties definition of the account property.

func (AccountProperties) MarshalJSON

func (ap AccountProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountProperties.

type AccountState

type AccountState string

AccountState enumerates the values for account state.

const (
	// Ok ...
	Ok AccountState = "Ok"
	// Suspended ...
	Suspended AccountState = "Suspended"
	// Unavailable ...
	Unavailable AccountState = "Unavailable"
)

func PossibleAccountStateValues

func PossibleAccountStateValues() []AccountState

PossibleAccountStateValues returns an array of possible values for the AccountState const type.

type AccountUpdateParameters

type AccountUpdateParameters struct {
	// AccountUpdateProperties - Gets or sets account update properties.
	*AccountUpdateProperties `json:"properties,omitempty"`
	// Name - Gets or sets the name of the resource.
	Name *string `json:"name,omitempty"`
	// Location - Gets or sets the location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Gets or sets the tags attached to the resource.
	Tags map[string]*string `json:"tags"`
}

AccountUpdateParameters the parameters supplied to the update automation account operation.

func (AccountUpdateParameters) MarshalJSON

func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountUpdateParameters.

func (*AccountUpdateParameters) UnmarshalJSON

func (aup *AccountUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccountUpdateParameters struct.

type AccountUpdateProperties

type AccountUpdateProperties struct {
	// Sku - Gets or sets account SKU.
	Sku *Sku `json:"sku,omitempty"`
}

AccountUpdateProperties the parameters supplied to the update account properties.

type Activity

type Activity struct {
	autorest.Response `json:"-"`
	// ID - Gets or sets the id of the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Gets the name of the activity.
	Name *string `json:"name,omitempty"`
	// ActivityProperties - Gets or sets the properties of the activity.
	*ActivityProperties `json:"properties,omitempty"`
}

Activity definition of the activity.

func (Activity) MarshalJSON

func (a Activity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Activity.

func (*Activity) UnmarshalJSON

func (a *Activity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Activity struct.

type ActivityClient

type ActivityClient struct {
	BaseClient
}

ActivityClient is the automation Client

func NewActivityClient

func NewActivityClient(subscriptionID string) ActivityClient

NewActivityClient creates an instance of the ActivityClient client.

func NewActivityClientWithBaseURI

func NewActivityClientWithBaseURI(baseURI string, subscriptionID string) ActivityClient

NewActivityClientWithBaseURI creates an instance of the ActivityClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ActivityClient) Get

func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string) (result Activity, err error)

Get retrieve the activity in the module identified by module name and activity name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. moduleName - the name of module. activityName - the name of activity.

func (ActivityClient) GetPreparer

func (client ActivityClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ActivityClient) GetResponder

func (client ActivityClient) GetResponder(resp *http.Response) (result Activity, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ActivityClient) GetSender

func (client ActivityClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ActivityClient) ListByModule

func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result ActivityListResultPage, err error)

ListByModule retrieve a list of activities in the module identified by module name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. moduleName - the name of module.

func (ActivityClient) ListByModuleComplete

func (client ActivityClient) ListByModuleComplete(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result ActivityListResultIterator, err error)

ListByModuleComplete enumerates all values, automatically crossing page boundaries as required.

func (ActivityClient) ListByModulePreparer

func (client ActivityClient) ListByModulePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (*http.Request, error)

ListByModulePreparer prepares the ListByModule request.

func (ActivityClient) ListByModuleResponder

func (client ActivityClient) ListByModuleResponder(resp *http.Response) (result ActivityListResult, err error)

ListByModuleResponder handles the response to the ListByModule request. The method always closes the http.Response Body.

func (ActivityClient) ListByModuleSender

func (client ActivityClient) ListByModuleSender(req *http.Request) (*http.Response, error)

ListByModuleSender sends the ListByModule request. The method will close the http.Response Body if it receives an error.

type ActivityListResult

type ActivityListResult struct {
	autorest.Response `json:"-"`
	// Value - Gets or sets a list of activities.
	Value *[]Activity `json:"value,omitempty"`
	// NextLink - Gets or sets the next link.
	NextLink *string `json:"nextLink,omitempty"`
}

ActivityListResult the response model for the list activity operation.

func (ActivityListResult) IsEmpty

func (alr ActivityListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ActivityListResultIterator

type ActivityListResultIterator struct {
	// contains filtered or unexported fields
}

ActivityListResultIterator provides access to a complete listing of Activity values.

func NewActivityListResultIterator

func NewActivityListResultIterator(page ActivityListResultPage) ActivityListResultIterator

Creates a new instance of the ActivityListResultIterator type.

func (*ActivityListResultIterator) Next deprecated

func (iter *ActivityListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ActivityListResultIterator) NextWithContext

func (iter *ActivityListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ActivityListResultIterator) NotDone

func (iter ActivityListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ActivityListResultIterator) Response

Response returns the raw server response from the last page request.

func (ActivityListResultIterator) Value

func (iter ActivityListResultIterator) Value() Activity

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ActivityListResultPage

type ActivityListResultPage struct {
	// contains filtered or unexported fields
}

ActivityListResultPage contains a page of Activity values.

func NewActivityListResultPage

func NewActivityListResultPage(cur ActivityListResult, getNextPage func(context.Context, ActivityListResult) (ActivityListResult, error)) ActivityListResultPage

Creates a new instance of the ActivityListResultPage type.

func (*ActivityListResultPage) Next deprecated

func (page *ActivityListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ActivityListResultPage) NextWithContext

func (page *ActivityListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ActivityListResultPage) NotDone

func (page ActivityListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ActivityListResultPage) Response

Response returns the raw server response from the last page request.

func (ActivityListResultPage) Values

func (page ActivityListResultPage) Values() []Activity

Values returns the slice of values for the current page or nil if there are no values.

type ActivityOutputType

type ActivityOutputType struct {
	// Name - Gets or sets the name of the activity output type.
	Name *string `json:"name,omitempty"`
	// Type - Gets or sets the type of the activity output type.
	Type *string `json:"type,omitempty"`
}

ActivityOutputType definition of the activity output type.

type ActivityParameter

type ActivityParameter struct {
	// Name - Gets or sets the name of the activity parameter.
	Name *string `json:"name,omitempty"`
	// Type - Gets or sets the type of the activity parameter.
	Type *string `json:"type,omitempty"`
	// IsMandatory - Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional.
	IsMandatory *bool `json:"isMandatory,omitempty"`
	// IsDynamic - Gets or sets a Boolean value that indicates true if the parameter is dynamic.
	IsDynamic *bool `json:"isDynamic,omitempty"`
	// Position - Gets or sets the position of the activity parameter.
	Position *int64 `json:"position,omitempty"`
	// ValueFromPipeline - Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object.
	ValueFromPipeline *bool `json:"valueFromPipeline,omitempty"`
	// ValueFromPipelineByPropertyName - Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name.
	ValueFromPipelineByPropertyName *bool `json:"valueFromPipelineByPropertyName,omitempty"`
	// ValueFromRemainingArguments - Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values.
	ValueFromRemainingArguments *bool `json:"valueFromRemainingArguments,omitempty"`
	// Description - Gets or sets the description of the activity parameter.
	Description *string `json:"description,omitempty"`
	// ValidationSet - Gets or sets the validation set of activity parameter.
	ValidationSet *[]ActivityParameterValidationSet `json:"validationSet,omitempty"`
}

ActivityParameter definition of the activity parameter.

type ActivityParameterSet

type ActivityParameterSet struct {
	// Name - Gets or sets the name of the activity parameter set.
	Name *string `json:"name,omitempty"`
	// Parameters - Gets or sets the parameters of the activity parameter set.
	Parameters *[]ActivityParameter `json:"parameters,omitempty"`
}

ActivityParameterSet definition of the activity parameter set.

type ActivityParameterValidationSet

type ActivityParameterValidationSet struct {
	// MemberValue - Gets or sets the name of the activity parameter validation set member.
	MemberValue *string `json:"memberValue,omitempty"`
}

ActivityParameterValidationSet definition of the activity parameter validation set.

type ActivityProperties

type ActivityProperties struct {
	// Definition - Gets or sets the user name of the activity.
	Definition *string `json:"definition,omitempty"`
	// ParameterSets - Gets or sets the parameter sets of the activity.
	ParameterSets *[]ActivityParameterSet `json:"parameterSets,omitempty"`
	// OutputTypes - Gets or sets the output types of the activity.
	OutputTypes *[]ActivityOutputType `json:"outputTypes,omitempty"`
	// CreationTime - Gets or sets the creation time.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// LastModifiedTime - Gets or sets the last modified time.
	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
	// Description - Gets or sets the description.
	Description *string `json:"description,omitempty"`
}

ActivityProperties properties of the activity.

type AdvancedSchedule

type AdvancedSchedule struct {
	// WeekDays - Days of the week that the job should execute on.
	WeekDays *[]string `json:"weekDays,omitempty"`
	// MonthDays - Days of the month that the job should execute on. Must be between 1 and 31.
	MonthDays *[]int32 `json:"monthDays,omitempty"`
	// MonthlyOccurrences - Occurrences of days within a month.
	MonthlyOccurrences *[]AdvancedScheduleMonthlyOccurrence `json:"monthlyOccurrences,omitempty"`
}

AdvancedSchedule the properties of the create Advanced Schedule.

type AdvancedScheduleMonthlyOccurrence

type AdvancedScheduleMonthlyOccurrence struct {
	// Occurrence - Occurrence of the week within the month. Must be between 1 and 5
	Occurrence *int32 `json:"occurrence,omitempty"`
	// Day - Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'
	Day ScheduleDay `json:"day,omitempty"`
}

AdvancedScheduleMonthlyOccurrence the properties of the create advanced schedule monthly occurrence.

type AgentRegistration

type AgentRegistration struct {
	autorest.Response `json:"-"`
	// DscMetaConfiguration - Gets or sets the dsc meta configuration.
	DscMetaConfiguration *string `json:"dscMetaConfiguration,omitempty"`
	// Endpoint - Gets or sets the dsc server endpoint.
	Endpoint *string `json:"endpoint,omitempty"`
	// Keys - Gets or sets the agent registration keys.
	Keys *AgentRegistrationKeys `json:"keys,omitempty"`
	// ID - Gets or sets the id.
	ID *string `json:"id,omitempty"`
}

AgentRegistration definition of the agent registration information type.

type AgentRegistrationInformationClient

type AgentRegistrationInformationClient struct {
	BaseClient
}

AgentRegistrationInformationClient is the automation Client

func NewAgentRegistrationInformationClient

func NewAgentRegistrationInformationClient(subscriptionID string) AgentRegistrationInformationClient

NewAgentRegistrationInformationClient creates an instance of the AgentRegistrationInformationClient client.

func NewAgentRegistrationInformationClientWithBaseURI

func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscriptionID string) AgentRegistrationInformationClient

NewAgentRegistrationInformationClientWithBaseURI creates an instance of the AgentRegistrationInformationClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AgentRegistrationInformationClient) Get

func (client AgentRegistrationInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result AgentRegistration, err error)

Get retrieve the automation agent registration information. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.

func (AgentRegistrationInformationClient) GetPreparer

func (client AgentRegistrationInformationClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AgentRegistrationInformationClient) GetResponder

func (client AgentRegistrationInformationClient) GetResponder(resp *http.Response) (result AgentRegistration, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AgentRegistrationInformationClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AgentRegistrationInformationClient) RegenerateKey

func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (result AgentRegistration, err error)

RegenerateKey regenerate a primary or secondary agent registration key Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. parameters - the name of the agent registration key to be regenerated

func (AgentRegistrationInformationClient) RegenerateKeyPreparer

func (client AgentRegistrationInformationClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (AgentRegistrationInformationClient) RegenerateKeyResponder

func (client AgentRegistrationInformationClient) RegenerateKeyResponder(resp *http.Response) (result AgentRegistration, err error)

RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.

func (AgentRegistrationInformationClient) RegenerateKeySender

func (client AgentRegistrationInformationClient) RegenerateKeySender(req *http.Request) (*http.Response, error)

RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.

type AgentRegistrationKeyName

type AgentRegistrationKeyName string

AgentRegistrationKeyName enumerates the values for agent registration key name.

const (
	// Primary ...
	Primary AgentRegistrationKeyName = "primary"
	// Secondary ...
	Secondary AgentRegistrationKeyName = "secondary"
)

func PossibleAgentRegistrationKeyNameValues

func PossibleAgentRegistrationKeyNameValues() []AgentRegistrationKeyName

PossibleAgentRegistrationKeyNameValues returns an array of possible values for the AgentRegistrationKeyName const type.

type AgentRegistrationKeys

type AgentRegistrationKeys struct {
	// Primary - Gets or sets the primary key.
	Primary *string `json:"primary,omitempty"`
	// Secondary - Gets or sets the secondary key.
	Secondary *string `json:"secondary,omitempty"`
}

AgentRegistrationKeys definition of the agent registration keys.

type AgentRegistrationRegenerateKeyParameter

type AgentRegistrationRegenerateKeyParameter struct {
	// KeyName - Gets or sets the agent registration key name - primary or secondary. Possible values include: 'Primary', 'Secondary'
	KeyName AgentRegistrationKeyName `json:"keyName,omitempty"`
	// Name - Gets or sets the name of the resource.
	Name *string `json:"name,omitempty"`
	// Location - Gets or sets the location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - Gets or sets the tags attached to the resource.
	Tags map[string]*string `json:"tags"`
}

AgentRegistrationRegenerateKeyParameter the parameters supplied to the regenerate keys operation.

func (AgentRegistrationRegenerateKeyParameter) MarshalJSON

func (arrkp AgentRegistrationRegenerateKeyParameter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgentRegistrationRegenerateKeyParameter.

type AzureQueryProperties

type AzureQueryProperties struct {
	// Scope - List of Subscription or Resource Group ARM Ids.
	Scope *[]string `json:"scope,omitempty"`
	// Locations - List of locations to scope the query to.
	Locations *[]string `json:"locations,omitempty"`
	// TagSettings - Tag settings for the VM.
	TagSettings *TagSettingsProperties `json:"tagSettings,omitempty"`
}

AzureQueryProperties azure query for the update configuration.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Automation.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Certificate

type Certificate struct {
	autorest.Response `json:"-"`
	// CertificateProperties - Gets or sets the properties of the certificate.
	*CertificateProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Certificate definition of the certificate.

func (Certificate) MarshalJSON

func (c Certificate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Certificate.

func (*Certificate) UnmarshalJSON

func (c *Certificate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Certificate struct.

type CertificateClient

type CertificateClient struct {
	BaseClient
}

CertificateClient is the automation Client

func NewCertificateClient

func NewCertificateClient(subscriptionID string) CertificateClient

NewCertificateClient creates an instance of the CertificateClient client.

func NewCertificateClientWithBaseURI

func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) CertificateClient

NewCertificateClientWithBaseURI creates an instance of the CertificateClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CertificateClient) CreateOrUpdate

func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateCreateOrUpdateParameters) (result Certificate, err error)

CreateOrUpdate create a certificate. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. certificateName - the parameters supplied to the create or update certificate operation. parameters - the parameters supplied to the create or update certificate operation.

func (CertificateClient) CreateOrUpdatePreparer

func (client CertificateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (CertificateClient) CreateOrUpdateResponder

func (client CertificateClient) CreateOrUpdateResponder(resp *http.Response) (result Certificate, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (CertificateClient) CreateOrUpdateSender

func (client CertificateClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (CertificateClient) Delete

func (client CertificateClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (result autorest.Response, err error)

Delete delete the certificate. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. certificateName - the name of certificate.

func (CertificateClient) DeletePreparer

func (client CertificateClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CertificateClient) DeleteResponder

func (client CertificateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (CertificateClient) DeleteSender

func (client CertificateClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (CertificateClient) Get

func (client CertificateClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (result Certificate, err error)

Get retrieve the certificate identified by certificate name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. certificateName - the name of certificate.

func (CertificateClient) GetPreparer

func (client CertificateClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CertificateClient) GetResponder

func (client CertificateClient) GetResponder(resp *http.Response) (result Certificate, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CertificateClient) GetSender

func (client CertificateClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CertificateClient) ListByAutomationAccount

func (client CertificateClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result CertificateListResultPage, err error)

ListByAutomationAccount retrieve a list of certificates. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.

func (CertificateClient) ListByAutomationAccountComplete

func (client CertificateClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result CertificateListResultIterator, err error)

ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.

func (CertificateClient) ListByAutomationAccountPreparer

func (client CertificateClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)

ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.

func (CertificateClient) ListByAutomationAccountResponder

func (client CertificateClient) ListByAutomationAccountResponder(resp *http.Response) (result CertificateListResult, err error)

ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.

func (CertificateClient) ListByAutomationAccountSender

func (client CertificateClient) ListByAutomationAccountSender(req *http.Request) (*http.Response, error)

ListByAutomationAccountSender sends the ListByAutomationAccount request. The method will close the http.Response Body if it receives an error.

func (CertificateClient) Update

func (client CertificateClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateUpdateParameters) (result Certificate, err error)

Update update a certificate. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. certificateName - the parameters supplied to the update certificate operation. parameters - the parameters supplied to the update certificate operation.

func (CertificateClient) UpdatePreparer

func (client CertificateClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CertificateClient) UpdateResponder

func (client CertificateClient) UpdateResponder(resp *http.Response) (result Certificate, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (CertificateClient) UpdateSender

func (client CertificateClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type CertificateCreateOrUpdateParameters

type CertificateCreateOrUpdateParameters struct {
	// Name - Gets or sets the name of the certificate.
	Name *string `json:"name,omitempty"`
	// CertificateCreateOrUpdateProperties - Gets or sets the properties of the certificate.
	*CertificateCreateOrUpdateProperties `json:"properties,omitempty"`
}

CertificateCreateOrUpdateParameters the parameters supplied to the create or update or replace certificate operation.

func (CertificateCreateOrUpdateParameters) MarshalJSON