const ( // DefaultBaseURI is the default URI used for the service Automation DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Account definition of the automation account type.
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"` Identity *Identity `json:"identity,omitempty"` // SystemData - Resource system metadata. SystemData *SystemData `json:"systemData,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"` }
func (a Account) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Account.
func (a *Account) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Account struct.
AccountClient is the automation Client
type AccountClient struct { BaseClient }
func NewAccountClient(subscriptionID string) AccountClient
NewAccountClient creates an instance of the AccountClient client.
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 (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 (client AccountClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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 (client AccountClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client AccountClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client AccountClient) List(ctx context.Context) (result AccountListResultPage, err error)
List retrieve a list of accounts within a given subscription.
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 (client AccountClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AccountListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client AccountClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client AccountClient) ListComplete(ctx context.Context) (result AccountListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client AccountClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (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 (client AccountClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
AccountCreateOrUpdateParameters the parameters supplied to the create or update automation account operation.
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"` // Identity - Sets the identity property for automation account Identity *Identity `json:"identity,omitempty"` // Tags - Gets or sets the tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (acoup AccountCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountCreateOrUpdateParameters.
func (acoup *AccountCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AccountCreateOrUpdateParameters struct.
AccountCreateOrUpdateProperties the parameters supplied to the create or update account properties.
type AccountCreateOrUpdateProperties struct { // Sku - Gets or sets account SKU. Sku *Sku `json:"sku,omitempty"` // Encryption - Set the encryption properties for the automation account Encryption *EncryptionProperties `json:"encryption,omitempty"` // PublicNetworkAccess - Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet PublicNetworkAccess *bool `json:"publicNetworkAccess,omitempty"` // DisableLocalAuth - Indicates whether requests using non-AAD authentication are blocked DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` }
AccountListResult the response model for the list account operation.
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"` }
func (alr AccountListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
AccountListResultIterator provides access to a complete listing of Account values.
type AccountListResultIterator struct {
// contains filtered or unexported fields
}
func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator
Creates a new instance of the AccountListResultIterator type.
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 (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 (iter AccountListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AccountListResultIterator) Response() AccountListResult
Response returns the raw server response from the last page request.
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.
AccountListResultPage contains a page of Account values.
type AccountListResultPage struct {
// contains filtered or unexported fields
}
func NewAccountListResultPage(cur AccountListResult, getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage
Creates a new instance of the AccountListResultPage type.
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 (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 (page AccountListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AccountListResultPage) Response() AccountListResult
Response returns the raw server response from the last page request.
func (page AccountListResultPage) Values() []Account
Values returns the slice of values for the current page or nil if there are no values.
AccountProperties definition of the account property.
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: 'AccountStateOk', 'AccountStateUnavailable', 'AccountStateSuspended' 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"` // Encryption - Encryption properties for the automation account Encryption *EncryptionProperties `json:"encryption,omitempty"` // PrivateEndpointConnections - List of Automation operations supported by the Automation resource provider. PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` // PublicNetworkAccess - Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet PublicNetworkAccess *bool `json:"publicNetworkAccess,omitempty"` // DisableLocalAuth - Indicates whether requests using non-AAD authentication are blocked DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` // AutomationHybridServiceURL - URL of automation hybrid service which is used for hybrid worker on-boarding. AutomationHybridServiceURL *string `json:"automationHybridServiceUrl,omitempty"` }
func (ap AccountProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountProperties.
AccountState enumerates the values for account state.
type AccountState string
const ( // AccountStateOk ... AccountStateOk AccountState = "Ok" // AccountStateSuspended ... AccountStateSuspended AccountState = "Suspended" // AccountStateUnavailable ... AccountState = "Unavailable" )
func PossibleAccountStateValues() []AccountState
PossibleAccountStateValues returns an array of possible values for the AccountState const type.
AccountUpdateParameters the parameters supplied to the update automation account operation.
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"` // Identity - Sets the identity property for automation account Identity *Identity `json:"identity,omitempty"` // Tags - Gets or sets the tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (aup AccountUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountUpdateParameters.
func (aup *AccountUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AccountUpdateParameters struct.
AccountUpdateProperties the parameters supplied to the update account properties.
type AccountUpdateProperties struct { // Sku - Gets or sets account SKU. Sku *Sku `json:"sku,omitempty"` // Encryption - Set the encryption properties for the automation account Encryption *EncryptionProperties `json:"encryption,omitempty"` // PublicNetworkAccess - Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet PublicNetworkAccess *bool `json:"publicNetworkAccess,omitempty"` // DisableLocalAuth - Indicates whether requests using non-AAD authentication are blocked DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` }
Activity definition of the 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"` }
func (a Activity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Activity.
func (a *Activity) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Activity struct.
ActivityClient is the automation Client
type ActivityClient struct { BaseClient }
func NewActivityClient(subscriptionID string) ActivityClient
NewActivityClient creates an instance of the ActivityClient client.
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 (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 (client ActivityClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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 (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 (client ActivityClient) ListByModulePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (*http.Request, error)
ListByModulePreparer prepares the ListByModule request.
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 (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.
ActivityListResult the response model for the list activity operation.
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"` }
func (alr ActivityListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ActivityListResultIterator provides access to a complete listing of Activity values.
type ActivityListResultIterator struct {
// contains filtered or unexported fields
}
func NewActivityListResultIterator(page ActivityListResultPage) ActivityListResultIterator
Creates a new instance of the ActivityListResultIterator type.
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 (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 (iter ActivityListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ActivityListResultIterator) Response() ActivityListResult
Response returns the raw server response from the last page request.
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.
ActivityListResultPage contains a page of Activity values.
type ActivityListResultPage struct {
// contains filtered or unexported fields
}
func NewActivityListResultPage(cur ActivityListResult, getNextPage func(context.Context, ActivityListResult) (ActivityListResult, error)) ActivityListResultPage
Creates a new instance of the ActivityListResultPage type.
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 (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 (page ActivityListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ActivityListResultPage) Response() ActivityListResult
Response returns the raw server response from the last page request.
func (page ActivityListResultPage) Values() []Activity
Values returns the slice of values for the current page or nil if there are no values.
ActivityOutputType definition of the activity output type.
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"` }
ActivityParameter definition of the activity parameter.
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"` }
ActivityParameterSet definition of the activity parameter set.
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"` }
ActivityParameterValidationSet definition of the activity parameter validation set.
type ActivityParameterValidationSet struct { // MemberValue - Gets or sets the name of the activity parameter validation set member. MemberValue *string `json:"memberValue,omitempty"` }
ActivityProperties properties of the activity.
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"` }
AdvancedSchedule the properties of the create Advanced Schedule.
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"` }
AdvancedScheduleMonthlyOccurrence the properties of the create advanced schedule monthly occurrence.
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: 'ScheduleDayMonday', 'ScheduleDayTuesday', 'ScheduleDayWednesday', 'ScheduleDayThursday', 'ScheduleDayFriday', 'ScheduleDaySaturday', 'ScheduleDaySunday' Day ScheduleDay `json:"day,omitempty"` }
AgentRegistration definition of the agent registration information type.
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"` }
AgentRegistrationInformationClient is the automation Client
type AgentRegistrationInformationClient struct { BaseClient }
func NewAgentRegistrationInformationClient(subscriptionID string) AgentRegistrationInformationClient
NewAgentRegistrationInformationClient creates an instance of the AgentRegistrationInformationClient client.
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 (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 (client AgentRegistrationInformationClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client AgentRegistrationInformationClient) 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 (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 (client AgentRegistrationInformationClient) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
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 (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.
AgentRegistrationKeyName enumerates the values for agent registration key name.
type AgentRegistrationKeyName string
const ( // AgentRegistrationKeyNamePrimary ... AgentRegistrationKeyNamePrimary AgentRegistrationKeyName = "primary" // AgentRegistrationKeyNameSecondary ... AgentRegistrationKeyNameSecondary AgentRegistrationKeyName = "secondary" )
func PossibleAgentRegistrationKeyNameValues() []AgentRegistrationKeyName
PossibleAgentRegistrationKeyNameValues returns an array of possible values for the AgentRegistrationKeyName const type.
AgentRegistrationKeys definition of the agent registration keys.
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"` }
AgentRegistrationRegenerateKeyParameter the parameters supplied to the regenerate keys operation.
type AgentRegistrationRegenerateKeyParameter struct { // KeyName - Gets or sets the agent registration key name - primary or secondary. Possible values include: 'AgentRegistrationKeyNamePrimary', 'AgentRegistrationKeyNameSecondary' KeyName AgentRegistrationKeyName `json:"keyName,omitempty"` }
AzureQueryProperties azure query for the update configuration.
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"` }
BaseClient is the base client for Automation.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
func (client BaseClient) ConvertGraphRunbookContent(ctx context.Context, resourceGroupName string, automationAccountName string, parameters GraphicalRunbookContent) (result GraphicalRunbookContent, err error)
ConvertGraphRunbookContent post operation to serialize or deserialize GraphRunbookContent Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. parameters - input data describing the graphical runbook.
func (client BaseClient) ConvertGraphRunbookContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, parameters GraphicalRunbookContent) (*http.Request, error)
ConvertGraphRunbookContentPreparer prepares the ConvertGraphRunbookContent request.
func (client BaseClient) ConvertGraphRunbookContentResponder(resp *http.Response) (result GraphicalRunbookContent, err error)
ConvertGraphRunbookContentResponder handles the response to the ConvertGraphRunbookContent request. The method always closes the http.Response Body.
func (client BaseClient) ConvertGraphRunbookContentSender(req *http.Request) (*http.Response, error)
ConvertGraphRunbookContentSender sends the ConvertGraphRunbookContent request. The method will close the http.Response Body if it receives an error.
Certificate definition of the 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"` }
func (c Certificate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Certificate.
func (c *Certificate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Certificate struct.
CertificateClient is the automation Client
type CertificateClient struct { BaseClient }
func NewCertificateClient(subscriptionID string) CertificateClient
NewCertificateClient creates an instance of the CertificateClient client.
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 (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 (client CertificateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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 (client CertificateClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client CertificateClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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 (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 (client CertificateClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
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 (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 (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 (client CertificateClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
CertificateCreateOrUpdateParameters the parameters supplied to the create or update or replace certificate operation.
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"` }
func (ccoup CertificateCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CertificateCreateOrUpdateParameters.
func (ccoup *CertificateCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CertificateCreateOrUpdateParameters struct.
CertificateCreateOrUpdateProperties the properties of the create certificate operation.
type CertificateCreateOrUpdateProperties struct { // Base64Value - Gets or sets the base64 encoded value of the certificate. Base64Value *string `json:"base64Value,omitempty"` // Description - Gets or sets the description of the certificate. Description *string `json:"description,omitempty"` // Thumbprint - Gets or sets the thumbprint of the certificate. Thumbprint *string `json:"thumbprint,omitempty"` // IsExportable - Gets or sets the is exportable flag of the certificate. IsExportable *bool `json:"isExportable,omitempty"` }
CertificateListResult the response model for the list certificate operation.
type CertificateListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of certificates. Value *[]Certificate `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (clr CertificateListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
CertificateListResultIterator provides access to a complete listing of Certificate values.
type CertificateListResultIterator struct {
// contains filtered or unexported fields
}
func NewCertificateListResultIterator(page CertificateListResultPage) CertificateListResultIterator
Creates a new instance of the CertificateListResultIterator type.
func (iter *CertificateListResultIterator) 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 (iter *CertificateListResultIterator) 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 (iter CertificateListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter CertificateListResultIterator) Response() CertificateListResult
Response returns the raw server response from the last page request.
func (iter CertificateListResultIterator) Value() Certificate
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
CertificateListResultPage contains a page of Certificate values.
type CertificateListResultPage struct {
// contains filtered or unexported fields
}
func NewCertificateListResultPage(cur CertificateListResult, getNextPage func(context.Context, CertificateListResult) (CertificateListResult, error)) CertificateListResultPage
Creates a new instance of the CertificateListResultPage type.
func (page *CertificateListResultPage) 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 (page *CertificateListResultPage) 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 (page CertificateListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page CertificateListResultPage) Response() CertificateListResult
Response returns the raw server response from the last page request.
func (page CertificateListResultPage) Values() []Certificate
Values returns the slice of values for the current page or nil if there are no values.
CertificateProperties properties of the certificate.
type CertificateProperties struct { // Thumbprint - READ-ONLY; Gets the thumbprint of the certificate. Thumbprint *string `json:"thumbprint,omitempty"` // ExpiryTime - READ-ONLY; Gets the expiry time of the certificate. ExpiryTime *date.Time `json:"expiryTime,omitempty"` // IsExportable - READ-ONLY; Gets the is exportable flag of the certificate. IsExportable *bool `json:"isExportable,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"` }
func (cp CertificateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CertificateProperties.
CertificateUpdateParameters the parameters supplied to the update certificate operation.
type CertificateUpdateParameters struct { // Name - Gets or sets the name of the certificate. Name *string `json:"name,omitempty"` // CertificateUpdateProperties - Gets or sets the properties of the certificate. *CertificateUpdateProperties `json:"properties,omitempty"` }
func (cup CertificateUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CertificateUpdateParameters.
func (cup *CertificateUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CertificateUpdateParameters struct.
CertificateUpdateProperties the properties of the update certificate operation
type CertificateUpdateProperties struct { // Description - Gets or sets the description of the certificate. Description *string `json:"description,omitempty"` }
Connection definition of the connection.
type Connection struct { autorest.Response `json:"-"` // ConnectionProperties - Gets or sets the properties of the connection. *ConnectionProperties `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"` }
func (c Connection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Connection.
func (c *Connection) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Connection struct.
ConnectionClient is the automation Client
type ConnectionClient struct { BaseClient }
func NewConnectionClient(subscriptionID string) ConnectionClient
NewConnectionClient creates an instance of the ConnectionClient client.
func NewConnectionClientWithBaseURI(baseURI string, subscriptionID string) ConnectionClient
NewConnectionClientWithBaseURI creates an instance of the ConnectionClient 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 (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionCreateOrUpdateParameters) (result Connection, err error)
CreateOrUpdate create or update a connection. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionName - the parameters supplied to the create or update connection operation. parameters - the parameters supplied to the create or update connection operation.
func (client ConnectionClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ConnectionClient) CreateOrUpdateResponder(resp *http.Response) (result Connection, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ConnectionClient) 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 (client ConnectionClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (result autorest.Response, err error)
Delete delete the connection. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionName - the name of connection.
func (client ConnectionClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ConnectionClient) 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 (client ConnectionClient) 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 (client ConnectionClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (result Connection, err error)
Get retrieve the connection identified by connection name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionName - the name of connection.
func (client ConnectionClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ConnectionClient) GetResponder(resp *http.Response) (result Connection, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ConnectionClient) 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 (client ConnectionClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionListResultPage, err error)
ListByAutomationAccount retrieve a list of connections. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client ConnectionClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client ConnectionClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client ConnectionClient) ListByAutomationAccountResponder(resp *http.Response) (result ConnectionListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client ConnectionClient) 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 (client ConnectionClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionUpdateParameters) (result Connection, err error)
Update update a connection. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionName - the parameters supplied to the update a connection operation. parameters - the parameters supplied to the update a connection operation.
func (client ConnectionClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ConnectionClient) UpdateResponder(resp *http.Response) (result Connection, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ConnectionClient) 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.
ConnectionCreateOrUpdateParameters the parameters supplied to the create or update connection operation.
type ConnectionCreateOrUpdateParameters struct { // Name - Gets or sets the name of the connection. Name *string `json:"name,omitempty"` // ConnectionCreateOrUpdateProperties - Gets or sets the properties of the connection. *ConnectionCreateOrUpdateProperties `json:"properties,omitempty"` }
func (ccoup ConnectionCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionCreateOrUpdateParameters.
func (ccoup *ConnectionCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConnectionCreateOrUpdateParameters struct.
ConnectionCreateOrUpdateProperties the properties of the create connection properties
type ConnectionCreateOrUpdateProperties struct { // Description - Gets or sets the description of the connection. Description *string `json:"description,omitempty"` // ConnectionType - Gets or sets the connectionType of the connection. ConnectionType *ConnectionTypeAssociationProperty `json:"connectionType,omitempty"` // FieldDefinitionValues - Gets or sets the field definition properties of the connection. FieldDefinitionValues map[string]*string `json:"fieldDefinitionValues"` }
func (ccoup ConnectionCreateOrUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionCreateOrUpdateProperties.
ConnectionListResult the response model for the list connection operation.
type ConnectionListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of connection. Value *[]Connection `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (clr ConnectionListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ConnectionListResultIterator provides access to a complete listing of Connection values.
type ConnectionListResultIterator struct {
// contains filtered or unexported fields
}
func NewConnectionListResultIterator(page ConnectionListResultPage) ConnectionListResultIterator
Creates a new instance of the ConnectionListResultIterator type.
func (iter *ConnectionListResultIterator) 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 (iter *ConnectionListResultIterator) 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 (iter ConnectionListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ConnectionListResultIterator) Response() ConnectionListResult
Response returns the raw server response from the last page request.
func (iter ConnectionListResultIterator) Value() Connection
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ConnectionListResultPage contains a page of Connection values.
type ConnectionListResultPage struct {
// contains filtered or unexported fields
}
func NewConnectionListResultPage(cur ConnectionListResult, getNextPage func(context.Context, ConnectionListResult) (ConnectionListResult, error)) ConnectionListResultPage
Creates a new instance of the ConnectionListResultPage type.
func (page *ConnectionListResultPage) 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 (page *ConnectionListResultPage) 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 (page ConnectionListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ConnectionListResultPage) Response() ConnectionListResult
Response returns the raw server response from the last page request.
func (page ConnectionListResultPage) Values() []Connection
Values returns the slice of values for the current page or nil if there are no values.
ConnectionProperties definition of the connection properties.
type ConnectionProperties struct { // ConnectionType - Gets or sets the connectionType of the connection. ConnectionType *ConnectionTypeAssociationProperty `json:"connectionType,omitempty"` // FieldDefinitionValues - READ-ONLY; Gets the field definition values of the connection. FieldDefinitionValues map[string]*string `json:"fieldDefinitionValues"` // 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"` }
func (cp ConnectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionProperties.
ConnectionType definition of the connection type.
type ConnectionType struct { autorest.Response `json:"-"` // ID - READ-ONLY; Gets the id of the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Gets the name of the connection type. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // ConnectionTypeProperties - Gets or sets the properties of the connection type. *ConnectionTypeProperties `json:"properties,omitempty"` }
func (ct ConnectionType) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionType.
func (ct *ConnectionType) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConnectionType struct.
ConnectionTypeAssociationProperty the connection type property associated with the entity.
type ConnectionTypeAssociationProperty struct { // Name - Gets or sets the name of the connection type. Name *string `json:"name,omitempty"` }
ConnectionTypeClient is the automation Client
type ConnectionTypeClient struct { BaseClient }
func NewConnectionTypeClient(subscriptionID string) ConnectionTypeClient
NewConnectionTypeClient creates an instance of the ConnectionTypeClient client.
func NewConnectionTypeClientWithBaseURI(baseURI string, subscriptionID string) ConnectionTypeClient
NewConnectionTypeClientWithBaseURI creates an instance of the ConnectionTypeClient 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 (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, parameters ConnectionTypeCreateOrUpdateParameters) (result ConnectionType, err error)
CreateOrUpdate create a connection type. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionTypeName - the parameters supplied to the create or update connection type operation. parameters - the parameters supplied to the create or update connection type operation.
func (client ConnectionTypeClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, parameters ConnectionTypeCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ConnectionTypeClient) CreateOrUpdateResponder(resp *http.Response) (result ConnectionType, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ConnectionTypeClient) 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 (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (result autorest.Response, err error)
Delete delete the connection type. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionTypeName - the name of connection type.
func (client ConnectionTypeClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ConnectionTypeClient) 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 (client ConnectionTypeClient) 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 (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (result ConnectionType, err error)
Get retrieve the connection type identified by connection type name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. connectionTypeName - the name of connection type.
func (client ConnectionTypeClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ConnectionTypeClient) GetResponder(resp *http.Response) (result ConnectionType, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ConnectionTypeClient) 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 (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionTypeListResultPage, err error)
ListByAutomationAccount retrieve a list of connection types. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client ConnectionTypeClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionTypeListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client ConnectionTypeClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client ConnectionTypeClient) ListByAutomationAccountResponder(resp *http.Response) (result ConnectionTypeListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client ConnectionTypeClient) 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.
ConnectionTypeCreateOrUpdateParameters the parameters supplied to the create or update connection type operation.
type ConnectionTypeCreateOrUpdateParameters struct { // Name - Gets or sets the name of the connection type. Name *string `json:"name,omitempty"` // ConnectionTypeCreateOrUpdateProperties - Gets or sets the value of the connection type. *ConnectionTypeCreateOrUpdateProperties `json:"properties,omitempty"` }
func (ctcoup ConnectionTypeCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionTypeCreateOrUpdateParameters.
func (ctcoup *ConnectionTypeCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConnectionTypeCreateOrUpdateParameters struct.
ConnectionTypeCreateOrUpdateProperties the properties of the create connection type.
type ConnectionTypeCreateOrUpdateProperties struct { // IsGlobal - Gets or sets a Boolean value to indicate if the connection type is global. IsGlobal *bool `json:"isGlobal,omitempty"` // FieldDefinitions - Gets or sets the field definitions of the connection type. FieldDefinitions map[string]*FieldDefinition `json:"fieldDefinitions"` }
func (ctcoup ConnectionTypeCreateOrUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionTypeCreateOrUpdateProperties.
ConnectionTypeListResult the response model for the list connection type operation.
type ConnectionTypeListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of connection types. Value *[]ConnectionType `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (ctlr ConnectionTypeListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ConnectionTypeListResultIterator provides access to a complete listing of ConnectionType values.
type ConnectionTypeListResultIterator struct {
// contains filtered or unexported fields
}
func NewConnectionTypeListResultIterator(page ConnectionTypeListResultPage) ConnectionTypeListResultIterator
Creates a new instance of the ConnectionTypeListResultIterator type.
func (iter *ConnectionTypeListResultIterator) 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 (iter *ConnectionTypeListResultIterator) 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 (iter ConnectionTypeListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ConnectionTypeListResultIterator) Response() ConnectionTypeListResult
Response returns the raw server response from the last page request.
func (iter ConnectionTypeListResultIterator) Value() ConnectionType
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ConnectionTypeListResultPage contains a page of ConnectionType values.
type ConnectionTypeListResultPage struct {
// contains filtered or unexported fields
}
func NewConnectionTypeListResultPage(cur ConnectionTypeListResult, getNextPage func(context.Context, ConnectionTypeListResult) (ConnectionTypeListResult, error)) ConnectionTypeListResultPage
Creates a new instance of the ConnectionTypeListResultPage type.
func (page *ConnectionTypeListResultPage) 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 (page *ConnectionTypeListResultPage) 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 (page ConnectionTypeListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ConnectionTypeListResultPage) Response() ConnectionTypeListResult
Response returns the raw server response from the last page request.
func (page ConnectionTypeListResultPage) Values() []ConnectionType
Values returns the slice of values for the current page or nil if there are no values.
ConnectionTypeProperties properties of the connection type.
type ConnectionTypeProperties struct { // IsGlobal - Gets or sets a Boolean value to indicate if the connection type is global. IsGlobal *bool `json:"isGlobal,omitempty"` // FieldDefinitions - READ-ONLY; Gets the field definitions of the connection type. FieldDefinitions map[string]*FieldDefinition `json:"fieldDefinitions"` // CreationTime - READ-ONLY; Gets 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"` }
func (ctp ConnectionTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionTypeProperties.
ConnectionUpdateParameters the parameters supplied to the update connection operation.
type ConnectionUpdateParameters struct { // Name - Gets or sets the name of the connection. Name *string `json:"name,omitempty"` // ConnectionUpdateProperties - Gets or sets the properties of the connection. *ConnectionUpdateProperties `json:"properties,omitempty"` }
func (cup ConnectionUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionUpdateParameters.
func (cup *ConnectionUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConnectionUpdateParameters struct.
ConnectionUpdateProperties the properties of the update connection operation.
type ConnectionUpdateProperties struct { // Description - Gets or sets the description of the connection. Description *string `json:"description,omitempty"` // FieldDefinitionValues - Gets or sets the field definition values of the connection. FieldDefinitionValues map[string]*string `json:"fieldDefinitionValues"` }
func (cup ConnectionUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectionUpdateProperties.
ContentHash definition of the runbook property type.
type ContentHash struct { // Algorithm - Gets or sets the content hash algorithm used to hash the content. Algorithm *string `json:"algorithm,omitempty"` // Value - Gets or sets expected hash value of the content. Value *string `json:"value,omitempty"` }
ContentLink definition of the content link.
type ContentLink struct { // URI - Gets or sets the uri of the runbook content. URI *string `json:"uri,omitempty"` // ContentHash - Gets or sets the hash. ContentHash *ContentHash `json:"contentHash,omitempty"` // Version - Gets or sets the version of the content. Version *string `json:"version,omitempty"` }
ContentSource definition of the content source.
type ContentSource struct { // Hash - Gets or sets the hash. Hash *ContentHash `json:"hash,omitempty"` // Type - Gets or sets the content source type. Possible values include: 'ContentSourceTypeEmbeddedContent', 'ContentSourceTypeURI' Type ContentSourceType `json:"type,omitempty"` // Value - Gets or sets the value of the content. This is based on the content source type. Value *string `json:"value,omitempty"` // Version - Gets or sets the version of the content. Version *string `json:"version,omitempty"` }
ContentSourceType enumerates the values for content source type.
type ContentSourceType string
const ( // ContentSourceTypeEmbeddedContent ... ContentSourceTypeEmbeddedContent ContentSourceType = "embeddedContent" // ContentSourceTypeURI ... ContentSourceTypeURI ContentSourceType = "uri" )
func PossibleContentSourceTypeValues() []ContentSourceType
PossibleContentSourceTypeValues returns an array of possible values for the ContentSourceType const type.
CountType enumerates the values for count type.
type CountType string
const ( // CountTypeNodeconfiguration ... CountTypeNodeconfiguration CountType = "nodeconfiguration" // CountTypeStatus ... CountTypeStatus CountType = "status" )
func PossibleCountTypeValues() []CountType
PossibleCountTypeValues returns an array of possible values for the CountType const type.
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
Credential definition of the credential.
type Credential struct { autorest.Response `json:"-"` // CredentialProperties - Gets or sets the properties of the credential. *CredentialProperties `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"` }
func (c Credential) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Credential.
func (c *Credential) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Credential struct.
CredentialClient is the automation Client
type CredentialClient struct { BaseClient }
func NewCredentialClient(subscriptionID string) CredentialClient
NewCredentialClient creates an instance of the CredentialClient client.
func NewCredentialClientWithBaseURI(baseURI string, subscriptionID string) CredentialClient
NewCredentialClientWithBaseURI creates an instance of the CredentialClient 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 (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialCreateOrUpdateParameters) (result Credential, err error)
CreateOrUpdate create a credential. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. credentialName - the parameters supplied to the create or update credential operation. parameters - the parameters supplied to the create or update credential operation.
func (client CredentialClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client CredentialClient) CreateOrUpdateResponder(resp *http.Response) (result Credential, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client CredentialClient) 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 (client CredentialClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (result autorest.Response, err error)
Delete delete the credential. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. credentialName - the name of credential.
func (client CredentialClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client CredentialClient) 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 (client CredentialClient) 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 (client CredentialClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (result Credential, err error)
Get retrieve the credential identified by credential name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. credentialName - the name of credential.
func (client CredentialClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client CredentialClient) GetResponder(resp *http.Response) (result Credential, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client CredentialClient) 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 (client CredentialClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result CredentialListResultPage, err error)
ListByAutomationAccount retrieve a list of credentials. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client CredentialClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result CredentialListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client CredentialClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client CredentialClient) ListByAutomationAccountResponder(resp *http.Response) (result CredentialListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client CredentialClient) 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 (client CredentialClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialUpdateParameters) (result Credential, err error)
Update update a credential. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. credentialName - the parameters supplied to the Update credential operation. parameters - the parameters supplied to the Update credential operation.
func (client CredentialClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client CredentialClient) UpdateResponder(resp *http.Response) (result Credential, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client CredentialClient) 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.
CredentialCreateOrUpdateParameters the parameters supplied to the create or update credential operation.
type CredentialCreateOrUpdateParameters struct { // Name - Gets or sets the name of the credential. Name *string `json:"name,omitempty"` // CredentialCreateOrUpdateProperties - Gets or sets the properties of the credential. *CredentialCreateOrUpdateProperties `json:"properties,omitempty"` }
func (ccoup CredentialCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CredentialCreateOrUpdateParameters.
func (ccoup *CredentialCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CredentialCreateOrUpdateParameters struct.
CredentialCreateOrUpdateProperties the properties of the create credential operation.
type CredentialCreateOrUpdateProperties struct { // UserName - Gets or sets the user name of the credential. UserName *string `json:"userName,omitempty"` // Password - Gets or sets the password of the credential. Password *string `json:"password,omitempty"` // Description - Gets or sets the description of the credential. Description *string `json:"description,omitempty"` }
CredentialListResult the response model for the list credential operation.
type CredentialListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of credentials. Value *[]Credential `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (clr CredentialListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
CredentialListResultIterator provides access to a complete listing of Credential values.
type CredentialListResultIterator struct {
// contains filtered or unexported fields
}
func NewCredentialListResultIterator(page CredentialListResultPage) CredentialListResultIterator
Creates a new instance of the CredentialListResultIterator type.
func (iter *CredentialListResultIterator) 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 (iter *CredentialListResultIterator) 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 (iter CredentialListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter CredentialListResultIterator) Response() CredentialListResult
Response returns the raw server response from the last page request.
func (iter CredentialListResultIterator) Value() Credential
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
CredentialListResultPage contains a page of Credential values.
type CredentialListResultPage struct {
// contains filtered or unexported fields
}
func NewCredentialListResultPage(cur CredentialListResult, getNextPage func(context.Context, CredentialListResult) (CredentialListResult, error)) CredentialListResultPage
Creates a new instance of the CredentialListResultPage type.
func (page *CredentialListResultPage) 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 (page *CredentialListResultPage) 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 (page CredentialListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page CredentialListResultPage) Response() CredentialListResult
Response returns the raw server response from the last page request.
func (page CredentialListResultPage) Values() []Credential
Values returns the slice of values for the current page or nil if there are no values.
CredentialProperties definition of the credential properties
type CredentialProperties struct { // UserName - READ-ONLY; Gets the user name of the credential. UserName *string `json:"userName,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"` }
func (cp CredentialProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CredentialProperties.
CredentialUpdateParameters the parameters supplied to the Update credential operation.
type CredentialUpdateParameters struct { // Name - Gets or sets the name of the credential. Name *string `json:"name,omitempty"` // CredentialUpdateProperties - Gets or sets the properties of the variable. *CredentialUpdateProperties `json:"properties,omitempty"` }
func (cup CredentialUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CredentialUpdateParameters.
func (cup *CredentialUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CredentialUpdateParameters struct.
CredentialUpdateProperties the properties of the Update credential
type CredentialUpdateProperties struct { // UserName - Gets or sets the user name of the credential. UserName *string `json:"userName,omitempty"` // Password - Gets or sets the password of the credential. Password *string `json:"password,omitempty"` // Description - Gets or sets the description of the credential. Description *string `json:"description,omitempty"` }
DscCompilationJob definition of the Dsc Compilation job.
type DscCompilationJob struct { autorest.Response `json:"-"` // DscCompilationJobProperties - Gets or sets the properties of the Dsc Compilation job. *DscCompilationJobProperties `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"` }
func (dcj DscCompilationJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscCompilationJob.
func (dcj *DscCompilationJob) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscCompilationJob struct.
DscCompilationJobClient is the automation Client
type DscCompilationJobClient struct { BaseClient }
func NewDscCompilationJobClient(subscriptionID string) DscCompilationJobClient
NewDscCompilationJobClient creates an instance of the DscCompilationJobClient client.
func NewDscCompilationJobClientWithBaseURI(baseURI string, subscriptionID string) DscCompilationJobClient
NewDscCompilationJobClientWithBaseURI creates an instance of the DscCompilationJobClient 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 (client DscCompilationJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobName string, parameters DscCompilationJobCreateParameters) (result DscCompilationJobCreateFuture, err error)
Create creates the Dsc compilation job of the configuration. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. compilationJobName - the DSC configuration Id. parameters - the parameters supplied to the create compilation job operation.
func (client DscCompilationJobClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobName string, parameters DscCompilationJobCreateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client DscCompilationJobClient) CreateResponder(resp *http.Response) (result DscCompilationJob, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client DscCompilationJobClient) CreateSender(req *http.Request) (future DscCompilationJobCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobName string) (result DscCompilationJob, err error)
Get retrieve the Dsc configuration compilation job identified by job id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. compilationJobName - the DSC configuration Id.
func (client DscCompilationJobClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client DscCompilationJobClient) GetResponder(resp *http.Response) (result DscCompilationJob, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client DscCompilationJobClient) 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 (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID, jobStreamID string) (result JobStream, err error)
GetStream retrieve the job stream identified by job stream id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobID - the job id. jobStreamID - the job stream id.
func (client DscCompilationJobClient) GetStreamPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID, jobStreamID string) (*http.Request, error)
GetStreamPreparer prepares the GetStream request.
func (client DscCompilationJobClient) GetStreamResponder(resp *http.Response) (result JobStream, err error)
GetStreamResponder handles the response to the GetStream request. The method always closes the http.Response Body.
func (client DscCompilationJobClient) GetStreamSender(req *http.Request) (*http.Response, error)
GetStreamSender sends the GetStream request. The method will close the http.Response Body if it receives an error.
func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscCompilationJobListResultPage, err error)
ListByAutomationAccount retrieve a list of dsc compilation jobs. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client DscCompilationJobClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscCompilationJobListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client DscCompilationJobClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client DscCompilationJobClient) ListByAutomationAccountResponder(resp *http.Response) (result DscCompilationJobListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client DscCompilationJobClient) 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.
DscCompilationJobCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DscCompilationJobCreateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DscCompilationJobClient) (DscCompilationJob, error) }
func (future *DscCompilationJobCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DscCompilationJobCreateParameters the parameters supplied to the create compilation job operation.
type DscCompilationJobCreateParameters struct { // DscCompilationJobCreateProperties - Gets or sets the list of compilation job properties. *DscCompilationJobCreateProperties `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"` }
func (dcjcp DscCompilationJobCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscCompilationJobCreateParameters.
func (dcjcp *DscCompilationJobCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscCompilationJobCreateParameters struct.
DscCompilationJobCreateProperties the parameters supplied to the create compilation job operation.
type DscCompilationJobCreateProperties struct { // Configuration - Gets or sets the configuration. Configuration *DscConfigurationAssociationProperty `json:"configuration,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` // IncrementNodeConfigurationBuild - If a new build version of NodeConfiguration is required. IncrementNodeConfigurationBuild *bool `json:"incrementNodeConfigurationBuild,omitempty"` }
func (dcjcp DscCompilationJobCreateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscCompilationJobCreateProperties.
DscCompilationJobListResult the response model for the list job operation.
type DscCompilationJobListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of Dsc Compilation jobs. Value *[]DscCompilationJob `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (dcjlr DscCompilationJobListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DscCompilationJobListResultIterator provides access to a complete listing of DscCompilationJob values.
type DscCompilationJobListResultIterator struct {
// contains filtered or unexported fields
}
func NewDscCompilationJobListResultIterator(page DscCompilationJobListResultPage) DscCompilationJobListResultIterator
Creates a new instance of the DscCompilationJobListResultIterator type.
func (iter *DscCompilationJobListResultIterator) 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 (iter *DscCompilationJobListResultIterator) 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 (iter DscCompilationJobListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DscCompilationJobListResultIterator) Response() DscCompilationJobListResult
Response returns the raw server response from the last page request.
func (iter DscCompilationJobListResultIterator) Value() DscCompilationJob
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DscCompilationJobListResultPage contains a page of DscCompilationJob values.
type DscCompilationJobListResultPage struct {
// contains filtered or unexported fields
}
func NewDscCompilationJobListResultPage(cur DscCompilationJobListResult, getNextPage func(context.Context, DscCompilationJobListResult) (DscCompilationJobListResult, error)) DscCompilationJobListResultPage
Creates a new instance of the DscCompilationJobListResultPage type.
func (page *DscCompilationJobListResultPage) 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 (page *DscCompilationJobListResultPage) 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 (page DscCompilationJobListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DscCompilationJobListResultPage) Response() DscCompilationJobListResult
Response returns the raw server response from the last page request.
func (page DscCompilationJobListResultPage) Values() []DscCompilationJob
Values returns the slice of values for the current page or nil if there are no values.
DscCompilationJobProperties definition of Dsc Compilation job properties.
type DscCompilationJobProperties struct { // Configuration - Gets or sets the configuration. Configuration *DscConfigurationAssociationProperty `json:"configuration,omitempty"` // StartedBy - READ-ONLY; Gets the compilation job started by. StartedBy *string `json:"startedBy,omitempty"` // JobID - READ-ONLY; Gets the id of the job. JobID *uuid.UUID `json:"jobId,omitempty"` // CreationTime - READ-ONLY; Gets the creation time of the job. CreationTime *date.Time `json:"creationTime,omitempty"` // ProvisioningState - The current provisioning state of the job. Possible values include: 'JobProvisioningStateFailed', 'JobProvisioningStateSucceeded', 'JobProvisioningStateSuspended', 'JobProvisioningStateProcessing' ProvisioningState JobProvisioningState `json:"provisioningState,omitempty"` // RunOn - Gets or sets the runOn which specifies the group name where the job is to be executed. RunOn *string `json:"runOn,omitempty"` // Status - Gets or sets the status of the job. Possible values include: 'JobStatusNew', 'JobStatusActivating', 'JobStatusRunning', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusStopped', 'JobStatusBlocked', 'JobStatusSuspended', 'JobStatusDisconnected', 'JobStatusSuspending', 'JobStatusStopping', 'JobStatusResuming', 'JobStatusRemoving' Status JobStatus `json:"status,omitempty"` // StatusDetails - Gets or sets the status details of the job. StatusDetails *string `json:"statusDetails,omitempty"` // StartTime - READ-ONLY; Gets the start time of the job. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; Gets the end time of the job. EndTime *date.Time `json:"endTime,omitempty"` // Exception - READ-ONLY; Gets the exception of the job. Exception *string `json:"exception,omitempty"` // LastModifiedTime - READ-ONLY; Gets the last modified time of the job. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastStatusModifiedTime - READ-ONLY; Gets the last status modified time of the job. LastStatusModifiedTime *date.Time `json:"lastStatusModifiedTime,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` }
func (dcjp DscCompilationJobProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscCompilationJobProperties.
DscCompilationJobStreamClient is the automation Client
type DscCompilationJobStreamClient struct { BaseClient }
func NewDscCompilationJobStreamClient(subscriptionID string) DscCompilationJobStreamClient
NewDscCompilationJobStreamClient creates an instance of the DscCompilationJobStreamClient client.
func NewDscCompilationJobStreamClientWithBaseURI(baseURI string, subscriptionID string) DscCompilationJobStreamClient
NewDscCompilationJobStreamClientWithBaseURI creates an instance of the DscCompilationJobStreamClient 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 (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result JobStreamListResult, err error)
ListByJob retrieve all the job streams for the compilation Job. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobID - the job id.
func (client DscCompilationJobStreamClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (*http.Request, error)
ListByJobPreparer prepares the ListByJob request.
func (client DscCompilationJobStreamClient) ListByJobResponder(resp *http.Response) (result JobStreamListResult, err error)
ListByJobResponder handles the response to the ListByJob request. The method always closes the http.Response Body.
func (client DscCompilationJobStreamClient) ListByJobSender(req *http.Request) (*http.Response, error)
ListByJobSender sends the ListByJob request. The method will close the http.Response Body if it receives an error.
DscConfiguration definition of the configuration type.
type DscConfiguration struct { autorest.Response `json:"-"` // DscConfigurationProperties - Gets or sets the configuration properties. *DscConfigurationProperties `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"` }
func (dc DscConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscConfiguration.
func (dc *DscConfiguration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscConfiguration struct.
DscConfigurationAssociationProperty the Dsc configuration property associated with the entity.
type DscConfigurationAssociationProperty struct { // Name - Gets or sets the name of the Dsc configuration. Name *string `json:"name,omitempty"` }
DscConfigurationClient is the automation Client
type DscConfigurationClient struct { BaseClient }
func NewDscConfigurationClient(subscriptionID string) DscConfigurationClient
NewDscConfigurationClient creates an instance of the DscConfigurationClient client.
func NewDscConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscConfigurationClient
NewDscConfigurationClientWithBaseURI creates an instance of the DscConfigurationClient 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 (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters DscConfigurationCreateOrUpdateParameters) (result DscConfiguration, err error)
CreateOrUpdate create the configuration identified by configuration name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. configurationName - the create or update parameters for configuration. parameters - the create or update parameters for configuration.
func (client DscConfigurationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters DscConfigurationCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client DscConfigurationClient) CreateOrUpdateResponder(resp *http.Response) (result DscConfiguration, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client DscConfigurationClient) 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 (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result autorest.Response, err error)
Delete delete the dsc configuration identified by configuration name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. configurationName - the configuration name.
func (client DscConfigurationClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client DscConfigurationClient) 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 (client DscConfigurationClient) 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 (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result DscConfiguration, err error)
Get retrieve the configuration identified by configuration name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. configurationName - the configuration name.
func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result String, err error)
GetContent retrieve the configuration script identified by configuration name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. configurationName - the configuration name.
func (client DscConfigurationClient) GetContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (*http.Request, error)
GetContentPreparer prepares the GetContent request.
func (client DscConfigurationClient) GetContentResponder(resp *http.Response) (result String, err error)
GetContentResponder handles the response to the GetContent request. The method always closes the http.Response Body.
func (client DscConfigurationClient) GetContentSender(req *http.Request) (*http.Response, error)
GetContentSender sends the GetContent request. The method will close the http.Response Body if it receives an error.
func (client DscConfigurationClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client DscConfigurationClient) GetResponder(resp *http.Response) (result DscConfiguration, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client DscConfigurationClient) 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 (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscConfigurationListResultPage, err error)
ListByAutomationAccount retrieve a list of configurations. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation. skip - the number of rows to skip. top - the number of rows to take. inlinecount - return total rows.
func (client DscConfigurationClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscConfigurationListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client DscConfigurationClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client DscConfigurationClient) ListByAutomationAccountResponder(resp *http.Response) (result DscConfigurationListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client DscConfigurationClient) 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 (client DscConfigurationClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters *DscConfigurationUpdateParameters) (result DscConfiguration, err error)
Update create the configuration identified by configuration name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. configurationName - the create or update parameters for configuration. parameters - the create or update parameters for configuration.
func (client DscConfigurationClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters *DscConfigurationUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client DscConfigurationClient) UpdateResponder(resp *http.Response) (result DscConfiguration, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client DscConfigurationClient) 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.
DscConfigurationCreateOrUpdateParameters the parameters supplied to the create or update configuration operation.
type DscConfigurationCreateOrUpdateParameters struct { // DscConfigurationCreateOrUpdateProperties - Gets or sets configuration create or update properties. *DscConfigurationCreateOrUpdateProperties `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"` }
func (dccoup DscConfigurationCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscConfigurationCreateOrUpdateParameters.
func (dccoup *DscConfigurationCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscConfigurationCreateOrUpdateParameters struct.
DscConfigurationCreateOrUpdateProperties the properties to create or update configuration.
type DscConfigurationCreateOrUpdateProperties struct { // LogVerbose - Gets or sets verbose log option. LogVerbose *bool `json:"logVerbose,omitempty"` // LogProgress - Gets or sets progress log option. LogProgress *bool `json:"logProgress,omitempty"` // Source - Gets or sets the source. Source *ContentSource `json:"source,omitempty"` // Parameters - Gets or sets the configuration parameters. Parameters map[string]*DscConfigurationParameter `json:"parameters"` // Description - Gets or sets the description of the configuration. Description *string `json:"description,omitempty"` }
func (dccoup DscConfigurationCreateOrUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscConfigurationCreateOrUpdateProperties.
DscConfigurationListResult the response model for the list configuration operation.
type DscConfigurationListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of configurations. Value *[]DscConfiguration `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` // TotalCount - Gets the total number of configurations matching filter criteria. TotalCount *int32 `json:"totalCount,omitempty"` }
func (dclr DscConfigurationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DscConfigurationListResultIterator provides access to a complete listing of DscConfiguration values.
type DscConfigurationListResultIterator struct {
// contains filtered or unexported fields
}
func NewDscConfigurationListResultIterator(page DscConfigurationListResultPage) DscConfigurationListResultIterator
Creates a new instance of the DscConfigurationListResultIterator type.
func (iter *DscConfigurationListResultIterator) 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 (iter *DscConfigurationListResultIterator) 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 (iter DscConfigurationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DscConfigurationListResultIterator) Response() DscConfigurationListResult
Response returns the raw server response from the last page request.
func (iter DscConfigurationListResultIterator) Value() DscConfiguration
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DscConfigurationListResultPage contains a page of DscConfiguration values.
type DscConfigurationListResultPage struct {
// contains filtered or unexported fields
}
func NewDscConfigurationListResultPage(cur DscConfigurationListResult, getNextPage func(context.Context, DscConfigurationListResult) (DscConfigurationListResult, error)) DscConfigurationListResultPage
Creates a new instance of the DscConfigurationListResultPage type.
func (page *DscConfigurationListResultPage) 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 (page *DscConfigurationListResultPage) 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 (page DscConfigurationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DscConfigurationListResultPage) Response() DscConfigurationListResult
Response returns the raw server response from the last page request.
func (page DscConfigurationListResultPage) Values() []DscConfiguration
Values returns the slice of values for the current page or nil if there are no values.
DscConfigurationParameter definition of the configuration parameter type.
type DscConfigurationParameter struct { // Type - Gets or sets the type of the parameter. Type *string `json:"type,omitempty"` // IsMandatory - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. IsMandatory *bool `json:"isMandatory,omitempty"` // Position - Get or sets the position of the parameter. Position *int32 `json:"position,omitempty"` // DefaultValue - Gets or sets the default value of parameter. DefaultValue *string `json:"defaultValue,omitempty"` }
DscConfigurationProperties definition of the configuration property type.
type DscConfigurationProperties struct { // ProvisioningState - Gets or sets the provisioning state of the configuration. Possible values include: 'DscConfigurationProvisioningStateSucceeded' ProvisioningState DscConfigurationProvisioningState `json:"provisioningState,omitempty"` // JobCount - Gets or sets the job count of the configuration. JobCount *int32 `json:"jobCount,omitempty"` // Parameters - Gets or sets the configuration parameters. Parameters map[string]*DscConfigurationParameter `json:"parameters"` // Source - Gets or sets the source. Source *ContentSource `json:"source,omitempty"` // State - Gets or sets the state of the configuration. Possible values include: 'DscConfigurationStateNew', 'DscConfigurationStateEdit', 'DscConfigurationStatePublished' State DscConfigurationState `json:"state,omitempty"` // LogVerbose - Gets or sets verbose log option. LogVerbose *bool `json:"logVerbose,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"` // NodeConfigurationCount - Gets the number of compiled node configurations. NodeConfigurationCount *int32 `json:"nodeConfigurationCount,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` }
func (dcp DscConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscConfigurationProperties.
DscConfigurationProvisioningState enumerates the values for dsc configuration provisioning state.
type DscConfigurationProvisioningState string
const ( // DscConfigurationProvisioningStateSucceeded ... DscConfigurationProvisioningStateSucceeded DscConfigurationProvisioningState = "Succeeded" )
func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisioningState
PossibleDscConfigurationProvisioningStateValues returns an array of possible values for the DscConfigurationProvisioningState const type.
DscConfigurationState enumerates the values for dsc configuration state.
type DscConfigurationState string
const ( // DscConfigurationStateEdit ... DscConfigurationStateEdit DscConfigurationState = "Edit" // DscConfigurationStateNew ... DscConfigurationStateNew DscConfigurationState = "New" // DscConfigurationStatePublished ... DscConfigurationStatePublished DscConfigurationState = "Published" )
func PossibleDscConfigurationStateValues() []DscConfigurationState
PossibleDscConfigurationStateValues returns an array of possible values for the DscConfigurationState const type.
DscConfigurationUpdateParameters the parameters supplied to the create or update configuration operation.
type DscConfigurationUpdateParameters struct { // DscConfigurationCreateOrUpdateProperties - Gets or sets configuration create or update properties. *DscConfigurationCreateOrUpdateProperties `json:"properties,omitempty"` // Name - Gets or sets name of the resource. Name *string `json:"name,omitempty"` // Tags - Gets or sets the tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (dcup DscConfigurationUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscConfigurationUpdateParameters.
func (dcup *DscConfigurationUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscConfigurationUpdateParameters struct.
DscMetaConfiguration definition of the DSC Meta Configuration.
type DscMetaConfiguration struct { // ConfigurationModeFrequencyMins - Gets or sets the ConfigurationModeFrequencyMins value of the meta configuration. ConfigurationModeFrequencyMins *int32 `json:"configurationModeFrequencyMins,omitempty"` // RebootNodeIfNeeded - Gets or sets the RebootNodeIfNeeded value of the meta configuration. RebootNodeIfNeeded *bool `json:"rebootNodeIfNeeded,omitempty"` // ConfigurationMode - Gets or sets the ConfigurationMode value of the meta configuration. ConfigurationMode *string `json:"configurationMode,omitempty"` // ActionAfterReboot - Gets or sets the ActionAfterReboot value of the meta configuration. ActionAfterReboot *string `json:"actionAfterReboot,omitempty"` // CertificateID - Gets or sets the CertificateId value of the meta configuration. CertificateID *string `json:"certificateId,omitempty"` // RefreshFrequencyMins - Gets or sets the RefreshFrequencyMins value of the meta configuration. RefreshFrequencyMins *int32 `json:"refreshFrequencyMins,omitempty"` // AllowModuleOverwrite - Gets or sets the AllowModuleOverwrite value of the meta configuration. AllowModuleOverwrite *bool `json:"allowModuleOverwrite,omitempty"` }
DscNode definition of a DscNode
type DscNode struct { autorest.Response `json:"-"` // DscNodeProperties - The properties of a DscNode. *DscNodeProperties `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"` }
func (dn DscNode) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscNode.
func (dn *DscNode) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscNode struct.
DscNodeClient is the automation Client
type DscNodeClient struct { BaseClient }
func NewDscNodeClient(subscriptionID string) DscNodeClient
NewDscNodeClient creates an instance of the DscNodeClient client.
func NewDscNodeClientWithBaseURI(baseURI string, subscriptionID string) DscNodeClient
NewDscNodeClientWithBaseURI creates an instance of the DscNodeClient 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 (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (result autorest.Response, err error)
Delete delete the dsc node identified by node id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeID - the node id.
func (client DscNodeClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client DscNodeClient) 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 (client DscNodeClient) 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 (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error)
Get retrieve the dsc node identified by node id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeID - the node id.
func (client DscNodeClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client DscNodeClient) GetResponder(resp *http.Response) (result DscNode, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client DscNodeClient) 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 (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscNodeListResultPage, err error)
ListByAutomationAccount retrieve a list of dsc nodes. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation. skip - the number of rows to skip. top - the number of rows to take. inlinecount - return total rows.
func (client DscNodeClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscNodeListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client DscNodeClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client DscNodeClient) ListByAutomationAccountResponder(resp *http.Response) (result DscNodeListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client DscNodeClient) 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 (client DscNodeClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, dscNodeUpdateParameters DscNodeUpdateParameters) (result DscNode, err error)
Update update the dsc node. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeID - parameters supplied to the update dsc node. dscNodeUpdateParameters - parameters supplied to the update dsc node.
func (client DscNodeClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, dscNodeUpdateParameters DscNodeUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client DscNodeClient) UpdateResponder(resp *http.Response) (result DscNode, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client DscNodeClient) 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.
DscNodeConfiguration definition of the dsc node configuration.
type DscNodeConfiguration struct { autorest.Response `json:"-"` // DscNodeConfigurationProperties - Gets or sets the configuration properties. *DscNodeConfigurationProperties `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"` }
func (dnc DscNodeConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscNodeConfiguration.
func (dnc *DscNodeConfiguration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscNodeConfiguration struct.
DscNodeConfigurationAssociationProperty the dsc node configuration property associated with the entity.
type DscNodeConfigurationAssociationProperty struct { // Name - Gets or sets the name of the dsc node configuration. Name *string `json:"name,omitempty"` }
DscNodeConfigurationClient is the automation Client
type DscNodeConfigurationClient struct { BaseClient }
func NewDscNodeConfigurationClient(subscriptionID string) DscNodeConfigurationClient
NewDscNodeConfigurationClient creates an instance of the DscNodeConfigurationClient client.
func NewDscNodeConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscNodeConfigurationClient
NewDscNodeConfigurationClientWithBaseURI creates an instance of the DscNodeConfigurationClient 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 (client DscNodeConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, parameters DscNodeConfigurationCreateOrUpdateParameters) (result DscNodeConfigurationCreateOrUpdateFuture, err error)
CreateOrUpdate create the node configuration identified by node configuration name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeConfigurationName - the Dsc node configuration name. parameters - the create or update parameters for configuration.
func (client DscNodeConfigurationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, parameters DscNodeConfigurationCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client DscNodeConfigurationClient) CreateOrUpdateResponder(resp *http.Response) (result DscNodeConfiguration, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client DscNodeConfigurationClient) CreateOrUpdateSender(req *http.Request) (future DscNodeConfigurationCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (result autorest.Response, err error)
Delete delete the Dsc node configurations by node configuration. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeConfigurationName - the Dsc node configuration name.
func (client DscNodeConfigurationClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client DscNodeConfigurationClient) 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 (client DscNodeConfigurationClient) 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 (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (result DscNodeConfiguration, err error)
Get retrieve the Dsc node configurations by node configuration. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeConfigurationName - the Dsc node configuration name.
func (client DscNodeConfigurationClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client DscNodeConfigurationClient) GetResponder(resp *http.Response) (result DscNodeConfiguration, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client DscNodeConfigurationClient) 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 (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscNodeConfigurationListResultPage, err error)
ListByAutomationAccount retrieve a list of dsc node configurations. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation. skip - the number of rows to skip. top - the number of rows to take. inlinecount - return total rows.
func (client DscNodeConfigurationClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscNodeConfigurationListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client DscNodeConfigurationClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client DscNodeConfigurationClient) ListByAutomationAccountResponder(resp *http.Response) (result DscNodeConfigurationListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client DscNodeConfigurationClient) 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.
DscNodeConfigurationCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DscNodeConfigurationCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DscNodeConfigurationClient) (DscNodeConfiguration, error) }
func (future *DscNodeConfigurationCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DscNodeConfigurationCreateOrUpdateParameters the parameters supplied to the create or update node configuration operation.
type DscNodeConfigurationCreateOrUpdateParameters struct { // DscNodeConfigurationCreateOrUpdateParametersProperties - Node configuration properties *DscNodeConfigurationCreateOrUpdateParametersProperties `json:"properties,omitempty"` // Name - Name of the node configuration. Name *string `json:"name,omitempty"` // Tags - Gets or sets the tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (dnccoup DscNodeConfigurationCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscNodeConfigurationCreateOrUpdateParameters.
func (dnccoup *DscNodeConfigurationCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscNodeConfigurationCreateOrUpdateParameters struct.
DscNodeConfigurationCreateOrUpdateParametersProperties the parameter properties supplied to the create or update node configuration operation.
type DscNodeConfigurationCreateOrUpdateParametersProperties struct { // Source - Gets or sets the source. Source *ContentSource `json:"source,omitempty"` // Configuration - Gets or sets the configuration of the node. Configuration *DscConfigurationAssociationProperty `json:"configuration,omitempty"` // IncrementNodeConfigurationBuild - If a new build version of NodeConfiguration is required. IncrementNodeConfigurationBuild *bool `json:"incrementNodeConfigurationBuild,omitempty"` }
DscNodeConfigurationListResult the response model for the list job operation.
type DscNodeConfigurationListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of Dsc node configurations. Value *[]DscNodeConfiguration `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` // TotalCount - Gets or sets the total rows in query. TotalCount *int32 `json:"totalCount,omitempty"` }
func (dnclr DscNodeConfigurationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DscNodeConfigurationListResultIterator provides access to a complete listing of DscNodeConfiguration values.
type DscNodeConfigurationListResultIterator struct {
// contains filtered or unexported fields
}
func NewDscNodeConfigurationListResultIterator(page DscNodeConfigurationListResultPage) DscNodeConfigurationListResultIterator
Creates a new instance of the DscNodeConfigurationListResultIterator type.
func (iter *DscNodeConfigurationListResultIterator) 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 (iter *DscNodeConfigurationListResultIterator) 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 (iter DscNodeConfigurationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DscNodeConfigurationListResultIterator) Response() DscNodeConfigurationListResult
Response returns the raw server response from the last page request.
func (iter DscNodeConfigurationListResultIterator) Value() DscNodeConfiguration
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DscNodeConfigurationListResultPage contains a page of DscNodeConfiguration values.
type DscNodeConfigurationListResultPage struct {
// contains filtered or unexported fields
}
func NewDscNodeConfigurationListResultPage(cur DscNodeConfigurationListResult, getNextPage func(context.Context, DscNodeConfigurationListResult) (DscNodeConfigurationListResult, error)) DscNodeConfigurationListResultPage
Creates a new instance of the DscNodeConfigurationListResultPage type.
func (page *DscNodeConfigurationListResultPage) 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 (page *DscNodeConfigurationListResultPage) 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 (page DscNodeConfigurationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DscNodeConfigurationListResultPage) Response() DscNodeConfigurationListResult
Response returns the raw server response from the last page request.
func (page DscNodeConfigurationListResultPage) Values() []DscNodeConfiguration
Values returns the slice of values for the current page or nil if there are no values.
DscNodeConfigurationProperties properties for the DscNodeConfiguration
type DscNodeConfigurationProperties struct { // LastModifiedTime - Gets or sets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // CreationTime - Gets or sets creation time. CreationTime *date.Time `json:"creationTime,omitempty"` // Configuration - Gets or sets the configuration of the node. Configuration *DscConfigurationAssociationProperty `json:"configuration,omitempty"` // Source - Source of node configuration. Source *string `json:"source,omitempty"` // NodeCount - Number of nodes with this node configuration assigned NodeCount *int64 `json:"nodeCount,omitempty"` // IncrementNodeConfigurationBuild - If a new build version of NodeConfiguration is required. IncrementNodeConfigurationBuild *bool `json:"incrementNodeConfigurationBuild,omitempty"` }
DscNodeExtensionHandlerAssociationProperty the dsc extensionHandler property associated with the node
type DscNodeExtensionHandlerAssociationProperty struct { // Name - Gets or sets the name of the extension handler. Name *string `json:"name,omitempty"` // Version - Gets or sets the version of the extension handler. Version *string `json:"version,omitempty"` }
DscNodeListResult the response model for the list dsc nodes operation.
type DscNodeListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of dsc nodes. Value *[]DscNode `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` // TotalCount - Gets the total number of nodes matching filter criteria. TotalCount *int32 `json:"totalCount,omitempty"` }
func (dnlr DscNodeListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DscNodeListResultIterator provides access to a complete listing of DscNode values.
type DscNodeListResultIterator struct {
// contains filtered or unexported fields
}
func NewDscNodeListResultIterator(page DscNodeListResultPage) DscNodeListResultIterator
Creates a new instance of the DscNodeListResultIterator type.
func (iter *DscNodeListResultIterator) 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 (iter *DscNodeListResultIterator) 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 (iter DscNodeListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DscNodeListResultIterator) Response() DscNodeListResult
Response returns the raw server response from the last page request.
func (iter DscNodeListResultIterator) Value() DscNode
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DscNodeListResultPage contains a page of DscNode values.
type DscNodeListResultPage struct {
// contains filtered or unexported fields
}
func NewDscNodeListResultPage(cur DscNodeListResult, getNextPage func(context.Context, DscNodeListResult) (DscNodeListResult, error)) DscNodeListResultPage
Creates a new instance of the DscNodeListResultPage type.
func (page *DscNodeListResultPage) 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 (page *DscNodeListResultPage) 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 (page DscNodeListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DscNodeListResultPage) Response() DscNodeListResult
Response returns the raw server response from the last page request.
func (page DscNodeListResultPage) Values() []DscNode
Values returns the slice of values for the current page or nil if there are no values.
DscNodeProperties the properties of a DscNode
type DscNodeProperties struct { // LastSeen - Gets or sets the last seen time of the node. LastSeen *date.Time `json:"lastSeen,omitempty"` // RegistrationTime - Gets or sets the registration time of the node. RegistrationTime *date.Time `json:"registrationTime,omitempty"` // IP - Gets or sets the ip of the node. IP *string `json:"ip,omitempty"` // AccountID - Gets or sets the account id of the node. AccountID *string `json:"accountId,omitempty"` // DscNodeConfigurationAssociationProperty - Gets or sets the configuration of the node. *DscNodeConfigurationAssociationProperty `json:"nodeConfiguration,omitempty"` // Status - Gets or sets the status of the node. Status *string `json:"status,omitempty"` // NodeID - Gets or sets the node id. NodeID *string `json:"nodeId,omitempty"` // Etag - Gets or sets the etag of the resource. Etag *string `json:"etag,omitempty"` // TotalCount - Gets the total number of records matching filter criteria. TotalCount *int32 `json:"totalCount,omitempty"` // ExtensionHandler - Gets or sets the list of extensionHandler properties for a Node. ExtensionHandler *[]DscNodeExtensionHandlerAssociationProperty `json:"extensionHandler,omitempty"` }
func (dnp DscNodeProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscNodeProperties.
func (dnp *DscNodeProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscNodeProperties struct.
DscNodeReport definition of the dsc node report type.
type DscNodeReport struct { autorest.Response `json:"-"` // EndTime - Gets or sets the end time of the node report. EndTime *date.Time `json:"endTime,omitempty"` // LastModifiedTime - Gets or sets the lastModifiedTime of the node report. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // StartTime - Gets or sets the start time of the node report. StartTime *date.Time `json:"startTime,omitempty"` // Type - Gets or sets the type of the node report. Type *string `json:"type,omitempty"` // ReportID - Gets or sets the id of the node report. ReportID *string `json:"reportId,omitempty"` // Status - Gets or sets the status of the node report. Status *string `json:"status,omitempty"` // RefreshMode - Gets or sets the refreshMode of the node report. RefreshMode *string `json:"refreshMode,omitempty"` // RebootRequested - Gets or sets the rebootRequested of the node report. RebootRequested *string `json:"rebootRequested,omitempty"` // ReportFormatVersion - Gets or sets the reportFormatVersion of the node report. ReportFormatVersion *string `json:"reportFormatVersion,omitempty"` // ConfigurationVersion - Gets or sets the configurationVersion of the node report. ConfigurationVersion *string `json:"configurationVersion,omitempty"` // ID - Gets or sets the id. ID *string `json:"id,omitempty"` // Errors - Gets or sets the errors for the node report. Errors *[]DscReportError `json:"errors,omitempty"` // Resources - Gets or sets the resource for the node report. Resources *[]DscReportResource `json:"resources,omitempty"` // MetaConfiguration - Gets or sets the metaConfiguration of the node at the time of the report. MetaConfiguration *DscMetaConfiguration `json:"metaConfiguration,omitempty"` // HostName - Gets or sets the hostname of the node that sent the report. HostName *string `json:"hostName,omitempty"` // IPV4Addresses - Gets or sets the IPv4 address of the node that sent the report. IPV4Addresses *[]string `json:"iPV4Addresses,omitempty"` // IPV6Addresses - Gets or sets the IPv6 address of the node that sent the report. IPV6Addresses *[]string `json:"iPV6Addresses,omitempty"` // NumberOfResources - Gets or sets the number of resource in the node report. NumberOfResources *int32 `json:"numberOfResources,omitempty"` // RawErrors - Gets or sets the unparsed errors for the node report. RawErrors *string `json:"rawErrors,omitempty"` }
DscNodeReportListResult the response model for the list dsc nodes operation.
type DscNodeReportListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of dsc node reports. Value *[]DscNodeReport `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (dnrlr DscNodeReportListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DscNodeReportListResultIterator provides access to a complete listing of DscNodeReport values.
type DscNodeReportListResultIterator struct {
// contains filtered or unexported fields
}
func NewDscNodeReportListResultIterator(page DscNodeReportListResultPage) DscNodeReportListResultIterator
Creates a new instance of the DscNodeReportListResultIterator type.
func (iter *DscNodeReportListResultIterator) 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 (iter *DscNodeReportListResultIterator) 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 (iter DscNodeReportListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DscNodeReportListResultIterator) Response() DscNodeReportListResult
Response returns the raw server response from the last page request.
func (iter DscNodeReportListResultIterator) Value() DscNodeReport
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DscNodeReportListResultPage contains a page of DscNodeReport values.
type DscNodeReportListResultPage struct {
// contains filtered or unexported fields
}
func NewDscNodeReportListResultPage(cur DscNodeReportListResult, getNextPage func(context.Context, DscNodeReportListResult) (DscNodeReportListResult, error)) DscNodeReportListResultPage
Creates a new instance of the DscNodeReportListResultPage type.
func (page *DscNodeReportListResultPage) 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 (page *DscNodeReportListResultPage) 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 (page DscNodeReportListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DscNodeReportListResultPage) Response() DscNodeReportListResult
Response returns the raw server response from the last page request.
func (page DscNodeReportListResultPage) Values() []DscNodeReport
Values returns the slice of values for the current page or nil if there are no values.
DscNodeUpdateParameters the parameters supplied to the update dsc node operation.
type DscNodeUpdateParameters struct { // NodeID - Gets or sets the id of the dsc node. NodeID *string `json:"nodeId,omitempty"` Properties *DscNodeUpdateParametersProperties `json:"properties,omitempty"` }
DscNodeUpdateParametersProperties ...
type DscNodeUpdateParametersProperties struct { // DscNodeConfigurationAssociationProperty - Gets or sets the configuration of the node. *DscNodeConfigurationAssociationProperty `json:"nodeConfiguration,omitempty"` }
func (dnup DscNodeUpdateParametersProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DscNodeUpdateParametersProperties.
func (dnup *DscNodeUpdateParametersProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DscNodeUpdateParametersProperties struct.
DscReportError definition of the dsc node report error type.
type DscReportError struct { // ErrorSource - Gets or sets the source of the error. ErrorSource *string `json:"errorSource,omitempty"` // ResourceID - Gets or sets the resource ID which generated the error. ResourceID *string `json:"resourceId,omitempty"` // ErrorCode - Gets or sets the error code. ErrorCode *string `json:"errorCode,omitempty"` // ErrorMessage - Gets or sets the error message. ErrorMessage *string `json:"errorMessage,omitempty"` // Locale - Gets or sets the locale of the error. Locale *string `json:"locale,omitempty"` // ErrorDetails - Gets or sets the error details. ErrorDetails *string `json:"errorDetails,omitempty"` }
DscReportResource definition of the DSC Report Resource.
type DscReportResource struct { // ResourceID - Gets or sets the ID of the resource. ResourceID *string `json:"resourceId,omitempty"` // SourceInfo - Gets or sets the source info of the resource. SourceInfo *string `json:"sourceInfo,omitempty"` // DependsOn - Gets or sets the Resource Navigation values for resources the resource depends on. DependsOn *[]DscReportResourceNavigation `json:"dependsOn,omitempty"` // ModuleName - Gets or sets the module name of the resource. ModuleName *string `json:"moduleName,omitempty"` // ModuleVersion - Gets or sets the module version of the resource. ModuleVersion *string `json:"moduleVersion,omitempty"` // ResourceName - Gets or sets the name of the resource. ResourceName *string `json:"resourceName,omitempty"` // Error - Gets or sets the error of the resource. Error *string `json:"error,omitempty"` // Status - Gets or sets the status of the resource. Status *string `json:"status,omitempty"` // DurationInSeconds - Gets or sets the duration in seconds for the resource. DurationInSeconds *float64 `json:"durationInSeconds,omitempty"` // StartDate - Gets or sets the start date of the resource. StartDate *date.Time `json:"startDate,omitempty"` }
DscReportResourceNavigation navigation for DSC Report Resource.
type DscReportResourceNavigation struct { // ResourceID - Gets or sets the ID of the resource to navigate to. ResourceID *string `json:"resourceId,omitempty"` }
EncryptionKeySourceType enumerates the values for encryption key source type.
type EncryptionKeySourceType string
const ( // EncryptionKeySourceTypeMicrosoftAutomation ... EncryptionKeySourceTypeMicrosoftAutomation EncryptionKeySourceType = "Microsoft.Automation" // EncryptionKeySourceTypeMicrosoftKeyvault ... EncryptionKeySourceTypeMicrosoftKeyvault EncryptionKeySourceType = "Microsoft.Keyvault" )
func PossibleEncryptionKeySourceTypeValues() []EncryptionKeySourceType
PossibleEncryptionKeySourceTypeValues returns an array of possible values for the EncryptionKeySourceType const type.
EncryptionProperties the encryption settings for automation account
type EncryptionProperties struct { // KeyVaultProperties - Key vault properties. KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` // KeySource - Encryption Key Source. Possible values include: 'EncryptionKeySourceTypeMicrosoftAutomation', 'EncryptionKeySourceTypeMicrosoftKeyvault' KeySource EncryptionKeySourceType `json:"keySource,omitempty"` // Identity - User identity used for CMK. Identity *EncryptionPropertiesIdentity `json:"identity,omitempty"` }
EncryptionPropertiesIdentity user identity used for CMK.
type EncryptionPropertiesIdentity struct {
// UserAssignedIdentity - The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
UserAssignedIdentity interface{} `json:"userAssignedIdentity,omitempty"`
}
ErrorResponse error response of an operation failure
type ErrorResponse struct { // Code - Error code Code *string `json:"code,omitempty"` // Message - Error message indicating why the operation failed. Message *string `json:"message,omitempty"` }
FieldDefinition definition of the connection fields.
type FieldDefinition struct { // IsEncrypted - Gets or sets the isEncrypted flag of the connection field definition. IsEncrypted *bool `json:"isEncrypted,omitempty"` // IsOptional - Gets or sets the isOptional flag of the connection field definition. IsOptional *bool `json:"isOptional,omitempty"` // Type - Gets or sets the type of the connection field definition. Type *string `json:"type,omitempty"` }
FieldsClient is the automation Client
type FieldsClient struct { BaseClient }
func NewFieldsClient(subscriptionID string) FieldsClient
NewFieldsClient creates an instance of the FieldsClient client.
func NewFieldsClientWithBaseURI(baseURI string, subscriptionID string) FieldsClient
NewFieldsClientWithBaseURI creates an instance of the FieldsClient 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 (client FieldsClient) ListByType(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (result TypeFieldListResult, err error)
ListByType retrieve a list of fields of a given type identified by module name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. moduleName - the name of module. typeName - the name of type.
func (client FieldsClient) ListByTypePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (*http.Request, error)
ListByTypePreparer prepares the ListByType request.
func (client FieldsClient) ListByTypeResponder(resp *http.Response) (result TypeFieldListResult, err error)
ListByTypeResponder handles the response to the ListByType request. The method always closes the http.Response Body.
func (client FieldsClient) ListByTypeSender(req *http.Request) (*http.Response, error)
ListByTypeSender sends the ListByType request. The method will close the http.Response Body if it receives an error.
GraphRunbookType enumerates the values for graph runbook type.
type GraphRunbookType string
const ( // GraphRunbookTypeGraphPowerShell ... GraphRunbookTypeGraphPowerShell GraphRunbookType = "GraphPowerShell" // GraphRunbookTypeGraphPowerShellWorkflow ... GraphRunbookTypeGraphPowerShellWorkflow GraphRunbookType = "GraphPowerShellWorkflow" )
func PossibleGraphRunbookTypeValues() []GraphRunbookType
PossibleGraphRunbookTypeValues returns an array of possible values for the GraphRunbookType const type.
GraphicalRunbookContent graphical Runbook Content
type GraphicalRunbookContent struct { autorest.Response `json:"-"` // RawContent - Raw graphical Runbook content. RawContent *RawGraphicalRunbookContent `json:"rawContent,omitempty"` // GraphRunbookJSON - Graphical Runbook content as JSON GraphRunbookJSON *string `json:"graphRunbookJson,omitempty"` }
GroupTypeEnum enumerates the values for group type enum.
type GroupTypeEnum string
const ( // GroupTypeEnumSystem ... GroupTypeEnumSystem GroupTypeEnum = "System" // GroupTypeEnumUser ... GroupTypeEnumUser GroupTypeEnum = "User" )
func PossibleGroupTypeEnumValues() []GroupTypeEnum
PossibleGroupTypeEnumValues returns an array of possible values for the GroupTypeEnum const type.
HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
const ( // HTTPStatusCodeAccepted ... HTTPStatusCodeAccepted HTTPStatusCode = "Accepted" // HTTPStatusCodeAmbiguous ... HTTPStatusCodeAmbiguous HTTPStatusCode = "Ambiguous" // HTTPStatusCodeBadGateway ... HTTPStatusCodeBadGateway HTTPStatusCode = "BadGateway" // HTTPStatusCodeBadRequest ... HTTPStatusCodeBadRequest HTTPStatusCode = "BadRequest" // HTTPStatusCodeConflict ... HTTPStatusCodeConflict HTTPStatusCode = "Conflict" // HTTPStatusCodeContinue ... HTTPStatusCodeContinue HTTPStatusCode = "Continue" // HTTPStatusCodeCreated ... HTTPStatusCodeCreated HTTPStatusCode = "Created" // HTTPStatusCodeExpectationFailed ... HTTPStatusCodeExpectationFailed HTTPStatusCode = "ExpectationFailed" // HTTPStatusCodeForbidden ... HTTPStatusCodeForbidden HTTPStatusCode = "Forbidden" // HTTPStatusCodeFound ... HTTPStatusCodeFound HTTPStatusCode = "Found" // HTTPStatusCodeGatewayTimeout ... HTTPStatusCodeGatewayTimeout HTTPStatusCode = "GatewayTimeout" // HTTPStatusCodeGone ... HTTPStatusCodeGone HTTPStatusCode = "Gone" // HTTPStatusCodeHTTPVersionNotSupported ... HTTPStatusCodeHTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported" // HTTPStatusCodeInternalServerError ... HTTPStatusCodeInternalServerError HTTPStatusCode = "InternalServerError" // HTTPStatusCodeLengthRequired ... HTTPStatusCodeLengthRequired HTTPStatusCode = "LengthRequired" // HTTPStatusCodeMethodNotAllowed ... HTTPStatusCodeMethodNotAllowed HTTPStatusCode = "MethodNotAllowed" // HTTPStatusCodeMoved ... HTTPStatusCodeMoved HTTPStatusCode = "Moved" // HTTPStatusCodeMovedPermanently ... HTTPStatusCodeMovedPermanently HTTPStatusCode = "MovedPermanently" // HTTPStatusCodeMultipleChoices ... HTTPStatusCodeMultipleChoices HTTPStatusCode = "MultipleChoices" // HTTPStatusCodeNoContent ... HTTPStatusCodeNoContent HTTPStatusCode = "NoContent" // HTTPStatusCodeNonAuthoritativeInformation ... HTTPStatusCodeNonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation" // HTTPStatusCodeNotAcceptable ... HTTPStatusCodeNotAcceptable HTTPStatusCode = "NotAcceptable" // HTTPStatusCodeNotFound ... HTTPStatusCodeNotFound HTTPStatusCode = "NotFound" // HTTPStatusCodeNotImplemented ... HTTPStatusCodeNotImplemented HTTPStatusCode = "NotImplemented" // HTTPStatusCodeNotModified ... HTTPStatusCodeNotModified HTTPStatusCode = "NotModified" // HTTPStatusCodeOK ... HTTPStatusCodeOK HTTPStatusCode = "OK" // HTTPStatusCodePartialContent ... HTTPStatusCodePartialContent HTTPStatusCode = "PartialContent" // HTTPStatusCodePaymentRequired ... HTTPStatusCodePaymentRequired HTTPStatusCode = "PaymentRequired" // HTTPStatusCodePreconditionFailed ... HTTPStatusCodePreconditionFailed HTTPStatusCode = "PreconditionFailed" // HTTPStatusCodeProxyAuthenticationRequired ... HTTPStatusCodeProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired" // HTTPStatusCodeRedirect ... HTTPStatusCodeRedirect HTTPStatusCode = "Redirect" // HTTPStatusCodeRedirectKeepVerb ... HTTPStatusCodeRedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb" // HTTPStatusCodeRedirectMethod ... HTTPStatusCodeRedirectMethod HTTPStatusCode = "RedirectMethod" // HTTPStatusCodeRequestedRangeNotSatisfiable ... HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable" // HTTPStatusCodeRequestEntityTooLarge ... HTTPStatusCodeRequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge" // HTTPStatusCodeRequestTimeout ... HTTPStatusCodeRequestTimeout HTTPStatusCode = "RequestTimeout" // HTTPStatusCodeRequestURITooLong ... HTTPStatusCodeRequestURITooLong HTTPStatusCode = "RequestUriTooLong" // HTTPStatusCodeResetContent ... HTTPStatusCodeResetContent HTTPStatusCode = "ResetContent" // HTTPStatusCodeSeeOther ... HTTPStatusCodeSeeOther HTTPStatusCode = "SeeOther" // HTTPStatusCodeServiceUnavailable ... HTTPStatusCode = "ServiceUnavailable" // HTTPStatusCodeSwitchingProtocols ... HTTPStatusCodeSwitchingProtocols HTTPStatusCode = "SwitchingProtocols" // HTTPStatusCodeTemporaryRedirect ... HTTPStatusCodeTemporaryRedirect HTTPStatusCode = "TemporaryRedirect" // HTTPStatusCodeUnauthorized ... HTTPStatusCode = "Unauthorized" // HTTPStatusCodeUnsupportedMediaType ... HTTPStatusCodeUnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType" // HTTPStatusCodeUnused ... HTTPStatusCodeUnused HTTPStatusCode = "Unused" // HTTPStatusCodeUpgradeRequired ... HTTPStatusCodeUpgradeRequired HTTPStatusCode = "UpgradeRequired" // HTTPStatusCodeUseProxy ... HTTPStatusCodeUseProxy HTTPStatusCode = "UseProxy" )
func PossibleHTTPStatusCodeValues() []HTTPStatusCode
PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.
HybridRunbookWorker definition of hybrid runbook worker.
type HybridRunbookWorker struct { autorest.Response `json:"-"` // HybridRunbookWorkerProperties - Gets or sets the hybrid worker group properties. *HybridRunbookWorkerProperties `json:"properties,omitempty"` // SystemData - Resource system metadata. SystemData *SystemData `json:"systemData,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"` }
func (hrw HybridRunbookWorker) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HybridRunbookWorker.
func (hrw *HybridRunbookWorker) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for HybridRunbookWorker struct.
HybridRunbookWorkerCreateOrUpdateParameters the parameters supplied to the create or update hybrid runbook worker operation.
type HybridRunbookWorkerCreateOrUpdateParameters struct { // VMResourceID - Azure Resource Manager Id for a virtual machine. VMResourceID *string `json:"vmResourceId,omitempty"` }
HybridRunbookWorkerCreateParameters the parameters supplied to the create hybrid runbook worker operation.
type HybridRunbookWorkerCreateParameters struct { // HybridRunbookWorkerCreateOrUpdateParameters - Gets or sets hybrid runbook worker group create or update properties. *HybridRunbookWorkerCreateOrUpdateParameters `json:"properties,omitempty"` // Name - Gets or sets the name of the resource. Name *string `json:"name,omitempty"` }
func (hrwcp HybridRunbookWorkerCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HybridRunbookWorkerCreateParameters.
func (hrwcp *HybridRunbookWorkerCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for HybridRunbookWorkerCreateParameters struct.
HybridRunbookWorkerGroup definition of hybrid runbook worker group.
type HybridRunbookWorkerGroup struct { autorest.Response `json:"-"` // ID - Gets or sets the id of the resource. ID *string `json:"id,omitempty"` // Name - Gets or sets the name of the group. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Type *string `json:"type,omitempty"` // HybridRunbookWorkers - Gets or sets the list of hybrid runbook workers. HybridRunbookWorkers *[]HybridRunbookWorkerLegacy `json:"hybridRunbookWorkers,omitempty"` // Credential - Sets the credential of a worker group. Credential *RunAsCredentialAssociationProperty `json:"credential,omitempty"` // GroupType - Type of the HybridWorkerGroup. Possible values include: 'GroupTypeEnumUser', 'GroupTypeEnumSystem' GroupType GroupTypeEnum `json:"groupType,omitempty"` // SystemData - Resource system metadata. SystemData *SystemData `json:"systemData,omitempty"` }
func (hrwg HybridRunbookWorkerGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HybridRunbookWorkerGroup.
HybridRunbookWorkerGroupClient is the automation Client
type HybridRunbookWorkerGroupClient struct { BaseClient }
func NewHybridRunbookWorkerGroupClient(subscriptionID string) HybridRunbookWorkerGroupClient
NewHybridRunbookWorkerGroupClient creates an instance of the HybridRunbookWorkerGroupClient client.
func NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI string, subscriptionID string) HybridRunbookWorkerGroupClient
NewHybridRunbookWorkerGroupClientWithBaseURI creates an instance of the HybridRunbookWorkerGroupClient 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 (client HybridRunbookWorkerGroupClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerGroupCreationParameters HybridRunbookWorkerGroupCreateOrUpdateParameters) (result HybridRunbookWorkerGroup, err error)
Create create a hybrid runbook worker group. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name hybridRunbookWorkerGroupCreationParameters - the create or update parameters for hybrid runbook worker group.
func (client HybridRunbookWorkerGroupClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerGroupCreationParameters HybridRunbookWorkerGroupCreateOrUpdateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client HybridRunbookWorkerGroupClient) CreateResponder(resp *http.Response) (result HybridRunbookWorkerGroup, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client HybridRunbookWorkerGroupClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (result autorest.Response, err error)
Delete delete a hybrid runbook worker group. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name
func (client HybridRunbookWorkerGroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client HybridRunbookWorkerGroupClient) 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 (client HybridRunbookWorkerGroupClient) 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 (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (result HybridRunbookWorkerGroup, err error)
Get retrieve a hybrid runbook worker group. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name
func (client HybridRunbookWorkerGroupClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client HybridRunbookWorkerGroupClient) GetResponder(resp *http.Response) (result HybridRunbookWorkerGroup, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client HybridRunbookWorkerGroupClient) 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 (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result HybridRunbookWorkerGroupsListResultPage, err error)
ListByAutomationAccount retrieve a list of hybrid runbook worker groups. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result HybridRunbookWorkerGroupsListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountResponder(resp *http.Response) (result HybridRunbookWorkerGroupsListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client HybridRunbookWorkerGroupClient) 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 (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, parameters HybridRunbookWorkerGroupCreateOrUpdateParameters) (result HybridRunbookWorkerGroup, err error)
Update update a hybrid runbook worker group. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name parameters - the hybrid runbook worker group
func (client HybridRunbookWorkerGroupClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, parameters HybridRunbookWorkerGroupCreateOrUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client HybridRunbookWorkerGroupClient) UpdateResponder(resp *http.Response) (result HybridRunbookWorkerGroup, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client HybridRunbookWorkerGroupClient) 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.
HybridRunbookWorkerGroupCreateOrUpdateParameters the parameters supplied to the create or update hybrid runbook worker group operation.
type HybridRunbookWorkerGroupCreateOrUpdateParameters struct { // Credential - Sets the credential of a worker group. Credential *RunAsCredentialAssociationProperty `json:"credential,omitempty"` }
HybridRunbookWorkerGroupUpdateParameters parameters supplied to the update operation.
type HybridRunbookWorkerGroupUpdateParameters struct { // Credential - Sets the credential of a worker group. Credential *RunAsCredentialAssociationProperty `json:"credential,omitempty"` }
HybridRunbookWorkerGroupsListResult the response model for the list hybrid runbook worker groups.
type HybridRunbookWorkerGroupsListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of hybrid runbook worker groups. Value *[]HybridRunbookWorkerGroup `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (hrwglr HybridRunbookWorkerGroupsListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
HybridRunbookWorkerGroupsListResultIterator provides access to a complete listing of HybridRunbookWorkerGroup values.
type HybridRunbookWorkerGroupsListResultIterator struct {
// contains filtered or unexported fields
}
func NewHybridRunbookWorkerGroupsListResultIterator(page HybridRunbookWorkerGroupsListResultPage) HybridRunbookWorkerGroupsListResultIterator
Creates a new instance of the HybridRunbookWorkerGroupsListResultIterator type.
func (iter *HybridRunbookWorkerGroupsListResultIterator) 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 (iter *HybridRunbookWorkerGroupsListResultIterator) 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 (iter HybridRunbookWorkerGroupsListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter HybridRunbookWorkerGroupsListResultIterator) Response() HybridRunbookWorkerGroupsListResult
Response returns the raw server response from the last page request.
func (iter HybridRunbookWorkerGroupsListResultIterator) Value() HybridRunbookWorkerGroup
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
HybridRunbookWorkerGroupsListResultPage contains a page of HybridRunbookWorkerGroup values.
type HybridRunbookWorkerGroupsListResultPage struct {
// contains filtered or unexported fields
}
func NewHybridRunbookWorkerGroupsListResultPage(cur HybridRunbookWorkerGroupsListResult, getNextPage func(context.Context, HybridRunbookWorkerGroupsListResult) (HybridRunbookWorkerGroupsListResult, error)) HybridRunbookWorkerGroupsListResultPage
Creates a new instance of the HybridRunbookWorkerGroupsListResultPage type.
func (page *HybridRunbookWorkerGroupsListResultPage) 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 (page *HybridRunbookWorkerGroupsListResultPage) 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 (page HybridRunbookWorkerGroupsListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page HybridRunbookWorkerGroupsListResultPage) Response() HybridRunbookWorkerGroupsListResult
Response returns the raw server response from the last page request.
func (page HybridRunbookWorkerGroupsListResultPage) Values() []HybridRunbookWorkerGroup
Values returns the slice of values for the current page or nil if there are no values.
HybridRunbookWorkerLegacy definition of hybrid runbook worker Legacy.
type HybridRunbookWorkerLegacy struct { // Name - Gets or sets the worker machine name. Name *string `json:"name,omitempty"` // IP - Gets or sets the assigned machine IP address. IP *string `json:"ip,omitempty"` // RegistrationTime - Gets or sets the registration time of the worker machine. RegistrationTime *date.Time `json:"registrationTime,omitempty"` // LastSeenDateTime - Last Heartbeat from the Worker LastSeenDateTime *date.Time `json:"lastSeenDateTime,omitempty"` }
HybridRunbookWorkerMoveParameters parameters supplied to move hybrid worker operation.
type HybridRunbookWorkerMoveParameters struct { // HybridRunbookWorkerGroupName - Gets or sets the target hybrid runbook worker group. HybridRunbookWorkerGroupName *string `json:"hybridRunbookWorkerGroupName,omitempty"` }
HybridRunbookWorkerProperties definition of hybrid runbook worker property.
type HybridRunbookWorkerProperties struct { // IP - Gets or sets the assigned machine IP address. IP *string `json:"ip,omitempty"` // RegisteredDateTime - Gets or sets the registration time of the worker machine. RegisteredDateTime *date.Time `json:"registeredDateTime,omitempty"` // LastSeenDateTime - Last Heartbeat from the Worker LastSeenDateTime *date.Time `json:"lastSeenDateTime,omitempty"` // VMResourceID - Azure Resource Manager Id for a virtual machine. VMResourceID *string `json:"vmResourceId,omitempty"` // WorkerType - Type of the HybridWorker. Possible values include: 'WorkerTypeHybridV1', 'WorkerTypeHybridV2' WorkerType WorkerType `json:"workerType,omitempty"` // WorkerName - Name of the HybridWorker. WorkerName *string `json:"workerName,omitempty"` }
HybridRunbookWorkersClient is the automation Client
type HybridRunbookWorkersClient struct { BaseClient }
func NewHybridRunbookWorkersClient(subscriptionID string) HybridRunbookWorkersClient
NewHybridRunbookWorkersClient creates an instance of the HybridRunbookWorkersClient client.
func NewHybridRunbookWorkersClientWithBaseURI(baseURI string, subscriptionID string) HybridRunbookWorkersClient
NewHybridRunbookWorkersClientWithBaseURI creates an instance of the HybridRunbookWorkersClient 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 (client HybridRunbookWorkersClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerCreationParameters HybridRunbookWorkerCreateParameters) (result HybridRunbookWorker, err error)
Create create a hybrid runbook worker. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name hybridRunbookWorkerID - the hybrid runbook worker id hybridRunbookWorkerCreationParameters - the create or update parameters for hybrid runbook worker.
func (client HybridRunbookWorkersClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerCreationParameters HybridRunbookWorkerCreateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client HybridRunbookWorkersClient) CreateResponder(resp *http.Response) (result HybridRunbookWorker, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client HybridRunbookWorkersClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client HybridRunbookWorkersClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string) (result autorest.Response, err error)
Delete delete a hybrid runbook worker. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name hybridRunbookWorkerID - the hybrid runbook worker id
func (client HybridRunbookWorkersClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client HybridRunbookWorkersClient) 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 (client HybridRunbookWorkersClient) 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 (client HybridRunbookWorkersClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string) (result HybridRunbookWorker, err error)
Get retrieve a hybrid runbook worker. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name hybridRunbookWorkerID - the hybrid runbook worker id
func (client HybridRunbookWorkersClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client HybridRunbookWorkersClient) GetResponder(resp *http.Response) (result HybridRunbookWorker, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client HybridRunbookWorkersClient) 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 (client HybridRunbookWorkersClient) ListByHybridRunbookWorkerGroup(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, filter string) (result HybridRunbookWorkersListResultPage, err error)
ListByHybridRunbookWorkerGroup retrieve a list of hybrid runbook workers. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name filter - the filter to apply on the operation.
func (client HybridRunbookWorkersClient) ListByHybridRunbookWorkerGroupComplete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, filter string) (result HybridRunbookWorkersListResultIterator, err error)
ListByHybridRunbookWorkerGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client HybridRunbookWorkersClient) ListByHybridRunbookWorkerGroupPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, filter string) (*http.Request, error)
ListByHybridRunbookWorkerGroupPreparer prepares the ListByHybridRunbookWorkerGroup request.
func (client HybridRunbookWorkersClient) ListByHybridRunbookWorkerGroupResponder(resp *http.Response) (result HybridRunbookWorkersListResult, err error)
ListByHybridRunbookWorkerGroupResponder handles the response to the ListByHybridRunbookWorkerGroup request. The method always closes the http.Response Body.
func (client HybridRunbookWorkersClient) ListByHybridRunbookWorkerGroupSender(req *http.Request) (*http.Response, error)
ListByHybridRunbookWorkerGroupSender sends the ListByHybridRunbookWorkerGroup request. The method will close the http.Response Body if it receives an error.
func (client HybridRunbookWorkersClient) Move(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerMoveParameters HybridRunbookWorkerMoveParameters) (result autorest.Response, err error)
Move move a hybrid worker to a different group. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. hybridRunbookWorkerGroupName - the hybrid runbook worker group name hybridRunbookWorkerID - the hybrid runbook worker id hybridRunbookWorkerMoveParameters - the hybrid runbook worker move parameters
func (client HybridRunbookWorkersClient) MovePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, hybridRunbookWorkerID string, hybridRunbookWorkerMoveParameters HybridRunbookWorkerMoveParameters) (*http.Request, error)
MovePreparer prepares the Move request.
func (client HybridRunbookWorkersClient) MoveResponder(resp *http.Response) (result autorest.Response, err error)
MoveResponder handles the response to the Move request. The method always closes the http.Response Body.
func (client HybridRunbookWorkersClient) MoveSender(req *http.Request) (*http.Response, error)
MoveSender sends the Move request. The method will close the http.Response Body if it receives an error.
HybridRunbookWorkersListResult the response model for the list hybrid runbook workers.
type HybridRunbookWorkersListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of hybrid runbook workers. Value *[]HybridRunbookWorker `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (hrwlr HybridRunbookWorkersListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
HybridRunbookWorkersListResultIterator provides access to a complete listing of HybridRunbookWorker values.
type HybridRunbookWorkersListResultIterator struct {
// contains filtered or unexported fields
}
func NewHybridRunbookWorkersListResultIterator(page HybridRunbookWorkersListResultPage) HybridRunbookWorkersListResultIterator
Creates a new instance of the HybridRunbookWorkersListResultIterator type.
func (iter *HybridRunbookWorkersListResultIterator) 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 (iter *HybridRunbookWorkersListResultIterator) 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 (iter HybridRunbookWorkersListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter HybridRunbookWorkersListResultIterator) Response() HybridRunbookWorkersListResult
Response returns the raw server response from the last page request.
func (iter HybridRunbookWorkersListResultIterator) Value() HybridRunbookWorker
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
HybridRunbookWorkersListResultPage contains a page of HybridRunbookWorker values.
type HybridRunbookWorkersListResultPage struct {
// contains filtered or unexported fields
}
func NewHybridRunbookWorkersListResultPage(cur HybridRunbookWorkersListResult, getNextPage func(context.Context, HybridRunbookWorkersListResult) (HybridRunbookWorkersListResult, error)) HybridRunbookWorkersListResultPage
Creates a new instance of the HybridRunbookWorkersListResultPage type.
func (page *HybridRunbookWorkersListResultPage) 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 (page *HybridRunbookWorkersListResultPage) 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 (page HybridRunbookWorkersListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page HybridRunbookWorkersListResultPage) Response() HybridRunbookWorkersListResult
Response returns the raw server response from the last page request.
func (page HybridRunbookWorkersListResultPage) Values() []HybridRunbookWorker
Values returns the slice of values for the current page or nil if there are no values.
Identity identity for the resource.
type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'ResourceIdentityTypeSystemAssigned', 'ResourceIdentityTypeUserAssigned', 'ResourceIdentityTypeSystemAssignedUserAssigned', 'ResourceIdentityTypeNone' Type ResourceIdentityType `json:"type,omitempty"` // UserAssignedIdentities - The list of user identities associated with the resource. 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]*IdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities"` }
func (i Identity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Identity.
IdentityUserAssignedIdentitiesValue ...
type IdentityUserAssignedIdentitiesValue struct { // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` }
func (iAiv IdentityUserAssignedIdentitiesValue) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IdentityUserAssignedIdentitiesValue.
Job definition of the job.
type Job struct { autorest.Response `json:"-"` // JobProperties - The properties of the job. *JobProperties `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"` }
func (j Job) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Job.
func (j *Job) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Job struct.
JobClient is the automation Client
type JobClient struct { BaseClient }
func NewJobClient(subscriptionID string) JobClient
NewJobClient creates an instance of the JobClient client.
func NewJobClientWithBaseURI(baseURI string, subscriptionID string) JobClient
NewJobClientWithBaseURI creates an instance of the JobClient 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 (client JobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, parameters JobCreateParameters, clientRequestID string) (result Job, err error)
Create create a job of the runbook. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. parameters - the parameters supplied to the create job operation. clientRequestID - identifies this specific client request.
func (client JobClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, parameters JobCreateParameters, clientRequestID string) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client JobClient) CreateResponder(resp *http.Response) (result Job, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client JobClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client JobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (result Job, err error)
Get retrieve the job identified by job name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. clientRequestID - identifies this specific client request.
func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (result String, err error)
GetOutput retrieve the job output identified by job name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the name of the job to be created. clientRequestID - identifies this specific client request.
func (client JobClient) GetOutputPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (*http.Request, error)
GetOutputPreparer prepares the GetOutput request.
func (client JobClient) GetOutputResponder(resp *http.Response) (result String, err error)
GetOutputResponder handles the response to the GetOutput request. The method always closes the http.Response Body.
func (client JobClient) GetOutputSender(req *http.Request) (*http.Response, error)
GetOutputSender sends the GetOutput request. The method will close the http.Response Body if it receives an error.
func (client JobClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client JobClient) GetResponder(resp *http.Response) (result Job, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (result String, err error)
GetRunbookContent retrieve the runbook content of the job identified by job name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. clientRequestID - identifies this specific client request.
func (client JobClient) GetRunbookContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (*http.Request, error)
GetRunbookContentPreparer prepares the GetRunbookContent request.
func (client JobClient) GetRunbookContentResponder(resp *http.Response) (result String, err error)
GetRunbookContentResponder handles the response to the GetRunbookContent request. The method always closes the http.Response Body.
func (client JobClient) GetRunbookContentSender(req *http.Request) (*http.Response, error)
GetRunbookContentSender sends the GetRunbookContent request. The method will close the http.Response Body if it receives an error.
func (client JobClient) 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 (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, clientRequestID string) (result JobListResultV2Page, err error)
ListByAutomationAccount retrieve a list of jobs. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation. clientRequestID - identifies this specific client request.
func (client JobClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, clientRequestID string) (result JobListResultV2Iterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client JobClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, clientRequestID string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client JobClient) ListByAutomationAccountResponder(resp *http.Response) (result JobListResultV2, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client JobClient) 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 (client JobClient) Resume(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (result autorest.Response, err error)
Resume resume the job identified by jobName. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. clientRequestID - identifies this specific client request.
func (client JobClient) ResumePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (*http.Request, error)
ResumePreparer prepares the Resume request.
func (client JobClient) ResumeResponder(resp *http.Response) (result autorest.Response, err error)
ResumeResponder handles the response to the Resume request. The method always closes the http.Response Body.
func (client JobClient) ResumeSender(req *http.Request) (*http.Response, error)
ResumeSender sends the Resume request. The method will close the http.Response Body if it receives an error.
func (client JobClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (result autorest.Response, err error)
Stop stop the job identified by jobName. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. clientRequestID - identifies this specific client request.
func (client JobClient) StopPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (*http.Request, error)
StopPreparer prepares the Stop request.
func (client JobClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
StopResponder handles the response to the Stop request. The method always closes the http.Response Body.
func (client JobClient) StopSender(req *http.Request) (*http.Response, error)
StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.
func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (result autorest.Response, err error)
Suspend suspend the job identified by job name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. clientRequestID - identifies this specific client request.
func (client JobClient) SuspendPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, clientRequestID string) (*http.Request, error)
SuspendPreparer prepares the Suspend request.
func (client JobClient) SuspendResponder(resp *http.Response) (result autorest.Response, err error)
SuspendResponder handles the response to the Suspend request. The method always closes the http.Response Body.
func (client JobClient) SuspendSender(req *http.Request) (*http.Response, error)
SuspendSender sends the Suspend request. The method will close the http.Response Body if it receives an error.
JobCollectionItem job collection item properties.
type JobCollectionItem struct { // JobCollectionItemProperties - Job properties. *JobCollectionItemProperties `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"` }
func (jci JobCollectionItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobCollectionItem.
func (jci *JobCollectionItem) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for JobCollectionItem struct.
JobCollectionItemProperties job collection item properties.
type JobCollectionItemProperties struct { // Runbook - READ-ONLY; The runbook association. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // JobID - READ-ONLY; The id of the job. JobID *uuid.UUID `json:"jobId,omitempty"` // CreationTime - READ-ONLY; The creation time of the job. CreationTime *date.Time `json:"creationTime,omitempty"` // Status - READ-ONLY; The status of the job. Possible values include: 'JobStatusNew', 'JobStatusActivating', 'JobStatusRunning', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusStopped', 'JobStatusBlocked', 'JobStatusSuspended', 'JobStatusDisconnected', 'JobStatusSuspending', 'JobStatusStopping', 'JobStatusResuming', 'JobStatusRemoving' Status JobStatus `json:"status,omitempty"` // StartTime - READ-ONLY; The start time of the job. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` // LastModifiedTime - READ-ONLY; The last modified time of the job. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of a resource. ProvisioningState *string `json:"provisioningState,omitempty"` // RunOn - Specifies the runOn group name where the job was executed. RunOn *string `json:"runOn,omitempty"` }
func (jcip JobCollectionItemProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobCollectionItemProperties.
JobCreateParameters the parameters supplied to the create job operation.
type JobCreateParameters struct { // JobCreateProperties - Gets or sets the list of job properties. *JobCreateProperties `json:"properties,omitempty"` }
func (jcp JobCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobCreateParameters.
func (jcp *JobCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for JobCreateParameters struct.
JobCreateProperties ...
type JobCreateProperties struct { // Runbook - Gets or sets the runbook. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` // RunOn - Gets or sets the runOn which specifies the group name where the job is to be executed. RunOn *string `json:"runOn,omitempty"` }
func (jcp JobCreateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobCreateProperties.
JobListResultV2 the response model for the list job operation.
type JobListResultV2 struct { autorest.Response `json:"-"` // Value - List of jobs. Value *[]JobCollectionItem `json:"value,omitempty"` // NextLink - READ-ONLY; The link to the next page. NextLink *string `json:"nextLink,omitempty"` }
func (jlrv JobListResultV2) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (jlrv JobListResultV2) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobListResultV2.
JobListResultV2Iterator provides access to a complete listing of JobCollectionItem values.
type JobListResultV2Iterator struct {
// contains filtered or unexported fields
}
func NewJobListResultV2Iterator(page JobListResultV2Page) JobListResultV2Iterator
Creates a new instance of the JobListResultV2Iterator type.
func (iter *JobListResultV2Iterator) 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 (iter *JobListResultV2Iterator) 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 (iter JobListResultV2Iterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter JobListResultV2Iterator) Response() JobListResultV2
Response returns the raw server response from the last page request.
func (iter JobListResultV2Iterator) Value() JobCollectionItem
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
JobListResultV2Page contains a page of JobCollectionItem values.
type JobListResultV2Page struct {
// contains filtered or unexported fields
}
func NewJobListResultV2Page(cur JobListResultV2, getNextPage func(context.Context, JobListResultV2) (JobListResultV2, error)) JobListResultV2Page
Creates a new instance of the JobListResultV2Page type.
func (page *JobListResultV2Page) 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 (page *JobListResultV2Page) 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 (page JobListResultV2Page) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page JobListResultV2Page) Response() JobListResultV2
Response returns the raw server response from the last page request.
func (page JobListResultV2Page) Values() []JobCollectionItem
Values returns the slice of values for the current page or nil if there are no values.
JobNavigation software update configuration machine run job navigation properties.
type JobNavigation struct { // ID - READ-ONLY; Id of the job associated with the software update configuration run ID *string `json:"id,omitempty"` }
func (jn JobNavigation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobNavigation.
JobProperties definition of job properties.
type JobProperties struct { // Runbook - Gets or sets the runbook. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // StartedBy - Gets or sets the job started by. StartedBy *string `json:"startedBy,omitempty"` // RunOn - Gets or sets the runOn which specifies the group name where the job is to be executed. RunOn *string `json:"runOn,omitempty"` // JobID - Gets or sets the id of the job. JobID *uuid.UUID `json:"jobId,omitempty"` // CreationTime - Gets or sets the creation time of the job. CreationTime *date.Time `json:"creationTime,omitempty"` // Status - Gets or sets the status of the job. Possible values include: 'JobStatusNew', 'JobStatusActivating', 'JobStatusRunning', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusStopped', 'JobStatusBlocked', 'JobStatusSuspended', 'JobStatusDisconnected', 'JobStatusSuspending', 'JobStatusStopping', 'JobStatusResuming', 'JobStatusRemoving' Status JobStatus `json:"status,omitempty"` // StatusDetails - Gets or sets the status details of the job. StatusDetails *string `json:"statusDetails,omitempty"` // StartTime - Gets or sets the start time of the job. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Gets or sets the end time of the job. EndTime *date.Time `json:"endTime,omitempty"` // Exception - Gets or sets the exception of the job. Exception *string `json:"exception,omitempty"` // LastModifiedTime - Gets or sets the last modified time of the job. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastStatusModifiedTime - Gets or sets the last status modified time of the job. LastStatusModifiedTime *date.Time `json:"lastStatusModifiedTime,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` // ProvisioningState - The current provisioning state of the job. Possible values include: 'JobProvisioningStateFailed', 'JobProvisioningStateSucceeded', 'JobProvisioningStateSuspended', 'JobProvisioningStateProcessing' ProvisioningState JobProvisioningState `json:"provisioningState,omitempty"` }
func (jp JobProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobProperties.
JobProvisioningState enumerates the values for job provisioning state.
type JobProvisioningState string
const ( // JobProvisioningStateFailed ... JobProvisioningStateFailed JobProvisioningState = "Failed" // JobProvisioningStateProcessing ... JobProvisioningStateProcessing JobProvisioningState = "Processing" // JobProvisioningStateSucceeded ... JobProvisioningStateSucceeded JobProvisioningState = "Succeeded" // JobProvisioningStateSuspended ... JobProvisioningStateSuspended JobProvisioningState = "Suspended" )
func PossibleJobProvisioningStateValues() []JobProvisioningState
PossibleJobProvisioningStateValues returns an array of possible values for the JobProvisioningState const type.
JobSchedule definition of the job schedule.
type JobSchedule struct { autorest.Response `json:"-"` // ID - READ-ONLY; Gets the id of the resource. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Gets the name of the variable. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // JobScheduleProperties - Gets or sets the properties of the job schedule. *JobScheduleProperties `json:"properties,omitempty"` }
func (js JobSchedule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobSchedule.
func (js *JobSchedule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for JobSchedule struct.
JobScheduleClient is the automation Client
type JobScheduleClient struct { BaseClient }
func NewJobScheduleClient(subscriptionID string) JobScheduleClient
NewJobScheduleClient creates an instance of the JobScheduleClient client.
func NewJobScheduleClientWithBaseURI(baseURI string, subscriptionID string) JobScheduleClient
NewJobScheduleClientWithBaseURI creates an instance of the JobScheduleClient 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 (client JobScheduleClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID, parameters JobScheduleCreateParameters) (result JobSchedule, err error)
Create create a job schedule. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobScheduleID - the job schedule name. parameters - the parameters supplied to the create job schedule operation.
func (client JobScheduleClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID, parameters JobScheduleCreateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client JobScheduleClient) CreateResponder(resp *http.Response) (result JobSchedule, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client JobScheduleClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result autorest.Response, err error)
Delete delete the job schedule identified by job schedule name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobScheduleID - the job schedule name.
func (client JobScheduleClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client JobScheduleClient) 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 (client JobScheduleClient) 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 (client JobScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result JobSchedule, err error)
Get retrieve the job schedule identified by job schedule name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobScheduleID - the job schedule name.
func (client JobScheduleClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (*http.Request, error)
GetPreparer prepares the Get request.
func (client JobScheduleClient) GetResponder(resp *http.Response) (result JobSchedule, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client JobScheduleClient) 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 (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result JobScheduleListResultPage, err error)
ListByAutomationAccount retrieve a list of job schedules. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client JobScheduleClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result JobScheduleListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client JobScheduleClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client JobScheduleClient) ListByAutomationAccountResponder(resp *http.Response) (result JobScheduleListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client JobScheduleClient) 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.
JobScheduleCreateParameters the parameters supplied to the create job schedule operation.
type JobScheduleCreateParameters struct { // JobScheduleCreateProperties - Gets or sets the list of job schedule properties. *JobScheduleCreateProperties `json:"properties,omitempty"` }
func (jscp JobScheduleCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobScheduleCreateParameters.
func (jscp *JobScheduleCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for JobScheduleCreateParameters struct.
JobScheduleCreateProperties the parameters supplied to the create job schedule operation.
type JobScheduleCreateProperties struct { // Schedule - Gets or sets the schedule. Schedule *ScheduleAssociationProperty `json:"schedule,omitempty"` // Runbook - Gets or sets the runbook. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // RunOn - Gets or sets the hybrid worker group that the scheduled job should run on. RunOn *string `json:"runOn,omitempty"` // Parameters - Gets or sets a list of job properties. Parameters map[string]*string `json:"parameters"` }
func (jscp JobScheduleCreateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobScheduleCreateProperties.
JobScheduleListResult the response model for the list job schedule operation.
type JobScheduleListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of job schedules. Value *[]JobSchedule `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (jslr JobScheduleListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
JobScheduleListResultIterator provides access to a complete listing of JobSchedule values.
type JobScheduleListResultIterator struct {
// contains filtered or unexported fields
}
func NewJobScheduleListResultIterator(page JobScheduleListResultPage) JobScheduleListResultIterator
Creates a new instance of the JobScheduleListResultIterator type.
func (iter *JobScheduleListResultIterator) 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 (iter *JobScheduleListResultIterator) 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 (iter JobScheduleListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter JobScheduleListResultIterator) Response() JobScheduleListResult
Response returns the raw server response from the last page request.
func (iter JobScheduleListResultIterator) Value() JobSchedule
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
JobScheduleListResultPage contains a page of JobSchedule values.
type JobScheduleListResultPage struct {
// contains filtered or unexported fields
}
func NewJobScheduleListResultPage(cur JobScheduleListResult, getNextPage func(context.Context, JobScheduleListResult) (JobScheduleListResult, error)) JobScheduleListResultPage
Creates a new instance of the JobScheduleListResultPage type.
func (page *JobScheduleListResultPage) 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 (page *JobScheduleListResultPage) 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 (page JobScheduleListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page JobScheduleListResultPage) Response() JobScheduleListResult
Response returns the raw server response from the last page request.
func (page JobScheduleListResultPage) Values() []JobSchedule
Values returns the slice of values for the current page or nil if there are no values.
JobScheduleProperties definition of job schedule parameters.
type JobScheduleProperties struct { // JobScheduleID - Gets or sets the id of job schedule. JobScheduleID *string `json:"jobScheduleId,omitempty"` // Schedule - Gets or sets the schedule. Schedule *ScheduleAssociationProperty `json:"schedule,omitempty"` // Runbook - Gets or sets the runbook. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // RunOn - Gets or sets the hybrid worker group that the scheduled job should run on. RunOn *string `json:"runOn,omitempty"` // Parameters - Gets or sets the parameters of the job schedule. Parameters map[string]*string `json:"parameters"` }
func (jsp JobScheduleProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobScheduleProperties.
JobStatus enumerates the values for job status.
type JobStatus string
const ( // JobStatusActivating ... JobStatusActivating JobStatus = "Activating" // JobStatusBlocked ... JobStatusBlocked JobStatus = "Blocked" // JobStatusCompleted ... JobStatusCompleted JobStatus = "Completed" // JobStatusDisconnected ... JobStatusDisconnected JobStatus = "Disconnected" // JobStatusFailed ... JobStatusFailed JobStatus = "Failed" // JobStatusNew ... JobStatusNew JobStatus = "New" // JobStatusRemoving ... JobStatusRemoving JobStatus = "Removing" // JobStatusResuming ... JobStatusResuming JobStatus = "Resuming" // JobStatusRunning ... JobStatusRunning JobStatus = "Running" // JobStatusStopped ... JobStatusStopped JobStatus = "Stopped" // JobStatusStopping ... JobStatusStopping JobStatus = "Stopping" // JobStatusSuspended ... JobStatusSuspended JobStatus = "Suspended" // JobStatusSuspending ... JobStatusSuspending JobStatus = "Suspending" )
func PossibleJobStatusValues() []JobStatus
PossibleJobStatusValues returns an array of possible values for the JobStatus const type.
JobStream definition of the job stream.
type JobStream struct { autorest.Response `json:"-"` // ID - Gets or sets the id of the resource. ID *string `json:"id,omitempty"` // JobStreamProperties - Gets or sets the id of the job stream. *JobStreamProperties `json:"properties,omitempty"` }
func (js JobStream) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobStream.
func (js *JobStream) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for JobStream struct.
JobStreamClient is the automation Client
type JobStreamClient struct { BaseClient }
func NewJobStreamClient(subscriptionID string) JobStreamClient
NewJobStreamClient creates an instance of the JobStreamClient client.
func NewJobStreamClientWithBaseURI(baseURI string, subscriptionID string) JobStreamClient
NewJobStreamClientWithBaseURI creates an instance of the JobStreamClient 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 (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, jobStreamID string, clientRequestID string) (result JobStream, err error)
Get retrieve the job stream identified by job stream id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. jobStreamID - the job stream id. clientRequestID - identifies this specific client request.
func (client JobStreamClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, jobStreamID string, clientRequestID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client JobStreamClient) GetResponder(resp *http.Response) (result JobStream, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client JobStreamClient) 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 (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, filter string, clientRequestID string) (result JobStreamListResultPage, err error)
ListByJob retrieve a list of jobs streams identified by job name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. jobName - the job name. filter - the filter to apply on the operation. clientRequestID - identifies this specific client request.
func (client JobStreamClient) ListByJobComplete(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, filter string, clientRequestID string) (result JobStreamListResultIterator, err error)
ListByJobComplete enumerates all values, automatically crossing page boundaries as required.
func (client JobStreamClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, jobName string, filter string, clientRequestID string) (*http.Request, error)
ListByJobPreparer prepares the ListByJob request.
func (client JobStreamClient) ListByJobResponder(resp *http.Response) (result JobStreamListResult, err error)
ListByJobResponder handles the response to the ListByJob request. The method always closes the http.Response Body.
func (client JobStreamClient) ListByJobSender(req *http.Request) (*http.Response, error)
ListByJobSender sends the ListByJob request. The method will close the http.Response Body if it receives an error.
JobStreamListResult the response model for the list job stream operation.
type JobStreamListResult struct { autorest.Response `json:"-"` // Value - A list of job streams. Value *[]JobStream `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (jslr JobStreamListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
JobStreamListResultIterator provides access to a complete listing of JobStream values.
type JobStreamListResultIterator struct {
// contains filtered or unexported fields
}
func NewJobStreamListResultIterator(page JobStreamListResultPage) JobStreamListResultIterator
Creates a new instance of the JobStreamListResultIterator type.
func (iter *JobStreamListResultIterator) 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 (iter *JobStreamListResultIterator) 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 (iter JobStreamListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter JobStreamListResultIterator) Response() JobStreamListResult
Response returns the raw server response from the last page request.
func (iter JobStreamListResultIterator) Value() JobStream
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
JobStreamListResultPage contains a page of JobStream values.
type JobStreamListResultPage struct {
// contains filtered or unexported fields
}
func NewJobStreamListResultPage(cur JobStreamListResult, getNextPage func(context.Context, JobStreamListResult) (JobStreamListResult, error)) JobStreamListResultPage
Creates a new instance of the JobStreamListResultPage type.
func (page *JobStreamListResultPage) 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 (page *JobStreamListResultPage) 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 (page JobStreamListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page JobStreamListResultPage) Response() JobStreamListResult
Response returns the raw server response from the last page request.
func (page JobStreamListResultPage) Values() []JobStream
Values returns the slice of values for the current page or nil if there are no values.
JobStreamProperties definition of the job stream.
type JobStreamProperties struct { // JobStreamID - Gets or sets the id of the job stream. JobStreamID *string `json:"jobStreamId,omitempty"` // Time - Gets or sets the creation time of the job. Time *date.Time `json:"time,omitempty"` // StreamType - Gets or sets the stream type. Possible values include: 'JobStreamTypeProgress', 'JobStreamTypeOutput', 'JobStreamTypeWarning', 'JobStreamTypeError', 'JobStreamTypeDebug', 'JobStreamTypeVerbose', 'JobStreamTypeAny' StreamType JobStreamType `json:"streamType,omitempty"` // StreamText - Gets or sets the stream text. StreamText *string `json:"streamText,omitempty"` // Summary - Gets or sets the summary. Summary *string `json:"summary,omitempty"` // Value - Gets or sets the values of the job stream. Value map[string]interface{} `json:"value"` }
func (jsp JobStreamProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobStreamProperties.
JobStreamType enumerates the values for job stream type.
type JobStreamType string
const ( // JobStreamTypeAny ... JobStreamTypeAny JobStreamType = "Any" // JobStreamTypeDebug ... JobStreamTypeDebug JobStreamType = "Debug" // JobStreamTypeError ... JobStreamTypeError JobStreamType = "Error" // JobStreamTypeOutput ... JobStreamTypeOutput JobStreamType = "Output" // JobStreamTypeProgress ... JobStreamTypeProgress JobStreamType = "Progress" // JobStreamTypeVerbose ... JobStreamTypeVerbose JobStreamType = "Verbose" // JobStreamTypeWarning ... JobStreamTypeWarning JobStreamType = "Warning" )
func PossibleJobStreamTypeValues() []JobStreamType
PossibleJobStreamTypeValues returns an array of possible values for the JobStreamType const type.
Key automation key which is used to register a DSC Node
type Key struct { // KeyName - READ-ONLY; Automation key name. Possible values include: 'KeyNamePrimary', 'KeyNameSecondary' KeyName KeyName `json:"KeyName,omitempty"` // Permissions - READ-ONLY; Automation key permissions. Possible values include: 'KeyPermissionsRead', 'KeyPermissionsFull' Permissions KeyPermissions `json:"Permissions,omitempty"` // Value - READ-ONLY; Value of the Automation Key used for registration. Value *string `json:"Value,omitempty"` }
func (kVar Key) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Key.
KeyListResult ...
type KeyListResult struct { autorest.Response `json:"-"` // Keys - Lists the automation keys. Keys *[]Key `json:"keys,omitempty"` }
KeyName enumerates the values for key name.
type KeyName string
const ( // KeyNamePrimary ... KeyNamePrimary KeyName = "Primary" // KeyNameSecondary ... KeyNameSecondary KeyName = "Secondary" )
func PossibleKeyNameValues() []KeyName
PossibleKeyNameValues returns an array of possible values for the KeyName const type.
KeyPermissions enumerates the values for key permissions.
type KeyPermissions string
const ( // KeyPermissionsFull ... KeyPermissionsFull KeyPermissions = "Full" // KeyPermissionsRead ... KeyPermissionsRead KeyPermissions = "Read" )
func PossibleKeyPermissionsValues() []KeyPermissions
PossibleKeyPermissionsValues returns an array of possible values for the KeyPermissions const type.
KeyVaultProperties settings concerning key vault encryption for a configuration store.
type KeyVaultProperties struct { // KeyvaultURI - The URI of the key vault key used to encrypt data. KeyvaultURI *string `json:"keyvaultUri,omitempty"` // KeyName - The name of key used to encrypt data. KeyName *string `json:"keyName,omitempty"` // KeyVersion - The key version of the key used to encrypt data. KeyVersion *string `json:"keyVersion,omitempty"` }
KeysClient is the automation Client
type KeysClient struct { BaseClient }
func NewKeysClient(subscriptionID string) KeysClient
NewKeysClient creates an instance of the KeysClient client.
func NewKeysClientWithBaseURI(baseURI string, subscriptionID string) KeysClient
NewKeysClientWithBaseURI creates an instance of the KeysClient 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 (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result KeyListResult, err error)
ListByAutomationAccount retrieve the automation keys for an account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client KeysClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client KeysClient) ListByAutomationAccountResponder(resp *http.Response) (result KeyListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client KeysClient) 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.
LinkedWorkspace definition of the linked workspace.
type LinkedWorkspace struct { autorest.Response `json:"-"` // ID - READ-ONLY; Gets the id of the linked workspace. ID *string `json:"id,omitempty"` }
func (lw LinkedWorkspace) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LinkedWorkspace.
LinkedWorkspaceClient is the automation Client
type LinkedWorkspaceClient struct { BaseClient }
func NewLinkedWorkspaceClient(subscriptionID string) LinkedWorkspaceClient
NewLinkedWorkspaceClient creates an instance of the LinkedWorkspaceClient client.
func NewLinkedWorkspaceClientWithBaseURI(baseURI string, subscriptionID string) LinkedWorkspaceClient
NewLinkedWorkspaceClientWithBaseURI creates an instance of the LinkedWorkspaceClient 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 (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result LinkedWorkspace, err error)
Get retrieve the linked workspace for the account id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client LinkedWorkspaceClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client LinkedWorkspaceClient) GetResponder(resp *http.Response) (result LinkedWorkspace, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client LinkedWorkspaceClient) 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.
LinuxProperties linux specific update configuration.
type LinuxProperties struct { // IncludedPackageClassifications - Update classifications included in the software update configuration. Possible values include: 'LinuxUpdateClassesUnclassified', 'LinuxUpdateClassesCritical', 'LinuxUpdateClassesSecurity', 'LinuxUpdateClassesOther' IncludedPackageClassifications LinuxUpdateClasses `json:"includedPackageClassifications,omitempty"` // ExcludedPackageNameMasks - packages excluded from the software update configuration. ExcludedPackageNameMasks *[]string `json:"excludedPackageNameMasks,omitempty"` // IncludedPackageNameMasks - packages included from the software update configuration. IncludedPackageNameMasks *[]string `json:"includedPackageNameMasks,omitempty"` // RebootSetting - Reboot setting for the software update configuration. RebootSetting *string `json:"rebootSetting,omitempty"` }
LinuxUpdateClasses enumerates the values for linux update classes.
type LinuxUpdateClasses string
const ( // LinuxUpdateClassesCritical ... LinuxUpdateClassesCritical LinuxUpdateClasses = "Critical" // LinuxUpdateClassesOther ... LinuxUpdateClassesOther LinuxUpdateClasses = "Other" // LinuxUpdateClassesSecurity ... LinuxUpdateClassesSecurity LinuxUpdateClasses = "Security" // LinuxUpdateClassesUnclassified ... LinuxUpdateClassesUnclassified LinuxUpdateClasses = "Unclassified" )
func PossibleLinuxUpdateClassesValues() []LinuxUpdateClasses
PossibleLinuxUpdateClassesValues returns an array of possible values for the LinuxUpdateClasses const type.
Module definition of the module type.
type Module struct { autorest.Response `json:"-"` // ModuleProperties - Gets or sets the module properties. *ModuleProperties `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"` }
func (mVar Module) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Module.
func (mVar *Module) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Module struct.
ModuleClient is the automation Client
type ModuleClient struct { BaseClient }
func NewModuleClient(subscriptionID string) ModuleClient
NewModuleClient creates an instance of the ModuleClient client.
func NewModuleClientWithBaseURI(baseURI string, subscriptionID string) ModuleClient
NewModuleClientWithBaseURI creates an instance of the ModuleClient 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 (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters) (result Module, err error)
CreateOrUpdate create or Update 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. parameters - the create or update parameters for module.
func (client ModuleClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ModuleClient) CreateOrUpdateResponder(resp *http.Response) (result Module, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ModuleClient) 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 (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result autorest.Response, err error)
Delete delete the module by name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. moduleName - the module name.
func (client ModuleClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ModuleClient) 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 (client ModuleClient) 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 (client ModuleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result Module, err error)
Get retrieve the module identified by module name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. moduleName - the module name.
func (client ModuleClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ModuleClient) GetResponder(resp *http.Response) (result Module, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ModuleClient) 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 (client ModuleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ModuleListResultPage, err error)
ListByAutomationAccount retrieve a list of modules. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client ModuleClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result ModuleListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client ModuleClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client ModuleClient) ListByAutomationAccountResponder(resp *http.Response) (result ModuleListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client ModuleClient) 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 (client ModuleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters) (result Module, err error)
Update update 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. parameters - the update parameters for module.
func (client ModuleClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ModuleClient) UpdateResponder(resp *http.Response) (result Module, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ModuleClient) 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.
ModuleCreateOrUpdateParameters the parameters supplied to the create or update module operation.
type ModuleCreateOrUpdateParameters struct { // ModuleCreateOrUpdateProperties - Gets or sets the module create properties. *ModuleCreateOrUpdateProperties `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"` }
func (mcoup ModuleCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ModuleCreateOrUpdateParameters.
func (mcoup *ModuleCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ModuleCreateOrUpdateParameters struct.
ModuleCreateOrUpdateProperties the parameters supplied to the create or update module properties.
type ModuleCreateOrUpdateProperties struct { // ContentLink - Gets or sets the module content link. ContentLink *ContentLink `json:"contentLink,omitempty"` }
ModuleErrorInfo definition of the module error info type.
type ModuleErrorInfo struct { // Code - Gets or sets the error code. Code *string `json:"code,omitempty"` // Message - Gets or sets the error message. Message *string `json:"message,omitempty"` }
ModuleListResult the response model for the list module operation.
type ModuleListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of modules. Value *[]Module `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (mlr ModuleListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ModuleListResultIterator provides access to a complete listing of Module values.
type ModuleListResultIterator struct {
// contains filtered or unexported fields
}
func NewModuleListResultIterator(page ModuleListResultPage) ModuleListResultIterator
Creates a new instance of the ModuleListResultIterator type.
func (iter *ModuleListResultIterator) 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 (iter *ModuleListResultIterator) 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 (iter ModuleListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ModuleListResultIterator) Response() ModuleListResult
Response returns the raw server response from the last page request.
func (iter ModuleListResultIterator) Value() Module
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ModuleListResultPage contains a page of Module values.
type ModuleListResultPage struct {
// contains filtered or unexported fields
}
func NewModuleListResultPage(cur ModuleListResult, getNextPage func(context.Context, ModuleListResult) (ModuleListResult, error)) ModuleListResultPage
Creates a new instance of the ModuleListResultPage type.
func (page *ModuleListResultPage) 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 (page *ModuleListResultPage) 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 (page ModuleListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ModuleListResultPage) Response() ModuleListResult
Response returns the raw server response from the last page request.
func (page ModuleListResultPage) Values() []Module
Values returns the slice of values for the current page or nil if there are no values.
ModuleProperties definition of the module property type.
type ModuleProperties struct { // IsGlobal - Gets or sets the isGlobal flag of the module. IsGlobal *bool `json:"isGlobal,omitempty"` // Version - Gets or sets the version of the module. Version *string `json:"version,omitempty"` // SizeInBytes - Gets or sets the size in bytes of the module. SizeInBytes *int64 `json:"sizeInBytes,omitempty"` // ActivityCount - Gets or sets the activity count of the module. ActivityCount *int32 `json:"activityCount,omitempty"` // ProvisioningState - Gets or sets the provisioning state of the module. Possible values include: 'ModuleProvisioningStateCreated', 'ModuleProvisioningStateCreating', 'ModuleProvisioningStateStartingImportModuleRunbook', 'ModuleProvisioningStateRunningImportModuleRunbook', 'ModuleProvisioningStateContentRetrieved', 'ModuleProvisioningStateContentDownloaded', 'ModuleProvisioningStateContentValidated', 'ModuleProvisioningStateConnectionTypeImported', 'ModuleProvisioningStateContentStored', 'ModuleProvisioningStateModuleDataStored', 'ModuleProvisioningStateActivitiesStored', 'ModuleProvisioningStateModuleImportRunbookComplete', 'ModuleProvisioningStateSucceeded', 'ModuleProvisioningStateFailed', 'ModuleProvisioningStateCancelled', 'ModuleProvisioningStateUpdating' ProvisioningState ModuleProvisioningState `json:"provisioningState,omitempty"` // ContentLink - Gets or sets the contentLink of the module. ContentLink *ContentLink `json:"contentLink,omitempty"` // Error - Gets or sets the error info of the module. Error *ModuleErrorInfo `json:"error,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"` // IsComposite - Gets or sets type of module, if its composite or not. IsComposite *bool `json:"isComposite,omitempty"` }
ModuleProvisioningState enumerates the values for module provisioning state.
type ModuleProvisioningState string
const ( // ModuleProvisioningStateActivitiesStored ... ModuleProvisioningStateActivitiesStored ModuleProvisioningState = "ActivitiesStored" // ModuleProvisioningStateCancelled ... ModuleProvisioningStateCancelled ModuleProvisioningState = "Cancelled" // ModuleProvisioningStateConnectionTypeImported ... ModuleProvisioningStateConnectionTypeImported ModuleProvisioningState = "ConnectionTypeImported" // ModuleProvisioningStateContentDownloaded ... ModuleProvisioningStateContentDownloaded ModuleProvisioningState = "ContentDownloaded" // ModuleProvisioningStateContentRetrieved ... ModuleProvisioningStateContentRetrieved ModuleProvisioningState = "ContentRetrieved" // ModuleProvisioningStateContentStored ... ModuleProvisioningStateContentStored ModuleProvisioningState = "ContentStored" // ModuleProvisioningStateContentValidated ... ModuleProvisioningStateContentValidated ModuleProvisioningState = "ContentValidated" // ModuleProvisioningStateCreated ... ModuleProvisioningStateCreated ModuleProvisioningState = "Created" // ModuleProvisioningStateCreating ... ModuleProvisioningStateCreating ModuleProvisioningState = "Creating" // ModuleProvisioningStateFailed ... ModuleProvisioningStateFailed ModuleProvisioningState = "Failed" // ModuleProvisioningStateModuleDataStored ... ModuleProvisioningStateModuleDataStored ModuleProvisioningState = "ModuleDataStored" // ModuleProvisioningStateModuleImportRunbookComplete ... ModuleProvisioningStateModuleImportRunbookComplete ModuleProvisioningState = "ModuleImportRunbookComplete" // ModuleProvisioningStateRunningImportModuleRunbook ... ModuleProvisioningStateRunningImportModuleRunbook ModuleProvisioningState = "RunningImportModuleRunbook" // ModuleProvisioningStateStartingImportModuleRunbook ... ModuleProvisioningStateStartingImportModuleRunbook ModuleProvisioningState = "StartingImportModuleRunbook" // ModuleProvisioningStateSucceeded ... ModuleProvisioningStateSucceeded ModuleProvisioningState = "Succeeded" // ModuleProvisioningStateUpdating ... ModuleProvisioningStateUpdating ModuleProvisioningState = "Updating" )
func PossibleModuleProvisioningStateValues() []ModuleProvisioningState
PossibleModuleProvisioningStateValues returns an array of possible values for the ModuleProvisioningState const type.
ModuleUpdateParameters the parameters supplied to the update module operation.
type ModuleUpdateParameters struct { // ModuleUpdateProperties - Gets or sets the module update properties. *ModuleUpdateProperties `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"` }
func (mup ModuleUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ModuleUpdateParameters.
func (mup *ModuleUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ModuleUpdateParameters struct.
ModuleUpdateProperties the parameters supplied to the update properties.
type ModuleUpdateProperties struct { // ContentLink - Gets or sets the module content link. ContentLink *ContentLink `json:"contentLink,omitempty"` }
NodeCount number of nodes based on the Filter
type NodeCount struct { // Name - Gets the name of a count type Name *string `json:"name,omitempty"` Properties *NodeCountProperties `json:"properties,omitempty"` }
NodeCountInformationClient is the automation Client
type NodeCountInformationClient struct { BaseClient }
func NewNodeCountInformationClient(subscriptionID string) NodeCountInformationClient
NewNodeCountInformationClient creates an instance of the NodeCountInformationClient client.
func NewNodeCountInformationClientWithBaseURI(baseURI string, subscriptionID string) NodeCountInformationClient
NewNodeCountInformationClientWithBaseURI creates an instance of the NodeCountInformationClient 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 (client NodeCountInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, countType CountType) (result NodeCounts, err error)
Get retrieve counts for Dsc Nodes. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. countType - the type of counts to retrieve
func (client NodeCountInformationClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, countType CountType) (*http.Request, error)
GetPreparer prepares the Get request.
func (client NodeCountInformationClient) GetResponder(resp *http.Response) (result NodeCounts, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client NodeCountInformationClient) 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.
NodeCountProperties ...
type NodeCountProperties struct { // Count - Gets the count for the name Count *int32 `json:"count,omitempty"` }
NodeCounts gets the count of nodes by count type
type NodeCounts struct { autorest.Response `json:"-"` // Value - Gets an array of counts Value *[]NodeCount `json:"value,omitempty"` // TotalCount - Gets the total number of records matching countType criteria. TotalCount *int32 `json:"totalCount,omitempty"` }
NodeReportsClient is the automation Client
type NodeReportsClient struct { BaseClient }
func NewNodeReportsClient(subscriptionID string) NodeReportsClient
NewNodeReportsClient creates an instance of the NodeReportsClient client.
func NewNodeReportsClientWithBaseURI(baseURI string, subscriptionID string) NodeReportsClient
NewNodeReportsClientWithBaseURI creates an instance of the NodeReportsClient 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 (client NodeReportsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (result DscNodeReport, err error)
Get retrieve the Dsc node report data by node id and report id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeID - the Dsc node id. reportID - the report id.
func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (result SetObject, err error)
GetContent retrieve the Dsc node reports by node id and report id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeID - the Dsc node id. reportID - the report id.
func (client NodeReportsClient) GetContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (*http.Request, error)
GetContentPreparer prepares the GetContent request.
func (client NodeReportsClient) GetContentResponder(resp *http.Response) (result SetObject, err error)
GetContentResponder handles the response to the GetContent request. The method always closes the http.Response Body.
func (client NodeReportsClient) GetContentSender(req *http.Request) (*http.Response, error)
GetContentSender sends the GetContent request. The method will close the http.Response Body if it receives an error.
func (client NodeReportsClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client NodeReportsClient) GetResponder(resp *http.Response) (result DscNodeReport, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client NodeReportsClient) 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 (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, filter string) (result DscNodeReportListResultPage, err error)
ListByNode retrieve the Dsc node report list by node id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. nodeID - the parameters supplied to the list operation. filter - the filter to apply on the operation.
func (client NodeReportsClient) ListByNodeComplete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, filter string) (result DscNodeReportListResultIterator, err error)
ListByNodeComplete enumerates all values, automatically crossing page boundaries as required.
func (client NodeReportsClient) ListByNodePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, filter string) (*http.Request, error)
ListByNodePreparer prepares the ListByNode request.
func (client NodeReportsClient) ListByNodeResponder(resp *http.Response) (result DscNodeReportListResult, err error)
ListByNodeResponder handles the response to the ListByNode request. The method always closes the http.Response Body.
func (client NodeReportsClient) ListByNodeSender(req *http.Request) (*http.Response, error)
ListByNodeSender sends the ListByNode request. The method will close the http.Response Body if it receives an error.
NonAzureQueryProperties non Azure query for the update configuration.
type NonAzureQueryProperties struct { // FunctionAlias - Log Analytics Saved Search name. FunctionAlias *string `json:"functionAlias,omitempty"` // WorkspaceID - Workspace Id for Log Analytics in which the saved Search is resided. WorkspaceID *string `json:"workspaceId,omitempty"` }
ObjectDataTypesClient is the automation Client
type ObjectDataTypesClient struct { BaseClient }
func NewObjectDataTypesClient(subscriptionID string) ObjectDataTypesClient
NewObjectDataTypesClient creates an instance of the ObjectDataTypesClient client.
func NewObjectDataTypesClientWithBaseURI(baseURI string, subscriptionID string) ObjectDataTypesClient
NewObjectDataTypesClientWithBaseURI creates an instance of the ObjectDataTypesClient 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 (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (result TypeFieldListResult, err error)
ListFieldsByModuleAndType retrieve a list of fields of a given type identified by module name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. moduleName - the name of module. typeName - the name of type.
func (client ObjectDataTypesClient) ListFieldsByModuleAndTypePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (*http.Request, error)
ListFieldsByModuleAndTypePreparer prepares the ListFieldsByModuleAndType request.
func (client ObjectDataTypesClient) ListFieldsByModuleAndTypeResponder(resp *http.Response) (result TypeFieldListResult, err error)
ListFieldsByModuleAndTypeResponder handles the response to the ListFieldsByModuleAndType request. The method always closes the http.Response Body.
func (client ObjectDataTypesClient) ListFieldsByModuleAndTypeSender(req *http.Request) (*http.Response, error)
ListFieldsByModuleAndTypeSender sends the ListFieldsByModuleAndType request. The method will close the http.Response Body if it receives an error.
func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resourceGroupName string, automationAccountName string, typeName string) (result TypeFieldListResult, err error)
ListFieldsByType retrieve a list of fields of a given type across all accessible modules. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. typeName - the name of type.
func (client ObjectDataTypesClient) ListFieldsByTypePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, typeName string) (*http.Request, error)
ListFieldsByTypePreparer prepares the ListFieldsByType request.
func (client ObjectDataTypesClient) ListFieldsByTypeResponder(resp *http.Response) (result TypeFieldListResult, err error)
ListFieldsByTypeResponder handles the response to the ListFieldsByType request. The method always closes the http.Response Body.
func (client ObjectDataTypesClient) ListFieldsByTypeSender(req *http.Request) (*http.Response, error)
ListFieldsByTypeSender sends the ListFieldsByType request. The method will close the http.Response Body if it receives an error.
OperatingSystemType enumerates the values for operating system type.
type OperatingSystemType string
const ( // OperatingSystemTypeLinux ... OperatingSystemTypeLinux OperatingSystemType = "Linux" // OperatingSystemTypeWindows ... OperatingSystemTypeWindows OperatingSystemType = "Windows" )
func PossibleOperatingSystemTypeValues() []OperatingSystemType
PossibleOperatingSystemTypeValues returns an array of possible values for the OperatingSystemType const type.
Operation automation REST API operation
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - Provider, Resource and Operation values Display *OperationDisplay `json:"display,omitempty"` }
OperationDisplay provider, Resource and Operation values
type OperationDisplay struct { // Provider - Service provider: Microsoft.Automation Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed: Runbooks, Jobs etc. Resource *string `json:"resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationListResult the response model for the list of Automation operations
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of Automation operations supported by the Automation resource provider. Value *[]Operation `json:"value,omitempty"` }
OperationsClient is the automation Client
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient 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 (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
List lists all of the available Automation REST API operations.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client OperationsClient) 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.
PrivateEndpointConnection a private endpoint connection
type PrivateEndpointConnection struct { autorest.Response `json:"-"` // PrivateEndpointConnectionProperties - Resource properties. *PrivateEndpointConnectionProperties `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"` }
func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpointConnection.
func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.
PrivateEndpointConnectionListResult a list of private endpoint connections
type PrivateEndpointConnectionListResult struct { autorest.Response `json:"-"` // Value - Array of private endpoint connections Value *[]PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionProperties properties of a private endpoint connection.
type PrivateEndpointConnectionProperties struct { // PrivateEndpoint - Private endpoint which the connection belongs to. PrivateEndpoint *PrivateEndpointProperty `json:"privateEndpoint,omitempty"` // PrivateLinkServiceConnectionState - Connection State of the Private Endpoint Connection. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState,omitempty"` }
PrivateEndpointConnectionsClient is the automation Client
type PrivateEndpointConnectionsClient struct { BaseClient }
func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.
func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient 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 (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
CreateOrUpdate approve or reject a private endpoint connection with a given name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. privateEndpointConnectionName - the name of the private endpoint connection.
func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)
Delete deletes a private endpoint connection with a given name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. privateEndpointConnectionName - the name of the private endpoint connection.
func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client PrivateEndpointConnectionsClient) 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 (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)
Get gets a private endpoint connection. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. privateEndpointConnectionName - the name of the private endpoint connection.
func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, privateEndpointConnectionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateEndpointConnectionsClient) 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 (client PrivateEndpointConnectionsClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result PrivateEndpointConnectionListResult, err error)
ListByAutomationAccount list all private endpoint connections on a Automation account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client PrivateEndpointConnectionsClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client PrivateEndpointConnectionsClient) ListByAutomationAccountResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client PrivateEndpointConnectionsClient) 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.
PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateEndpointConnectionsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error) }
func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateEndpointConnectionsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateEndpointConnectionsClient) (autorest.Response, error) }
func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateEndpointProperty private endpoint which the connection belongs to.
type PrivateEndpointProperty struct { // ID - Resource id of the private endpoint. ID *string `json:"id,omitempty"` }
PrivateLinkResource a private link resource
type PrivateLinkResource struct { // PrivateLinkResourceProperties - Resource properties. *PrivateLinkResourceProperties `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"` }
func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResource.
func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.
PrivateLinkResourceListResult a list of private link resources
type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` // Value - Array of private link resources Value *[]PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceProperties properties of a private link resource.
type PrivateLinkResourceProperties struct { // GroupID - READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty"` // RequiredMembers - READ-ONLY; The private link resource required member names. RequiredMembers *[]string `json:"requiredMembers,omitempty"` }
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
PrivateLinkResourcesClient is the automation Client
type PrivateLinkResourcesClient struct { BaseClient }
func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.
func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient 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 (client PrivateLinkResourcesClient) Method(ctx context.Context, resourceGroupName string, automationAccountName string) (result PrivateLinkResourceListResult, err error)
Method gets the private link resources that need to be created for Automation account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client PrivateLinkResourcesClient) MethodPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
MethodPreparer prepares the Method request.
func (client PrivateLinkResourcesClient) MethodResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
MethodResponder handles the response to the Method request. The method always closes the http.Response Body.
func (client PrivateLinkResourcesClient) MethodSender(req *http.Request) (*http.Response, error)
MethodSender sends the Method request. The method will close the http.Response Body if it receives an error.
PrivateLinkServiceConnectionStateProperty connection State of the Private Endpoint Connection.
type PrivateLinkServiceConnectionStateProperty struct { // Status - The private link service connection status. Status *string `json:"status,omitempty"` // Description - The private link service connection description. Description *string `json:"description,omitempty"` // ActionsRequired - READ-ONLY; Any action that is required beyond basic workflow (approve/ reject/ disconnect) ActionsRequired *string `json:"actionsRequired,omitempty"` }
func (plscsp PrivateLinkServiceConnectionStateProperty) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkServiceConnectionStateProperty.
ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const ( // ProvisioningStateCompleted ... ProvisioningStateCompleted ProvisioningState = "Completed" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateRunning ... ProvisioningStateRunning ProvisioningState = "Running" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
ProxyResource ARM proxy resource.
type ProxyResource struct { // 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"` }
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
Python2PackageClient is the automation Client
type Python2PackageClient struct { BaseClient }
func NewPython2PackageClient(subscriptionID string) Python2PackageClient
NewPython2PackageClient creates an instance of the Python2PackageClient client.
func NewPython2PackageClientWithBaseURI(baseURI string, subscriptionID string) Python2PackageClient
NewPython2PackageClientWithBaseURI creates an instance of the Python2PackageClient 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 (client Python2PackageClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageCreateParameters) (result Module, err error)
CreateOrUpdate create or Update the python 2 package identified by package name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. packageName - the name of python package. parameters - the create or update parameters for python package.
func (client Python2PackageClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageCreateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client Python2PackageClient) CreateOrUpdateResponder(resp *http.Response) (result Module, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client Python2PackageClient) 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 (client Python2PackageClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string) (result autorest.Response, err error)
Delete delete the python 2 package by name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. packageName - the python package name.
func (client Python2PackageClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client Python2PackageClient) 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 (client Python2PackageClient) 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 (client Python2PackageClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string) (result Module, err error)
Get retrieve the python 2 package identified by package name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. packageName - the python package name.
func (client Python2PackageClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client Python2PackageClient) GetResponder(resp *http.Response) (result Module, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client Python2PackageClient) 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 (client Python2PackageClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ModuleListResultPage, err error)
ListByAutomationAccount retrieve a list of python 2 packages. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client Python2PackageClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result ModuleListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client Python2PackageClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client Python2PackageClient) ListByAutomationAccountResponder(resp *http.Response) (result ModuleListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client Python2PackageClient) 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 (client Python2PackageClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageUpdateParameters) (result Module, err error)
Update update the python 2 package identified by package name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. packageName - the name of python package. parameters - the update parameters for python package.
func (client Python2PackageClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, packageName string, parameters PythonPackageUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client Python2PackageClient) UpdateResponder(resp *http.Response) (result Module, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client Python2PackageClient) 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.
PythonPackageCreateParameters the parameters supplied to the create or update module operation.
type PythonPackageCreateParameters struct { // PythonPackageCreateProperties - Gets or sets the module create properties. *PythonPackageCreateProperties `json:"properties,omitempty"` // Tags - Gets or sets the tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (ppcp PythonPackageCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PythonPackageCreateParameters.
func (ppcp *PythonPackageCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PythonPackageCreateParameters struct.
PythonPackageCreateProperties the parameters supplied to the create or update module properties.
type PythonPackageCreateProperties struct { // ContentLink - Gets or sets the module content link. ContentLink *ContentLink `json:"contentLink,omitempty"` }
PythonPackageUpdateParameters the parameters supplied to the update module operation.
type PythonPackageUpdateParameters struct { // Tags - Gets or sets the tags attached to the resource. Tags map[string]*string `json:"tags"` }
func (ppup PythonPackageUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PythonPackageUpdateParameters.
RawGraphicalRunbookContent raw Graphical Runbook content
type RawGraphicalRunbookContent struct { // SchemaVersion - Schema version of the serializer. SchemaVersion *string `json:"schemaVersion,omitempty"` // RunbookDefinition - Serialized Graphical runbook RunbookDefinition *string `json:"runbookDefinition,omitempty"` // RunbookType - Runbook Type. Possible values include: 'GraphRunbookTypeGraphPowerShell', 'GraphRunbookTypeGraphPowerShellWorkflow' RunbookType GraphRunbookType `json:"runbookType,omitempty"` }
ReadCloser ...
type ReadCloser struct { autorest.Response `json:"-"` Value *io.ReadCloser `json:"value,omitempty"` }
Resource the core properties of ARM resources
type Resource struct { // 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"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
ResourceIdentityType enumerates the values for resource identity type.
type ResourceIdentityType string
const ( // ResourceIdentityTypeNone ... ResourceIdentityTypeNone ResourceIdentityType = "None" // ResourceIdentityTypeSystemAssigned ... ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" // ResourceIdentityTypeSystemAssignedUserAssigned ... ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" // ResourceIdentityTypeUserAssigned ... ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" )
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
RunAsCredentialAssociationProperty definition of RunAs credential to use for hybrid worker.
type RunAsCredentialAssociationProperty struct { // Name - Gets or sets the name of the credential. Name *string `json:"name,omitempty"` }
Runbook definition of the runbook type.
type Runbook struct { autorest.Response `json:"-"` // RunbookProperties - Gets or sets the runbook properties. *RunbookProperties `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"` }
func (r Runbook) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Runbook.
func (r *Runbook) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Runbook struct.
RunbookAssociationProperty the runbook property associated with the entity.
type RunbookAssociationProperty struct { // Name - Gets or sets the name of the runbook. Name *string `json:"name,omitempty"` }
RunbookClient is the automation Client
type RunbookClient struct { BaseClient }
func NewRunbookClient(subscriptionID string) RunbookClient
NewRunbookClient creates an instance of the RunbookClient client.
func NewRunbookClientWithBaseURI(baseURI string, subscriptionID string) RunbookClient
NewRunbookClientWithBaseURI creates an instance of the RunbookClient 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 (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookCreateOrUpdateParameters) (result Runbook, err error)
CreateOrUpdate create the runbook identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name. parameters - the create or update parameters for runbook. Provide either content link for a published runbook or draft, not both.
func (client RunbookClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client RunbookClient) CreateOrUpdateResponder(resp *http.Response) (result Runbook, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client RunbookClient) 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 (client RunbookClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error)
Delete delete the runbook by name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client RunbookClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client RunbookClient) 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 (client RunbookClient) 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 (client RunbookClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result Runbook, err error)
Get retrieve the runbook identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result ReadCloser, err error)
GetContent retrieve the content of runbook identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client RunbookClient) GetContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
GetContentPreparer prepares the GetContent request.
func (client RunbookClient) GetContentResponder(resp *http.Response) (result ReadCloser, err error)
GetContentResponder handles the response to the GetContent request. The method always closes the http.Response Body.
func (client RunbookClient) GetContentSender(req *http.Request) (*http.Response, error)
GetContentSender sends the GetContent request. The method will close the http.Response Body if it receives an error.
func (client RunbookClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client RunbookClient) GetResponder(resp *http.Response) (result Runbook, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client RunbookClient) 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 (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result RunbookListResultPage, err error)
ListByAutomationAccount retrieve a list of runbooks. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client RunbookClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result RunbookListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client RunbookClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client RunbookClient) ListByAutomationAccountResponder(resp *http.Response) (result RunbookListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client RunbookClient) 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 (client RunbookClient) Publish(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookPublishFuture, err error)
Publish publish runbook draft. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the parameters supplied to the publish runbook operation.
func (client RunbookClient) PublishPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
PublishPreparer prepares the Publish request.
func (client RunbookClient) PublishResponder(resp *http.Response) (result autorest.Response, err error)
PublishResponder handles the response to the Publish request. The method always closes the http.Response Body.
func (client RunbookClient) PublishSender(req *http.Request) (future RunbookPublishFuture, err error)
PublishSender sends the Publish request. The method will close the http.Response Body if it receives an error.
func (client RunbookClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookUpdateParameters) (result Runbook, err error)
Update update the runbook identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name. parameters - the update parameters for runbook.
func (client RunbookClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client RunbookClient) UpdateResponder(resp *http.Response) (result Runbook, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client RunbookClient) 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.
RunbookCreateOrUpdateDraftParameters the parameters supplied to the create or update runbook operation.
type RunbookCreateOrUpdateDraftParameters struct { // RunbookContent - Content of the Runbook. RunbookContent *string `json:"runbookContent,omitempty"` }
RunbookCreateOrUpdateDraftProperties the parameters supplied to the create or update draft runbook properties.
type RunbookCreateOrUpdateDraftProperties struct { // LogVerbose - Gets or sets verbose log option. LogVerbose *bool `json:"logVerbose,omitempty"` // LogProgress - Gets or sets progress log option. LogProgress *bool `json:"logProgress,omitempty"` // RunbookType - Gets or sets the type of the runbook. Possible values include: 'RunbookTypeEnumScript', 'RunbookTypeEnumGraph', 'RunbookTypeEnumPowerShellWorkflow', 'RunbookTypeEnumPowerShell', 'RunbookTypeEnumGraphPowerShellWorkflow', 'RunbookTypeEnumGraphPowerShell' RunbookType RunbookTypeEnum `json:"runbookType,omitempty"` // Draft - Gets or sets the draft runbook properties. Draft *RunbookDraft `json:"draft,omitempty"` // Description - Gets or sets the description of the runbook. Description *string `json:"description,omitempty"` // LogActivityTrace - Gets or sets the activity-level tracing options of the runbook. LogActivityTrace *int32 `json:"logActivityTrace,omitempty"` }
RunbookCreateOrUpdateParameters the parameters supplied to the create or update runbook operation.
type RunbookCreateOrUpdateParameters struct { // RunbookCreateOrUpdateProperties - Gets or sets runbook create or update properties. *RunbookCreateOrUpdateProperties `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"` }
func (rcoup RunbookCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RunbookCreateOrUpdateParameters.
func (rcoup *RunbookCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RunbookCreateOrUpdateParameters struct.
RunbookCreateOrUpdateProperties the parameters supplied to the create or update runbook properties.
type RunbookCreateOrUpdateProperties struct { // LogVerbose - Gets or sets verbose log option. LogVerbose *bool `json:"logVerbose,omitempty"` // LogProgress - Gets or sets progress log option. LogProgress *bool `json:"logProgress,omitempty"` // RunbookType - Gets or sets the type of the runbook. Possible values include: 'RunbookTypeEnumScript', 'RunbookTypeEnumGraph', 'RunbookTypeEnumPowerShellWorkflow', 'RunbookTypeEnumPowerShell', 'RunbookTypeEnumGraphPowerShellWorkflow', 'RunbookTypeEnumGraphPowerShell' RunbookType RunbookTypeEnum `json:"runbookType,omitempty"` // Draft - Gets or sets the draft runbook properties. Draft *RunbookDraft `json:"draft,omitempty"` // PublishContentLink - Gets or sets the published runbook content link. PublishContentLink *ContentLink `json:"publishContentLink,omitempty"` // Description - Gets or sets the description of the runbook. Description *string `json:"description,omitempty"` // LogActivityTrace - Gets or sets the activity-level tracing options of the runbook. LogActivityTrace *int32 `json:"logActivityTrace,omitempty"` }
RunbookDraft ...
type RunbookDraft struct { autorest.Response `json:"-"` // InEdit - Gets or sets whether runbook is in edit mode. InEdit *bool `json:"inEdit,omitempty"` // DraftContentLink - Gets or sets the draft runbook content link. DraftContentLink *ContentLink `json:"draftContentLink,omitempty"` // CreationTime - Gets or sets the creation time of the runbook draft. CreationTime *date.Time `json:"creationTime,omitempty"` // LastModifiedTime - Gets or sets the last modified time of the runbook draft. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // Parameters - Gets or sets the runbook draft parameters. Parameters map[string]*RunbookParameter `json:"parameters"` // OutputTypes - Gets or sets the runbook output types. OutputTypes *[]string `json:"outputTypes,omitempty"` }
func (rd RunbookDraft) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RunbookDraft.
RunbookDraftClient is the automation Client
type RunbookDraftClient struct { BaseClient }
func NewRunbookDraftClient(subscriptionID string) RunbookDraftClient
NewRunbookDraftClient creates an instance of the RunbookDraftClient client.
func NewRunbookDraftClientWithBaseURI(baseURI string, subscriptionID string) RunbookDraftClient
NewRunbookDraftClientWithBaseURI creates an instance of the RunbookDraftClient 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 (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraft, err error)
Get retrieve the runbook draft identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result ReadCloser, err error)
GetContent retrieve the content of runbook draft identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client RunbookDraftClient) GetContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
GetContentPreparer prepares the GetContent request.
func (client RunbookDraftClient) GetContentResponder(resp *http.Response) (result ReadCloser, err error)
GetContentResponder handles the response to the GetContent request. The method always closes the http.Response Body.
func (client RunbookDraftClient) GetContentSender(req *http.Request) (*http.Response, error)
GetContentSender sends the GetContent request. The method will close the http.Response Body if it receives an error.
func (client RunbookDraftClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client RunbookDraftClient) GetResponder(resp *http.Response) (result RunbookDraft, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client RunbookDraftClient) 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 (client RunbookDraftClient) ReplaceContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, runbookContent io.ReadCloser) (result RunbookDraftReplaceContentFuture, err error)
ReplaceContent replaces the runbook draft content. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name. runbookContent - the runbook draft content.
func (client RunbookDraftClient) ReplaceContentPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, runbookContent io.ReadCloser) (*http.Request, error)
ReplaceContentPreparer prepares the ReplaceContent request.
func (client RunbookDraftClient) ReplaceContentResponder(resp *http.Response) (result ReadCloser, err error)
ReplaceContentResponder handles the response to the ReplaceContent request. The method always closes the http.Response Body.
func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future RunbookDraftReplaceContentFuture, err error)
ReplaceContentSender sends the ReplaceContent request. The method will close the http.Response Body if it receives an error.
func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraftUndoEditResult, err error)
UndoEdit undo draft edit to last known published state identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client RunbookDraftClient) UndoEditPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
UndoEditPreparer prepares the UndoEdit request.
func (client RunbookDraftClient) UndoEditResponder(resp *http.Response) (result RunbookDraftUndoEditResult, err error)
UndoEditResponder handles the response to the UndoEdit request. The method always closes the http.Response Body.
func (client RunbookDraftClient) UndoEditSender(req *http.Request) (*http.Response, error)
UndoEditSender sends the UndoEdit request. The method will close the http.Response Body if it receives an error.
RunbookDraftReplaceContentFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type RunbookDraftReplaceContentFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(RunbookDraftClient) (ReadCloser, error) }
func (future *RunbookDraftReplaceContentFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
RunbookDraftUndoEditResult the response model for the undo edit runbook operation.
type RunbookDraftUndoEditResult struct { autorest.Response `json:"-"` // StatusCode - Possible values include: 'HTTPStatusCodeContinue', 'HTTPStatusCodeSwitchingProtocols', 'HTTPStatusCodeOK', 'HTTPStatusCodeCreated', 'HTTPStatusCodeAccepted', 'HTTPStatusCodeNonAuthoritativeInformation', 'HTTPStatusCodeNoContent', 'HTTPStatusCodeResetContent', 'HTTPStatusCodePartialContent', 'HTTPStatusCodeMultipleChoices', 'HTTPStatusCodeAmbiguous', 'HTTPStatusCodeMovedPermanently', 'HTTPStatusCodeMoved', 'HTTPStatusCodeFound', 'HTTPStatusCodeRedirect', 'HTTPStatusCodeSeeOther', 'HTTPStatusCodeRedirectMethod', 'HTTPStatusCodeNotModified', 'HTTPStatusCodeUseProxy', 'HTTPStatusCodeUnused', 'HTTPStatusCodeTemporaryRedirect', 'HTTPStatusCodeRedirectKeepVerb', 'HTTPStatusCodeBadRequest', 'HTTPStatusCodeUnauthorized', 'HTTPStatusCodePaymentRequired', 'HTTPStatusCodeForbidden', 'HTTPStatusCodeNotFound', 'HTTPStatusCodeMethodNotAllowed', 'HTTPStatusCodeNotAcceptable', 'HTTPStatusCodeProxyAuthenticationRequired', 'HTTPStatusCodeRequestTimeout', 'HTTPStatusCodeConflict', 'HTTPStatusCodeGone', 'HTTPStatusCodeLengthRequired', 'HTTPStatusCodePreconditionFailed', 'HTTPStatusCodeRequestEntityTooLarge', 'HTTPStatusCodeRequestURITooLong', 'HTTPStatusCodeUnsupportedMediaType', 'HTTPStatusCodeRequestedRangeNotSatisfiable', 'HTTPStatusCodeExpectationFailed', 'HTTPStatusCodeUpgradeRequired', 'HTTPStatusCodeInternalServerError', 'HTTPStatusCodeNotImplemented', 'HTTPStatusCodeBadGateway', 'HTTPStatusCodeServiceUnavailable', 'HTTPStatusCodeGatewayTimeout', 'HTTPStatusCodeHTTPVersionNotSupported' StatusCode HTTPStatusCode `json:"statusCode,omitempty"` RequestID *string `json:"requestId,omitempty"` }
RunbookListResult the response model for the list runbook operation.
type RunbookListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of runbooks. Value *[]Runbook `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (rlr RunbookListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
RunbookListResultIterator provides access to a complete listing of Runbook values.
type RunbookListResultIterator struct {
// contains filtered or unexported fields
}
func NewRunbookListResultIterator(page RunbookListResultPage) RunbookListResultIterator
Creates a new instance of the RunbookListResultIterator type.
func (iter *RunbookListResultIterator) 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 (iter *RunbookListResultIterator) 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 (iter RunbookListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter RunbookListResultIterator) Response() RunbookListResult
Response returns the raw server response from the last page request.
func (iter RunbookListResultIterator) Value() Runbook
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
RunbookListResultPage contains a page of Runbook values.
type RunbookListResultPage struct {
// contains filtered or unexported fields
}
func NewRunbookListResultPage(cur RunbookListResult, getNextPage func(context.Context, RunbookListResult) (RunbookListResult, error)) RunbookListResultPage
Creates a new instance of the RunbookListResultPage type.
func (page *RunbookListResultPage) 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 (page *RunbookListResultPage) 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 (page RunbookListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page RunbookListResultPage) Response() RunbookListResult
Response returns the raw server response from the last page request.
func (page RunbookListResultPage) Values() []Runbook
Values returns the slice of values for the current page or nil if there are no values.
RunbookParameter definition of the runbook parameter type.
type RunbookParameter struct { // Type - Gets or sets the type of the parameter. Type *string `json:"type,omitempty"` // IsMandatory - Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. IsMandatory *bool `json:"isMandatory,omitempty"` // Position - Get or sets the position of the parameter. Position *int32 `json:"position,omitempty"` // DefaultValue - Gets or sets the default value of parameter. DefaultValue *string `json:"defaultValue,omitempty"` }
RunbookProperties definition of the runbook property type.
type RunbookProperties struct { // RunbookType - Gets or sets the type of the runbook. Possible values include: 'RunbookTypeEnumScript', 'RunbookTypeEnumGraph', 'RunbookTypeEnumPowerShellWorkflow', 'RunbookTypeEnumPowerShell', 'RunbookTypeEnumGraphPowerShellWorkflow', 'RunbookTypeEnumGraphPowerShell' RunbookType RunbookTypeEnum `json:"runbookType,omitempty"` // PublishContentLink - Gets or sets the published runbook content link. PublishContentLink *ContentLink `json:"publishContentLink,omitempty"` // State - Gets or sets the state of the runbook. Possible values include: 'RunbookStateNew', 'RunbookStateEdit', 'RunbookStatePublished' State RunbookState `json:"state,omitempty"` // LogVerbose - Gets or sets verbose log option. LogVerbose *bool `json:"logVerbose,omitempty"` // LogProgress - Gets or sets progress log option. LogProgress *bool `json:"logProgress,omitempty"` // LogActivityTrace - Gets or sets the option to log activity trace of the runbook. LogActivityTrace *int32 `json:"logActivityTrace,omitempty"` // JobCount - Gets or sets the job count of the runbook. JobCount *int32 `json:"jobCount,omitempty"` // Parameters - Gets or sets the runbook parameters. Parameters map[string]*RunbookParameter `json:"parameters"` // OutputTypes - Gets or sets the runbook output types. OutputTypes *[]string `json:"outputTypes,omitempty"` // Draft - Gets or sets the draft runbook properties. Draft *RunbookDraft `json:"draft,omitempty"` // ProvisioningState - Gets or sets the provisioning state of the runbook. Possible values include: 'RunbookProvisioningStateSucceeded' ProvisioningState RunbookProvisioningState `json:"provisioningState,omitempty"` // LastModifiedBy - Gets or sets the last modified by. LastModifiedBy *string `json:"lastModifiedBy,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"` }
func (rp RunbookProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RunbookProperties.
RunbookProvisioningState enumerates the values for runbook provisioning state.
type RunbookProvisioningState string
const ( // RunbookProvisioningStateSucceeded ... RunbookProvisioningStateSucceeded RunbookProvisioningState = "Succeeded" )
func PossibleRunbookProvisioningStateValues() []RunbookProvisioningState
PossibleRunbookProvisioningStateValues returns an array of possible values for the RunbookProvisioningState const type.
RunbookPublishFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type RunbookPublishFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(RunbookClient) (autorest.Response, error) }
func (future *RunbookPublishFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
RunbookState enumerates the values for runbook state.
type RunbookState string
const ( // RunbookStateEdit ... RunbookStateEdit RunbookState = "Edit" // RunbookStateNew ... RunbookStateNew RunbookState = "New" // RunbookStatePublished ... RunbookStatePublished RunbookState = "Published" )
func PossibleRunbookStateValues() []RunbookState
PossibleRunbookStateValues returns an array of possible values for the RunbookState const type.
RunbookTypeEnum enumerates the values for runbook type enum.
type RunbookTypeEnum string
const ( // RunbookTypeEnumGraph ... RunbookTypeEnumGraph RunbookTypeEnum = "Graph" // RunbookTypeEnumGraphPowerShell ... RunbookTypeEnumGraphPowerShell RunbookTypeEnum = "GraphPowerShell" // RunbookTypeEnumGraphPowerShellWorkflow ... RunbookTypeEnumGraphPowerShellWorkflow RunbookTypeEnum = "GraphPowerShellWorkflow" // RunbookTypeEnumPowerShell ... RunbookTypeEnumPowerShell RunbookTypeEnum = "PowerShell" // RunbookTypeEnumPowerShellWorkflow ... RunbookTypeEnumPowerShellWorkflow RunbookTypeEnum = "PowerShellWorkflow" // RunbookTypeEnumScript ... RunbookTypeEnumScript RunbookTypeEnum = "Script" )
func PossibleRunbookTypeEnumValues() []RunbookTypeEnum
PossibleRunbookTypeEnumValues returns an array of possible values for the RunbookTypeEnum const type.
RunbookUpdateParameters the parameters supplied to the update runbook operation.
type RunbookUpdateParameters struct { // RunbookUpdateProperties - Gets or sets the runbook update properties. *RunbookUpdateProperties `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"` }
func (rup RunbookUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RunbookUpdateParameters.
func (rup *RunbookUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RunbookUpdateParameters struct.
RunbookUpdateProperties the parameters supplied to the update runbook properties.
type RunbookUpdateProperties struct { // Description - Gets or sets the description of the runbook. Description *string `json:"description,omitempty"` // LogVerbose - Gets or sets verbose log option. LogVerbose *bool `json:"logVerbose,omitempty"` // LogProgress - Gets or sets progress log option. LogProgress *bool `json:"logProgress,omitempty"` // LogActivityTrace - Gets or sets the activity-level tracing options of the runbook. LogActivityTrace *int32 `json:"logActivityTrace,omitempty"` }
SUCScheduleProperties definition of schedule parameters.
type SUCScheduleProperties struct { // StartTime - Gets or sets the start time of the schedule. StartTime *date.Time `json:"startTime,omitempty"` // StartTimeOffsetMinutes - READ-ONLY; Gets the start time's offset in minutes. StartTimeOffsetMinutes *float64 `json:"startTimeOffsetMinutes,omitempty"` // ExpiryTime - Gets or sets the end time of the schedule. ExpiryTime *date.Time `json:"expiryTime,omitempty"` // ExpiryTimeOffsetMinutes - Gets or sets the expiry time's offset in minutes. ExpiryTimeOffsetMinutes *float64 `json:"expiryTimeOffsetMinutes,omitempty"` // IsEnabled - Gets or sets a value indicating whether this schedule is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` // NextRun - Gets or sets the next run time of the schedule. NextRun *date.Time `json:"nextRun,omitempty"` // NextRunOffsetMinutes - Gets or sets the next run time's offset in minutes. NextRunOffsetMinutes *float64 `json:"nextRunOffsetMinutes,omitempty"` // Interval - Gets or sets the interval of the schedule. Interval *int64 `json:"interval,omitempty"` // Frequency - Gets or sets the frequency of the schedule. Possible values include: 'ScheduleFrequencyOneTime', 'ScheduleFrequencyDay', 'ScheduleFrequencyHour', 'ScheduleFrequencyWeek', 'ScheduleFrequencyMonth', 'ScheduleFrequencyMinute' Frequency ScheduleFrequency `json:"frequency,omitempty"` // TimeZone - Gets or sets the time zone of the schedule. TimeZone *string `json:"timeZone,omitempty"` // AdvancedSchedule - Gets or sets the advanced schedule. AdvancedSchedule *AdvancedSchedule `json:"advancedSchedule,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"` }
func (ssp SUCScheduleProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SUCScheduleProperties.
Schedule definition of the schedule.
type Schedule struct { autorest.Response `json:"-"` // ScheduleProperties - Gets or sets the properties of the schedule. *ScheduleProperties `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"` }
func (s Schedule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Schedule.
func (s *Schedule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Schedule struct.
ScheduleAssociationProperty the schedule property associated with the entity.
type ScheduleAssociationProperty struct { // Name - Gets or sets the name of the Schedule. Name *string `json:"name,omitempty"` }
ScheduleClient is the automation Client
type ScheduleClient struct { BaseClient }
func NewScheduleClient(subscriptionID string) ScheduleClient
NewScheduleClient creates an instance of the ScheduleClient client.
func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) ScheduleClient
NewScheduleClientWithBaseURI creates an instance of the ScheduleClient 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 (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleCreateOrUpdateParameters) (result Schedule, err error)
CreateOrUpdate create a schedule. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. scheduleName - the schedule name. parameters - the parameters supplied to the create or update schedule operation.
func (client ScheduleClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ScheduleClient) CreateOrUpdateResponder(resp *http.Response) (result Schedule, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ScheduleClient) 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 (client ScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (result autorest.Response, err error)
Delete delete the schedule identified by schedule name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. scheduleName - the schedule name.
func (client ScheduleClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ScheduleClient) 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 (client ScheduleClient) 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 (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (result Schedule, err error)
Get retrieve the schedule identified by schedule name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. scheduleName - the schedule name.
func (client ScheduleClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ScheduleClient) GetResponder(resp *http.Response) (result Schedule, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ScheduleClient) 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 (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ScheduleListResultPage, err error)
ListByAutomationAccount retrieve a list of schedules. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client ScheduleClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result ScheduleListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client ScheduleClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client ScheduleClient) ListByAutomationAccountResponder(resp *http.Response) (result ScheduleListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client ScheduleClient) 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 (client ScheduleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleUpdateParameters) (result Schedule, err error)
Update update the schedule identified by schedule name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. scheduleName - the schedule name. parameters - the parameters supplied to the update schedule operation.
func (client ScheduleClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ScheduleClient) UpdateResponder(resp *http.Response) (result Schedule, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ScheduleClient) 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.
ScheduleCreateOrUpdateParameters the parameters supplied to the create or update schedule operation.
type ScheduleCreateOrUpdateParameters struct { // Name - Gets or sets the name of the Schedule. Name *string `json:"name,omitempty"` // ScheduleCreateOrUpdateProperties - Gets or sets the list of schedule properties. *ScheduleCreateOrUpdateProperties `json:"properties,omitempty"` }
func (scoup ScheduleCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScheduleCreateOrUpdateParameters.
func (scoup *ScheduleCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ScheduleCreateOrUpdateParameters struct.
ScheduleCreateOrUpdateProperties the parameters supplied to the create or update schedule operation.
type ScheduleCreateOrUpdateProperties struct { // Description - Gets or sets the description of the schedule. Description *string `json:"description,omitempty"` // StartTime - Gets or sets the start time of the schedule. StartTime *date.Time `json:"startTime,omitempty"` // ExpiryTime - Gets or sets the end time of the schedule. ExpiryTime *date.Time `json:"expiryTime,omitempty"` // Interval - Gets or sets the interval of the schedule. Interval interface{} `json:"interval,omitempty"` // Frequency - Gets or sets the frequency of the schedule. Possible values include: 'ScheduleFrequencyOneTime', 'ScheduleFrequencyDay', 'ScheduleFrequencyHour', 'ScheduleFrequencyWeek', 'ScheduleFrequencyMonth', 'ScheduleFrequencyMinute' Frequency ScheduleFrequency `json:"frequency,omitempty"` // TimeZone - Gets or sets the time zone of the schedule. TimeZone *string `json:"timeZone,omitempty"` // AdvancedSchedule - Gets or sets the AdvancedSchedule. AdvancedSchedule *AdvancedSchedule `json:"advancedSchedule,omitempty"` }
ScheduleDay enumerates the values for schedule day.
type ScheduleDay string
const ( // ScheduleDayFriday ... ScheduleDayFriday ScheduleDay = "Friday" // ScheduleDayMonday ... ScheduleDayMonday ScheduleDay = "Monday" // ScheduleDaySaturday ... ScheduleDaySaturday ScheduleDay = "Saturday" // ScheduleDaySunday ... ScheduleDaySunday ScheduleDay = "Sunday" // ScheduleDayThursday ... ScheduleDayThursday ScheduleDay = "Thursday" // ScheduleDayTuesday ... ScheduleDayTuesday ScheduleDay = "Tuesday" // ScheduleDayWednesday ... ScheduleDayWednesday ScheduleDay = "Wednesday" )
func PossibleScheduleDayValues() []ScheduleDay
PossibleScheduleDayValues returns an array of possible values for the ScheduleDay const type.
ScheduleFrequency enumerates the values for schedule frequency.
type ScheduleFrequency string
const ( // ScheduleFrequencyDay ... ScheduleFrequencyDay ScheduleFrequency = "Day" // ScheduleFrequencyHour ... ScheduleFrequencyHour ScheduleFrequency = "Hour" // ScheduleFrequencyMinute The minimum allowed interval for Minute schedules is 15 minutes. ScheduleFrequencyMinute ScheduleFrequency = "Minute" // ScheduleFrequencyMonth ... ScheduleFrequencyMonth ScheduleFrequency = "Month" // ScheduleFrequencyOneTime ... ScheduleFrequencyOneTime ScheduleFrequency = "OneTime" // ScheduleFrequencyWeek ... ScheduleFrequencyWeek ScheduleFrequency = "Week" )
func PossibleScheduleFrequencyValues() []ScheduleFrequency
PossibleScheduleFrequencyValues returns an array of possible values for the ScheduleFrequency const type.
ScheduleListResult the response model for the list schedule operation.
type ScheduleListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of schedules. Value *[]Schedule `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (slr ScheduleListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ScheduleListResultIterator provides access to a complete listing of Schedule values.
type ScheduleListResultIterator struct {
// contains filtered or unexported fields
}
func NewScheduleListResultIterator(page ScheduleListResultPage) ScheduleListResultIterator
Creates a new instance of the ScheduleListResultIterator type.
func (iter *ScheduleListResultIterator) 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 (iter *ScheduleListResultIterator) 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 (iter ScheduleListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ScheduleListResultIterator) Response() ScheduleListResult
Response returns the raw server response from the last page request.
func (iter ScheduleListResultIterator) Value() Schedule
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ScheduleListResultPage contains a page of Schedule values.
type ScheduleListResultPage struct {
// contains filtered or unexported fields
}
func NewScheduleListResultPage(cur ScheduleListResult, getNextPage func(context.Context, ScheduleListResult) (ScheduleListResult, error)) ScheduleListResultPage
Creates a new instance of the ScheduleListResultPage type.
func (page *ScheduleListResultPage) 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 (page *ScheduleListResultPage) 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 (page ScheduleListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ScheduleListResultPage) Response() ScheduleListResult
Response returns the raw server response from the last page request.
func (page ScheduleListResultPage) Values() []Schedule
Values returns the slice of values for the current page or nil if there are no values.
ScheduleProperties definition of schedule parameters.
type ScheduleProperties struct { // StartTime - Gets or sets the start time of the schedule. StartTime *date.Time `json:"startTime,omitempty"` // StartTimeOffsetMinutes - READ-ONLY; Gets the start time's offset in minutes. StartTimeOffsetMinutes *float64 `json:"startTimeOffsetMinutes,omitempty"` // ExpiryTime - Gets or sets the end time of the schedule. ExpiryTime *date.Time `json:"expiryTime,omitempty"` // ExpiryTimeOffsetMinutes - Gets or sets the expiry time's offset in minutes. ExpiryTimeOffsetMinutes *float64 `json:"expiryTimeOffsetMinutes,omitempty"` // IsEnabled - Gets or sets a value indicating whether this schedule is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` // NextRun - Gets or sets the next run time of the schedule. NextRun *date.Time `json:"nextRun,omitempty"` // NextRunOffsetMinutes - Gets or sets the next run time's offset in minutes. NextRunOffsetMinutes *float64 `json:"nextRunOffsetMinutes,omitempty"` // Interval - Gets or sets the interval of the schedule. Interval interface{} `json:"interval,omitempty"` // Frequency - Gets or sets the frequency of the schedule. Possible values include: 'ScheduleFrequencyOneTime', 'ScheduleFrequencyDay', 'ScheduleFrequencyHour', 'ScheduleFrequencyWeek', 'ScheduleFrequencyMonth', 'ScheduleFrequencyMinute' Frequency ScheduleFrequency `json:"frequency,omitempty"` // TimeZone - Gets or sets the time zone of the schedule. TimeZone *string `json:"timeZone,omitempty"` // AdvancedSchedule - Gets or sets the advanced schedule. AdvancedSchedule *AdvancedSchedule `json:"advancedSchedule,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"` }
func (sp ScheduleProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScheduleProperties.
ScheduleUpdateParameters the parameters supplied to the update schedule operation.
type ScheduleUpdateParameters struct { // Name - Gets or sets the name of the Schedule. Name *string `json:"name,omitempty"` // ScheduleUpdateProperties - Gets or sets the list of schedule properties. *ScheduleUpdateProperties `json:"properties,omitempty"` }
func (sup ScheduleUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScheduleUpdateParameters.
func (sup *ScheduleUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ScheduleUpdateParameters struct.
ScheduleUpdateProperties the parameters supplied to the update schedule operation.
type ScheduleUpdateProperties struct { // Description - Gets or sets the description of the schedule. Description *string `json:"description,omitempty"` // IsEnabled - Gets or sets a value indicating whether this schedule is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` }
SetObject ...
type SetObject struct { autorest.Response `json:"-"` Value interface{} `json:"value,omitempty"` }
Sku the account SKU.
type Sku struct { // Name - Gets or sets the SKU name of the account. Possible values include: 'SkuNameEnumFree', 'SkuNameEnumBasic' Name SkuNameEnum `json:"name,omitempty"` // Family - Gets or sets the SKU family. Family *string `json:"family,omitempty"` // Capacity - Gets or sets the SKU capacity. Capacity *int32 `json:"capacity,omitempty"` }
SkuNameEnum enumerates the values for sku name enum.
type SkuNameEnum string
const ( // SkuNameEnumBasic ... SkuNameEnumBasic SkuNameEnum = "Basic" // SkuNameEnumFree ... SkuNameEnumFree SkuNameEnum = "Free" )
func PossibleSkuNameEnumValues() []SkuNameEnum
PossibleSkuNameEnumValues returns an array of possible values for the SkuNameEnum const type.
SoftwareUpdateConfiguration software update configuration properties.
type SoftwareUpdateConfiguration struct { autorest.Response `json:"-"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // ID - READ-ONLY; Resource Id. ID *string `json:"id,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // SoftwareUpdateConfigurationProperties - Software update configuration properties. *SoftwareUpdateConfigurationProperties `json:"properties,omitempty"` }
func (suc SoftwareUpdateConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfiguration.
func (suc *SoftwareUpdateConfiguration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SoftwareUpdateConfiguration struct.
SoftwareUpdateConfigurationCollectionItem software update configuration collection item properties.
type SoftwareUpdateConfigurationCollectionItem struct { // Name - READ-ONLY; Name of the software update configuration. Name *string `json:"name,omitempty"` // ID - READ-ONLY; Resource Id of the software update configuration ID *string `json:"id,omitempty"` // SoftwareUpdateConfigurationCollectionItemProperties - Software update configuration properties. *SoftwareUpdateConfigurationCollectionItemProperties `json:"properties,omitempty"` }
func (succi SoftwareUpdateConfigurationCollectionItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfigurationCollectionItem.
func (succi *SoftwareUpdateConfigurationCollectionItem) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SoftwareUpdateConfigurationCollectionItem struct.
SoftwareUpdateConfigurationCollectionItemProperties software update configuration collection item properties.
type SoftwareUpdateConfigurationCollectionItemProperties struct { // UpdateConfiguration - Update specific properties of the software update configuration. UpdateConfiguration *UpdateConfiguration `json:"updateConfiguration,omitempty"` // Tasks - Pre and Post Tasks defined Tasks *SoftwareUpdateConfigurationTasks `json:"tasks,omitempty"` // Frequency - execution frequency of the schedule associated with the software update configuration. Possible values include: 'ScheduleFrequencyOneTime', 'ScheduleFrequencyDay', 'ScheduleFrequencyHour', 'ScheduleFrequencyWeek', 'ScheduleFrequencyMonth', 'ScheduleFrequencyMinute' Frequency ScheduleFrequency `json:"frequency,omitempty"` // StartTime - the start time of the update. StartTime *date.Time `json:"startTime,omitempty"` // CreationTime - READ-ONLY; Creation time of the software update configuration, which only appears in the response. CreationTime *date.Time `json:"creationTime,omitempty"` // LastModifiedTime - READ-ONLY; Last time software update configuration was modified, which only appears in the response. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state for the software update configuration, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // NextRun - ext run time of the update. NextRun *date.Time `json:"nextRun,omitempty"` }
func (succip SoftwareUpdateConfigurationCollectionItemProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfigurationCollectionItemProperties.
SoftwareUpdateConfigurationListResult result of listing all software update configuration
type SoftwareUpdateConfigurationListResult struct { autorest.Response `json:"-"` // Value - outer object returned when listing all software update configurations Value *[]SoftwareUpdateConfigurationCollectionItem `json:"value,omitempty"` }
SoftwareUpdateConfigurationMachineRun software update configuration machine run model.
type SoftwareUpdateConfigurationMachineRun struct { autorest.Response `json:"-"` // Name - READ-ONLY; Name of the software update configuration machine run Name *string `json:"name,omitempty"` // ID - READ-ONLY; Resource Id of the software update configuration machine run ID *string `json:"id,omitempty"` // UpdateConfigurationMachineRunProperties - Software update configuration machine run properties. *UpdateConfigurationMachineRunProperties `json:"properties,omitempty"` }
func (sucmr SoftwareUpdateConfigurationMachineRun) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfigurationMachineRun.
func (sucmr *SoftwareUpdateConfigurationMachineRun) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SoftwareUpdateConfigurationMachineRun struct.
SoftwareUpdateConfigurationMachineRunListResult result of listing all software update configuration machine runs
type SoftwareUpdateConfigurationMachineRunListResult struct { autorest.Response `json:"-"` // Value - outer object returned when listing all software update configuration machine runs Value *[]SoftwareUpdateConfigurationMachineRun `json:"value,omitempty"` // NextLink - link to next page of results. NextLink *string `json:"nextLink,omitempty"` }
SoftwareUpdateConfigurationMachineRunsClient is the automation Client
type SoftwareUpdateConfigurationMachineRunsClient struct { BaseClient }
func NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID string) SoftwareUpdateConfigurationMachineRunsClient
NewSoftwareUpdateConfigurationMachineRunsClient creates an instance of the SoftwareUpdateConfigurationMachineRunsClient client.
func NewSoftwareUpdateConfigurationMachineRunsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationMachineRunsClient
NewSoftwareUpdateConfigurationMachineRunsClientWithBaseURI creates an instance of the SoftwareUpdateConfigurationMachineRunsClient 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 (client SoftwareUpdateConfigurationMachineRunsClient) GetByID(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationMachineRunID uuid.UUID, clientRequestID string) (result SoftwareUpdateConfigurationMachineRun, err error)
GetByID get a single software update configuration machine run by Id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. softwareUpdateConfigurationMachineRunID - the Id of the software update configuration machine run. clientRequestID - identifies this specific client request.
func (client SoftwareUpdateConfigurationMachineRunsClient) GetByIDPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationMachineRunID uuid.UUID, clientRequestID string) (*http.Request, error)
GetByIDPreparer prepares the GetByID request.
func (client SoftwareUpdateConfigurationMachineRunsClient) GetByIDResponder(resp *http.Response) (result SoftwareUpdateConfigurationMachineRun, err error)
GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationMachineRunsClient) GetByIDSender(req *http.Request) (*http.Response, error)
GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.
func (client SoftwareUpdateConfigurationMachineRunsClient) List(ctx context.Context, resourceGroupName string, automationAccountName string, clientRequestID string, filter string, skip string, top string) (result SoftwareUpdateConfigurationMachineRunListResult, err error)
List return list of software update configuration machine runs Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. clientRequestID - identifies this specific client request. filter - the filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' skip - number of entries you skip before returning results top - maximum number of entries returned in the results collection
func (client SoftwareUpdateConfigurationMachineRunsClient) ListPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, clientRequestID string, filter string, skip string, top string) (*http.Request, error)
ListPreparer prepares the List request.
func (client SoftwareUpdateConfigurationMachineRunsClient) ListResponder(resp *http.Response) (result SoftwareUpdateConfigurationMachineRunListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationMachineRunsClient) 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.
SoftwareUpdateConfigurationProperties software update configuration properties.
type SoftwareUpdateConfigurationProperties struct { // UpdateConfiguration - update specific properties for the Software update configuration UpdateConfiguration *UpdateConfiguration `json:"updateConfiguration,omitempty"` // ScheduleInfo - Schedule information for the Software update configuration ScheduleInfo *SUCScheduleProperties `json:"scheduleInfo,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state for the software update configuration, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` // Error - Details of provisioning error Error *ErrorResponse `json:"error,omitempty"` // CreationTime - READ-ONLY; Creation time of the resource, which only appears in the response. CreationTime *date.Time `json:"creationTime,omitempty"` // CreatedBy - READ-ONLY; CreatedBy property, which only appears in the response. CreatedBy *string `json:"createdBy,omitempty"` // LastModifiedTime - READ-ONLY; Last time resource was modified, which only appears in the response. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastModifiedBy - READ-ONLY; LastModifiedBy property, which only appears in the response. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Tasks - Tasks information for the Software update configuration. Tasks *SoftwareUpdateConfigurationTasks `json:"tasks,omitempty"` }
func (sucp SoftwareUpdateConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfigurationProperties.
SoftwareUpdateConfigurationRun software update configuration Run properties.
type SoftwareUpdateConfigurationRun struct { autorest.Response `json:"-"` // Name - READ-ONLY; Name of the software update configuration run. Name *string `json:"name,omitempty"` // ID - READ-ONLY; Resource Id of the software update configuration run ID *string `json:"id,omitempty"` // SoftwareUpdateConfigurationRunProperties - Software update configuration Run properties. *SoftwareUpdateConfigurationRunProperties `json:"properties,omitempty"` }
func (sucr SoftwareUpdateConfigurationRun) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfigurationRun.
func (sucr *SoftwareUpdateConfigurationRun) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SoftwareUpdateConfigurationRun struct.
SoftwareUpdateConfigurationRunListResult result of listing all software update configuration runs
type SoftwareUpdateConfigurationRunListResult struct { autorest.Response `json:"-"` // Value - outer object returned when listing all software update configuration runs Value *[]SoftwareUpdateConfigurationRun `json:"value,omitempty"` // NextLink - link to next page of results. NextLink *string `json:"nextLink,omitempty"` }
SoftwareUpdateConfigurationRunProperties software update configuration properties.
type SoftwareUpdateConfigurationRunProperties struct { // SoftwareUpdateConfiguration - software update configuration triggered this run SoftwareUpdateConfiguration *UpdateConfigurationNavigation `json:"softwareUpdateConfiguration,omitempty"` // Status - READ-ONLY; Status of the software update configuration run. Status *string `json:"status,omitempty"` // ConfiguredDuration - READ-ONLY; Configured duration for the software update configuration run. ConfiguredDuration *string `json:"configuredDuration,omitempty"` // OsType - READ-ONLY; Operating system target of the software update configuration triggered this run OsType *string `json:"osType,omitempty"` // StartTime - READ-ONLY; Start time of the software update configuration run. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; End time of the software update configuration run. EndTime *date.Time `json:"endTime,omitempty"` // ComputerCount - READ-ONLY; Number of computers in the software update configuration run. ComputerCount *int32 `json:"computerCount,omitempty"` // FailedCount - READ-ONLY; Number of computers with failed status. FailedCount *int32 `json:"failedCount,omitempty"` // CreationTime - READ-ONLY; Creation time of the resource, which only appears in the response. CreationTime *date.Time `json:"creationTime,omitempty"` // CreatedBy - READ-ONLY; CreatedBy property, which only appears in the response. CreatedBy *string `json:"createdBy,omitempty"` // LastModifiedTime - READ-ONLY; Last time resource was modified, which only appears in the response. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastModifiedBy - READ-ONLY; LastModifiedBy property, which only appears in the response. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Tasks - Software update configuration tasks triggered in this run Tasks *SoftwareUpdateConfigurationRunTasks `json:"tasks,omitempty"` }
func (sucrp SoftwareUpdateConfigurationRunProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SoftwareUpdateConfigurationRunProperties.
SoftwareUpdateConfigurationRunTaskProperties task properties of the software update configuration.
type SoftwareUpdateConfigurationRunTaskProperties struct { // Status - The status of the task. Status *string `json:"status,omitempty"` // Source - The name of the source of the task. Source *string `json:"source,omitempty"` // JobID - The job id of the task. JobID *string `json:"jobId,omitempty"` }
SoftwareUpdateConfigurationRunTasks software update configuration run tasks model.
type SoftwareUpdateConfigurationRunTasks struct { // PreTask - Pre task properties. PreTask *SoftwareUpdateConfigurationRunTaskProperties `json:"preTask,omitempty"` // PostTask - Post task properties. PostTask *SoftwareUpdateConfigurationRunTaskProperties `json:"postTask,omitempty"` }
SoftwareUpdateConfigurationRunsClient is the automation Client
type SoftwareUpdateConfigurationRunsClient struct { BaseClient }
func NewSoftwareUpdateConfigurationRunsClient(subscriptionID string) SoftwareUpdateConfigurationRunsClient
NewSoftwareUpdateConfigurationRunsClient creates an instance of the SoftwareUpdateConfigurationRunsClient client.
func NewSoftwareUpdateConfigurationRunsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationRunsClient
NewSoftwareUpdateConfigurationRunsClientWithBaseURI creates an instance of the SoftwareUpdateConfigurationRunsClient 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 (client SoftwareUpdateConfigurationRunsClient) GetByID(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationRunID uuid.UUID, clientRequestID string) (result SoftwareUpdateConfigurationRun, err error)
GetByID get a single software update configuration Run by Id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. softwareUpdateConfigurationRunID - the Id of the software update configuration run. clientRequestID - identifies this specific client request.
func (client SoftwareUpdateConfigurationRunsClient) GetByIDPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationRunID uuid.UUID, clientRequestID string) (*http.Request, error)
GetByIDPreparer prepares the GetByID request.
func (client SoftwareUpdateConfigurationRunsClient) GetByIDResponder(resp *http.Response) (result SoftwareUpdateConfigurationRun, err error)
GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationRunsClient) GetByIDSender(req *http.Request) (*http.Response, error)
GetByIDSender sends the GetByID request. The method will close the http.Response Body if it receives an error.
func (client SoftwareUpdateConfigurationRunsClient) List(ctx context.Context, resourceGroupName string, automationAccountName string, clientRequestID string, filter string, skip string, top string) (result SoftwareUpdateConfigurationRunListResult, err error)
List return list of software update configuration runs Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. clientRequestID - identifies this specific client request. filter - the filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' skip - number of entries you skip before returning results top - maximum number of entries returned in the results collection
func (client SoftwareUpdateConfigurationRunsClient) ListPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, clientRequestID string, filter string, skip string, top string) (*http.Request, error)
ListPreparer prepares the List request.
func (client SoftwareUpdateConfigurationRunsClient) ListResponder(resp *http.Response) (result SoftwareUpdateConfigurationRunListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationRunsClient) 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.
SoftwareUpdateConfigurationTasks task properties of the software update configuration.
type SoftwareUpdateConfigurationTasks struct { // PreTask - Pre task properties. PreTask *TaskProperties `json:"preTask,omitempty"` // PostTask - Post task properties. PostTask *TaskProperties `json:"postTask,omitempty"` }
SoftwareUpdateConfigurationsClient is the automation Client
type SoftwareUpdateConfigurationsClient struct { BaseClient }
func NewSoftwareUpdateConfigurationsClient(subscriptionID string) SoftwareUpdateConfigurationsClient
NewSoftwareUpdateConfigurationsClient creates an instance of the SoftwareUpdateConfigurationsClient client.
func NewSoftwareUpdateConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationsClient
NewSoftwareUpdateConfigurationsClientWithBaseURI creates an instance of the SoftwareUpdateConfigurationsClient 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 (client SoftwareUpdateConfigurationsClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, parameters SoftwareUpdateConfiguration, clientRequestID string) (result SoftwareUpdateConfiguration, err error)
Create create a new software update configuration with the name given in the URI. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. softwareUpdateConfigurationName - the name of the software update configuration to be created. parameters - request body. clientRequestID - identifies this specific client request.
func (client SoftwareUpdateConfigurationsClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, parameters SoftwareUpdateConfiguration, clientRequestID string) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client SoftwareUpdateConfigurationsClient) CreateResponder(resp *http.Response) (result SoftwareUpdateConfiguration, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationsClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client SoftwareUpdateConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, clientRequestID string) (result autorest.Response, err error)
Delete delete a specific software update configuration. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. softwareUpdateConfigurationName - the name of the software update configuration to be created. clientRequestID - identifies this specific client request.
func (client SoftwareUpdateConfigurationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, clientRequestID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client SoftwareUpdateConfigurationsClient) 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 (client SoftwareUpdateConfigurationsClient) 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 (client SoftwareUpdateConfigurationsClient) GetByName(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, clientRequestID string) (result SoftwareUpdateConfiguration, err error)
GetByName get a single software update configuration by name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. softwareUpdateConfigurationName - the name of the software update configuration to be created. clientRequestID - identifies this specific client request.
func (client SoftwareUpdateConfigurationsClient) GetByNamePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, softwareUpdateConfigurationName string, clientRequestID string) (*http.Request, error)
GetByNamePreparer prepares the GetByName request.
func (client SoftwareUpdateConfigurationsClient) GetByNameResponder(resp *http.Response) (result SoftwareUpdateConfiguration, err error)
GetByNameResponder handles the response to the GetByName request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationsClient) GetByNameSender(req *http.Request) (*http.Response, error)
GetByNameSender sends the GetByName request. The method will close the http.Response Body if it receives an error.
func (client SoftwareUpdateConfigurationsClient) List(ctx context.Context, resourceGroupName string, automationAccountName string, clientRequestID string, filter string) (result SoftwareUpdateConfigurationListResult, err error)
List get all software update configurations for the account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. clientRequestID - identifies this specific client request. filter - the filter to apply on the operation.
func (client SoftwareUpdateConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, clientRequestID string, filter string) (*http.Request, error)
ListPreparer prepares the List request.
func (client SoftwareUpdateConfigurationsClient) ListResponder(resp *http.Response) (result SoftwareUpdateConfigurationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SoftwareUpdateConfigurationsClient) 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.
SourceControl definition of the source control.
type SourceControl struct { autorest.Response `json:"-"` // SourceControlProperties - The properties of the source control. *SourceControlProperties `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"` }
func (sc SourceControl) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControl.
func (sc *SourceControl) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControl struct.
SourceControlClient is the automation Client
type SourceControlClient struct { BaseClient }
func NewSourceControlClient(subscriptionID string) SourceControlClient
NewSourceControlClient creates an instance of the SourceControlClient client.
func NewSourceControlClientWithBaseURI(baseURI string, subscriptionID string) SourceControlClient
NewSourceControlClientWithBaseURI creates an instance of the SourceControlClient 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 (client SourceControlClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, parameters SourceControlCreateOrUpdateParameters) (result SourceControl, err error)
CreateOrUpdate create a source control. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. parameters - the parameters supplied to the create or update source control operation.
func (client SourceControlClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, parameters SourceControlCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client SourceControlClient) CreateOrUpdateResponder(resp *http.Response) (result SourceControl, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client SourceControlClient) 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 (client SourceControlClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string) (result autorest.Response, err error)
Delete delete the source control. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the name of source control.
func (client SourceControlClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client SourceControlClient) 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 (client SourceControlClient) 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 (client SourceControlClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string) (result SourceControl, err error)
Get retrieve the source control identified by source control name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the name of source control.
func (client SourceControlClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SourceControlClient) GetResponder(resp *http.Response) (result SourceControl, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SourceControlClient) 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 (client SourceControlClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result SourceControlListResultPage, err error)
ListByAutomationAccount retrieve a list of source controls. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client SourceControlClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result SourceControlListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client SourceControlClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client SourceControlClient) ListByAutomationAccountResponder(resp *http.Response) (result SourceControlListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client SourceControlClient) 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 (client SourceControlClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, parameters SourceControlUpdateParameters) (result SourceControl, err error)
Update update a source control. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. parameters - the parameters supplied to the update source control operation.
func (client SourceControlClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, parameters SourceControlUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client SourceControlClient) UpdateResponder(resp *http.Response) (result SourceControl, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client SourceControlClient) 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.
SourceControlCreateOrUpdateParameters the parameters supplied to the create or update source control operation.
type SourceControlCreateOrUpdateParameters struct { // SourceControlCreateOrUpdateProperties - The properties of the source control. *SourceControlCreateOrUpdateProperties `json:"properties,omitempty"` }
func (sccoup SourceControlCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlCreateOrUpdateParameters.
func (sccoup *SourceControlCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlCreateOrUpdateParameters struct.
SourceControlCreateOrUpdateProperties the properties of the create source control operation.
type SourceControlCreateOrUpdateProperties struct { // RepoURL - The repo url of the source control. RepoURL *string `json:"repoUrl,omitempty"` // Branch - The repo branch of the source control. Include branch as empty string for VsoTfvc. Branch *string `json:"branch,omitempty"` // FolderPath - The folder path of the source control. Path must be relative. FolderPath *string `json:"folderPath,omitempty"` // AutoSync - The auto async of the source control. Default is false. AutoSync *bool `json:"autoSync,omitempty"` // PublishRunbook - The auto publish of the source control. Default is true. PublishRunbook *bool `json:"publishRunbook,omitempty"` // SourceType - The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive. Possible values include: 'SourceTypeVsoGit', 'SourceTypeVsoTfvc', 'SourceTypeGitHub' SourceType SourceType `json:"sourceType,omitempty"` // SecurityToken - The authorization token for the repo of the source control. SecurityToken *SourceControlSecurityTokenProperties `json:"securityToken,omitempty"` // Description - The user description of the source control. Description *string `json:"description,omitempty"` }
SourceControlListResult the response model for the list source controls operation.
type SourceControlListResult struct { autorest.Response `json:"-"` // Value - The list of source controls. Value *[]SourceControl `json:"value,omitempty"` // NextLink - The next link. NextLink *string `json:"nextLink,omitempty"` }
func (sclr SourceControlListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
SourceControlListResultIterator provides access to a complete listing of SourceControl values.
type SourceControlListResultIterator struct {
// contains filtered or unexported fields
}
func NewSourceControlListResultIterator(page SourceControlListResultPage) SourceControlListResultIterator
Creates a new instance of the SourceControlListResultIterator type.
func (iter *SourceControlListResultIterator) 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 (iter *SourceControlListResultIterator) 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 (iter SourceControlListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SourceControlListResultIterator) Response() SourceControlListResult
Response returns the raw server response from the last page request.
func (iter SourceControlListResultIterator) Value() SourceControl
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
SourceControlListResultPage contains a page of SourceControl values.
type SourceControlListResultPage struct {
// contains filtered or unexported fields
}
func NewSourceControlListResultPage(cur SourceControlListResult, getNextPage func(context.Context, SourceControlListResult) (SourceControlListResult, error)) SourceControlListResultPage
Creates a new instance of the SourceControlListResultPage type.
func (page *SourceControlListResultPage) 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 (page *SourceControlListResultPage) 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 (page SourceControlListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SourceControlListResultPage) Response() SourceControlListResult
Response returns the raw server response from the last page request.
func (page SourceControlListResultPage) Values() []SourceControl
Values returns the slice of values for the current page or nil if there are no values.
SourceControlProperties definition of the source control properties
type SourceControlProperties struct { // RepoURL - The repo url of the source control. RepoURL *string `json:"repoUrl,omitempty"` // Branch - The repo branch of the source control. Include branch as empty string for VsoTfvc. Branch *string `json:"branch,omitempty"` // FolderPath - The folder path of the source control. FolderPath *string `json:"folderPath,omitempty"` // AutoSync - The auto sync of the source control. Default is false. AutoSync *bool `json:"autoSync,omitempty"` // PublishRunbook - The auto publish of the source control. Default is true. PublishRunbook *bool `json:"publishRunbook,omitempty"` // SourceType - The source type. Must be one of VsoGit, VsoTfvc, GitHub. Possible values include: 'SourceTypeVsoGit', 'SourceTypeVsoTfvc', 'SourceTypeGitHub' SourceType SourceType `json:"sourceType,omitempty"` // Description - The description. Description *string `json:"description,omitempty"` // CreationTime - The creation time. CreationTime *date.Time `json:"creationTime,omitempty"` // LastModifiedTime - The last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` }
SourceControlSecurityTokenProperties ...
type SourceControlSecurityTokenProperties struct { // AccessToken - The access token. AccessToken *string `json:"accessToken,omitempty"` // RefreshToken - The refresh token. RefreshToken *string `json:"refreshToken,omitempty"` // TokenType - The token type. Must be either PersonalAccessToken or Oauth. Possible values include: 'TokenTypePersonalAccessToken', 'TokenTypeOauth' TokenType TokenType `json:"tokenType,omitempty"` }
SourceControlSyncJob definition of the source control sync job.
type SourceControlSyncJob struct { autorest.Response `json:"-"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // ID - READ-ONLY; Resource id. ID *string `json:"id,omitempty"` // SourceControlSyncJobProperties - The properties of the source control sync job. *SourceControlSyncJobProperties `json:"properties,omitempty"` }
func (scsj SourceControlSyncJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJob.
func (scsj *SourceControlSyncJob) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlSyncJob struct.
SourceControlSyncJobByID definition of the source control sync job.
type SourceControlSyncJobByID struct { autorest.Response `json:"-"` // ID - The id of the job. ID *string `json:"id,omitempty"` // SourceControlSyncJobByIDProperties - The properties of the source control sync job. *SourceControlSyncJobByIDProperties `json:"properties,omitempty"` }
func (scsjbi SourceControlSyncJobByID) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobByID.
func (scsjbi *SourceControlSyncJobByID) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlSyncJobByID struct.
SourceControlSyncJobByIDProperties definition of source control sync job properties.
type SourceControlSyncJobByIDProperties struct { // SourceControlSyncJobID - The source control sync job id. SourceControlSyncJobID *string `json:"sourceControlSyncJobId,omitempty"` // CreationTime - READ-ONLY; The creation time of the job. CreationTime *date.Time `json:"creationTime,omitempty"` // ProvisioningState - The provisioning state of the job. Possible values include: 'ProvisioningStateCompleted', 'ProvisioningStateFailed', 'ProvisioningStateRunning' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // StartTime - READ-ONLY; The start time of the job. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` // SyncType - The sync type. Possible values include: 'SyncTypePartialSync', 'SyncTypeFullSync' SyncType SyncType `json:"syncType,omitempty"` // Exception - The exceptions that occurred while running the sync job. Exception *string `json:"exception,omitempty"` }
func (scsjbip SourceControlSyncJobByIDProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobByIDProperties.
SourceControlSyncJobClient is the automation Client
type SourceControlSyncJobClient struct { BaseClient }
func NewSourceControlSyncJobClient(subscriptionID string) SourceControlSyncJobClient
NewSourceControlSyncJobClient creates an instance of the SourceControlSyncJobClient client.
func NewSourceControlSyncJobClientWithBaseURI(baseURI string, subscriptionID string) SourceControlSyncJobClient
NewSourceControlSyncJobClientWithBaseURI creates an instance of the SourceControlSyncJobClient 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 (client SourceControlSyncJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, parameters SourceControlSyncJobCreateParameters) (result SourceControlSyncJob, err error)
Create creates the sync job for a source control. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. sourceControlSyncJobID - the source control sync job id. parameters - the parameters supplied to the create source control sync job operation.
func (client SourceControlSyncJobClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, parameters SourceControlSyncJobCreateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client SourceControlSyncJobClient) CreateResponder(resp *http.Response) (result SourceControlSyncJob, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client SourceControlSyncJobClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client SourceControlSyncJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID) (result SourceControlSyncJobByID, err error)
Get retrieve the source control sync job identified by job id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. sourceControlSyncJobID - the source control sync job id.
func (client SourceControlSyncJobClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SourceControlSyncJobClient) GetResponder(resp *http.Response) (result SourceControlSyncJobByID, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SourceControlSyncJobClient) 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 (client SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, filter string) (result SourceControlSyncJobListResultPage, err error)
ListByAutomationAccount retrieve a list of source control sync jobs. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. filter - the filter to apply on the operation.
func (client SourceControlSyncJobClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, filter string) (result SourceControlSyncJobListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client SourceControlSyncJobClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client SourceControlSyncJobClient) ListByAutomationAccountResponder(resp *http.Response) (result SourceControlSyncJobListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client SourceControlSyncJobClient) 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.
SourceControlSyncJobCreateParameters the parameters supplied to the create source control sync job operation.
type SourceControlSyncJobCreateParameters struct { // SourceControlSyncJobCreateProperties - The properties of the source control sync job. *SourceControlSyncJobCreateProperties `json:"properties,omitempty"` }
func (scsjcp SourceControlSyncJobCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobCreateParameters.
func (scsjcp *SourceControlSyncJobCreateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlSyncJobCreateParameters struct.
SourceControlSyncJobCreateProperties definition of create source control sync job properties.
type SourceControlSyncJobCreateProperties struct { // CommitID - The commit id of the source control sync job. If not syncing to a commitId, enter an empty string. CommitID *string `json:"commitId,omitempty"` }
SourceControlSyncJobListResult the response model for the list source control sync jobs operation.
type SourceControlSyncJobListResult struct { autorest.Response `json:"-"` // Value - The list of source control sync jobs. Value *[]SourceControlSyncJob `json:"value,omitempty"` // NextLink - The next link. NextLink *string `json:"nextLink,omitempty"` }
func (scsjlr SourceControlSyncJobListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
SourceControlSyncJobListResultIterator provides access to a complete listing of SourceControlSyncJob values.
type SourceControlSyncJobListResultIterator struct {
// contains filtered or unexported fields
}
func NewSourceControlSyncJobListResultIterator(page SourceControlSyncJobListResultPage) SourceControlSyncJobListResultIterator
Creates a new instance of the SourceControlSyncJobListResultIterator type.
func (iter *SourceControlSyncJobListResultIterator) 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 (iter *SourceControlSyncJobListResultIterator) 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 (iter SourceControlSyncJobListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SourceControlSyncJobListResultIterator) Response() SourceControlSyncJobListResult
Response returns the raw server response from the last page request.
func (iter SourceControlSyncJobListResultIterator) Value() SourceControlSyncJob
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
SourceControlSyncJobListResultPage contains a page of SourceControlSyncJob values.
type SourceControlSyncJobListResultPage struct {
// contains filtered or unexported fields
}
func NewSourceControlSyncJobListResultPage(cur SourceControlSyncJobListResult, getNextPage func(context.Context, SourceControlSyncJobListResult) (SourceControlSyncJobListResult, error)) SourceControlSyncJobListResultPage
Creates a new instance of the SourceControlSyncJobListResultPage type.
func (page *SourceControlSyncJobListResultPage) 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 (page *SourceControlSyncJobListResultPage) 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 (page SourceControlSyncJobListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SourceControlSyncJobListResultPage) Response() SourceControlSyncJobListResult
Response returns the raw server response from the last page request.
func (page SourceControlSyncJobListResultPage) Values() []SourceControlSyncJob
Values returns the slice of values for the current page or nil if there are no values.
SourceControlSyncJobProperties definition of source control sync job properties.
type SourceControlSyncJobProperties struct { // SourceControlSyncJobID - The source control sync job id. SourceControlSyncJobID *string `json:"sourceControlSyncJobId,omitempty"` // CreationTime - READ-ONLY; The creation time of the job. CreationTime *date.Time `json:"creationTime,omitempty"` // ProvisioningState - The provisioning state of the job. Possible values include: 'ProvisioningStateCompleted', 'ProvisioningStateFailed', 'ProvisioningStateRunning' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // StartTime - READ-ONLY; The start time of the job. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The end time of the job. EndTime *date.Time `json:"endTime,omitempty"` // SyncType - The sync type. Possible values include: 'SyncTypePartialSync', 'SyncTypeFullSync' SyncType SyncType `json:"syncType,omitempty"` }
func (scsjp SourceControlSyncJobProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobProperties.
SourceControlSyncJobStream definition of the source control sync job stream.
type SourceControlSyncJobStream struct { // ID - READ-ONLY; Resource id. ID *string `json:"id,omitempty"` // SourceControlSyncJobStreamProperties - The properties of the source control sync job stream. *SourceControlSyncJobStreamProperties `json:"properties,omitempty"` }
func (scsjs SourceControlSyncJobStream) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobStream.
func (scsjs *SourceControlSyncJobStream) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlSyncJobStream struct.
SourceControlSyncJobStreamByID definition of the source control sync job stream by id.
type SourceControlSyncJobStreamByID struct { autorest.Response `json:"-"` // ID - READ-ONLY; Resource id. ID *string `json:"id,omitempty"` // SourceControlSyncJobStreamByIDProperties - The properties of the source control sync job stream. *SourceControlSyncJobStreamByIDProperties `json:"properties,omitempty"` }
func (scsjsbi SourceControlSyncJobStreamByID) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobStreamByID.
func (scsjsbi *SourceControlSyncJobStreamByID) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlSyncJobStreamByID struct.
SourceControlSyncJobStreamByIDProperties definition of source control sync job stream by id properties.
type SourceControlSyncJobStreamByIDProperties struct { // SourceControlSyncJobStreamID - The sync job stream id. SourceControlSyncJobStreamID *string `json:"sourceControlSyncJobStreamId,omitempty"` // Summary - The summary of the sync job stream. Summary *string `json:"summary,omitempty"` // Time - READ-ONLY; The time of the sync job stream. Time *date.Time `json:"time,omitempty"` // StreamType - The type of the sync job stream. Possible values include: 'StreamTypeError', 'StreamTypeOutput' StreamType StreamType `json:"streamType,omitempty"` // StreamText - The text of the sync job stream. StreamText *string `json:"streamText,omitempty"` // Value - The values of the job stream. Value map[string]interface{} `json:"value"` }
func (scsjsbip SourceControlSyncJobStreamByIDProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobStreamByIDProperties.
SourceControlSyncJobStreamProperties definition of source control sync job stream properties.
type SourceControlSyncJobStreamProperties struct { // SourceControlSyncJobStreamID - The sync job stream id. SourceControlSyncJobStreamID *string `json:"sourceControlSyncJobStreamId,omitempty"` // Summary - The summary of the sync job stream. Summary *string `json:"summary,omitempty"` // Time - READ-ONLY; The time of the sync job stream. Time *date.Time `json:"time,omitempty"` // StreamType - The type of the sync job stream. Possible values include: 'StreamTypeError', 'StreamTypeOutput' StreamType StreamType `json:"streamType,omitempty"` }
func (scsjsp SourceControlSyncJobStreamProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobStreamProperties.
SourceControlSyncJobStreamsClient is the automation Client
type SourceControlSyncJobStreamsClient struct { BaseClient }
func NewSourceControlSyncJobStreamsClient(subscriptionID string) SourceControlSyncJobStreamsClient
NewSourceControlSyncJobStreamsClient creates an instance of the SourceControlSyncJobStreamsClient client.
func NewSourceControlSyncJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) SourceControlSyncJobStreamsClient
NewSourceControlSyncJobStreamsClientWithBaseURI creates an instance of the SourceControlSyncJobStreamsClient 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 (client SourceControlSyncJobStreamsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, streamID string) (result SourceControlSyncJobStreamByID, err error)
Get retrieve a sync job stream identified by stream id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. sourceControlSyncJobID - the source control sync job id. streamID - the id of the sync job stream.
func (client SourceControlSyncJobStreamsClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, streamID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SourceControlSyncJobStreamsClient) GetResponder(resp *http.Response) (result SourceControlSyncJobStreamByID, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SourceControlSyncJobStreamsClient) 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 (client SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, filter string) (result SourceControlSyncJobStreamsListBySyncJobPage, err error)
ListBySyncJob retrieve a list of sync job streams identified by sync job id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. sourceControlName - the source control name. sourceControlSyncJobID - the source control sync job id. filter - the filter to apply on the operation.
func (client SourceControlSyncJobStreamsClient) ListBySyncJobComplete(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, filter string) (result SourceControlSyncJobStreamsListBySyncJobIterator, err error)
ListBySyncJobComplete enumerates all values, automatically crossing page boundaries as required.
func (client SourceControlSyncJobStreamsClient) ListBySyncJobPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobID uuid.UUID, filter string) (*http.Request, error)
ListBySyncJobPreparer prepares the ListBySyncJob request.
func (client SourceControlSyncJobStreamsClient) ListBySyncJobResponder(resp *http.Response) (result SourceControlSyncJobStreamsListBySyncJob, err error)
ListBySyncJobResponder handles the response to the ListBySyncJob request. The method always closes the http.Response Body.
func (client SourceControlSyncJobStreamsClient) ListBySyncJobSender(req *http.Request) (*http.Response, error)
ListBySyncJobSender sends the ListBySyncJob request. The method will close the http.Response Body if it receives an error.
SourceControlSyncJobStreamsListBySyncJob the response model for the list source control sync job streams operation.
type SourceControlSyncJobStreamsListBySyncJob struct { autorest.Response `json:"-"` // Value - The list of source control sync job streams. Value *[]SourceControlSyncJobStream `json:"value,omitempty"` // NextLink - READ-ONLY; The next link. NextLink *string `json:"nextLink,omitempty"` }
func (scsjslbsj SourceControlSyncJobStreamsListBySyncJob) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (scsjslbsj SourceControlSyncJobStreamsListBySyncJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlSyncJobStreamsListBySyncJob.
SourceControlSyncJobStreamsListBySyncJobIterator provides access to a complete listing of SourceControlSyncJobStream values.
type SourceControlSyncJobStreamsListBySyncJobIterator struct {
// contains filtered or unexported fields
}
func NewSourceControlSyncJobStreamsListBySyncJobIterator(page SourceControlSyncJobStreamsListBySyncJobPage) SourceControlSyncJobStreamsListBySyncJobIterator
Creates a new instance of the SourceControlSyncJobStreamsListBySyncJobIterator type.
func (iter *SourceControlSyncJobStreamsListBySyncJobIterator) 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 (iter *SourceControlSyncJobStreamsListBySyncJobIterator) 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 (iter SourceControlSyncJobStreamsListBySyncJobIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter SourceControlSyncJobStreamsListBySyncJobIterator) Response() SourceControlSyncJobStreamsListBySyncJob
Response returns the raw server response from the last page request.
func (iter SourceControlSyncJobStreamsListBySyncJobIterator) Value() SourceControlSyncJobStream
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
SourceControlSyncJobStreamsListBySyncJobPage contains a page of SourceControlSyncJobStream values.
type SourceControlSyncJobStreamsListBySyncJobPage struct {
// contains filtered or unexported fields
}
func NewSourceControlSyncJobStreamsListBySyncJobPage(cur SourceControlSyncJobStreamsListBySyncJob, getNextPage func(context.Context, SourceControlSyncJobStreamsListBySyncJob) (SourceControlSyncJobStreamsListBySyncJob, error)) SourceControlSyncJobStreamsListBySyncJobPage
Creates a new instance of the SourceControlSyncJobStreamsListBySyncJobPage type.
func (page *SourceControlSyncJobStreamsListBySyncJobPage) 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 (page *SourceControlSyncJobStreamsListBySyncJobPage) 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 (page SourceControlSyncJobStreamsListBySyncJobPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page SourceControlSyncJobStreamsListBySyncJobPage) Response() SourceControlSyncJobStreamsListBySyncJob
Response returns the raw server response from the last page request.
func (page SourceControlSyncJobStreamsListBySyncJobPage) Values() []SourceControlSyncJobStream
Values returns the slice of values for the current page or nil if there are no values.
SourceControlUpdateParameters the parameters supplied to the update source control operation.
type SourceControlUpdateParameters struct { // SourceControlUpdateProperties - The value of the source control. *SourceControlUpdateProperties `json:"properties,omitempty"` }
func (scup SourceControlUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SourceControlUpdateParameters.
func (scup *SourceControlUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SourceControlUpdateParameters struct.
SourceControlUpdateProperties the properties of the update source control
type SourceControlUpdateProperties struct { // Branch - The repo branch of the source control. Branch *string `json:"branch,omitempty"` // FolderPath - The folder path of the source control. Path must be relative. FolderPath *string `json:"folderPath,omitempty"` // AutoSync - The auto sync of the source control. Default is false. AutoSync *bool `json:"autoSync,omitempty"` // PublishRunbook - The auto publish of the source control. Default is true. PublishRunbook *bool `json:"publishRunbook,omitempty"` // SecurityToken - The authorization token for the repo of the source control. SecurityToken *SourceControlSecurityTokenProperties `json:"securityToken,omitempty"` // Description - The user description of the source control. Description *string `json:"description,omitempty"` }
SourceType enumerates the values for source type.
type SourceType string
const ( // SourceTypeGitHub ... SourceTypeGitHub SourceType = "GitHub" // SourceTypeVsoGit ... SourceTypeVsoGit SourceType = "VsoGit" // SourceTypeVsoTfvc ... SourceTypeVsoTfvc SourceType = "VsoTfvc" )
func PossibleSourceTypeValues() []SourceType
PossibleSourceTypeValues returns an array of possible values for the SourceType const type.
Statistics definition of the statistic.
type Statistics struct { // CounterProperty - READ-ONLY; Gets the property value of the statistic. CounterProperty *string `json:"counterProperty,omitempty"` // CounterValue - READ-ONLY; Gets the value of the statistic. CounterValue *int64 `json:"counterValue,omitempty"` // StartTime - READ-ONLY; Gets the startTime of the statistic. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; Gets the endTime of the statistic. EndTime *date.Time `json:"endTime,omitempty"` // ID - READ-ONLY; Gets the id. ID *string `json:"id,omitempty"` }
func (s Statistics) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Statistics.
StatisticsClient is the automation Client
type StatisticsClient struct { BaseClient }
func NewStatisticsClient(subscriptionID string) StatisticsClient
NewStatisticsClient creates an instance of the StatisticsClient client.
func NewStatisticsClientWithBaseURI(baseURI string, subscriptionID string) StatisticsClient
NewStatisticsClientWithBaseURI creates an instance of the StatisticsClient 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 (client StatisticsClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result StatisticsListResult, err error)
ListByAutomationAccount retrieve the statistics for the account. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client StatisticsClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client StatisticsClient) ListByAutomationAccountResponder(resp *http.Response) (result StatisticsListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client StatisticsClient) 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.
StatisticsListResult the response model for the list statistics operation.
type StatisticsListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of statistics. Value *[]Statistics `json:"value,omitempty"` }
StreamType enumerates the values for stream type.
type StreamType string
const ( // StreamTypeError ... StreamTypeError StreamType = "Error" // StreamTypeOutput ... StreamTypeOutput StreamType = "Output" )
func PossibleStreamTypeValues() []StreamType
PossibleStreamTypeValues returns an array of possible values for the StreamType const type.
String ...
type String struct { autorest.Response `json:"-"` Value *string `json:"value,omitempty"` }
SyncType enumerates the values for sync type.
type SyncType string
const ( // SyncTypeFullSync ... SyncTypeFullSync SyncType = "FullSync" // SyncTypePartialSync ... SyncTypePartialSync SyncType = "PartialSync" )
func PossibleSyncTypeValues() []SyncType
PossibleSyncTypeValues returns an array of possible values for the SyncType const type.
SystemData metadata pertaining to creation and last modification of the resource.
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TagOperators enumerates the values for tag operators.
type TagOperators string
const ( // TagOperatorsAll ... TagOperatorsAll TagOperators = "All" // TagOperatorsAny ... TagOperatorsAny TagOperators = "Any" )
func PossibleTagOperatorsValues() []TagOperators
PossibleTagOperatorsValues returns an array of possible values for the TagOperators const type.
TagSettingsProperties tag filter information for the VM.
type TagSettingsProperties struct { // Tags - Dictionary of tags with its list of values. Tags map[string][]string `json:"tags"` // FilterOperator - Filter VMs by Any or All specified tags. Possible values include: 'TagOperatorsAll', 'TagOperatorsAny' FilterOperator TagOperators `json:"filterOperator,omitempty"` }
func (tsp TagSettingsProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TagSettingsProperties.
TargetProperties group specific to the update configuration.
type TargetProperties struct { // AzureQueries - List of Azure queries in the software update configuration. AzureQueries *[]AzureQueryProperties `json:"azureQueries,omitempty"` // NonAzureQueries - List of non Azure queries in the software update configuration. NonAzureQueries *[]NonAzureQueryProperties `json:"nonAzureQueries,omitempty"` }
TaskProperties task properties of the software update configuration.
type TaskProperties struct { // Parameters - Gets or sets the parameters of the task. Parameters map[string]*string `json:"parameters"` // Source - Gets or sets the name of the runbook. Source *string `json:"source,omitempty"` }
func (tp TaskProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TaskProperties.
TestJob definition of the test job.
type TestJob struct { autorest.Response `json:"-"` // CreationTime - Gets or sets the creation time of the test job. CreationTime *date.Time `json:"creationTime,omitempty"` // Status - Gets or sets the status of the test job. Status *string `json:"status,omitempty"` // StatusDetails - Gets or sets the status details of the test job. StatusDetails *string `json:"statusDetails,omitempty"` // RunOn - Gets or sets the runOn which specifies the group name where the job is to be executed. RunOn *string `json:"runOn,omitempty"` // StartTime - Gets or sets the start time of the test job. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - Gets or sets the end time of the test job. EndTime *date.Time `json:"endTime,omitempty"` // Exception - Gets or sets the exception of the test job. Exception *string `json:"exception,omitempty"` // LastModifiedTime - Gets or sets the last modified time of the test job. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastStatusModifiedTime - Gets or sets the last status modified time of the test job. LastStatusModifiedTime *date.Time `json:"lastStatusModifiedTime,omitempty"` // Parameters - Gets or sets the parameters of the test job. Parameters map[string]*string `json:"parameters"` // LogActivityTrace - The activity-level tracing options of the runbook. LogActivityTrace *int32 `json:"logActivityTrace,omitempty"` }
func (tj TestJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TestJob.
TestJobClient is the automation Client
type TestJobClient struct { BaseClient }
func NewTestJobClient(subscriptionID string) TestJobClient
NewTestJobClient creates an instance of the TestJobClient client.
func NewTestJobClientWithBaseURI(baseURI string, subscriptionID string) TestJobClient
NewTestJobClientWithBaseURI creates an instance of the TestJobClient 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 (client TestJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters TestJobCreateParameters) (result TestJob, err error)
Create create a test job of the runbook. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the parameters supplied to the create test job operation. parameters - the parameters supplied to the create test job operation.
func (client TestJobClient) CreatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters TestJobCreateParameters) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client TestJobClient) CreateResponder(resp *http.Response) (result TestJob, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client TestJobClient) CreateSender(req *http.Request) (*http.Response, error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client TestJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result TestJob, err error)
Get retrieve the test job for the specified runbook. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client TestJobClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client TestJobClient) GetResponder(resp *http.Response) (result TestJob, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client TestJobClient) 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 (client TestJobClient) Resume(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error)
Resume resume the test job. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client TestJobClient) ResumePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
ResumePreparer prepares the Resume request.
func (client TestJobClient) ResumeResponder(resp *http.Response) (result autorest.Response, err error)
ResumeResponder handles the response to the Resume request. The method always closes the http.Response Body.
func (client TestJobClient) ResumeSender(req *http.Request) (*http.Response, error)
ResumeSender sends the Resume request. The method will close the http.Response Body if it receives an error.
func (client TestJobClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error)
Stop stop the test job. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client TestJobClient) StopPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
StopPreparer prepares the Stop request.
func (client TestJobClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
StopResponder handles the response to the Stop request. The method always closes the http.Response Body.
func (client TestJobClient) StopSender(req *http.Request) (*http.Response, error)
StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.
func (client TestJobClient) Suspend(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error)
Suspend suspend the test job. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name.
func (client TestJobClient) SuspendPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (*http.Request, error)
SuspendPreparer prepares the Suspend request.
func (client TestJobClient) SuspendResponder(resp *http.Response) (result autorest.Response, err error)
SuspendResponder handles the response to the Suspend request. The method always closes the http.Response Body.
func (client TestJobClient) SuspendSender(req *http.Request) (*http.Response, error)
SuspendSender sends the Suspend request. The method will close the http.Response Body if it receives an error.
TestJobCreateParameters the parameters supplied to the create test job operation.
type TestJobCreateParameters struct { // Parameters - Gets or sets the parameters of the test job. Parameters map[string]*string `json:"parameters"` // RunOn - Gets or sets the runOn which specifies the group name where the job is to be executed. RunOn *string `json:"runOn,omitempty"` }
func (tjcp TestJobCreateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TestJobCreateParameters.
TestJobStreamsClient is the automation Client
type TestJobStreamsClient struct { BaseClient }
func NewTestJobStreamsClient(subscriptionID string) TestJobStreamsClient
NewTestJobStreamsClient creates an instance of the TestJobStreamsClient client.
func NewTestJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) TestJobStreamsClient
NewTestJobStreamsClientWithBaseURI creates an instance of the TestJobStreamsClient 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 (client TestJobStreamsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, jobStreamID string) (result JobStream, err error)
Get retrieve a test job stream of the test job identified by runbook name and stream id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name. jobStreamID - the job stream id.
func (client TestJobStreamsClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, jobStreamID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client TestJobStreamsClient) GetResponder(resp *http.Response) (result JobStream, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client TestJobStreamsClient) 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 (client TestJobStreamsClient) ListByTestJob(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, filter string) (result JobStreamListResultPage, err error)
ListByTestJob retrieve a list of test job streams identified by runbook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. runbookName - the runbook name. filter - the filter to apply on the operation.
func (client TestJobStreamsClient) ListByTestJobComplete(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, filter string) (result JobStreamListResultIterator, err error)
ListByTestJobComplete enumerates all values, automatically crossing page boundaries as required.
func (client TestJobStreamsClient) ListByTestJobPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, filter string) (*http.Request, error)
ListByTestJobPreparer prepares the ListByTestJob request.
func (client TestJobStreamsClient) ListByTestJobResponder(resp *http.Response) (result JobStreamListResult, err error)
ListByTestJobResponder handles the response to the ListByTestJob request. The method always closes the http.Response Body.
func (client TestJobStreamsClient) ListByTestJobSender(req *http.Request) (*http.Response, error)
ListByTestJobSender sends the ListByTestJob request. The method will close the http.Response Body if it receives an error.
TokenType enumerates the values for token type.
type TokenType string
const ( // TokenTypeOauth ... TokenTypeOauth TokenType = "Oauth" // TokenTypePersonalAccessToken ... TokenTypePersonalAccessToken TokenType = "PersonalAccessToken" )
func PossibleTokenTypeValues() []TokenType
PossibleTokenTypeValues returns an array of possible values for the TokenType const type.
TrackedResource the resource model definition for a ARM tracked top level resource
type TrackedResource struct { // 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"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
TypeField information about a field of a type.
type TypeField struct { // Name - Gets or sets the name of the field. Name *string `json:"name,omitempty"` // Type - Gets or sets the type of the field. Type *string `json:"type,omitempty"` }
TypeFieldListResult the response model for the list fields operation.
type TypeFieldListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of fields. Value *[]TypeField `json:"value,omitempty"` }
UpdateConfiguration update specific properties of the software update configuration.
type UpdateConfiguration struct { // OperatingSystem - operating system of target machines. Possible values include: 'OperatingSystemTypeWindows', 'OperatingSystemTypeLinux' OperatingSystem OperatingSystemType `json:"operatingSystem,omitempty"` // Windows - Windows specific update configuration. Windows *WindowsProperties `json:"windows,omitempty"` // Linux - Linux specific update configuration. Linux *LinuxProperties `json:"linux,omitempty"` // Duration - Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601 Duration *string `json:"duration,omitempty"` // AzureVirtualMachines - List of azure resource Ids for azure virtual machines targeted by the software update configuration. AzureVirtualMachines *[]string `json:"azureVirtualMachines,omitempty"` // NonAzureComputerNames - List of names of non-azure machines targeted by the software update configuration. NonAzureComputerNames *[]string `json:"nonAzureComputerNames,omitempty"` // Targets - Group targets for the software update configuration. Targets *TargetProperties `json:"targets,omitempty"` }
UpdateConfigurationMachineRunProperties software update configuration machine run properties.
type UpdateConfigurationMachineRunProperties struct { // TargetComputer - READ-ONLY; name of the updated computer TargetComputer *string `json:"targetComputer,omitempty"` // TargetComputerType - READ-ONLY; type of the updated computer. TargetComputerType *string `json:"targetComputerType,omitempty"` // SoftwareUpdateConfiguration - software update configuration triggered this run SoftwareUpdateConfiguration *UpdateConfigurationNavigation `json:"softwareUpdateConfiguration,omitempty"` // Status - READ-ONLY; Status of the software update configuration machine run. Status *string `json:"status,omitempty"` // OsType - READ-ONLY; Operating system target of the software update configuration triggered this run OsType *string `json:"osType,omitempty"` // CorrelationID - READ-ONLY; correlation id of the software update configuration machine run CorrelationID *uuid.UUID `json:"correlationId,omitempty"` // SourceComputerID - READ-ONLY; source computer id of the software update configuration machine run SourceComputerID *uuid.UUID `json:"sourceComputerId,omitempty"` // StartTime - READ-ONLY; Start time of the software update configuration machine run. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; End time of the software update configuration machine run. EndTime *date.Time `json:"endTime,omitempty"` // ConfiguredDuration - READ-ONLY; configured duration for the software update configuration run. ConfiguredDuration *string `json:"configuredDuration,omitempty"` // Job - Job associated with the software update configuration machine run Job *JobNavigation `json:"job,omitempty"` // CreationTime - READ-ONLY; Creation time of the resource, which only appears in the response. CreationTime *date.Time `json:"creationTime,omitempty"` // CreatedBy - READ-ONLY; createdBy property, which only appears in the response. CreatedBy *string `json:"createdBy,omitempty"` // LastModifiedTime - READ-ONLY; Last time resource was modified, which only appears in the response. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastModifiedBy - READ-ONLY; lastModifiedBy property, which only appears in the response. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Error - Details of provisioning error Error *ErrorResponse `json:"error,omitempty"` }
func (ucmrp UpdateConfigurationMachineRunProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UpdateConfigurationMachineRunProperties.
UpdateConfigurationNavigation software update configuration Run Navigation model.
type UpdateConfigurationNavigation struct { // Name - READ-ONLY; Name of the software update configuration triggered the software update configuration run Name *string `json:"name,omitempty"` }
func (ucn UpdateConfigurationNavigation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UpdateConfigurationNavigation.
Usage definition of Usage.
type Usage struct { // ID - Gets or sets the id of the resource. ID *string `json:"id,omitempty"` // Name - Gets or sets the usage counter name. Name *UsageCounterName `json:"name,omitempty"` // Unit - Gets or sets the usage unit name. Unit *string `json:"unit,omitempty"` // CurrentValue - Gets or sets the current usage value. CurrentValue *float64 `json:"currentValue,omitempty"` // Limit - Gets or sets max limit. -1 for unlimited Limit *int64 `json:"limit,omitempty"` // ThrottleStatus - Gets or sets the throttle status. ThrottleStatus *string `json:"throttleStatus,omitempty"` }
UsageCounterName definition of usage counter name.
type UsageCounterName struct { // Value - Gets or sets the usage counter name. Value *string `json:"value,omitempty"` // LocalizedValue - Gets or sets the localized usage counter name. LocalizedValue *string `json:"localizedValue,omitempty"` }
UsageListResult the response model for the get usage operation.
type UsageListResult struct { autorest.Response `json:"-"` // Value - Gets or sets usage. Value *[]Usage `json:"value,omitempty"` }
UsagesClient is the automation Client
type UsagesClient struct { BaseClient }
func NewUsagesClient(subscriptionID string) UsagesClient
NewUsagesClient creates an instance of the UsagesClient client.
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient
NewUsagesClientWithBaseURI creates an instance of the UsagesClient 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 (client UsagesClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result UsageListResult, err error)
ListByAutomationAccount retrieve the usage for the account id. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client UsagesClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client UsagesClient) ListByAutomationAccountResponder(resp *http.Response) (result UsageListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client UsagesClient) 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.
Variable definition of the variable.
type Variable struct { autorest.Response `json:"-"` // VariableProperties - Gets or sets the properties of the variable. *VariableProperties `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"` }
func (vVar Variable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Variable.
func (vVar *Variable) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Variable struct.
VariableClient is the automation Client
type VariableClient struct { BaseClient }
func NewVariableClient(subscriptionID string) VariableClient
NewVariableClient creates an instance of the VariableClient client.
func NewVariableClientWithBaseURI(baseURI string, subscriptionID string) VariableClient
NewVariableClientWithBaseURI creates an instance of the VariableClient 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 (client VariableClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, parameters VariableCreateOrUpdateParameters) (result Variable, err error)
CreateOrUpdate create a variable. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. variableName - the variable name. parameters - the parameters supplied to the create or update variable operation.
func (client VariableClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, parameters VariableCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client VariableClient) CreateOrUpdateResponder(resp *http.Response) (result Variable, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client VariableClient) 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 (client VariableClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string) (result autorest.Response, err error)
Delete delete the variable. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. variableName - the name of variable.
func (client VariableClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client VariableClient) 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 (client VariableClient) 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 (client VariableClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string) (result Variable, err error)
Get retrieve the variable identified by variable name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. variableName - the name of variable.
func (client VariableClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client VariableClient) GetResponder(resp *http.Response) (result Variable, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client VariableClient) 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 (client VariableClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result VariableListResultPage, err error)
ListByAutomationAccount retrieve a list of variables. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client VariableClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result VariableListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client VariableClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client VariableClient) ListByAutomationAccountResponder(resp *http.Response) (result VariableListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client VariableClient) 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 (client VariableClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, parameters VariableUpdateParameters) (result Variable, err error)
Update update a variable. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. variableName - the variable name. parameters - the parameters supplied to the update variable operation.
func (client VariableClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, variableName string, parameters VariableUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client VariableClient) UpdateResponder(resp *http.Response) (result Variable, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client VariableClient) 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.
VariableCreateOrUpdateParameters the parameters supplied to the create or update variable operation.
type VariableCreateOrUpdateParameters struct { // Name - Gets or sets the name of the variable. Name *string `json:"name,omitempty"` // VariableCreateOrUpdateProperties - Gets or sets the properties of the variable. *VariableCreateOrUpdateProperties `json:"properties,omitempty"` }
func (vcoup VariableCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VariableCreateOrUpdateParameters.
func (vcoup *VariableCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VariableCreateOrUpdateParameters struct.
VariableCreateOrUpdateProperties the properties of the create variable operation.
type VariableCreateOrUpdateProperties struct { // Value - Gets or sets the value of the variable. Value *string `json:"value,omitempty"` // Description - Gets or sets the description of the variable. Description *string `json:"description,omitempty"` // IsEncrypted - Gets or sets the encrypted flag of the variable. IsEncrypted *bool `json:"isEncrypted,omitempty"` }
VariableListResult the response model for the list variables operation.
type VariableListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of variables. Value *[]Variable `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (vlr VariableListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
VariableListResultIterator provides access to a complete listing of Variable values.
type VariableListResultIterator struct {
// contains filtered or unexported fields
}
func NewVariableListResultIterator(page VariableListResultPage) VariableListResultIterator
Creates a new instance of the VariableListResultIterator type.
func (iter *VariableListResultIterator) 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 (iter *VariableListResultIterator) 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 (iter VariableListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter VariableListResultIterator) Response() VariableListResult
Response returns the raw server response from the last page request.
func (iter VariableListResultIterator) Value() Variable
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
VariableListResultPage contains a page of Variable values.
type VariableListResultPage struct {
// contains filtered or unexported fields
}
func NewVariableListResultPage(cur VariableListResult, getNextPage func(context.Context, VariableListResult) (VariableListResult, error)) VariableListResultPage
Creates a new instance of the VariableListResultPage type.
func (page *VariableListResultPage) 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 (page *VariableListResultPage) 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 (page VariableListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page VariableListResultPage) Response() VariableListResult
Response returns the raw server response from the last page request.
func (page VariableListResultPage) Values() []Variable
Values returns the slice of values for the current page or nil if there are no values.
VariableProperties definition of the variable properties
type VariableProperties struct { // Value - Gets or sets the value of the variable. Value *string `json:"value,omitempty"` // IsEncrypted - Gets or sets the encrypted flag of the variable. IsEncrypted *bool `json:"isEncrypted,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"` }
VariableUpdateParameters the parameters supplied to the update variable operation.
type VariableUpdateParameters struct { // Name - Gets or sets the name of the variable. Name *string `json:"name,omitempty"` // VariableUpdateProperties - Gets or sets the value of the variable. *VariableUpdateProperties `json:"properties,omitempty"` }
func (vup VariableUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VariableUpdateParameters.
func (vup *VariableUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VariableUpdateParameters struct.
VariableUpdateProperties the properties of the update variable
type VariableUpdateProperties struct { // Value - Gets or sets the value of the variable. Value *string `json:"value,omitempty"` // Description - Gets or sets the description of the variable. Description *string `json:"description,omitempty"` }
Watcher definition of the watcher type.
type Watcher struct { autorest.Response `json:"-"` // WatcherProperties - Gets or sets the watcher properties. *WatcherProperties `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 geo-location 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"` }
func (w Watcher) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Watcher.
func (w *Watcher) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Watcher struct.
WatcherClient is the automation Client
type WatcherClient struct { BaseClient }
func NewWatcherClient(subscriptionID string) WatcherClient
NewWatcherClient creates an instance of the WatcherClient client.
func NewWatcherClientWithBaseURI(baseURI string, subscriptionID string) WatcherClient
NewWatcherClientWithBaseURI creates an instance of the WatcherClient 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 (client WatcherClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, parameters Watcher) (result Watcher, err error)
CreateOrUpdate create the watcher identified by watcher name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. watcherName - the watcher name. parameters - the create or update parameters for watcher.
func (client WatcherClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, parameters Watcher) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WatcherClient) CreateOrUpdateResponder(resp *http.Response) (result Watcher, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client WatcherClient) 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 (client WatcherClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (result autorest.Response, err error)
Delete delete the watcher by name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. watcherName - the watcher name.
func (client WatcherClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client WatcherClient) 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 (client WatcherClient) 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 (client WatcherClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (result Watcher, err error)
Get retrieve the watcher identified by watcher name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. watcherName - the watcher name.
func (client WatcherClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client WatcherClient) GetResponder(resp *http.Response) (result Watcher, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client WatcherClient) 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 (client WatcherClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result WatcherListResultPage, err error)
ListByAutomationAccount retrieve a list of watchers. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client WatcherClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result WatcherListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client WatcherClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client WatcherClient) ListByAutomationAccountResponder(resp *http.Response) (result WatcherListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client WatcherClient) 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 (client WatcherClient) Start(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (result autorest.Response, err error)
Start resume the watcher identified by watcher name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. watcherName - the watcher name.
func (client WatcherClient) StartPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (*http.Request, error)
StartPreparer prepares the Start request.
func (client WatcherClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
StartResponder handles the response to the Start request. The method always closes the http.Response Body.
func (client WatcherClient) StartSender(req *http.Request) (*http.Response, error)
StartSender sends the Start request. The method will close the http.Response Body if it receives an error.
func (client WatcherClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (result autorest.Response, err error)
Stop resume the watcher identified by watcher name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. watcherName - the watcher name.
func (client WatcherClient) StopPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string) (*http.Request, error)
StopPreparer prepares the Stop request.
func (client WatcherClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
StopResponder handles the response to the Stop request. The method always closes the http.Response Body.
func (client WatcherClient) StopSender(req *http.Request) (*http.Response, error)
StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.
func (client WatcherClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, parameters WatcherUpdateParameters) (result Watcher, err error)
Update update the watcher identified by watcher name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. watcherName - the watcher name. parameters - the update parameters for watcher.
func (client WatcherClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, watcherName string, parameters WatcherUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client WatcherClient) UpdateResponder(resp *http.Response) (result Watcher, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client WatcherClient) 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.
WatcherListResult the response model for the list watcher operation.
type WatcherListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of watchers. Value *[]Watcher `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (wlr WatcherListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
WatcherListResultIterator provides access to a complete listing of Watcher values.
type WatcherListResultIterator struct {
// contains filtered or unexported fields
}
func NewWatcherListResultIterator(page WatcherListResultPage) WatcherListResultIterator
Creates a new instance of the WatcherListResultIterator type.
func (iter *WatcherListResultIterator) 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 (iter *WatcherListResultIterator) 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 (iter WatcherListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter WatcherListResultIterator) Response() WatcherListResult
Response returns the raw server response from the last page request.
func (iter WatcherListResultIterator) Value() Watcher
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
WatcherListResultPage contains a page of Watcher values.
type WatcherListResultPage struct {
// contains filtered or unexported fields
}
func NewWatcherListResultPage(cur WatcherListResult, getNextPage func(context.Context, WatcherListResult) (WatcherListResult, error)) WatcherListResultPage
Creates a new instance of the WatcherListResultPage type.
func (page *WatcherListResultPage) 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 (page *WatcherListResultPage) 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 (page WatcherListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page WatcherListResultPage) Response() WatcherListResult
Response returns the raw server response from the last page request.
func (page WatcherListResultPage) Values() []Watcher
Values returns the slice of values for the current page or nil if there are no values.
WatcherProperties definition of the watcher properties
type WatcherProperties struct { // ExecutionFrequencyInSeconds - Gets or sets the frequency at which the watcher is invoked. ExecutionFrequencyInSeconds *int64 `json:"executionFrequencyInSeconds,omitempty"` // ScriptName - Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook. ScriptName *string `json:"scriptName,omitempty"` // ScriptParameters - Gets or sets the parameters of the script. ScriptParameters map[string]*string `json:"scriptParameters"` // ScriptRunOn - Gets or sets the name of the hybrid worker group the watcher will run on. ScriptRunOn *string `json:"scriptRunOn,omitempty"` // Status - READ-ONLY; Gets the current status of the watcher. Status *string `json:"status,omitempty"` // CreationTime - READ-ONLY; Gets or sets the creation time. CreationTime *date.Time `json:"creationTime,omitempty"` // LastModifiedTime - READ-ONLY; Gets or sets the last modified time. LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` // LastModifiedBy - READ-ONLY; Details of the user who last modified the watcher. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` }
func (wp WatcherProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WatcherProperties.
WatcherUpdateParameters ...
type WatcherUpdateParameters struct { // WatcherUpdateProperties - Gets or sets the watcher update properties. *WatcherUpdateProperties `json:"properties,omitempty"` // Name - Gets or sets the name of the resource. Name *string `json:"name,omitempty"` }
func (wup WatcherUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WatcherUpdateParameters.
func (wup *WatcherUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for WatcherUpdateParameters struct.
WatcherUpdateProperties the properties of the update watcher operation.
type WatcherUpdateProperties struct { // ExecutionFrequencyInSeconds - Gets or sets the frequency at which the watcher is invoked. ExecutionFrequencyInSeconds *int64 `json:"executionFrequencyInSeconds,omitempty"` }
Webhook definition of the webhook type.
type Webhook struct { autorest.Response `json:"-"` // WebhookProperties - Gets or sets the webhook properties. *WebhookProperties `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"` }
func (w Webhook) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Webhook.
func (w *Webhook) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Webhook struct.
WebhookClient is the automation Client
type WebhookClient struct { BaseClient }
func NewWebhookClient(subscriptionID string) WebhookClient
NewWebhookClient creates an instance of the WebhookClient client.
func NewWebhookClientWithBaseURI(baseURI string, subscriptionID string) WebhookClient
NewWebhookClientWithBaseURI creates an instance of the WebhookClient 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 (client WebhookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookCreateOrUpdateParameters) (result Webhook, err error)
CreateOrUpdate create the webhook identified by webhook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. webhookName - the webhook name. parameters - the create or update parameters for webhook.
func (client WebhookClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookCreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WebhookClient) CreateOrUpdateResponder(resp *http.Response) (result Webhook, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client WebhookClient) 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 (client WebhookClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string) (result autorest.Response, err error)
Delete delete the webhook by name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. webhookName - the webhook name.
func (client WebhookClient) DeletePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client WebhookClient) 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 (client WebhookClient) 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 (client WebhookClient) GenerateURI(ctx context.Context, resourceGroupName string, automationAccountName string) (result String, err error)
GenerateURI generates a Uri for use in creating a webhook. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account.
func (client WebhookClient) GenerateURIPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error)
GenerateURIPreparer prepares the GenerateURI request.
func (client WebhookClient) GenerateURIResponder(resp *http.Response) (result String, err error)
GenerateURIResponder handles the response to the GenerateURI request. The method always closes the http.Response Body.
func (client WebhookClient) GenerateURISender(req *http.Request) (*http.Response, error)
GenerateURISender sends the GenerateURI request. The method will close the http.Response Body if it receives an error.
func (client WebhookClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string) (result Webhook, err error)
Get retrieve the webhook identified by webhook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. webhookName - the webhook name.
func (client WebhookClient) GetPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client WebhookClient) GetResponder(resp *http.Response) (result Webhook, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client WebhookClient) 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 (client WebhookClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result WebhookListResultPage, err error)
ListByAutomationAccount retrieve a list of webhooks. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. filter - the filter to apply on the operation.
func (client WebhookClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result WebhookListResultIterator, err error)
ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client WebhookClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error)
ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client WebhookClient) ListByAutomationAccountResponder(resp *http.Response) (result WebhookListResult, err error)
ListByAutomationAccountResponder handles the response to the ListByAutomationAccount request. The method always closes the http.Response Body.
func (client WebhookClient) 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 (client WebhookClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookUpdateParameters) (result Webhook, err error)
Update update the webhook identified by webhook name. Parameters: resourceGroupName - name of an Azure Resource group. automationAccountName - the name of the automation account. webhookName - the webhook name. parameters - the update parameters for webhook.
func (client WebhookClient) UpdatePreparer(ctx context.Context, resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client WebhookClient) UpdateResponder(resp *http.Response) (result Webhook, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client WebhookClient) 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.
WebhookCreateOrUpdateParameters the parameters supplied to the create or update webhook operation.
type WebhookCreateOrUpdateParameters struct { // Name - Gets or sets the name of the webhook. Name *string `json:"name,omitempty"` // WebhookCreateOrUpdateProperties - Gets or sets the properties of the webhook. *WebhookCreateOrUpdateProperties `json:"properties,omitempty"` }
func (wcoup WebhookCreateOrUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookCreateOrUpdateParameters.
func (wcoup *WebhookCreateOrUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for WebhookCreateOrUpdateParameters struct.
WebhookCreateOrUpdateProperties the properties of the create webhook operation.
type WebhookCreateOrUpdateProperties struct { // IsEnabled - Gets or sets the value of the enabled flag of webhook. IsEnabled *bool `json:"isEnabled,omitempty"` // URI - Gets or sets the uri. URI *string `json:"uri,omitempty"` // ExpiryTime - Gets or sets the expiry time. ExpiryTime *date.Time `json:"expiryTime,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` // Runbook - Gets or sets the runbook. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // RunOn - Gets or sets the name of the hybrid worker group the webhook job will run on. RunOn *string `json:"runOn,omitempty"` }
func (wcoup WebhookCreateOrUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookCreateOrUpdateProperties.
WebhookListResult the response model for the list webhook operation.
type WebhookListResult struct { autorest.Response `json:"-"` // Value - Gets or sets a list of webhooks. Value *[]Webhook `json:"value,omitempty"` // NextLink - Gets or sets the next link. NextLink *string `json:"nextLink,omitempty"` }
func (wlr WebhookListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
WebhookListResultIterator provides access to a complete listing of Webhook values.
type WebhookListResultIterator struct {
// contains filtered or unexported fields
}
func NewWebhookListResultIterator(page WebhookListResultPage) WebhookListResultIterator
Creates a new instance of the WebhookListResultIterator type.
func (iter *WebhookListResultIterator) 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 (iter *WebhookListResultIterator) 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 (iter WebhookListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter WebhookListResultIterator) Response() WebhookListResult
Response returns the raw server response from the last page request.
func (iter WebhookListResultIterator) Value() Webhook
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
WebhookListResultPage contains a page of Webhook values.
type WebhookListResultPage struct {
// contains filtered or unexported fields
}
func NewWebhookListResultPage(cur WebhookListResult, getNextPage func(context.Context, WebhookListResult) (WebhookListResult, error)) WebhookListResultPage
Creates a new instance of the WebhookListResultPage type.
func (page *WebhookListResultPage) 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 (page *WebhookListResultPage) 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 (page WebhookListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page WebhookListResultPage) Response() WebhookListResult
Response returns the raw server response from the last page request.
func (page WebhookListResultPage) Values() []Webhook
Values returns the slice of values for the current page or nil if there are no values.
WebhookProperties definition of the webhook properties
type WebhookProperties struct { // IsEnabled - Gets or sets the value of the enabled flag of the webhook. IsEnabled *bool `json:"isEnabled,omitempty"` // URI - Gets or sets the webhook uri. URI *string `json:"uri,omitempty"` // ExpiryTime - Gets or sets the expiry time. ExpiryTime *date.Time `json:"expiryTime,omitempty"` // LastInvokedTime - Gets or sets the last invoked time. LastInvokedTime *date.Time `json:"lastInvokedTime,omitempty"` // Parameters - Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. Parameters map[string]*string `json:"parameters"` // Runbook - Gets or sets the runbook the webhook is associated with. Runbook *RunbookAssociationProperty `json:"runbook,omitempty"` // RunOn - Gets or sets the name of the hybrid worker group the webhook job will run on. RunOn *string `json:"runOn,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"` // LastModifiedBy - Details of the user who last modified the Webhook LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // Description - Gets or sets the description. Description *string `json:"description,omitempty"` }
func (wp WebhookProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookProperties.
WebhookUpdateParameters the parameters supplied to the update webhook operation.
type WebhookUpdateParameters struct { // Name - Gets or sets the name of the webhook. Name *string `json:"name,omitempty"` // WebhookUpdateProperties - Gets or sets the value of the webhook. *WebhookUpdateProperties `json:"properties,omitempty"` }
func (wup WebhookUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookUpdateParameters.
func (wup *WebhookUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for WebhookUpdateParameters struct.
WebhookUpdateProperties the properties of the update webhook.
type WebhookUpdateProperties struct { // IsEnabled - Gets or sets the value of the enabled flag of webhook. IsEnabled *bool `json:"isEnabled,omitempty"` // RunOn - Gets or sets the name of the hybrid worker group the webhook job will run on. RunOn *string `json:"runOn,omitempty"` // Parameters - Gets or sets the parameters of the job. Parameters map[string]*string `json:"parameters"` // Description - Gets or sets the description of the webhook. Description *string `json:"description,omitempty"` }
func (wup WebhookUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookUpdateProperties.
WindowsProperties windows specific update configuration.
type WindowsProperties struct { // IncludedUpdateClassifications - Update classification included in the software update configuration. A comma separated string with required values. Possible values include: 'WindowsUpdateClassesUnclassified', 'WindowsUpdateClassesCritical', 'WindowsUpdateClassesSecurity', 'WindowsUpdateClassesUpdateRollup', 'WindowsUpdateClassesFeaturePack', 'WindowsUpdateClassesServicePack', 'WindowsUpdateClassesDefinition', 'WindowsUpdateClassesTools', 'WindowsUpdateClassesUpdates' IncludedUpdateClassifications WindowsUpdateClasses `json:"includedUpdateClassifications,omitempty"` // ExcludedKbNumbers - KB numbers excluded from the software update configuration. ExcludedKbNumbers *[]string `json:"excludedKbNumbers,omitempty"` // IncludedKbNumbers - KB numbers included from the software update configuration. IncludedKbNumbers *[]string `json:"includedKbNumbers,omitempty"` // RebootSetting - Reboot setting for the software update configuration. RebootSetting *string `json:"rebootSetting,omitempty"` }
WindowsUpdateClasses enumerates the values for windows update classes.
type WindowsUpdateClasses string
const ( // WindowsUpdateClassesCritical ... WindowsUpdateClassesCritical WindowsUpdateClasses = "Critical" // WindowsUpdateClassesDefinition ... WindowsUpdateClassesDefinition WindowsUpdateClasses = "Definition" // WindowsUpdateClassesFeaturePack ... WindowsUpdateClassesFeaturePack WindowsUpdateClasses = "FeaturePack" // WindowsUpdateClassesSecurity ... WindowsUpdateClassesSecurity WindowsUpdateClasses = "Security" // WindowsUpdateClassesServicePack ... WindowsUpdateClassesServicePack WindowsUpdateClasses = "ServicePack" // WindowsUpdateClassesTools ... WindowsUpdateClassesTools WindowsUpdateClasses = "Tools" // WindowsUpdateClassesUnclassified ... WindowsUpdateClassesUnclassified WindowsUpdateClasses = "Unclassified" // WindowsUpdateClassesUpdateRollup ... WindowsUpdateClassesUpdateRollup WindowsUpdateClasses = "UpdateRollup" // WindowsUpdateClassesUpdates ... WindowsUpdateClassesUpdates WindowsUpdateClasses = "Updates" )
func PossibleWindowsUpdateClassesValues() []WindowsUpdateClasses
PossibleWindowsUpdateClassesValues returns an array of possible values for the WindowsUpdateClasses const type.
WorkerType enumerates the values for worker type.
type WorkerType string
const ( // WorkerTypeHybridV1 ... WorkerTypeHybridV1 WorkerType = "HybridV1" // WorkerTypeHybridV2 ... WorkerTypeHybridV2 WorkerType = "HybridV2" )
func PossibleWorkerTypeValues() []WorkerType
PossibleWorkerTypeValues returns an array of possible values for the WorkerType const type.
Name | Synopsis |
---|---|
.. | |
automationapi | Deprecated: Please note, this package has been deprecated. |