azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance Index | Files | Directories

package maintenance

import "github.com/Azure/azure-sdk-for-go/services/preview/maintenance/mgmt/2018-06-01-preview/maintenance"

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

Azure Maintenance Management Client

Index

Package Files

applyupdates.go client.go configurationassignments.go configurations.go models.go operations.go updates.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type ApplyUpdate Uses

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 Uses

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

MarshalJSON is the custom marshaler for ApplyUpdate.

func (*ApplyUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ApplyUpdate struct.

type ApplyUpdateProperties Uses

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 Uses

type ApplyUpdatesClient struct {
    BaseClient
}

ApplyUpdatesClient is the azure Maintenance Management Client

func NewApplyUpdatesClient Uses

func NewApplyUpdatesClient(subscriptionID string) ApplyUpdatesClient

NewApplyUpdatesClient creates an instance of the ApplyUpdatesClient client.

func NewApplyUpdatesClientWithBaseURI Uses

func NewApplyUpdatesClientWithBaseURI(baseURI string, subscriptionID string) ApplyUpdatesClient

NewApplyUpdatesClientWithBaseURI creates an instance of the ApplyUpdatesClient client.

func (ApplyUpdatesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

BaseClient is the base client for Maintenance.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Configuration Uses

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 Uses

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

MarshalJSON is the custom marshaler for Configuration.

func (*Configuration) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Configuration struct.

type ConfigurationAssignment Uses

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 Uses

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

MarshalJSON is the custom marshaler for ConfigurationAssignment.

func (*ConfigurationAssignment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ConfigurationAssignment struct.

type ConfigurationAssignmentProperties Uses

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 Uses

type ConfigurationAssignmentsClient struct {
    BaseClient
}

ConfigurationAssignmentsClient is the azure Maintenance Management Client

func NewConfigurationAssignmentsClient Uses

func NewConfigurationAssignmentsClient(subscriptionID string) ConfigurationAssignmentsClient

NewConfigurationAssignmentsClient creates an instance of the ConfigurationAssignmentsClient client.

func NewConfigurationAssignmentsClientWithBaseURI Uses

func NewConfigurationAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationAssignmentsClient

NewConfigurationAssignmentsClientWithBaseURI creates an instance of the ConfigurationAssignmentsClient client.

func (ConfigurationAssignmentsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ConfigurationProperties.

type ConfigurationsClient Uses

type ConfigurationsClient struct {
    BaseClient
}

ConfigurationsClient is the azure Maintenance Management Client

func NewConfigurationsClient Uses

func NewConfigurationsClient(subscriptionID string) ConfigurationsClient

NewConfigurationsClient creates an instance of the ConfigurationsClient client.

func NewConfigurationsClientWithBaseURI Uses

func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient

NewConfigurationsClientWithBaseURI creates an instance of the ConfigurationsClient client.

func (ConfigurationsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConfigurationsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ConfigurationsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ConfigurationsClient) GetResponder Uses

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 Uses

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 Uses

func (client ConfigurationsClient) List(ctx context.Context) (result ListMaintenanceConfigurationsResult, err error)

List sends the list request.

func (ConfigurationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ConfigurationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdateMethodPreparer prepares the UpdateMethod request.

func (ConfigurationsClient) UpdateMethodResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleImpactTypeValues() []ImpactType

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

type ListConfigurationAssignmentsResult Uses

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

ListConfigurationAssignmentsResult response for ConfigurationAssignments list

type ListMaintenanceConfigurationsResult Uses

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

ListMaintenanceConfigurationsResult response for MaintenanceConfigurations list

type ListUpdatesResult Uses

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

ListUpdatesResult response for Updates list

type Operation Uses

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 Uses

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 Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the azure Maintenance Management Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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 Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

type Scope Uses

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 Uses

func PossibleScopeValues() []Scope

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

type Update Uses

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 Uses

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

MarshalJSON is the custom marshaler for Update.

func (*Update) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Update struct.

type UpdateProperties Uses

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

UpdateProperties properties for update

type UpdateStatus Uses

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 Uses

func PossibleUpdateStatusValues() []UpdateStatus

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

type UpdatesClient Uses

type UpdatesClient struct {
    BaseClient
}

UpdatesClient is the azure Maintenance Management Client

func NewUpdatesClient Uses

func NewUpdatesClient(subscriptionID string) UpdatesClient

NewUpdatesClient creates an instance of the UpdatesClient client.

func NewUpdatesClientWithBaseURI Uses

func NewUpdatesClientWithBaseURI(baseURI string, subscriptionID string) UpdatesClient

NewUpdatesClientWithBaseURI creates an instance of the UpdatesClient client.

func (UpdatesClient) List Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

PathSynopsis
maintenanceapi

Package maintenance imports 8 packages (graph) and is imported by 2 packages. Updated 2019-09-30. Refresh now. Tools for package owners.