analyticsitemsapis

package
v0.20231109.1101123 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis Documentation

The analyticsitemsapis SDK allows for interaction with the Azure Resource Manager Service applicationinsights (API Version 2015-05-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/applicationinsights/2015-05-01/analyticsitemsapis"

Client Initialization

client := analyticsitemsapis.NewAnalyticsItemsAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AnalyticsItemsAPIsClient.AnalyticsItemsDelete

ctx := context.TODO()
id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: AnalyticsItemsAPIsClient.AnalyticsItemsGet

ctx := context.TODO()
id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: AnalyticsItemsAPIsClient.AnalyticsItemsList

ctx := context.TODO()
id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Example Usage: AnalyticsItemsAPIsClient.AnalyticsItemsPut

ctx := context.TODO()
id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

payload := analyticsitemsapis.ApplicationInsightsComponentAnalyticsItem{
	// ...
}


read, err := client.AnalyticsItemsPut(ctx, id, payload, analyticsitemsapis.DefaultAnalyticsItemsPutOperationOptions())
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 PossibleValuesForItemScope

func PossibleValuesForItemScope() []string

func PossibleValuesForItemType

func PossibleValuesForItemType() []string

func PossibleValuesForItemTypeParameter

func PossibleValuesForItemTypeParameter() []string

func ValidateProviderComponentID

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

ValidateProviderComponentID checks that 'input' can be parsed as a Provider Component ID

Types

type AnalyticsItemsAPIsClient

type AnalyticsItemsAPIsClient struct {
	Client *resourcemanager.Client
}

func NewAnalyticsItemsAPIsClientWithBaseURI

func NewAnalyticsItemsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*AnalyticsItemsAPIsClient, error)

func (AnalyticsItemsAPIsClient) AnalyticsItemsDelete

AnalyticsItemsDelete ...

func (AnalyticsItemsAPIsClient) AnalyticsItemsGet

AnalyticsItemsGet ...

func (AnalyticsItemsAPIsClient) AnalyticsItemsList

AnalyticsItemsList ...

func (AnalyticsItemsAPIsClient) AnalyticsItemsPut

AnalyticsItemsPut ...

type AnalyticsItemsDeleteOperationOptions

type AnalyticsItemsDeleteOperationOptions struct {
	Id   *string
	Name *string
}

func DefaultAnalyticsItemsDeleteOperationOptions

func DefaultAnalyticsItemsDeleteOperationOptions() AnalyticsItemsDeleteOperationOptions

func (AnalyticsItemsDeleteOperationOptions) ToHeaders

func (AnalyticsItemsDeleteOperationOptions) ToOData

func (AnalyticsItemsDeleteOperationOptions) ToQuery

type AnalyticsItemsDeleteOperationResponse

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

type AnalyticsItemsGetOperationOptions

type AnalyticsItemsGetOperationOptions struct {
	Id   *string
	Name *string
}

func DefaultAnalyticsItemsGetOperationOptions

func DefaultAnalyticsItemsGetOperationOptions() AnalyticsItemsGetOperationOptions

func (AnalyticsItemsGetOperationOptions) ToHeaders

func (AnalyticsItemsGetOperationOptions) ToOData

func (AnalyticsItemsGetOperationOptions) ToQuery

type AnalyticsItemsGetOperationResponse

type AnalyticsItemsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ApplicationInsightsComponentAnalyticsItem
}

type AnalyticsItemsListOperationOptions

type AnalyticsItemsListOperationOptions struct {
	IncludeContent *bool
	Scope          *ItemScope
	Type           *ItemTypeParameter
}

func DefaultAnalyticsItemsListOperationOptions

func DefaultAnalyticsItemsListOperationOptions() AnalyticsItemsListOperationOptions

func (AnalyticsItemsListOperationOptions) ToHeaders

func (AnalyticsItemsListOperationOptions) ToOData

func (AnalyticsItemsListOperationOptions) ToQuery

type AnalyticsItemsListOperationResponse

type AnalyticsItemsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ApplicationInsightsComponentAnalyticsItem
}

type AnalyticsItemsPutOperationOptions

type AnalyticsItemsPutOperationOptions struct {
	OverrideItem *bool
}

func DefaultAnalyticsItemsPutOperationOptions

func DefaultAnalyticsItemsPutOperationOptions() AnalyticsItemsPutOperationOptions

func (AnalyticsItemsPutOperationOptions) ToHeaders

func (AnalyticsItemsPutOperationOptions) ToOData

func (AnalyticsItemsPutOperationOptions) ToQuery

type AnalyticsItemsPutOperationResponse

type AnalyticsItemsPutOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ApplicationInsightsComponentAnalyticsItem
}

type ApplicationInsightsComponentAnalyticsItem

type ApplicationInsightsComponentAnalyticsItem struct {
	Content      *string                                              `json:"Content,omitempty"`
	Id           *string                                              `json:"Id,omitempty"`
	Name         *string                                              `json:"Name,omitempty"`
	Properties   *ApplicationInsightsComponentAnalyticsItemProperties `json:"Properties,omitempty"`
	Scope        *ItemScope                                           `json:"Scope,omitempty"`
	TimeCreated  *string                                              `json:"TimeCreated,omitempty"`
	TimeModified *string                                              `json:"TimeModified,omitempty"`
	Type         *ItemType                                            `json:"Type,omitempty"`
	Version      *string                                              `json:"Version,omitempty"`
}

type ApplicationInsightsComponentAnalyticsItemProperties

type ApplicationInsightsComponentAnalyticsItemProperties struct {
	FunctionAlias *string `json:"functionAlias,omitempty"`
}

type ItemScope

type ItemScope string
const (
	ItemScopeShared ItemScope = "shared"
	ItemScopeUser   ItemScope = "user"
)

func (*ItemScope) UnmarshalJSON

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

type ItemType

type ItemType string
const (
	ItemTypeFunction ItemType = "function"
	ItemTypeNone     ItemType = "none"
	ItemTypeQuery    ItemType = "query"
	ItemTypeRecent   ItemType = "recent"
)

func (*ItemType) UnmarshalJSON

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

type ItemTypeParameter

type ItemTypeParameter string
const (
	ItemTypeParameterFolder   ItemTypeParameter = "folder"
	ItemTypeParameterFunction ItemTypeParameter = "function"
	ItemTypeParameterNone     ItemTypeParameter = "none"
	ItemTypeParameterQuery    ItemTypeParameter = "query"
	ItemTypeParameterRecent   ItemTypeParameter = "recent"
)

func (*ItemTypeParameter) UnmarshalJSON

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

type ProviderComponentId

type ProviderComponentId struct {
	SubscriptionId    string
	ResourceGroupName string
	ComponentName     string
	ScopePath         string
}

ProviderComponentId is a struct representing the Resource ID for a Provider Component

func NewProviderComponentID

func NewProviderComponentID(subscriptionId string, resourceGroupName string, componentName string, scopePath string) ProviderComponentId

NewProviderComponentID returns a new ProviderComponentId struct

func ParseProviderComponentID

func ParseProviderComponentID(input string) (*ProviderComponentId, error)

ParseProviderComponentID parses 'input' into a ProviderComponentId

func ParseProviderComponentIDInsensitively

func ParseProviderComponentIDInsensitively(input string) (*ProviderComponentId, error)

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

func (ProviderComponentId) ID

func (id ProviderComponentId) ID() string

ID returns the formatted Provider Component ID

func (ProviderComponentId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Provider Component ID

func (ProviderComponentId) String

func (id ProviderComponentId) String() string

String returns a human-readable description of this Provider Component ID

Jump to

Keyboard shortcuts

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