import "github.com/Azure/azure-sdk-for-go/services/preview/automanage/mgmt/2020-06-30-preview/automanage"
Package automanage implements the Azure ARM Automanage service API version 2020-06-30-preview.
Automanage Client
accounts.go client.go configurationprofileassignments.go configurationprofilepreferences.go enums.go models.go operations.go version.go
const ( // DefaultBaseURI is the default URI used for the service Automanage DefaultBaseURI = "https://management.azure.com" )
UserAgent returns the UserAgent string to use when sending http.Requests.
Version returns the semantic version (see http://semver.org) of the client.
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"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
Account definition of the Automanage account.
MarshalJSON is the custom marshaler for Account.
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 (ai AccountIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountIdentity.
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 AccountUpdate struct { // Identity - The identity of the Automanage account. Identity *AccountIdentity `json:"identity,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
AccountUpdate definition of the Automanage account.
func (au AccountUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AccountUpdate.
type AccountsClient struct { BaseClient }
AccountsClient is the automanage Client
func NewAccountsClient(subscriptionID string) AccountsClient
NewAccountsClient creates an instance of the AccountsClient client.
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 (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 name of the resource group. The name is case insensitive. parameters - parameters supplied to create or update Automanage account.
func (client AccountsClient) CreateOrUpdatePreparer(ctx context.Context, accountName string, resourceGroupName string, parameters Account) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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.
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client AccountsClient) Delete(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error)
Delete delete a Automanage account Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. accountName - name of the Automanage account
func (client AccountsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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.
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
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 name of the resource group. The name is case insensitive.
func (client AccountsClient) GetPreparer(ctx context.Context, accountName string, resourceGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
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 name of the resource group. The name is case insensitive.
func (client AccountsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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.
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (client AccountsClient) ListBySubscription(ctx context.Context) (result AccountList, err error)
ListBySubscription retrieve a list of Automanage accounts within a subscription
func (client AccountsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
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.
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (client AccountsClient) Update(ctx context.Context, accountName string, resourceGroupName string, parameters AccountUpdate) (result Account, err error)
Update updates an Automanage Account Parameters: accountName - name of the Automanage account. resourceGroupName - the name of the resource group. The name is case insensitive. parameters - parameters supplied to update Automanage account.
func (client AccountsClient) UpdatePreparer(ctx context.Context, accountName string, resourceGroupName string, parameters AccountUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
BaseClient is the base client for Automanage.
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
ConfigurationProfile enumerates the values for configuration profile.
const ( // AzurevirtualmachinebestpracticesDevTest ... AzurevirtualmachinebestpracticesDevTest ConfigurationProfile = "Azure virtual machine best practices – Dev/Test" // AzurevirtualmachinebestpracticesProduction ... AzurevirtualmachinebestpracticesProduction ConfigurationProfile = "Azure virtual machine best practices – Production" )
func PossibleConfigurationProfileValues() []ConfigurationProfile
PossibleConfigurationProfileValues returns an array of possible values for the ConfigurationProfile const type.
type ConfigurationProfileAssignment struct { autorest.Response `json:"-"` // Properties - Properties of the configuration profile assignment. Properties *ConfigurationProfileAssignmentProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
ConfigurationProfileAssignment configuration profile assignment is an association between a VM and automanage profile configuration.
func (cpa ConfigurationProfileAssignment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationProfileAssignment.
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 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 struct { // ConfigurationProfile - A value indicating configuration profile. Possible values include: 'AzurevirtualmachinebestpracticesDevTest', 'AzurevirtualmachinebestpracticesProduction' 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"` // ProvisioningState - READ-ONLY; The state of onboarding, which only appears in the response. Possible values include: 'Succeeded', 'Failed', 'Created' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Compliance - The configuration setting for the configuration profile. Compliance *ConfigurationProfileAssignmentCompliance `json:"compliance,omitempty"` }
ConfigurationProfileAssignmentProperties automanage configuration profile assignment properties.
func (cpap ConfigurationProfileAssignmentProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationProfileAssignmentProperties.
type ConfigurationProfileAssignmentsClient struct { BaseClient }
ConfigurationProfileAssignmentsClient is the automanage Client
func NewConfigurationProfileAssignmentsClient(subscriptionID string) ConfigurationProfileAssignmentsClient
NewConfigurationProfileAssignmentsClient creates an instance of the ConfigurationProfileAssignmentsClient client.
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 (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 name of the resource group. The name is case insensitive. VMName - the name of the virtual machine.
func (client ConfigurationProfileAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, configurationProfileAssignmentName string, parameters ConfigurationProfileAssignment, resourceGroupName string, VMName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (client ConfigurationProfileAssignmentsClient) CreateOrUpdateSender(req *http.Request) (future ConfigurationProfileAssignmentsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
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 name of the resource group. The name is case insensitive. configurationProfileAssignmentName - name of the configuration profile assignment VMName - the name of the virtual machine.
func (client ConfigurationProfileAssignmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, VMName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 name of the resource group. The name is case insensitive. configurationProfileAssignmentName - the configuration profile assignment name. VMName - the name of the virtual machine.
func (client ConfigurationProfileAssignmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, configurationProfileAssignmentName string, VMName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ConfigurationProfileAssignmentsClient) GetResponder(resp *http.Response) (result ConfigurationProfileAssignment, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ConfigurationProfileAssignmentsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client ConfigurationProfileAssignmentsClient) List(ctx context.Context, resourceGroupName string) (result ConfigurationProfileAssignmentList, err error)
List get list of configuration profile assignments Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client ConfigurationProfileAssignmentsClient) ListBySubscription(ctx context.Context) (result ConfigurationProfileAssignmentList, err error)
ListBySubscription get list of configuration profile assignments under a given subscription
func (client ConfigurationProfileAssignmentsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
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 (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 (client ConfigurationProfileAssignmentsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client ConfigurationProfileAssignmentsClient) ListResponder(resp *http.Response) (result ConfigurationProfileAssignmentList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client ConfigurationProfileAssignmentsClient) 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 ConfigurationProfileAssignmentsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ConfigurationProfileAssignmentsClient) (ConfigurationProfileAssignment, error) }
ConfigurationProfileAssignmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
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"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
ConfigurationProfilePreference definition of the configuration profile preference.
func (cpp ConfigurationProfilePreference) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationProfilePreference.
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 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 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 ConfigurationProfilePreferenceUpdate struct { // Properties - Properties of the configuration profile preference. Properties *ConfigurationProfilePreferenceProperties `json:"properties,omitempty"` // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
ConfigurationProfilePreferenceUpdate definition of the configuration profile preference.
func (cppu ConfigurationProfilePreferenceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationProfilePreferenceUpdate.
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 struct { BaseClient }
ConfigurationProfilePreferencesClient is the automanage Client
func NewConfigurationProfilePreferencesClient(subscriptionID string) ConfigurationProfilePreferencesClient
NewConfigurationProfilePreferencesClient creates an instance of the ConfigurationProfilePreferencesClient client.
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 (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 name of the resource group. The name is case insensitive. parameters - parameters supplied to create or update configuration profile preference.
func (client ConfigurationProfilePreferencesClient) CreateOrUpdatePreparer(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreference) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (client ConfigurationProfilePreferencesClient) Delete(ctx context.Context, resourceGroupName string, configurationProfilePreferenceName string) (result autorest.Response, err error)
Delete delete a configuration profile preference Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. configurationProfilePreferenceName - name of the configuration profile preference
func (client ConfigurationProfilePreferencesClient) DeletePreparer(ctx context.Context, resourceGroupName string, configurationProfilePreferenceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 name of the resource group. The name is case insensitive.
func (client ConfigurationProfilePreferencesClient) GetPreparer(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ConfigurationProfilePreferencesClient) GetResponder(resp *http.Response) (result ConfigurationProfilePreference, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ConfigurationProfilePreferencesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client 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 name of the resource group. The name is case insensitive.
func (client ConfigurationProfilePreferencesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client ConfigurationProfilePreferencesClient) ListBySubscription(ctx context.Context) (result ConfigurationProfilePreferenceList, err error)
ListBySubscription retrieve a list of configuration profile preferences within a subscription
func (client ConfigurationProfilePreferencesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
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 (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 (client ConfigurationProfilePreferencesClient) Update(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreferenceUpdate) (result ConfigurationProfilePreference, err error)
Update updates a configuration profile preference Parameters: configurationProfilePreferenceName - name of the configuration profile preference. resourceGroupName - the name of the resource group. The name is case insensitive. parameters - parameters supplied to create or update configuration profile preference.
func (client ConfigurationProfilePreferencesClient) UpdatePreparer(ctx context.Context, configurationProfilePreferenceName string, resourceGroupName string, parameters ConfigurationProfilePreferenceUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
EnableRealTimeProtection enumerates the values for enable real time protection.
const ( // False ... False EnableRealTimeProtection = "False" // True ... True EnableRealTimeProtection = "True" )
func PossibleEnableRealTimeProtectionValues() []EnableRealTimeProtection
PossibleEnableRealTimeProtectionValues returns an array of possible values for the EnableRealTimeProtection const type.
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
ErrorAdditionalInfo the resource management error additional info.
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
ErrorDetail the error detail.
type ErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
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
MarshalJSON is the custom marshaler for Operation.
UnmarshalJSON is the custom unmarshaler for Operation struct.
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 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 struct { // StatusCode - Service provider: Microsoft.Automanage StatusCode *string `json:"statusCode,omitempty"` }
OperationProperties provider, Resource, Operation and description values.
type OperationsClient struct { BaseClient }
OperationsClient is the automanage Client
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client OperationsClient) List(ctx context.Context) (result OperationList, err error)
List lists all of the available Automanage REST API operations.
ListPreparer prepares the List request.
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.
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
ProvisioningState enumerates the values for provisioning state.
const ( // Created ... Created ProvisioningState = "Created" // Failed ... Failed ProvisioningState = "Failed" // Succeeded ... Succeeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
ProxyResource the resource model definition for an Azure Resource Manager proxy resource. It will have everything other than required location and tags
type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
Resource common fields that are returned in the response for all Azure Resource Manager resources
ResourceIdentityType enumerates the values for resource identity type.
const ( // None ... None ResourceIdentityType = "None" // SystemAssigned ... SystemAssigned ResourceIdentityType = "SystemAssigned" )
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
RunScheduledScan enumerates the values for run scheduled scan.
const ( // RunScheduledScanFalse ... RunScheduledScanFalse RunScheduledScan = "False" // RunScheduledScanTrue ... RunScheduledScanTrue RunScheduledScan = "True" )
func PossibleRunScheduledScanValues() []RunScheduledScan
PossibleRunScheduledScanValues returns an array of possible values for the RunScheduledScan const type.
ScanType enumerates the values for scan type.
PossibleScanTypeValues returns an array of possible values for the ScanType const type.
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type UpdateResource struct { // Tags - The tags of the resource. Tags map[string]*string `json:"tags"` }
UpdateResource represents an update resource
func (ur UpdateResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UpdateResource.
UpdateStatus enumerates the values for update status.
const ( // UpdateStatusCreated ... UpdateStatusCreated UpdateStatus = "Created" // UpdateStatusFailed ... UpdateStatusFailed UpdateStatus = "Failed" // UpdateStatusSucceeded ... UpdateStatusSucceeded UpdateStatus = "Succeeded" )
func PossibleUpdateStatusValues() []UpdateStatus
PossibleUpdateStatusValues returns an array of possible values for the UpdateStatus const type.
Path | Synopsis |
---|---|
automanageapi |
Package automanage imports 8 packages (graph) and is imported by 1 packages. Updated 2021-01-26. Refresh now. Tools for package owners.