recommendations

package
v0.20231023.1152718 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/recommendations Documentation

The recommendations SDK allows for interaction with the Azure Resource Manager Service web (API Version 2022-09-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/web/2022-09-01/recommendations"

Client Initialization

client := recommendations.NewRecommendationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RecommendationsClient.DisableAllForHostingEnvironment

ctx := context.TODO()
id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue")

read, err := client.DisableAllForHostingEnvironment(ctx, id, recommendations.DefaultDisableAllForHostingEnvironmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.DisableAllForWebApp

ctx := context.TODO()
id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue")

read, err := client.DisableAllForWebApp(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.DisableRecommendationForHostingEnvironment

ctx := context.TODO()
id := recommendations.NewHostingEnvironmentRecommendationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "recommendationValue")

read, err := client.DisableRecommendationForHostingEnvironment(ctx, id, recommendations.DefaultDisableRecommendationForHostingEnvironmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.DisableRecommendationForSite

ctx := context.TODO()
id := recommendations.NewSiteRecommendationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "recommendationValue")

read, err := client.DisableRecommendationForSite(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.DisableRecommendationForSubscription

ctx := context.TODO()
id := recommendations.NewRecommendationID("12345678-1234-9876-4563-123456789012", "recommendationValue")

read, err := client.DisableRecommendationForSubscription(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.GetRuleDetailsByHostingEnvironment

ctx := context.TODO()
id := recommendations.NewHostingEnvironmentRecommendationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "recommendationValue")

read, err := client.GetRuleDetailsByHostingEnvironment(ctx, id, recommendations.DefaultGetRuleDetailsByHostingEnvironmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.GetRuleDetailsByWebApp

ctx := context.TODO()
id := recommendations.NewSiteRecommendationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "recommendationValue")

read, err := client.GetRuleDetailsByWebApp(ctx, id, recommendations.DefaultGetRuleDetailsByWebAppOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.List

ctx := context.TODO()
id := recommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id, recommendations.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, recommendations.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RecommendationsClient.ListHistoryForHostingEnvironment

ctx := context.TODO()
id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue")

// alternatively `client.ListHistoryForHostingEnvironment(ctx, id, recommendations.DefaultListHistoryForHostingEnvironmentOperationOptions())` can be used to do batched pagination
items, err := client.ListHistoryForHostingEnvironmentComplete(ctx, id, recommendations.DefaultListHistoryForHostingEnvironmentOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RecommendationsClient.ListHistoryForWebApp

ctx := context.TODO()
id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue")

// alternatively `client.ListHistoryForWebApp(ctx, id, recommendations.DefaultListHistoryForWebAppOperationOptions())` can be used to do batched pagination
items, err := client.ListHistoryForWebAppComplete(ctx, id, recommendations.DefaultListHistoryForWebAppOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RecommendationsClient.ListRecommendedRulesForHostingEnvironment

ctx := context.TODO()
id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue")

// alternatively `client.ListRecommendedRulesForHostingEnvironment(ctx, id, recommendations.DefaultListRecommendedRulesForHostingEnvironmentOperationOptions())` can be used to do batched pagination
items, err := client.ListRecommendedRulesForHostingEnvironmentComplete(ctx, id, recommendations.DefaultListRecommendedRulesForHostingEnvironmentOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RecommendationsClient.ListRecommendedRulesForWebApp

ctx := context.TODO()
id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue")

// alternatively `client.ListRecommendedRulesForWebApp(ctx, id, recommendations.DefaultListRecommendedRulesForWebAppOperationOptions())` can be used to do batched pagination
items, err := client.ListRecommendedRulesForWebAppComplete(ctx, id, recommendations.DefaultListRecommendedRulesForWebAppOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RecommendationsClient.ResetAllFilters

ctx := context.TODO()
id := recommendations.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.ResetAllFilters(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.ResetAllFiltersForHostingEnvironment

ctx := context.TODO()
id := recommendations.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue")

read, err := client.ResetAllFiltersForHostingEnvironment(ctx, id, recommendations.DefaultResetAllFiltersForHostingEnvironmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RecommendationsClient.ResetAllFiltersForWebApp

ctx := context.TODO()
id := recommendations.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue")

read, err := client.ResetAllFiltersForWebApp(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForChannels

func PossibleValuesForChannels() []string

func PossibleValuesForNotificationLevel

func PossibleValuesForNotificationLevel() []string

func PossibleValuesForResourceScopeType

func PossibleValuesForResourceScopeType() []string

func ValidateHostingEnvironmentRecommendationID

func ValidateHostingEnvironmentRecommendationID(input interface{}, key string) (warnings []string, errors []error)

ValidateHostingEnvironmentRecommendationID checks that 'input' can be parsed as a Hosting Environment Recommendation ID

func ValidateRecommendationID

func ValidateRecommendationID(input interface{}, key string) (warnings []string, errors []error)

ValidateRecommendationID checks that 'input' can be parsed as a Recommendation ID

func ValidateSiteRecommendationID

func ValidateSiteRecommendationID(input interface{}, key string) (warnings []string, errors []error)

ValidateSiteRecommendationID checks that 'input' can be parsed as a Site Recommendation ID

Types

type Channels

type Channels string
const (
	ChannelsAll          Channels = "All"
	ChannelsApi          Channels = "Api"
	ChannelsEmail        Channels = "Email"
	ChannelsNotification Channels = "Notification"
	ChannelsWebhook      Channels = "Webhook"
)

func (*Channels) UnmarshalJSON added in v0.20230725.1205316

func (s *Channels) UnmarshalJSON(bytes []byte) error

type DisableAllForHostingEnvironmentOperationOptions

type DisableAllForHostingEnvironmentOperationOptions struct {
	EnvironmentName *string
}

func DefaultDisableAllForHostingEnvironmentOperationOptions

func DefaultDisableAllForHostingEnvironmentOperationOptions() DisableAllForHostingEnvironmentOperationOptions

func (DisableAllForHostingEnvironmentOperationOptions) ToHeaders added in v0.20230725.1205316

func (DisableAllForHostingEnvironmentOperationOptions) ToOData added in v0.20230725.1205316

func (DisableAllForHostingEnvironmentOperationOptions) ToQuery added in v0.20230725.1205316

type DisableAllForHostingEnvironmentOperationResponse

type DisableAllForHostingEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DisableAllForWebAppOperationResponse

type DisableAllForWebAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DisableRecommendationForHostingEnvironmentOperationOptions

type DisableRecommendationForHostingEnvironmentOperationOptions struct {
	EnvironmentName *string
}

func (DisableRecommendationForHostingEnvironmentOperationOptions) ToHeaders added in v0.20230725.1205316

func (DisableRecommendationForHostingEnvironmentOperationOptions) ToOData added in v0.20230725.1205316

func (DisableRecommendationForHostingEnvironmentOperationOptions) ToQuery added in v0.20230725.1205316

type DisableRecommendationForHostingEnvironmentOperationResponse

type DisableRecommendationForHostingEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DisableRecommendationForSiteOperationResponse

type DisableRecommendationForSiteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DisableRecommendationForSubscriptionOperationResponse

type DisableRecommendationForSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetRuleDetailsByHostingEnvironmentOperationOptions

type GetRuleDetailsByHostingEnvironmentOperationOptions struct {
	RecommendationId *string
	UpdateSeen       *bool
}

func DefaultGetRuleDetailsByHostingEnvironmentOperationOptions

func DefaultGetRuleDetailsByHostingEnvironmentOperationOptions() GetRuleDetailsByHostingEnvironmentOperationOptions

func (GetRuleDetailsByHostingEnvironmentOperationOptions) ToHeaders added in v0.20230725.1205316

func (GetRuleDetailsByHostingEnvironmentOperationOptions) ToOData added in v0.20230725.1205316

func (GetRuleDetailsByHostingEnvironmentOperationOptions) ToQuery added in v0.20230725.1205316

type GetRuleDetailsByHostingEnvironmentOperationResponse

type GetRuleDetailsByHostingEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecommendationRule
}

type GetRuleDetailsByWebAppOperationOptions

type GetRuleDetailsByWebAppOperationOptions struct {
	RecommendationId *string
	UpdateSeen       *bool
}

func DefaultGetRuleDetailsByWebAppOperationOptions

func DefaultGetRuleDetailsByWebAppOperationOptions() GetRuleDetailsByWebAppOperationOptions

func (GetRuleDetailsByWebAppOperationOptions) ToHeaders added in v0.20230725.1205316

func (GetRuleDetailsByWebAppOperationOptions) ToOData added in v0.20230725.1205316

func (GetRuleDetailsByWebAppOperationOptions) ToQuery added in v0.20230725.1205316

type GetRuleDetailsByWebAppOperationResponse

type GetRuleDetailsByWebAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecommendationRule
}

type HostingEnvironmentRecommendationId

type HostingEnvironmentRecommendationId struct {
	SubscriptionId         string
	ResourceGroupName      string
	HostingEnvironmentName string
	RecommendationName     string
}

HostingEnvironmentRecommendationId is a struct representing the Resource ID for a Hosting Environment Recommendation

func NewHostingEnvironmentRecommendationID

func NewHostingEnvironmentRecommendationID(subscriptionId string, resourceGroupName string, hostingEnvironmentName string, recommendationName string) HostingEnvironmentRecommendationId

NewHostingEnvironmentRecommendationID returns a new HostingEnvironmentRecommendationId struct

func ParseHostingEnvironmentRecommendationID

func ParseHostingEnvironmentRecommendationID(input string) (*HostingEnvironmentRecommendationId, error)

ParseHostingEnvironmentRecommendationID parses 'input' into a HostingEnvironmentRecommendationId

func ParseHostingEnvironmentRecommendationIDInsensitively

func ParseHostingEnvironmentRecommendationIDInsensitively(input string) (*HostingEnvironmentRecommendationId, error)

ParseHostingEnvironmentRecommendationIDInsensitively parses 'input' case-insensitively into a HostingEnvironmentRecommendationId note: this method should only be used for API response data and not user input

func (HostingEnvironmentRecommendationId) ID

ID returns the formatted Hosting Environment Recommendation ID

func (HostingEnvironmentRecommendationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Hosting Environment Recommendation ID

func (HostingEnvironmentRecommendationId) String

String returns a human-readable description of this Hosting Environment Recommendation ID

type ListCompleteResult

type ListCompleteResult struct {
	Items []Recommendation
}

type ListHistoryForHostingEnvironmentCompleteResult

type ListHistoryForHostingEnvironmentCompleteResult struct {
	Items []Recommendation
}

type ListHistoryForHostingEnvironmentOperationOptions

type ListHistoryForHostingEnvironmentOperationOptions struct {
	ExpiredOnly *bool
	Filter      *string
}

func DefaultListHistoryForHostingEnvironmentOperationOptions

func DefaultListHistoryForHostingEnvironmentOperationOptions() ListHistoryForHostingEnvironmentOperationOptions

func (ListHistoryForHostingEnvironmentOperationOptions) ToHeaders added in v0.20230725.1205316

func (ListHistoryForHostingEnvironmentOperationOptions) ToOData added in v0.20230725.1205316

func (ListHistoryForHostingEnvironmentOperationOptions) ToQuery added in v0.20230725.1205316

type ListHistoryForHostingEnvironmentOperationResponse

type ListHistoryForHostingEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Recommendation
}

type ListHistoryForWebAppCompleteResult

type ListHistoryForWebAppCompleteResult struct {
	Items []Recommendation
}

type ListHistoryForWebAppOperationOptions

type ListHistoryForWebAppOperationOptions struct {
	ExpiredOnly *bool
	Filter      *string
}

func DefaultListHistoryForWebAppOperationOptions

func DefaultListHistoryForWebAppOperationOptions() ListHistoryForWebAppOperationOptions

func (ListHistoryForWebAppOperationOptions) ToHeaders added in v0.20230725.1205316

func (ListHistoryForWebAppOperationOptions) ToOData added in v0.20230725.1205316

func (ListHistoryForWebAppOperationOptions) ToQuery added in v0.20230725.1205316

type ListHistoryForWebAppOperationResponse

type ListHistoryForWebAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Recommendation
}

type ListOperationOptions

type ListOperationOptions struct {
	Featured *bool
	Filter   *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders added in v0.20230725.1205316

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData added in v0.20230725.1205316

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery added in v0.20230725.1205316

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Recommendation
}

type ListRecommendedRulesForHostingEnvironmentCompleteResult

type ListRecommendedRulesForHostingEnvironmentCompleteResult struct {
	Items []Recommendation
}

type ListRecommendedRulesForHostingEnvironmentOperationOptions

type ListRecommendedRulesForHostingEnvironmentOperationOptions struct {
	Featured *bool
	Filter   *string
}

func (ListRecommendedRulesForHostingEnvironmentOperationOptions) ToHeaders added in v0.20230725.1205316

func (ListRecommendedRulesForHostingEnvironmentOperationOptions) ToOData added in v0.20230725.1205316

func (ListRecommendedRulesForHostingEnvironmentOperationOptions) ToQuery added in v0.20230725.1205316

type ListRecommendedRulesForHostingEnvironmentOperationResponse

type ListRecommendedRulesForHostingEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Recommendation
}

type ListRecommendedRulesForWebAppCompleteResult

type ListRecommendedRulesForWebAppCompleteResult struct {
	Items []Recommendation
}

type ListRecommendedRulesForWebAppOperationOptions

type ListRecommendedRulesForWebAppOperationOptions struct {
	Featured *bool
	Filter   *string
}

func DefaultListRecommendedRulesForWebAppOperationOptions

func DefaultListRecommendedRulesForWebAppOperationOptions() ListRecommendedRulesForWebAppOperationOptions

func (ListRecommendedRulesForWebAppOperationOptions) ToHeaders added in v0.20230725.1205316

func (ListRecommendedRulesForWebAppOperationOptions) ToOData added in v0.20230725.1205316

func (ListRecommendedRulesForWebAppOperationOptions) ToQuery added in v0.20230725.1205316

type ListRecommendedRulesForWebAppOperationResponse

type ListRecommendedRulesForWebAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Recommendation
}

type NotificationLevel

type NotificationLevel string
const (
	NotificationLevelCritical            NotificationLevel = "Critical"
	NotificationLevelInformation         NotificationLevel = "Information"
	NotificationLevelNonUrgentSuggestion NotificationLevel = "NonUrgentSuggestion"
	NotificationLevelWarning             NotificationLevel = "Warning"
)

func (*NotificationLevel) UnmarshalJSON added in v0.20230725.1205316

func (s *NotificationLevel) UnmarshalJSON(bytes []byte) error

type Recommendation

type Recommendation struct {
	Id         *string                   `json:"id,omitempty"`
	Kind       *string                   `json:"kind,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *RecommendationProperties `json:"properties,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type RecommendationId

type RecommendationId struct {
	SubscriptionId     string
	RecommendationName string
}

RecommendationId is a struct representing the Resource ID for a Recommendation

func NewRecommendationID

func NewRecommendationID(subscriptionId string, recommendationName string) RecommendationId

NewRecommendationID returns a new RecommendationId struct

func ParseRecommendationID

func ParseRecommendationID(input string) (*RecommendationId, error)

ParseRecommendationID parses 'input' into a RecommendationId

func ParseRecommendationIDInsensitively

func ParseRecommendationIDInsensitively(input string) (*RecommendationId, error)

ParseRecommendationIDInsensitively parses 'input' case-insensitively into a RecommendationId note: this method should only be used for API response data and not user input

func (RecommendationId) ID

func (id RecommendationId) ID() string

ID returns the formatted Recommendation ID

func (RecommendationId) Segments

func (id RecommendationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Recommendation ID

func (RecommendationId) String

func (id RecommendationId) String() string

String returns a human-readable description of this Recommendation ID

type RecommendationOperationPredicate

type RecommendationOperationPredicate struct {
	Id   *string
	Kind *string
	Name *string
	Type *string
}

func (RecommendationOperationPredicate) Matches

type RecommendationProperties

type RecommendationProperties struct {
	ActionName                 *string            `json:"actionName,omitempty"`
	BladeName                  *string            `json:"bladeName,omitempty"`
	CategoryTags               *[]string          `json:"categoryTags,omitempty"`
	Channels                   *Channels          `json:"channels,omitempty"`
	CreationTime               *string            `json:"creationTime,omitempty"`
	DisplayName                *string            `json:"displayName,omitempty"`
	Enabled                    *int64             `json:"enabled,omitempty"`
	EndTime                    *string            `json:"endTime,omitempty"`
	ExtensionName              *string            `json:"extensionName,omitempty"`
	ForwardLink                *string            `json:"forwardLink,omitempty"`
	IsDynamic                  *bool              `json:"isDynamic,omitempty"`
	Level                      *NotificationLevel `json:"level,omitempty"`
	Message                    *string            `json:"message,omitempty"`
	NextNotificationTime       *string            `json:"nextNotificationTime,omitempty"`
	NotificationExpirationTime *string            `json:"notificationExpirationTime,omitempty"`
	NotifiedTime               *string            `json:"notifiedTime,omitempty"`
	RecommendationId           *string            `json:"recommendationId,omitempty"`
	ResourceId                 *string            `json:"resourceId,omitempty"`
	ResourceScope              *ResourceScopeType `json:"resourceScope,omitempty"`
	RuleName                   *string            `json:"ruleName,omitempty"`
	Score                      *float64           `json:"score,omitempty"`
	StartTime                  *string            `json:"startTime,omitempty"`
	States                     *[]string          `json:"states,omitempty"`
}

func (*RecommendationProperties) GetCreationTimeAsTime

func (o *RecommendationProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*RecommendationProperties) GetEndTimeAsTime

func (o *RecommendationProperties) GetEndTimeAsTime() (*time.Time, error)

func (*RecommendationProperties) GetNextNotificationTimeAsTime

func (o *RecommendationProperties) GetNextNotificationTimeAsTime() (*time.Time, error)

func (*RecommendationProperties) GetNotificationExpirationTimeAsTime

func (o *RecommendationProperties) GetNotificationExpirationTimeAsTime() (*time.Time, error)

func (*RecommendationProperties) GetNotifiedTimeAsTime

func (o *RecommendationProperties) GetNotifiedTimeAsTime() (*time.Time, error)

func (*RecommendationProperties) GetStartTimeAsTime

func (o *RecommendationProperties) GetStartTimeAsTime() (*time.Time, error)

func (*RecommendationProperties) SetCreationTimeAsTime

func (o *RecommendationProperties) SetCreationTimeAsTime(input time.Time)

func (*RecommendationProperties) SetEndTimeAsTime

func (o *RecommendationProperties) SetEndTimeAsTime(input time.Time)

func (*RecommendationProperties) SetNextNotificationTimeAsTime

func (o *RecommendationProperties) SetNextNotificationTimeAsTime(input time.Time)

func (*RecommendationProperties) SetNotificationExpirationTimeAsTime

func (o *RecommendationProperties) SetNotificationExpirationTimeAsTime(input time.Time)

func (*RecommendationProperties) SetNotifiedTimeAsTime

func (o *RecommendationProperties) SetNotifiedTimeAsTime(input time.Time)

func (*RecommendationProperties) SetStartTimeAsTime

func (o *RecommendationProperties) SetStartTimeAsTime(input time.Time)

type RecommendationRule

type RecommendationRule struct {
	Id         *string                       `json:"id,omitempty"`
	Kind       *string                       `json:"kind,omitempty"`
	Name       *string                       `json:"name,omitempty"`
	Properties *RecommendationRuleProperties `json:"properties,omitempty"`
	Type       *string                       `json:"type,omitempty"`
}

type RecommendationRuleProperties

type RecommendationRuleProperties struct {
	ActionName         *string            `json:"actionName,omitempty"`
	BladeName          *string            `json:"bladeName,omitempty"`
	CategoryTags       *[]string          `json:"categoryTags,omitempty"`
	Channels           *Channels          `json:"channels,omitempty"`
	Description        *string            `json:"description,omitempty"`
	DisplayName        *string            `json:"displayName,omitempty"`
	ExtensionName      *string            `json:"extensionName,omitempty"`
	ForwardLink        *string            `json:"forwardLink,omitempty"`
	IsDynamic          *bool              `json:"isDynamic,omitempty"`
	Level              *NotificationLevel `json:"level,omitempty"`
	Message            *string            `json:"message,omitempty"`
	RecommendationId   *string            `json:"recommendationId,omitempty"`
	RecommendationName *string            `json:"recommendationName,omitempty"`
}

type RecommendationsClient

type RecommendationsClient struct {
	Client *resourcemanager.Client
}

func NewRecommendationsClientWithBaseURI

func NewRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*RecommendationsClient, error)

func (RecommendationsClient) DisableAllForHostingEnvironment

DisableAllForHostingEnvironment ...

func (RecommendationsClient) DisableAllForWebApp

DisableAllForWebApp ...

func (RecommendationsClient) DisableRecommendationForHostingEnvironment

DisableRecommendationForHostingEnvironment ...

func (RecommendationsClient) DisableRecommendationForSite

DisableRecommendationForSite ...

func (RecommendationsClient) DisableRecommendationForSubscription

func (c RecommendationsClient) DisableRecommendationForSubscription(ctx context.Context, id RecommendationId) (result DisableRecommendationForSubscriptionOperationResponse, err error)

DisableRecommendationForSubscription ...

func (RecommendationsClient) GetRuleDetailsByHostingEnvironment

GetRuleDetailsByHostingEnvironment ...

func (RecommendationsClient) GetRuleDetailsByWebApp

GetRuleDetailsByWebApp ...

func (RecommendationsClient) List

List ...

func (RecommendationsClient) ListComplete

ListComplete retrieves all the results into a single object

func (RecommendationsClient) ListCompleteMatchingPredicate

func (c RecommendationsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate RecommendationOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RecommendationsClient) ListHistoryForHostingEnvironment

ListHistoryForHostingEnvironment ...

func (RecommendationsClient) ListHistoryForHostingEnvironmentComplete

ListHistoryForHostingEnvironmentComplete retrieves all the results into a single object

func (RecommendationsClient) ListHistoryForHostingEnvironmentCompleteMatchingPredicate

ListHistoryForHostingEnvironmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RecommendationsClient) ListHistoryForWebApp

ListHistoryForWebApp ...

func (RecommendationsClient) ListHistoryForWebAppComplete

ListHistoryForWebAppComplete retrieves all the results into a single object

func (RecommendationsClient) ListHistoryForWebAppCompleteMatchingPredicate

ListHistoryForWebAppCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RecommendationsClient) ListRecommendedRulesForHostingEnvironment

ListRecommendedRulesForHostingEnvironment ...

func (RecommendationsClient) ListRecommendedRulesForHostingEnvironmentComplete

ListRecommendedRulesForHostingEnvironmentComplete retrieves all the results into a single object

func (RecommendationsClient) ListRecommendedRulesForHostingEnvironmentCompleteMatchingPredicate

ListRecommendedRulesForHostingEnvironmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RecommendationsClient) ListRecommendedRulesForWebApp

ListRecommendedRulesForWebApp ...

func (RecommendationsClient) ListRecommendedRulesForWebAppComplete

ListRecommendedRulesForWebAppComplete retrieves all the results into a single object

func (RecommendationsClient) ListRecommendedRulesForWebAppCompleteMatchingPredicate

ListRecommendedRulesForWebAppCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RecommendationsClient) ResetAllFilters

ResetAllFilters ...

func (RecommendationsClient) ResetAllFiltersForHostingEnvironment

ResetAllFiltersForHostingEnvironment ...

func (RecommendationsClient) ResetAllFiltersForWebApp

ResetAllFiltersForWebApp ...

type ResetAllFiltersForHostingEnvironmentOperationOptions

type ResetAllFiltersForHostingEnvironmentOperationOptions struct {
	EnvironmentName *string
}

func DefaultResetAllFiltersForHostingEnvironmentOperationOptions

func DefaultResetAllFiltersForHostingEnvironmentOperationOptions() ResetAllFiltersForHostingEnvironmentOperationOptions

func (ResetAllFiltersForHostingEnvironmentOperationOptions) ToHeaders added in v0.20230725.1205316

func (ResetAllFiltersForHostingEnvironmentOperationOptions) ToOData added in v0.20230725.1205316

func (ResetAllFiltersForHostingEnvironmentOperationOptions) ToQuery added in v0.20230725.1205316

type ResetAllFiltersForHostingEnvironmentOperationResponse

type ResetAllFiltersForHostingEnvironmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ResetAllFiltersForWebAppOperationResponse

type ResetAllFiltersForWebAppOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ResetAllFiltersOperationResponse

type ResetAllFiltersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ResourceScopeType

type ResourceScopeType string
const (
	ResourceScopeTypeServerFarm   ResourceScopeType = "ServerFarm"
	ResourceScopeTypeSubscription ResourceScopeType = "Subscription"
	ResourceScopeTypeWebSite      ResourceScopeType = "WebSite"
)

func (*ResourceScopeType) UnmarshalJSON added in v0.20230725.1205316

func (s *ResourceScopeType) UnmarshalJSON(bytes []byte) error

type SiteRecommendationId

type SiteRecommendationId struct {
	SubscriptionId     string
	ResourceGroupName  string
	SiteName           string
	RecommendationName string
}

SiteRecommendationId is a struct representing the Resource ID for a Site Recommendation

func NewSiteRecommendationID

func NewSiteRecommendationID(subscriptionId string, resourceGroupName string, siteName string, recommendationName string) SiteRecommendationId

NewSiteRecommendationID returns a new SiteRecommendationId struct

func ParseSiteRecommendationID

func ParseSiteRecommendationID(input string) (*SiteRecommendationId, error)

ParseSiteRecommendationID parses 'input' into a SiteRecommendationId

func ParseSiteRecommendationIDInsensitively

func ParseSiteRecommendationIDInsensitively(input string) (*SiteRecommendationId, error)

ParseSiteRecommendationIDInsensitively parses 'input' case-insensitively into a SiteRecommendationId note: this method should only be used for API response data and not user input

func (SiteRecommendationId) ID

func (id SiteRecommendationId) ID() string

ID returns the formatted Site Recommendation ID

func (SiteRecommendationId) Segments

func (id SiteRecommendationId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Site Recommendation ID

func (SiteRecommendationId) String

func (id SiteRecommendationId) String() string

String returns a human-readable description of this Site Recommendation ID

Jump to

Keyboard shortcuts

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