automanage

package
v47.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package automanage implements the Azure ARM Automanage service API version 2020-06-30-preview.

Automanage Client

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type Account

type Account struct {
	autorest.Response `json:"-"`
	// Identity - The identity of the Automanage account.
	Identity *AccountIdentity `json:"identity,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; ARM resource id of the Automanage assignment.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the Automanage assignment.
	Name *string `json:"name,omitempty"`
	// Location - READ-ONLY; Region where the VM is located.
	Location *string `json:"location,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Account definition of the Automanage account.

func (Account) MarshalJSON

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

MarshalJSON is the custom marshaler for Account.

type AccountIdentity

type AccountIdentity struct {
	// PrincipalID - READ-ONLY; The principal id of Automanage account identity.
	PrincipalID *string `json:"principalId,omitempty"`
	// TenantID - READ-ONLY; The tenant id associated with the Automanage account.
	TenantID *string `json:"tenantId,omitempty"`
	// Type - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity. Possible values include: 'SystemAssigned', 'None'
	Type ResourceIdentityType `json:"type,omitempty"`
}

AccountIdentity identity for the Automanage account.

func (AccountIdentity) MarshalJSON

func (ai AccountIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountIdentity.

type AccountList

type AccountList struct {
	autorest.Response `json:"-"`
	// Value - Result of the list Account operation.
	Value *[]Account `json:"value,omitempty"`
}

AccountList the response of the list Account operation.

type AccountsClient

type AccountsClient struct {
	BaseClient
}

AccountsClient is the automanage Client

func NewAccountsClient

func NewAccountsClient(subscriptionID string) AccountsClient

NewAccountsClient creates an instance of the AccountsClient client.

func NewAccountsClientWithBaseURI

func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient

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

func (client AccountsClient) CreateOrUpdate(ctx context.Context, accountName string, resourceGroupName string, parameters Account) (result Account, err error)

CreateOrUpdate creates an Automanage Account Parameters: accountName - name of the Automanage account. resourceGroupName - the resource group name. parameters - parameters supplied to create or update Automanage account.

func (AccountsClient) CreateOrUpdatePreparer

func (client AccountsClient) CreateOrUpdatePreparer(ctx context.Context, accountName string, resourceGroupName string, parameters Account) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccountsClient) CreateOrUpdateResponder

func (client AccountsClient) 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 (AccountsClient) CreateOrUpdateSender

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

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

Delete delete a Automanage account Parameters: resourceGroupName - the resource group name. accountName - name of the Automanage account

func (AccountsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AccountsClient) DeleteResponder

func (client AccountsClient) 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 (AccountsClient) DeleteSender

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

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

Get get information about a Automanage account Parameters: accountName - the Automanage account name. resourceGroupName - the resource group name.

func (AccountsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AccountsClient) GetResponder

func (client AccountsClient) 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 (AccountsClient) GetSender

func (client AccountsClient) 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 (AccountsClient) ListByResourceGroup

func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountList, err error)

ListByResourceGroup retrieve a list of Automanage accounts within a given resource group Parameters: resourceGroupName - the resource group name.

func (AccountsClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AccountsClient) ListByResourceGroupResponder

func (client AccountsClient) ListByResourceGroupResponder(resp *http.Response) (result AccountList, err error)

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

func (AccountsClient) ListByResourceGroupSender

func (client AccountsClient) 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 (AccountsClient) ListBySubscription

func (client AccountsClient) ListBySubscription(ctx context.Context) (result AccountList, err error)

ListBySubscription retrieve a list of Automanage accounts within a subscription

func (AccountsClient) ListBySubscriptionPreparer

func (client AccountsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AccountsClient) ListBySubscriptionResponder

func (client AccountsClient) ListBySubscriptionResponder(resp *http.Response) (result AccountList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (AccountsClient) ListBySubscriptionSender

func (client AccountsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (AccountsClient) Update

func (client AccountsClient) Update(ctx context.Context, accountName string, resourceGroupName string, parameters Account) (result Account, err error)

Update updates an Automanage Account Parameters: accountName - name of the Automanage account. resourceGroupName - the resource group name. parameters - parameters supplied to update Automanage account.

func (AccountsClient) UpdatePreparer

func (client AccountsClient) UpdatePreparer(ctx context.Context, accountName string, resourceGroupName string, parameters Account) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountsClient) UpdateResponder

func (client AccountsClient) 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 (AccountsClient) UpdateSender

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

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

type BaseClient

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

BaseClient is the base client for Automanage.

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 ConfigurationProfile

type ConfigurationProfile string

ConfigurationProfile enumerates the values for configuration profile.

const (
	// AzureBestPracticesProd ...
	AzureBestPracticesProd ConfigurationProfile = "Azure Best Practices - Prod"
	// AzureBestPracticesTestDev ...
	AzureBestPracticesTestDev ConfigurationProfile = "Azure Best Practices - TestDev"
)

func PossibleConfigurationProfileValues

func PossibleConfigurationProfileValues() []ConfigurationProfile

PossibleConfigurationProfileValues returns an array of possible values for the ConfigurationProfile const type.

type ConfigurationProfileAssignment

type ConfigurationProfileAssignment struct {
	autorest.Response `json:"-"`
	// Properties - Properties of the configuration profile assignment.
	Properties *ConfigurationProfileAssignmentProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; ARM resource id of the Automanage assignment.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the Automanage assignment.
	Name *string `json:"name,omitempty"`
	// Location - READ-ONLY; Region where the VM is located.
	Location *string `json:"location,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ConfigurationProfileAssignment configuration profile assignment is an association between a VM and automanage profile configuration.

func (ConfigurationProfileAssignment) MarshalJSON

func (cpa ConfigurationProfileAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConfigurationProfileAssignment.

type ConfigurationProfileAssignmentCompliance

type ConfigurationProfileAssignmentCompliance struct {
	// UpdateStatus - READ-ONLY; The state of compliance, which only appears in the response. Possible values include: 'UpdateStatusSucceeded', 'UpdateStatusFailed', 'UpdateStatusCreated'
	UpdateStatus UpdateStatus `json:"updateStatus,omitempty"`
}

ConfigurationProfileAssignmentCompliance the compliance status for the configuration profile assignment.

type ConfigurationProfileAssignmentList

type ConfigurationProfileAssignmentList struct {
	autorest.Response `json:"-"`
	// Value - Result of the list configuration profile assignment operation.
	Value *[]ConfigurationProfileAssignment `json:"value,omitempty"`
}

ConfigurationProfileAssignmentList the response of the list configuration profile assignment operation.

type ConfigurationProfileAssignmentProperties

type ConfigurationProfileAssignmentProperties struct {
	// ConfigurationProfile - A value indicating configuration profile. Possible values include: 'AzureBestPracticesTestDev', 'AzureBestPracticesProd'
	ConfigurationProfile ConfigurationProfile `json:"configurationProfile,omitempty"`
	// TargetID - The target VM resource URI
	TargetID *string `json:"targetId,omitempty"`
	// AccountID - The Automanage account ARM Resource URI
	AccountID *string `json:"accountId,omitempty"`
	// ConfigurationProfilePreferenceID - The configuration profile custom preferences ARM resource URI
	ConfigurationProfilePreferenceID *string `json:"configurationProfilePreferenceId,omitempty"`
	// ProvisioningStatus - READ-ONLY; The state of onboarding, which only appears in the response. Possible values include: 'Succeeded', 'Failed', 'Created'
	ProvisioningStatus ProvisioningStatus `json:"provisioningStatus,omitempty"`
	// Compliance - The configuration setting for the configuration profile.
	Compliance *ConfigurationProfileAssignmentCompliance `json:"compliance,omitempty"`
}

ConfigurationProfileAssignmentProperties automanage configuration profile assignment properties.

func (ConfigurationProfileAssignmentProperties) MarshalJSON

func (cpap ConfigurationProfileAssignmentProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConfigurationProfileAssignmentProperties.

type ConfigurationProfileAssignmentsClient

type ConfigurationProfileAssignmentsClient struct {
	BaseClient
}

ConfigurationProfileAssignmentsClient is the automanage Client

func NewConfigurationProfileAssignmentsClient

func NewConfigurationProfileAssignmentsClient(subscriptionID string) ConfigurationProfileAssignmentsClient

NewConfigurationProfileAssignmentsClient creates an instance of the ConfigurationProfileAssignmentsClient client.

func NewConfigurationProfileAssignmentsClientWithBaseURI

func NewConfigurationProfileAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationProfileAssignmentsClient

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

func (client ConfigurationProfileAssignmentsClient) CreateOrUpdate(ctx context.Context, configurationProfileAssignmentName string, parameters ConfigurationProfileAssignment, resourceGroupName string, VMName string) (result ConfigurationProfileAssignmentsCreateOrUpdateFuture, err error)

CreateOrUpdate creates an association between a VM and Automanage configuration profile Parameters: configurationProfileAssignmentName - name of the configuration profile assignment. Only default is supported. parameters - parameters supplied to the create or update configuration profile assignment. resourceGroupName - the resource group name. VMName - the name of the virtual machine.

func (ConfigurationProfileAssignmentsClient) CreateOrUpdatePreparer

func (client ConfigurationProfileAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, configurationProfileAssignmentName string, parameters ConfigurationProfileAssignment, resourceGroupName string, VMName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConfigurationProfileAssignmentsClient) CreateOrUpdateResponder

func (client ConfigurationProfileAssignmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ConfigurationProfileAssignment, err error)

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

func (ConfigurationProfileAssignmentsClient) CreateOrUpdateSender

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

func (ConfigurationProfileAssignmentsClient) Delete

func (client ConfigurationProfileAssignmentsClient) Delete(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, VMName string) (result autorest.Response, err error)

Delete delete a configuration profile assignment Parameters: resourceGroupName - the resource group name. configurationProfileAssignmentName - name of the configuration profile assignment VMName - the name of the virtual machine.

func (ConfigurationProfileAssignmentsClient) DeletePreparer

func (client ConfigurationProfileAssignmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, VMName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ConfigurationProfileAssignmentsClient) DeleteResponder

func (client ConfigurationProfileAssignmentsClient) 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 (ConfigurationProfileAssignmentsClient) DeleteSender

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

func (client ConfigurationProfileAssignmentsClient) Get(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, VMName string) (result ConfigurationProfileAssignment, err error)

Get get information about a configuration profile assignment Parameters: resourceGroupName - the resource group name. configurationProfileAssignmentName - the configuration profile assignment name. VMName - the name of the virtual machine.

func (ConfigurationProfileAssignmentsClient) GetPreparer

func (client ConfigurationProfileAssignmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, VMName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ConfigurationProfileAssignmentsClient) GetResponder

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

func (ConfigurationProfileAssignmentsClient) GetSender

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

func (ConfigurationProfileAssignmentsClient) List

func (client ConfigurationProfileAssignmentsClient) List(ctx context.Context, resourceGroupName string) (result ConfigurationProfileAssignmentList, err error)

List get list of configuration profile assignments Parameters: resourceGroupName - the resource group name.

func (ConfigurationProfileAssignmentsClient) ListBySubscription

ListBySubscription get list of configuration profile assignments under a given subscription

func (ConfigurationProfileAssignmentsClient) ListBySubscriptionPreparer

func (client ConfigurationProfileAssignmentsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ConfigurationProfileAssignmentsClient) ListBySubscriptionResponder

func (client ConfigurationProfileAssignmentsClient) ListBySubscriptionResponder(resp *http.Response) (result ConfigurationProfileAssignmentList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ConfigurationProfileAssignmentsClient) ListBySubscriptionSender

func (client ConfigurationProfileAssignmentsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (ConfigurationProfileAssignmentsClient) ListPreparer

func (client ConfigurationProfileAssignmentsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ConfigurationProfileAssignmentsClient) ListResponder

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

func (ConfigurationProfileAssignmentsClient) ListSender

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

type ConfigurationProfileAssignmentsCreateOrUpdateFuture

type ConfigurationProfileAssignmentsCreateOrUpdateFuture struct {
	azure.Future
}

ConfigurationProfileAssignmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ConfigurationProfileAssignmentsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ConfigurationProfilePreference

type ConfigurationProfilePreference struct {
	autorest.Response `json:"-"`
	// Properties - Properties of the configuration profile preference.
	Properties *ConfigurationProfilePreferenceProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; ARM resource id of the Automanage assignment.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the Automanage assignment.
	Name *string `json:"name,omitempty"`
	// Location - READ-ONLY; Region where the VM is located.
	Location *string `json:"location,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ConfigurationProfilePreference definition of the configuration profile preference.

func (ConfigurationProfilePreference) MarshalJSON

func (cpp ConfigurationProfilePreference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ConfigurationProfilePreference.

type ConfigurationProfilePreferenceAntiMalware

type ConfigurationProfilePreferenceAntiMalware struct {
	// EnableRealTimeProtection - Enables or disables Real Time Protection. Possible values include: 'True', 'False'
	EnableRealTimeProtection EnableRealTimeProtection `json:"enableRealTimeProtection,omitempty"`
	// Exclusions - Extensions, Paths and Processes that must be excluded from scan
	Exclusions interface{} `json:"exclusions,omitempty"`
	// RunScheduledScan - Enables or disables a periodic scan for antimalware. Possible values include: 'RunScheduledScanTrue', 'RunScheduledScanFalse'
	RunScheduledScan RunScheduledScan `json:"runScheduledScan,omitempty"`
	// ScanType - Type of scheduled scan. Possible values include: 'Quick', 'Full'
	ScanType ScanType `json:"scanType,omitempty"`
	// ScanDay - Schedule scan settings day
	ScanDay *string `json:"scanDay,omitempty"`
	// ScanTimeInMinutes - Schedule scan settings time
	ScanTimeInMinutes *string `json:"scanTimeInMinutes,omitempty"`
}

ConfigurationProfilePreferenceAntiMalware automanage configuration profile Antimalware preferences.

type ConfigurationProfilePreferenceList

type ConfigurationProfilePreferenceList struct {
	autorest.Response `json:"-"`
	// Value - Result of the list ConfigurationProfilePreference operation.
	Value *[]ConfigurationProfilePreference `json:"value,omitempty"`
}

ConfigurationProfilePreferenceList the response of the list ConfigurationProfilePreference operation.

type ConfigurationProfilePreferenceProperties

type ConfigurationProfilePreferenceProperties struct {
	// VMBackup - The custom preferences for Azure VM Backup.
	VMBackup *ConfigurationProfilePreferenceVMBackup `json:"vmBackup,omitempty"`
	// AntiMalware - The custom preferences for Azure Antimalware.
	AntiMalware *ConfigurationProfilePreferenceAntiMalware `json:"antiMalware,omitempty"`
}

ConfigurationProfilePreferenceProperties automanage configuration profile preference properties.

type ConfigurationProfilePreferenceVMBackup

type ConfigurationProfilePreferenceVMBackup struct {
	// TimeZone - TimeZone optional input as string. For example: Pacific Standard Time
	TimeZone *string `json:"timeZone,omitempty"`
	// InstantRpRetentionRangeInDays - Instant RP retention policy range in days
	InstantRpRetentionRangeInDays *int32 `json:"instantRpRetentionRangeInDays,omitempty"`
	// RetentionPolicy - Retention policy with the details on backup copy retention ranges.
	RetentionPolicy *string `json:"retentionPolicy,omitempty"`
	// SchedulePolicy - Backup schedule specified as part of backup policy.
	SchedulePolicy *string `json:"schedulePolicy,omitempty"`
}

ConfigurationProfilePreferenceVMBackup automanage configuration profile VM Backup preferences.

type ConfigurationProfilePreferencesClient

type ConfigurationProfilePreferencesClient struct {
	BaseClient
}

ConfigurationProfilePreferencesClient is the automanage Client

func NewConfigurationProfilePreferencesClient

func NewConfigurationProfilePreferencesClient(subscriptionID string) ConfigurationProfilePreferencesClient

NewConfigurationProfilePreferencesClient creates an instance of the ConfigurationProfilePreferencesClient client.

func NewConfigurationProfilePreferencesClientWithBaseURI

func NewConfigurationProfilePreferencesClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationProfilePreferencesClient

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

func (client ConfigurationProfilePreferencesClient) CreateOrUpdate(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreference) (result ConfigurationProfilePreference, err error)

CreateOrUpdate creates a configuration profile preference Parameters: configurationProfilePreferenceName - name of the configuration profile preference. resourceGroupName - the resource group name. parameters - parameters supplied to create or update configuration profile preference.

func (ConfigurationProfilePreferencesClient) CreateOrUpdatePreparer

func (client ConfigurationProfilePreferencesClient) CreateOrUpdatePreparer(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreference) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConfigurationProfilePreferencesClient) CreateOrUpdateResponder

func (client ConfigurationProfilePreferencesClient) CreateOrUpdateResponder(resp *http.Response) (result ConfigurationProfilePreference, err error)

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

func (ConfigurationProfilePreferencesClient) CreateOrUpdateSender

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

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

Delete delete a configuration profile preference Parameters: resourceGroupName - the resource group name. configurationProfilePreferenceName - name of the configuration profile preference

func (ConfigurationProfilePreferencesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ConfigurationProfilePreferencesClient) DeleteResponder

func (client ConfigurationProfilePreferencesClient) 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 (ConfigurationProfilePreferencesClient) DeleteSender

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

func (client ConfigurationProfilePreferencesClient) Get(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string) (result ConfigurationProfilePreference, err error)

Get get information about a configuration profile preference Parameters: configurationProfilePreferenceName - the configuration profile preference name. resourceGroupName - the resource group name.

func (ConfigurationProfilePreferencesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ConfigurationProfilePreferencesClient) GetResponder

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

func (ConfigurationProfilePreferencesClient) GetSender

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

func (ConfigurationProfilePreferencesClient) ListByResourceGroup

func (client ConfigurationProfilePreferencesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ConfigurationProfilePreferenceList, err error)

ListByResourceGroup retrieve a list of configuration profile preferences within a given resource group Parameters: resourceGroupName - the resource group name.

func (ConfigurationProfilePreferencesClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ConfigurationProfilePreferencesClient) ListByResourceGroupResponder

func (client ConfigurationProfilePreferencesClient) ListByResourceGroupResponder(resp *http.Response) (result ConfigurationProfilePreferenceList, err error)

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

func (ConfigurationProfilePreferencesClient) ListByResourceGroupSender

func (client ConfigurationProfilePreferencesClient) 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 (ConfigurationProfilePreferencesClient) ListBySubscription

ListBySubscription retrieve a list of configuration profile preferences within a subscription

func (ConfigurationProfilePreferencesClient) ListBySubscriptionPreparer

func (client ConfigurationProfilePreferencesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ConfigurationProfilePreferencesClient) ListBySubscriptionResponder

func (client ConfigurationProfilePreferencesClient) ListBySubscriptionResponder(resp *http.Response) (result ConfigurationProfilePreferenceList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ConfigurationProfilePreferencesClient) ListBySubscriptionSender

func (client ConfigurationProfilePreferencesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

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

func (ConfigurationProfilePreferencesClient) Update

func (client ConfigurationProfilePreferencesClient) Update(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreference) (result ConfigurationProfilePreference, err error)

Update updates a configuration profile preference Parameters: configurationProfilePreferenceName - name of the configuration profile preference. resourceGroupName - the resource group name. parameters - parameters supplied to create or update configuration profile preference.

func (ConfigurationProfilePreferencesClient) UpdatePreparer

func (client ConfigurationProfilePreferencesClient) UpdatePreparer(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreference) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ConfigurationProfilePreferencesClient) UpdateResponder

func (client ConfigurationProfilePreferencesClient) UpdateResponder(resp *http.Response) (result ConfigurationProfilePreference, err error)

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

func (ConfigurationProfilePreferencesClient) UpdateSender

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

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

type EnableRealTimeProtection

type EnableRealTimeProtection string

EnableRealTimeProtection enumerates the values for enable real time protection.

const (
	// False ...
	False EnableRealTimeProtection = "False"
	// True ...
	True EnableRealTimeProtection = "True"
)

func PossibleEnableRealTimeProtectionValues

func PossibleEnableRealTimeProtectionValues() []EnableRealTimeProtection

PossibleEnableRealTimeProtectionValues returns an array of possible values for the EnableRealTimeProtection const type.

type ErrorResponse

type ErrorResponse struct {
	// Error - Details about the error.
	Error *ErrorResponseBody `json:"error,omitempty"`
}

ErrorResponse ARM error response body.

type ErrorResponseBody

type ErrorResponseBody struct {
	// Code - An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`
	// Message - A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`
	// Target - The target of the particular error. For example, the name of the property in error.
	Target *string `json:"target,omitempty"`
}

ErrorResponseBody an error response from the Automanage service.

type Operation

type Operation struct {
	// Name - Operation name: For ex. providers/Microsoft.Automanage/configurationProfileAssignments/write or read
	Name *string `json:"name,omitempty"`
	// IsDataAction - Indicates whether the operation is a data action
	IsDataAction *string `json:"isDataAction,omitempty"`
	// Display - Provider, Resource, Operation and description values.
	Display *OperationDisplay `json:"display,omitempty"`
	// OperationProperties - Provider, Resource, Operation and description values.
	*OperationProperties `json:"properties,omitempty"`
}

Operation automanage REST API operation

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Operation struct.

type OperationDisplay

type OperationDisplay struct {
	// Provider - Service provider: Microsoft.Automanage
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed:  For ex.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operation type: Read, write, delete, etc.
	Operation *string `json:"operation,omitempty"`
	// Description - Description about operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay provider, Resource, Operation and description values.

type OperationList

type OperationList struct {
	autorest.Response `json:"-"`
	// Value - List of Automanage operations supported by the Automanage resource provider.
	Value *[]Operation `json:"value,omitempty"`
}

OperationList the response model for the list of Automanage operations

type OperationProperties

type OperationProperties struct {
	// StatusCode - Service provider: Microsoft.Automanage
	StatusCode *string `json:"statusCode,omitempty"`
}

OperationProperties provider, Resource, Operation and description values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the automanage 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 OperationList, err error)

List lists all of the available Automanage REST API operations.

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 OperationList, 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 ProvisioningStatus

type ProvisioningStatus string

ProvisioningStatus enumerates the values for provisioning status.

const (
	// Created ...
	Created ProvisioningStatus = "Created"
	// Failed ...
	Failed ProvisioningStatus = "Failed"
	// Succeeded ...
	Succeeded ProvisioningStatus = "Succeeded"
)

func PossibleProvisioningStatusValues

func PossibleProvisioningStatusValues() []ProvisioningStatus

PossibleProvisioningStatusValues returns an array of possible values for the ProvisioningStatus const type.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; ARM resource id of the Automanage assignment.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the Automanage assignment.
	Name *string `json:"name,omitempty"`
	// Location - READ-ONLY; Region where the VM is located.
	Location *string `json:"location,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ProxyResource ARM proxy resource.

type Resource

type Resource struct {
	// ID - READ-ONLY; ARM resource id of the Automanage assignment.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the Automanage assignment.
	Name *string `json:"name,omitempty"`
	// Location - READ-ONLY; Region where the VM is located.
	Location *string `json:"location,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Resource the core properties of ARM resources

type ResourceIdentityType

type ResourceIdentityType string

ResourceIdentityType enumerates the values for resource identity type.

const (
	// None ...
	None ResourceIdentityType = "None"
	// SystemAssigned ...
	SystemAssigned ResourceIdentityType = "SystemAssigned"
)

func PossibleResourceIdentityTypeValues

func PossibleResourceIdentityTypeValues() []ResourceIdentityType

PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.

type RunScheduledScan

type RunScheduledScan string

RunScheduledScan enumerates the values for run scheduled scan.

const (
	// RunScheduledScanFalse ...
	RunScheduledScanFalse RunScheduledScan = "False"
	// RunScheduledScanTrue ...
	RunScheduledScanTrue RunScheduledScan = "True"
)

func PossibleRunScheduledScanValues

func PossibleRunScheduledScanValues() []RunScheduledScan

PossibleRunScheduledScanValues returns an array of possible values for the RunScheduledScan const type.

type ScanType

type ScanType string

ScanType enumerates the values for scan type.

const (
	// Full ...
	Full ScanType = "Full"
	// Quick ...
	Quick ScanType = "Quick"
)

func PossibleScanTypeValues

func PossibleScanTypeValues() []ScanType

PossibleScanTypeValues returns an array of possible values for the ScanType const type.

type TrackedResource

type TrackedResource struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; ARM resource id of the Automanage assignment.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Name of the Automanage assignment.
	Name *string `json:"name,omitempty"`
	// Location - READ-ONLY; Region where the VM is located.
	Location *string `json:"location,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type UpdateStatus

type UpdateStatus string

UpdateStatus enumerates the values for update status.

const (
	// UpdateStatusCreated ...
	UpdateStatusCreated UpdateStatus = "Created"
	// UpdateStatusFailed ...
	UpdateStatusFailed UpdateStatus = "Failed"
	// UpdateStatusSucceeded ...
	UpdateStatusSucceeded UpdateStatus = "Succeeded"
)

func PossibleUpdateStatusValues

func PossibleUpdateStatusValues() []UpdateStatus

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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