workbooktemplatesapis

package
v0.20221130.1084848 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis Documentation

The workbooktemplatesapis SDK allows for interaction with the Azure Resource Manager Service applicationinsights (API Version 2020-11-20).

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/2020-11-20/workbooktemplatesapis"

Client Initialization

client := workbooktemplatesapis.NewWorkbookTemplatesAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkbookTemplatesAPIsClient.WorkbookTemplatesCreateOrUpdate

ctx := context.TODO()
id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

payload := workbooktemplatesapis.WorkbookTemplate{
	// ...
}


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

Example Usage: WorkbookTemplatesAPIsClient.WorkbookTemplatesDelete

ctx := context.TODO()
id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

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

Example Usage: WorkbookTemplatesAPIsClient.WorkbookTemplatesGet

ctx := context.TODO()
id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

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

Example Usage: WorkbookTemplatesAPIsClient.WorkbookTemplatesListByResourceGroup

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

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

Example Usage: WorkbookTemplatesAPIsClient.WorkbookTemplatesUpdate

ctx := context.TODO()
id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceValue")

payload := workbooktemplatesapis.WorkbookTemplateUpdateParameters{
	// ...
}


read, err := client.WorkbookTemplatesUpdate(ctx, id, payload)
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 ValidateWorkbookTemplateID

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

ValidateWorkbookTemplateID checks that 'input' can be parsed as a Workbook Template ID

Types

type WorkbookTemplate

type WorkbookTemplate struct {
	Id         *string                     `json:"id,omitempty"`
	Location   string                      `json:"location"`
	Name       *string                     `json:"name,omitempty"`
	Properties *WorkbookTemplateProperties `json:"properties,omitempty"`
	Tags       *map[string]string          `json:"tags,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type WorkbookTemplateGallery

type WorkbookTemplateGallery struct {
	Category     *string `json:"category,omitempty"`
	Name         *string `json:"name,omitempty"`
	Order        *int64  `json:"order,omitempty"`
	ResourceType *string `json:"resourceType,omitempty"`
	Type         *string `json:"type,omitempty"`
}

type WorkbookTemplateId

type WorkbookTemplateId struct {
	SubscriptionId    string
	ResourceGroupName string
	ResourceName      string
}

WorkbookTemplateId is a struct representing the Resource ID for a Workbook Template

func NewWorkbookTemplateID

func NewWorkbookTemplateID(subscriptionId string, resourceGroupName string, resourceName string) WorkbookTemplateId

NewWorkbookTemplateID returns a new WorkbookTemplateId struct

func ParseWorkbookTemplateID

func ParseWorkbookTemplateID(input string) (*WorkbookTemplateId, error)

ParseWorkbookTemplateID parses 'input' into a WorkbookTemplateId

func ParseWorkbookTemplateIDInsensitively

func ParseWorkbookTemplateIDInsensitively(input string) (*WorkbookTemplateId, error)

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

func (WorkbookTemplateId) ID

func (id WorkbookTemplateId) ID() string

ID returns the formatted Workbook Template ID

func (WorkbookTemplateId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Workbook Template ID

func (WorkbookTemplateId) String

func (id WorkbookTemplateId) String() string

String returns a human-readable description of this Workbook Template ID

type WorkbookTemplateLocalizedGallery

type WorkbookTemplateLocalizedGallery struct {
	Galleries    *[]WorkbookTemplateGallery `json:"galleries,omitempty"`
	TemplateData *interface{}               `json:"templateData,omitempty"`
}

type WorkbookTemplateProperties

type WorkbookTemplateProperties struct {
	Author       *string                                        `json:"author,omitempty"`
	Galleries    []WorkbookTemplateGallery                      `json:"galleries"`
	Localized    *map[string][]WorkbookTemplateLocalizedGallery `json:"localized,omitempty"`
	Priority     *int64                                         `json:"priority,omitempty"`
	TemplateData interface{}                                    `json:"templateData"`
}

type WorkbookTemplateUpdateParameters

type WorkbookTemplateUpdateParameters struct {
	Properties *WorkbookTemplateProperties `json:"properties,omitempty"`
	Tags       *map[string]string          `json:"tags,omitempty"`
}

type WorkbookTemplatesAPIsClient

type WorkbookTemplatesAPIsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewWorkbookTemplatesAPIsClientWithBaseURI

func NewWorkbookTemplatesAPIsClientWithBaseURI(endpoint string) WorkbookTemplatesAPIsClient

func (WorkbookTemplatesAPIsClient) WorkbookTemplatesCreateOrUpdate

WorkbookTemplatesCreateOrUpdate ...

func (WorkbookTemplatesAPIsClient) WorkbookTemplatesDelete

WorkbookTemplatesDelete ...

func (WorkbookTemplatesAPIsClient) WorkbookTemplatesGet

WorkbookTemplatesGet ...

func (WorkbookTemplatesAPIsClient) WorkbookTemplatesListByResourceGroup

WorkbookTemplatesListByResourceGroup ...

func (WorkbookTemplatesAPIsClient) WorkbookTemplatesUpdate

WorkbookTemplatesUpdate ...

type WorkbookTemplatesCreateOrUpdateOperationResponse

type WorkbookTemplatesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *WorkbookTemplate
}

type WorkbookTemplatesDeleteOperationResponse

type WorkbookTemplatesDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type WorkbookTemplatesGetOperationResponse

type WorkbookTemplatesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *WorkbookTemplate
}

type WorkbookTemplatesListByResourceGroupOperationResponse

type WorkbookTemplatesListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *WorkbookTemplatesListResult
}

type WorkbookTemplatesListResult

type WorkbookTemplatesListResult struct {
	Value *[]WorkbookTemplate `json:"value,omitempty"`
}

type WorkbookTemplatesUpdateOperationResponse

type WorkbookTemplatesUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *WorkbookTemplate
}

Jump to

Keyboard shortcuts

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