README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/availableservicetiers
Documentation
The availableservicetiers
SDK allows for interaction with the Azure Resource Manager Service operationalinsights
(API Version 2020-08-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/operationalinsights/2020-08-01/availableservicetiers"
Client Initialization
client := availableservicetiers.NewAvailableServiceTiersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: AvailableServiceTiersClient.ListByWorkspace
ctx := context.TODO()
id := availableservicetiers.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")
read, err := client.ListByWorkspace(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 PossibleValuesForSkuNameEnum ¶
func PossibleValuesForSkuNameEnum() []string
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type AvailableServiceTier ¶
type AvailableServiceTier struct { CapacityReservationLevel *int64 `json:"capacityReservationLevel,omitempty"` DefaultRetention *int64 `json:"defaultRetention,omitempty"` Enabled *bool `json:"enabled,omitempty"` LastSkuUpdate *string `json:"lastSkuUpdate,omitempty"` MaximumRetention *int64 `json:"maximumRetention,omitempty"` MinimumRetention *int64 `json:"minimumRetention,omitempty"` ServiceTier *SkuNameEnum `json:"serviceTier,omitempty"` }
type AvailableServiceTiersClient ¶
type AvailableServiceTiersClient struct {
Client *resourcemanager.Client
}
func NewAvailableServiceTiersClientWithBaseURI ¶
func NewAvailableServiceTiersClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailableServiceTiersClient, error)
func (AvailableServiceTiersClient) ListByWorkspace ¶
func (c AvailableServiceTiersClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error)
ListByWorkspace ...
type ListByWorkspaceOperationResponse ¶
type ListByWorkspaceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AvailableServiceTier }
type SkuNameEnum ¶
type SkuNameEnum string
const ( SkuNameEnumCapacityReservation SkuNameEnum = "CapacityReservation" SkuNameEnumFree SkuNameEnum = "Free" SkuNameEnumPerGBTwoZeroOneEight SkuNameEnum = "PerGB2018" SkuNameEnumPerNode SkuNameEnum = "PerNode" SkuNameEnumPremium SkuNameEnum = "Premium" SkuNameEnumStandalone SkuNameEnum = "Standalone" SkuNameEnumStandard SkuNameEnum = "Standard" )
func (*SkuNameEnum) UnmarshalJSON ¶ added in v0.20230825.1030756
func (s *SkuNameEnum) UnmarshalJSON(bytes []byte) error
type WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID