advisor

package
v19.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package advisor implements the Azure ARM Advisor service API version 2016-07-12-preview.

REST APIs for Azure Advisor

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

Copyright (c) Microsoft and contributors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and limitations under the License.

Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code is regenerated. Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. UserAgent returns the UserAgent string to use when sending http.Requests.

func Version deprecated

func Version() string

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. BaseClient is the base client for Advisor.

func New deprecated

func New(subscriptionID string) BaseClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. New creates an instance of the BaseClient client.

func NewWithBaseURI deprecated

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewWithBaseURI creates an instance of the BaseClient client.

type Category deprecated

type Category string

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Category enumerates the values for category.

const (
	// Cost ...
	Cost Category = "Cost"
	// HighAvailability ...
	HighAvailability Category = "HighAvailability"
	// Performance ...
	Performance Category = "Performance"
	// Security ...
	Security Category = "Security"
)

func PossibleCategoryValues deprecated

func PossibleCategoryValues() []Category

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. PossibleCategoryValues returns an array of possible values for the Category const type.

type Impact deprecated

type Impact string

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Impact enumerates the values for impact.

const (
	// High ...
	High Impact = "High"
	// Low ...
	Low Impact = "Low"
	// Medium ...
	Medium Impact = "Medium"
)

func PossibleImpactValues deprecated

func PossibleImpactValues() []Impact

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. PossibleImpactValues returns an array of possible values for the Impact const type.

type ListSuppressionContract deprecated

type ListSuppressionContract struct {
	autorest.Response `json:"-"`
	Value             *[]SuppressionContract `json:"value,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListSuppressionContract ...

type OperationDisplayInfo deprecated

type OperationDisplayInfo struct {
	// Description - The description of the operation.
	Description *string `json:"description,omitempty"`
	// Operation - The action that users can perform, based on their permission level.
	Operation *string `json:"operation,omitempty"`
	// Provider - Service provider: Microsoft Advisor.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. OperationDisplayInfo the operation supported by Advisor.

type OperationEntity deprecated

type OperationEntity struct {
	// Name - Operation name: {provider}/{resource}/{operation}.
	Name *string `json:"name,omitempty"`
	// Display - The operation supported by Advisor.
	Display *OperationDisplayInfo `json:"display,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. OperationEntity the operation supported by Advisor.

type OperationEntityListResult deprecated

type OperationEntityListResult struct {
	autorest.Response `json:"-"`
	// NextLink - The link used to get the next page of operations.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - The list of operations.
	Value *[]OperationEntity `json:"value,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. OperationEntityListResult the list of Advisor operations.

func (OperationEntityListResult) IsEmpty deprecated

func (oelr OperationEntityListResult) IsEmpty() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. IsEmpty returns true if the ListResult contains no values.

type OperationEntityListResultIterator deprecated

type OperationEntityListResultIterator struct {
	// contains filtered or unexported fields
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. OperationEntityListResultIterator provides access to a complete listing of OperationEntity values.

func (*OperationEntityListResultIterator) Next deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationEntityListResultIterator) NotDone deprecated

func (iter OperationEntityListResultIterator) NotDone() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationEntityListResultIterator) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Response returns the raw server response from the last page request.

func (OperationEntityListResultIterator) Value deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationEntityListResultPage deprecated

type OperationEntityListResultPage struct {
	// contains filtered or unexported fields
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. OperationEntityListResultPage contains a page of OperationEntity values.

func (*OperationEntityListResultPage) Next deprecated

func (page *OperationEntityListResultPage) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationEntityListResultPage) NotDone deprecated

func (page OperationEntityListResultPage) NotDone() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationEntityListResultPage) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Response returns the raw server response from the last page request.

func (OperationEntityListResultPage) Values deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient deprecated

type OperationsClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. OperationsClient is the REST APIs for Azure Advisor

func NewOperationsClient deprecated

func NewOperationsClient(subscriptionID string) OperationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI deprecated

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. List lists all the available Advisor REST API operations.

func (OperationsClient) ListComplete deprecated

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationEntityListResultIterator, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListPreparer prepares the List request.

func (OperationsClient) ListResponder deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender deprecated

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type RecommendationProperties deprecated

type RecommendationProperties struct {
	// Category - The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost'
	Category Category `json:"category,omitempty"`
	// Impact - The business impact of the recommendation. Possible values include: 'High', 'Medium', 'Low'
	Impact Impact `json:"impact,omitempty"`
	// ImpactedField - The resource type identified by Advisor.
	ImpactedField *string `json:"impactedField,omitempty"`
	// ImpactedValue - The resource identified by Advisor.
	ImpactedValue *string `json:"impactedValue,omitempty"`
	// LastUpdated - The most recent time that Advisor checked the validity of the recommendation.
	LastUpdated *date.Time `json:"lastUpdated,omitempty"`
	// Metadata - The recommendation metadata.
	Metadata map[string]interface{} `json:"metadata"`
	// RecommendationTypeID - The recommendation-type GUID.
	RecommendationTypeID *string `json:"recommendationTypeId,omitempty"`
	// Risk - The potential risk of not implementing the recommendation. Possible values include: 'Error', 'Warning', 'None'
	Risk Risk `json:"risk,omitempty"`
	// ShortDescription - A summary of the recommendation.
	ShortDescription *ShortDescription `json:"shortDescription,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. RecommendationProperties the properties of the recommendation.

func (RecommendationProperties) MarshalJSON deprecated

func (rp RecommendationProperties) MarshalJSON() ([]byte, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. MarshalJSON is the custom marshaler for RecommendationProperties.

type RecommendationsClient deprecated

type RecommendationsClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. RecommendationsClient is the REST APIs for Azure Advisor

func NewRecommendationsClient deprecated

func NewRecommendationsClient(subscriptionID string) RecommendationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewRecommendationsClient creates an instance of the RecommendationsClient client.

func NewRecommendationsClientWithBaseURI deprecated

func NewRecommendationsClientWithBaseURI(baseURI string, subscriptionID string) RecommendationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewRecommendationsClientWithBaseURI creates an instance of the RecommendationsClient client.

func (RecommendationsClient) Generate deprecated

func (client RecommendationsClient) Generate(ctx context.Context) (result autorest.Response, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Generate initiates the recommendation generation or computation process for a subscription. This operation is asynchronous. The generated recommendations are stored in a cache in the Advisor service.

func (RecommendationsClient) GeneratePreparer deprecated

func (client RecommendationsClient) GeneratePreparer(ctx context.Context) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GeneratePreparer prepares the Generate request.

func (RecommendationsClient) GenerateResponder deprecated

func (client RecommendationsClient) GenerateResponder(resp *http.Response) (result autorest.Response, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GenerateResponder handles the response to the Generate request. The method always closes the http.Response Body.

func (RecommendationsClient) GenerateSender deprecated

func (client RecommendationsClient) GenerateSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GenerateSender sends the Generate request. The method will close the http.Response Body if it receives an error.

func (RecommendationsClient) Get deprecated

func (client RecommendationsClient) Get(ctx context.Context, resourceURI string, recommendationID string) (result ResourceRecommendationBase, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Get obtains details of a cached recommendation.

resourceURI is the fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies. recommendationID is the recommendation ID.

func (RecommendationsClient) GetGenerateRecommendationsStatus deprecated

func (client RecommendationsClient) GetGenerateRecommendationsStatus(ctx context.Context, operationID uuid.UUID) (result autorest.Response, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetGenerateRecommendationsStatus retrieves the status of the recommendation computation or generation process. Invoke this API after calling the generation recommendation. The URI of this API is returned in the Location field of the response header.

operationID is the operation ID, which can be found from the Location field in the generate recommendation response header.

func (RecommendationsClient) GetGenerateRecommendationsStatusPreparer deprecated

func (client RecommendationsClient) GetGenerateRecommendationsStatusPreparer(ctx context.Context, operationID uuid.UUID) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetGenerateRecommendationsStatusPreparer prepares the GetGenerateRecommendationsStatus request.

func (RecommendationsClient) GetGenerateRecommendationsStatusResponder deprecated

func (client RecommendationsClient) GetGenerateRecommendationsStatusResponder(resp *http.Response) (result autorest.Response, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetGenerateRecommendationsStatusResponder handles the response to the GetGenerateRecommendationsStatus request. The method always closes the http.Response Body.

func (RecommendationsClient) GetGenerateRecommendationsStatusSender deprecated

func (client RecommendationsClient) GetGenerateRecommendationsStatusSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetGenerateRecommendationsStatusSender sends the GetGenerateRecommendationsStatus request. The method will close the http.Response Body if it receives an error.

func (RecommendationsClient) GetPreparer deprecated

func (client RecommendationsClient) GetPreparer(ctx context.Context, resourceURI string, recommendationID string) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetPreparer prepares the Get request.

func (RecommendationsClient) GetResponder deprecated

func (client RecommendationsClient) GetResponder(resp *http.Response) (result ResourceRecommendationBase, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecommendationsClient) GetSender deprecated

func (client RecommendationsClient) GetSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RecommendationsClient) List deprecated

func (client RecommendationsClient) List(ctx context.Context, filter string, top *int32, skipToken string) (result ResourceRecommendationBaseListResultPage, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. List obtains cached recommendations for a subscription. The recommendations are generated or computed by invoking generateRecommendations.

filter is the filter to apply to the recommendations. top is the number of recommendations per page if a paged version of this API is being used. skipToken is the page-continuation token to use with a paged version of this API.

func (RecommendationsClient) ListComplete deprecated

func (client RecommendationsClient) ListComplete(ctx context.Context, filter string, top *int32, skipToken string) (result ResourceRecommendationBaseListResultIterator, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListComplete enumerates all values, automatically crossing page boundaries as required.

func (RecommendationsClient) ListPreparer deprecated

func (client RecommendationsClient) ListPreparer(ctx context.Context, filter string, top *int32, skipToken string) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListPreparer prepares the List request.

func (RecommendationsClient) ListResponder deprecated

func (client RecommendationsClient) ListResponder(resp *http.Response) (result ResourceRecommendationBaseListResult, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (RecommendationsClient) ListSender deprecated

func (client RecommendationsClient) ListSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Resource deprecated

type Resource struct {
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource. This cannot be changed after the resource is created.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Resource an Azure resource.

func (Resource) MarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. MarshalJSON is the custom marshaler for Resource.

type ResourceRecommendationBase deprecated

type ResourceRecommendationBase struct {
	autorest.Response `json:"-"`
	// ID - The fully qualified recommendation ID, for example /subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.ClassicCompute/virtualMachines/vm1/providers/Microsoft.Advisor/recommendations/recommendationGUID.
	ID *string `json:"id,omitempty"`
	// Name - The name of recommendation.
	Name *string `json:"name,omitempty"`
	// RecommendationProperties - The properties of the recommendation.
	*RecommendationProperties `json:"properties,omitempty"`
	// SuppressionIds - The list of snoozed and dismissed rules for the recommendation.
	SuppressionIds *[]uuid.UUID `json:"suppressionIds,omitempty"`
	// Type - The recommendation type: Microsoft.Advisor/recommendations.
	Type *string `json:"type,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ResourceRecommendationBase advisor Recommendation.

func (ResourceRecommendationBase) MarshalJSON deprecated

func (rrb ResourceRecommendationBase) MarshalJSON() ([]byte, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. MarshalJSON is the custom marshaler for ResourceRecommendationBase.

func (*ResourceRecommendationBase) UnmarshalJSON deprecated

func (rrb *ResourceRecommendationBase) UnmarshalJSON(body []byte) error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. UnmarshalJSON is the custom unmarshaler for ResourceRecommendationBase struct.

type ResourceRecommendationBaseListResult deprecated

type ResourceRecommendationBaseListResult struct {
	autorest.Response `json:"-"`
	// NextLink - The link used to get the next page of recommendations.
	NextLink *string `json:"nextLink,omitempty"`
	// Value - The list of recommendations.
	Value *[]ResourceRecommendationBase `json:"value,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ResourceRecommendationBaseListResult the list of Advisor recommendations.

func (ResourceRecommendationBaseListResult) IsEmpty deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. IsEmpty returns true if the ListResult contains no values.

type ResourceRecommendationBaseListResultIterator deprecated

type ResourceRecommendationBaseListResultIterator struct {
	// contains filtered or unexported fields
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ResourceRecommendationBaseListResultIterator provides access to a complete listing of ResourceRecommendationBase values.

func (*ResourceRecommendationBaseListResultIterator) Next deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResourceRecommendationBaseListResultIterator) NotDone deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NotDone returns true if the enumeration should be started or is not yet complete.

func (ResourceRecommendationBaseListResultIterator) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Response returns the raw server response from the last page request.

func (ResourceRecommendationBaseListResultIterator) Value deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResourceRecommendationBaseListResultPage deprecated

type ResourceRecommendationBaseListResultPage struct {
	// contains filtered or unexported fields
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ResourceRecommendationBaseListResultPage contains a page of ResourceRecommendationBase values.

func (*ResourceRecommendationBaseListResultPage) Next deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResourceRecommendationBaseListResultPage) NotDone deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResourceRecommendationBaseListResultPage) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Response returns the raw server response from the last page request.

func (ResourceRecommendationBaseListResultPage) Values deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Values returns the slice of values for the current page or nil if there are no values.

type Risk deprecated

type Risk string

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Risk enumerates the values for risk.

const (
	// Error ...
	Error Risk = "Error"
	// None ...
	None Risk = "None"
	// Warning ...
	Warning Risk = "Warning"
)

func PossibleRiskValues deprecated

func PossibleRiskValues() []Risk

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. PossibleRiskValues returns an array of possible values for the Risk const type.

type ShortDescription deprecated

type ShortDescription struct {
	// Problem - The issue or opportunity identified by the recommendation.
	Problem *string `json:"problem,omitempty"`
	// Solution - The remediation action suggested by the recommendation.
	Solution *string `json:"solution,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ShortDescription a summary of the recommendation.

type SuppressionContract deprecated

type SuppressionContract struct {
	autorest.Response `json:"-"`
	// SuppressionID - The GUID of the suppression.
	SuppressionID *string `json:"suppressionId,omitempty"`
	// TTL - The duration for which the suppression is valid.
	TTL *string `json:"ttl,omitempty"`
	// ID - The resource ID.
	ID *string `json:"id,omitempty"`
	// Name - The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - The type of the resource.
	Type *string `json:"type,omitempty"`
	// Location - The location of the resource. This cannot be changed after the resource is created.
	Location *string `json:"location,omitempty"`
	// Tags - The tags of the resource.
	Tags map[string]*string `json:"tags"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. SuppressionContract the details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule.

func (SuppressionContract) MarshalJSON deprecated

func (sc SuppressionContract) MarshalJSON() ([]byte, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. MarshalJSON is the custom marshaler for SuppressionContract.

type SuppressionsClient deprecated

type SuppressionsClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. SuppressionsClient is the REST APIs for Azure Advisor

func NewSuppressionsClient deprecated

func NewSuppressionsClient(subscriptionID string) SuppressionsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewSuppressionsClient creates an instance of the SuppressionsClient client.

func NewSuppressionsClientWithBaseURI deprecated

func NewSuppressionsClientWithBaseURI(baseURI string, subscriptionID string) SuppressionsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. NewSuppressionsClientWithBaseURI creates an instance of the SuppressionsClient client.

func (SuppressionsClient) Create deprecated

func (client SuppressionsClient) Create(ctx context.Context, resourceURI string, recommendationID string, name string, suppressionContract SuppressionContract) (result SuppressionContract, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Create enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

resourceURI is the fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies. recommendationID is the recommendation ID. name is the name of the suppression. suppressionContract is the snoozed or dismissed attribute; for example, the snooze duration.

func (SuppressionsClient) CreatePreparer deprecated

func (client SuppressionsClient) CreatePreparer(ctx context.Context, resourceURI string, recommendationID string, name string, suppressionContract SuppressionContract) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. CreatePreparer prepares the Create request.

func (SuppressionsClient) CreateResponder deprecated

func (client SuppressionsClient) CreateResponder(resp *http.Response) (result SuppressionContract, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (SuppressionsClient) CreateSender deprecated

func (client SuppressionsClient) CreateSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (SuppressionsClient) Delete deprecated

func (client SuppressionsClient) Delete(ctx context.Context, resourceURI string, recommendationID string, name string) (result autorest.Response, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Delete enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.

resourceURI is the fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies. recommendationID is the recommendation ID. name is the name of the suppression.

func (SuppressionsClient) DeletePreparer deprecated

func (client SuppressionsClient) DeletePreparer(ctx context.Context, resourceURI string, recommendationID string, name string) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. DeletePreparer prepares the Delete request.

func (SuppressionsClient) DeleteResponder deprecated

func (client SuppressionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SuppressionsClient) DeleteSender deprecated

func (client SuppressionsClient) DeleteSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SuppressionsClient) Get deprecated

func (client SuppressionsClient) Get(ctx context.Context, resourceURI string, recommendationID string, name string) (result SuppressionContract, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. Get obtains the details of a suppression.

resourceURI is the fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies. recommendationID is the recommendation ID. name is the name of the suppression.

func (SuppressionsClient) GetPreparer deprecated

func (client SuppressionsClient) GetPreparer(ctx context.Context, resourceURI string, recommendationID string, name string) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetPreparer prepares the Get request.

func (SuppressionsClient) GetResponder deprecated

func (client SuppressionsClient) GetResponder(resp *http.Response) (result SuppressionContract, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SuppressionsClient) GetSender deprecated

func (client SuppressionsClient) GetSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SuppressionsClient) List deprecated

func (client SuppressionsClient) List(ctx context.Context) (result ListSuppressionContract, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. List retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.

func (SuppressionsClient) ListPreparer deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListPreparer prepares the List request.

func (SuppressionsClient) ListResponder deprecated

func (client SuppressionsClient) ListResponder(resp *http.Response) (result ListSuppressionContract, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SuppressionsClient) ListSender deprecated

func (client SuppressionsClient) ListSender(req *http.Request) (*http.Response, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/advisor/mgmt/2016-07-12-preview/advisor instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.

Jump to

Keyboard shortcuts

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