maintenance

package
v59.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package maintenance implements the Azure ARM Maintenance service API version 2018-06-01-preview.

Maintenance Client

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type ApplyUpdate

type ApplyUpdate struct {
	autorest.Response `json:"-"`
	// ApplyUpdateProperties - Properties of the apply update
	*ApplyUpdateProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the resource
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of the resource
	Type *string `json:"type,omitempty"`
}

ApplyUpdate apply Update request

func (ApplyUpdate) MarshalJSON

func (au ApplyUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplyUpdate.

func (*ApplyUpdate) UnmarshalJSON

func (au *ApplyUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplyUpdate struct.

type ApplyUpdateProperties

type ApplyUpdateProperties struct {
	// Status - The status. Possible values include: 'Pending', 'InProgress', 'Completed', 'RetryNow', 'RetryLater'
	Status UpdateStatus `json:"status,omitempty"`
	// ResourceID - The resourceId
	ResourceID *string `json:"resourceId,omitempty"`
	// LastUpdateTime - Last Update time
	LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"`
}

ApplyUpdateProperties properties for apply update

type ApplyUpdatesClient

type ApplyUpdatesClient struct {
	BaseClient
}

ApplyUpdatesClient is the maintenance Client

func NewApplyUpdatesClient

func NewApplyUpdatesClient(subscriptionID string) ApplyUpdatesClient

NewApplyUpdatesClient creates an instance of the ApplyUpdatesClient client.

func NewApplyUpdatesClientWithBaseURI

func NewApplyUpdatesClientWithBaseURI(baseURI string, subscriptionID string) ApplyUpdatesClient

NewApplyUpdatesClientWithBaseURI creates an instance of the ApplyUpdatesClient 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 (ApplyUpdatesClient) CreateOrUpdate

func (client ApplyUpdatesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string) (result ApplyUpdate, err error)

CreateOrUpdate apply maintenance updates to resource Parameters: resourceGroupName - resource group name providerName - resource provider name resourceType - resource type resourceName - resource identifier

func (ApplyUpdatesClient) CreateOrUpdateParent

func (client ApplyUpdatesClient) CreateOrUpdateParent(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) (result ApplyUpdate, err error)

CreateOrUpdateParent apply maintenance updates to resource with parent Parameters: resourceGroupName - resource group name providerName - resource provider name resourceParentType - resource parent type resourceParentName - resource parent identifier resourceType - resource type resourceName - resource identifier

func (ApplyUpdatesClient) CreateOrUpdateParentPreparer

func (client ApplyUpdatesClient) CreateOrUpdateParentPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) (*http.Request, error)

CreateOrUpdateParentPreparer prepares the CreateOrUpdateParent request.

func (ApplyUpdatesClient) CreateOrUpdateParentResponder

func (client ApplyUpdatesClient) CreateOrUpdateParentResponder(resp *http.Response) (result ApplyUpdate, err error)

CreateOrUpdateParentResponder handles the response to the CreateOrUpdateParent request. The method always closes the http.Response Body.

func (ApplyUpdatesClient) CreateOrUpdateParentSender

func (client ApplyUpdatesClient) CreateOrUpdateParentSender(req *http.Request) (*http.Response, error)

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

func (ApplyUpdatesClient) CreateOrUpdatePreparer

func (client ApplyUpdatesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ApplyUpdatesClient) CreateOrUpdateResponder

func (client ApplyUpdatesClient) CreateOrUpdateResponder(resp *http.Response) (result ApplyUpdate, err error)

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

func (ApplyUpdatesClient) CreateOrUpdateSender

func (client ApplyUpdatesClient) 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 (ApplyUpdatesClient) Get

func (client ApplyUpdatesClient) Get(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, applyUpdateName string) (result ApplyUpdate, err error)

Get track maintenance updates to resource Parameters: resourceGroupName - resource group name providerName - resource provider name resourceType - resource type resourceName - resource identifier applyUpdateName - applyUpdate Id

func (ApplyUpdatesClient) GetParent

func (client ApplyUpdatesClient) GetParent(ctx context.Context, resourceGroupName string, resourceParentType string, resourceParentName string, providerName string, resourceType string, resourceName string, applyUpdateName string) (result ApplyUpdate, err error)

GetParent track maintenance updates to resource with parent Parameters: resourceGroupName - resource group name resourceParentType - resource parent type resourceParentName - resource parent identifier providerName - resource provider name resourceType - resource type resourceName - resource identifier applyUpdateName - applyUpdate Id

func (ApplyUpdatesClient) GetParentPreparer

func (client ApplyUpdatesClient) GetParentPreparer(ctx context.Context, resourceGroupName string, resourceParentType string, resourceParentName string, providerName string, resourceType string, resourceName string, applyUpdateName string) (*http.Request, error)

GetParentPreparer prepares the GetParent request.

func (ApplyUpdatesClient) GetParentResponder

func (client ApplyUpdatesClient) GetParentResponder(resp *http.Response) (result ApplyUpdate, err error)

GetParentResponder handles the response to the GetParent request. The method always closes the http.Response Body.

func (ApplyUpdatesClient) GetParentSender

func (client ApplyUpdatesClient) GetParentSender(req *http.Request) (*http.Response, error)

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

func (ApplyUpdatesClient) GetPreparer

func (client ApplyUpdatesClient) GetPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, applyUpdateName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplyUpdatesClient) GetResponder

func (client ApplyUpdatesClient) GetResponder(resp *http.Response) (result ApplyUpdate, err error)

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

func (ApplyUpdatesClient) GetSender

func (client ApplyUpdatesClient) 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.

type BaseClient

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

BaseClient is the base client for Maintenance.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type Configuration

type Configuration struct {
	autorest.Response `json:"-"`
	// Location - Gets or sets location of the resource
	Location *string `json:"location,omitempty"`
	// Tags - Gets or sets tags of the resource
	Tags map[string]*string `json:"tags"`
	// ConfigurationProperties - Gets or sets properties of the resource
	*ConfigurationProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the resource
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of the resource
	Type *string `json:"type,omitempty"`
}

Configuration maintenance configuration record type

func (Configuration) MarshalJSON

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

MarshalJSON is the custom marshaler for Configuration.

func (*Configuration) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Configuration struct.

type ConfigurationAssignment

type ConfigurationAssignment struct {
	autorest.Response `json:"-"`
	// Location - Location of the resource
	Location *string `json:"location,omitempty"`
	// ConfigurationAssignmentProperties - Properties of the configuration assignment
	*ConfigurationAssignmentProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified identifier of the resource
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of the resource
	Type *string `json:"type,omitempty"`
}

ConfigurationAssignment configuration Assignment

func (ConfigurationAssignment) MarshalJSON

func (ca ConfigurationAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConfigurationAssignment.

func (*ConfigurationAssignment) UnmarshalJSON

func (ca *ConfigurationAssignment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ConfigurationAssignment struct.

type ConfigurationAssignmentProperties

type ConfigurationAssignmentProperties struct {
	// MaintenanceConfigurationID - The maintenance configuration Id
	MaintenanceConfigurationID *string `json:"maintenanceConfigurationId,omitempty"`
	// ResourceID - The unique resourceId
	ResourceID *string `json:"resourceId,omitempty"`
}

ConfigurationAssignmentProperties properties for configuration assignment

type ConfigurationAssignmentsClient

type ConfigurationAssignmentsClient struct {
	BaseClient
}

ConfigurationAssignmentsClient is the maintenance Client

func NewConfigurationAssignmentsClient

func NewConfigurationAssignmentsClient(subscriptionID string) ConfigurationAssignmentsClient

NewConfigurationAssignmentsClient creates an instance of the ConfigurationAssignmentsClient client.

func NewConfigurationAssignmentsClientWithBaseURI

func NewConfigurationAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationAssignmentsClient

NewConfigurationAssignmentsClientWithBaseURI creates an instance of the ConfigurationAssignmentsClient 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 (ConfigurationAssignmentsClient) CreateOrUpdate

func (client ConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, configurationAssignmentName string, configurationAssignment ConfigurationAssignment) (result ConfigurationAssignment, err error)

CreateOrUpdate register configuration for resource. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceType - resource type resourceName - resource identifier configurationAssignmentName - configuration assignment name configurationAssignment - the configurationAssignment

func (ConfigurationAssignmentsClient) CreateOrUpdateParent

func (client ConfigurationAssignmentsClient) CreateOrUpdateParent(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string, configurationAssignmentName string, configurationAssignment ConfigurationAssignment) (result ConfigurationAssignment, err error)

CreateOrUpdateParent register configuration for resource. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceParentType - resource parent type resourceParentName - resource parent identifier resourceType - resource type resourceName - resource identifier configurationAssignmentName - configuration assignment name configurationAssignment - the configurationAssignment

func (ConfigurationAssignmentsClient) CreateOrUpdateParentPreparer

func (client ConfigurationAssignmentsClient) CreateOrUpdateParentPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string, configurationAssignmentName string, configurationAssignment ConfigurationAssignment) (*http.Request, error)

CreateOrUpdateParentPreparer prepares the CreateOrUpdateParent request.

func (ConfigurationAssignmentsClient) CreateOrUpdateParentResponder

func (client ConfigurationAssignmentsClient) CreateOrUpdateParentResponder(resp *http.Response) (result ConfigurationAssignment, err error)

CreateOrUpdateParentResponder handles the response to the CreateOrUpdateParent request. The method always closes the http.Response Body.

func (ConfigurationAssignmentsClient) CreateOrUpdateParentSender

func (client ConfigurationAssignmentsClient) CreateOrUpdateParentSender(req *http.Request) (*http.Response, error)

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

func (ConfigurationAssignmentsClient) CreateOrUpdatePreparer

func (client ConfigurationAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, configurationAssignmentName string, configurationAssignment ConfigurationAssignment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConfigurationAssignmentsClient) CreateOrUpdateResponder

func (client ConfigurationAssignmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ConfigurationAssignment, err error)

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

func (ConfigurationAssignmentsClient) CreateOrUpdateSender

func (client ConfigurationAssignmentsClient) 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 (ConfigurationAssignmentsClient) Delete

func (client ConfigurationAssignmentsClient) Delete(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, configurationAssignmentName string) (result ConfigurationAssignment, err error)

Delete unregister configuration for resource. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceType - resource type resourceName - resource identifier configurationAssignmentName - unique configuration assignment name

func (ConfigurationAssignmentsClient) DeleteParent

func (client ConfigurationAssignmentsClient) DeleteParent(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string, configurationAssignmentName string) (result ConfigurationAssignment, err error)

DeleteParent unregister configuration for resource. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceParentType - resource parent type resourceParentName - resource parent identifier resourceType - resource type resourceName - resource identifier configurationAssignmentName - unique configuration assignment name

func (ConfigurationAssignmentsClient) DeleteParentPreparer

func (client ConfigurationAssignmentsClient) DeleteParentPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string, configurationAssignmentName string) (*http.Request, error)

DeleteParentPreparer prepares the DeleteParent request.

func (ConfigurationAssignmentsClient) DeleteParentResponder

func (client ConfigurationAssignmentsClient) DeleteParentResponder(resp *http.Response) (result ConfigurationAssignment, err error)

DeleteParentResponder handles the response to the DeleteParent request. The method always closes the http.Response Body.

func (ConfigurationAssignmentsClient) DeleteParentSender

func (client ConfigurationAssignmentsClient) DeleteParentSender(req *http.Request) (*http.Response, error)

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

func (ConfigurationAssignmentsClient) DeletePreparer

func (client ConfigurationAssignmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string, configurationAssignmentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ConfigurationAssignmentsClient) DeleteResponder

func (client ConfigurationAssignmentsClient) DeleteResponder(resp *http.Response) (result ConfigurationAssignment, err error)

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

func (ConfigurationAssignmentsClient) DeleteSender

func (client ConfigurationAssignmentsClient) 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 (ConfigurationAssignmentsClient) List

func (client ConfigurationAssignmentsClient) List(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string) (result ListConfigurationAssignmentsResult, err error)

List list configurationAssignments for resource. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceType - resource type resourceName - resource identifier

func (ConfigurationAssignmentsClient) ListParent

func (client ConfigurationAssignmentsClient) ListParent(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) (result ListConfigurationAssignmentsResult, err error)

ListParent list configurationAssignments for resource. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceParentType - resource parent type resourceParentName - resource parent identifier resourceType - resource type resourceName - resource identifier

func (ConfigurationAssignmentsClient) ListParentPreparer

func (client ConfigurationAssignmentsClient) ListParentPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) (*http.Request, error)

ListParentPreparer prepares the ListParent request.

func (ConfigurationAssignmentsClient) ListParentResponder

func (client ConfigurationAssignmentsClient) ListParentResponder(resp *http.Response) (result ListConfigurationAssignmentsResult, err error)

ListParentResponder handles the response to the ListParent request. The method always closes the http.Response Body.

func (ConfigurationAssignmentsClient) ListParentSender

func (client ConfigurationAssignmentsClient) ListParentSender(req *http.Request) (*http.Response, error)

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

func (ConfigurationAssignmentsClient) ListPreparer

func (client ConfigurationAssignmentsClient) ListPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ConfigurationAssignmentsClient) ListResponder

func (client ConfigurationAssignmentsClient) ListResponder(resp *http.Response) (result ListConfigurationAssignmentsResult, err error)

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

func (ConfigurationAssignmentsClient) ListSender

func (client ConfigurationAssignmentsClient) 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.

type ConfigurationProperties

type ConfigurationProperties struct {
	// Namespace - Gets or sets namespace of the resource
	Namespace *string `json:"namespace,omitempty"`
	// ExtensionProperties - Gets or sets extensionProperties of the maintenanceConfiguration
	ExtensionProperties map[string]*string `json:"extensionProperties"`
	// MaintenanceScope - Gets or sets maintenanceScope of the configuration. Possible values include: 'ScopeAll', 'ScopeHost', 'ScopeResource', 'ScopeInResource'
	MaintenanceScope Scope `json:"maintenanceScope,omitempty"`
}

ConfigurationProperties properties for maintenance configuration

func (ConfigurationProperties) MarshalJSON

func (cp ConfigurationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConfigurationProperties.

type ConfigurationsClient

type ConfigurationsClient struct {
	BaseClient
}

ConfigurationsClient is the maintenance Client

func NewConfigurationsClient

func NewConfigurationsClient(subscriptionID string) ConfigurationsClient

NewConfigurationsClient creates an instance of the ConfigurationsClient client.

func NewConfigurationsClientWithBaseURI

func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient

NewConfigurationsClientWithBaseURI creates an instance of the ConfigurationsClient 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 (ConfigurationsClient) CreateOrUpdate

func (client ConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, configuration Configuration) (result Configuration, err error)

CreateOrUpdate sends the create or update request. Parameters: resourceGroupName - resource Group Name resourceName - resource Identifier configuration - the configuration

func (ConfigurationsClient) CreateOrUpdatePreparer

func (client ConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, configuration Configuration) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConfigurationsClient) CreateOrUpdateResponder

func (client ConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) CreateOrUpdateSender

func (client ConfigurationsClient) 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 (ConfigurationsClient) Delete

func (client ConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result Configuration, err error)

Delete sends the delete request. Parameters: resourceGroupName - resource Group Name resourceName - resource Identifier

func (ConfigurationsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ConfigurationsClient) DeleteResponder

func (client ConfigurationsClient) DeleteResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) DeleteSender

func (client ConfigurationsClient) 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 (ConfigurationsClient) Get

func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Configuration, err error)

Get sends the get request. Parameters: resourceGroupName - resource Group Name resourceName - resource Identifier

func (ConfigurationsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ConfigurationsClient) GetResponder

func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) GetSender

func (client ConfigurationsClient) 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 (ConfigurationsClient) List

List sends the list request.

func (ConfigurationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ConfigurationsClient) ListResponder

func (client ConfigurationsClient) ListResponder(resp *http.Response) (result ListMaintenanceConfigurationsResult, err error)

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

func (ConfigurationsClient) ListSender

func (client ConfigurationsClient) 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 (ConfigurationsClient) UpdateMethod

func (client ConfigurationsClient) UpdateMethod(ctx context.Context, resourceGroupName string, resourceName string, configuration Configuration) (result Configuration, err error)

UpdateMethod sends the update method request. Parameters: resourceGroupName - resource Group Name resourceName - resource Identifier configuration - the configuration

func (ConfigurationsClient) UpdateMethodPreparer

func (client ConfigurationsClient) UpdateMethodPreparer(ctx context.Context, resourceGroupName string, resourceName string, configuration Configuration) (*http.Request, error)

UpdateMethodPreparer prepares the UpdateMethod request.

func (ConfigurationsClient) UpdateMethodResponder

func (client ConfigurationsClient) UpdateMethodResponder(resp *http.Response) (result Configuration, err error)

UpdateMethodResponder handles the response to the UpdateMethod request. The method always closes the http.Response Body.

func (ConfigurationsClient) UpdateMethodSender

func (client ConfigurationsClient) UpdateMethodSender(req *http.Request) (*http.Response, error)

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

type Error

type Error struct {
	// Error - Details of the error
	Error *ErrorDetails `json:"error,omitempty"`
}

Error an error response received from the Azure Maintenance service.

type ErrorDetails

type ErrorDetails struct {
	// Code - Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.
	Code *string `json:"code,omitempty"`
	// Message - Human-readable representation of the error.
	Message *string `json:"message,omitempty"`
}

ErrorDetails an error response details received from the Azure Maintenance service.

type ImpactType

type ImpactType string

ImpactType enumerates the values for impact type.

const (
	// Freeze ...
	Freeze ImpactType = "Freeze"
	// None ...
	None ImpactType = "None"
	// Redeploy ...
	Redeploy ImpactType = "Redeploy"
	// Restart ...
	Restart ImpactType = "Restart"
)

func PossibleImpactTypeValues

func PossibleImpactTypeValues() []ImpactType

PossibleImpactTypeValues returns an array of possible values for the ImpactType const type.

type ListConfigurationAssignmentsResult

type ListConfigurationAssignmentsResult struct {
	autorest.Response `json:"-"`
	// Value - The list of configuration Assignments
	Value *[]ConfigurationAssignment `json:"value,omitempty"`
}

ListConfigurationAssignmentsResult response for ConfigurationAssignments list

type ListMaintenanceConfigurationsResult

type ListMaintenanceConfigurationsResult struct {
	autorest.Response `json:"-"`
	// Value - The list of maintenance Configurations
	Value *[]Configuration `json:"value,omitempty"`
}

ListMaintenanceConfigurationsResult response for MaintenanceConfigurations list

type ListUpdatesResult

type ListUpdatesResult struct {
	autorest.Response `json:"-"`
	// Value - The pending updates
	Value *[]Update `json:"value,omitempty"`
}

ListUpdatesResult response for Updates list

type Operation

type Operation struct {
	// Name - Name of the operation
	Name *string `json:"name,omitempty"`
	// Display - Display name of the operation
	Display *OperationInfo `json:"display,omitempty"`
	// Origin - Origin of the operation
	Origin *string `json:"origin,omitempty"`
	// Properties - Properties of the operation
	Properties interface{} `json:"properties,omitempty"`
}

Operation represents an operation returned by the GetOperations request

type OperationInfo

type OperationInfo struct {
	// Provider - Name of the provider
	Provider *string `json:"provider,omitempty"`
	// Resource - Name of the resource type
	Resource *string `json:"resource,omitempty"`
	// Operation - Name of the operation
	Operation *string `json:"operation,omitempty"`
	// Description - Description of the operation
	Description *string `json:"description,omitempty"`
}

OperationInfo information about an operation

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the maintenance Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

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 (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationsListResult, err error)

List list the available operations supported by the Microsoft.Maintenance resource provider

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsListResult, err error)

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

func (OperationsClient) ListSender

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.

type OperationsListResult

type OperationsListResult struct {
	autorest.Response `json:"-"`
	// Value - A collection of operations
	Value *[]Operation `json:"value,omitempty"`
}

OperationsListResult result of the List Operations operation

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified identifier of the resource
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of the resource
	Type *string `json:"type,omitempty"`
}

Resource definition of a Resource

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type Scope

type Scope string

Scope enumerates the values for scope.

const (
	// ScopeAll ...
	ScopeAll Scope = "All"
	// ScopeHost ...
	ScopeHost Scope = "Host"
	// ScopeInResource ...
	ScopeInResource Scope = "InResource"
	// ScopeResource ...
	ScopeResource Scope = "Resource"
)

func PossibleScopeValues

func PossibleScopeValues() []Scope

PossibleScopeValues returns an array of possible values for the Scope const type.

type Update

type Update struct {
	// MaintenanceScope - The impact area. Possible values include: 'ScopeAll', 'ScopeHost', 'ScopeResource', 'ScopeInResource'
	MaintenanceScope Scope `json:"maintenanceScope,omitempty"`
	// ImpactType - The impact type. Possible values include: 'None', 'Freeze', 'Restart', 'Redeploy'
	ImpactType ImpactType `json:"impactType,omitempty"`
	// Status - The status. Possible values include: 'Pending', 'InProgress', 'Completed', 'RetryNow', 'RetryLater'
	Status UpdateStatus `json:"status,omitempty"`
	// ImpactDurationInSec - Duration of impact in seconds
	ImpactDurationInSec *int32 `json:"impactDurationInSec,omitempty"`
	// NotBefore - Time when Azure will start force updates if not self-updated by customer before this time
	NotBefore *date.Time `json:"notBefore,omitempty"`
	// UpdateProperties - Properties of the apply update
	*UpdateProperties `json:"properties,omitempty"`
}

Update maintenance update on a resource

func (Update) MarshalJSON

func (u Update) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Update.

func (*Update) UnmarshalJSON

func (u *Update) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Update struct.

type UpdateProperties

type UpdateProperties struct {
	// ResourceID - The resourceId
	ResourceID *string `json:"resourceId,omitempty"`
}

UpdateProperties properties for update

type UpdateStatus

type UpdateStatus string

UpdateStatus enumerates the values for update status.

const (
	// Completed ...
	Completed UpdateStatus = "Completed"
	// InProgress ...
	InProgress UpdateStatus = "InProgress"
	// Pending ...
	Pending UpdateStatus = "Pending"
	// RetryLater ...
	RetryLater UpdateStatus = "RetryLater"
	// RetryNow ...
	RetryNow UpdateStatus = "RetryNow"
)

func PossibleUpdateStatusValues

func PossibleUpdateStatusValues() []UpdateStatus

PossibleUpdateStatusValues returns an array of possible values for the UpdateStatus const type.

type UpdatesClient

type UpdatesClient struct {
	BaseClient
}

UpdatesClient is the maintenance Client

func NewUpdatesClient

func NewUpdatesClient(subscriptionID string) UpdatesClient

NewUpdatesClient creates an instance of the UpdatesClient client.

func NewUpdatesClientWithBaseURI

func NewUpdatesClientWithBaseURI(baseURI string, subscriptionID string) UpdatesClient

NewUpdatesClientWithBaseURI creates an instance of the UpdatesClient 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 (UpdatesClient) List

func (client UpdatesClient) List(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string) (result ListUpdatesResult, err error)

List get updates to resources. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceType - resource type resourceName - resource identifier

func (UpdatesClient) ListParent

func (client UpdatesClient) ListParent(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) (result ListUpdatesResult, err error)

ListParent get updates to resources. Parameters: resourceGroupName - resource group name providerName - resource provider name resourceParentType - resource parent type resourceParentName - resource parent identifier resourceType - resource type resourceName - resource identifier

func (UpdatesClient) ListParentPreparer

func (client UpdatesClient) ListParentPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) (*http.Request, error)

ListParentPreparer prepares the ListParent request.

func (UpdatesClient) ListParentResponder

func (client UpdatesClient) ListParentResponder(resp *http.Response) (result ListUpdatesResult, err error)

ListParentResponder handles the response to the ListParent request. The method always closes the http.Response Body.

func (UpdatesClient) ListParentSender

func (client UpdatesClient) ListParentSender(req *http.Request) (*http.Response, error)

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

func (UpdatesClient) ListPreparer

func (client UpdatesClient) ListPreparer(ctx context.Context, resourceGroupName string, providerName string, resourceType string, resourceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (UpdatesClient) ListResponder

func (client UpdatesClient) ListResponder(resp *http.Response) (result ListUpdatesResult, err error)

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

func (UpdatesClient) ListSender

func (client UpdatesClient) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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