componentworkitemconfigsapis

package
v0.20240125.1172517 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

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

The componentworkitemconfigsapis 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/componentworkitemconfigsapis"

Client Initialization

client := componentworkitemconfigsapis.NewComponentWorkItemConfigsAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ComponentWorkItemConfigsAPIsClient.WorkItemConfigurationsCreate

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

payload := componentworkitemconfigsapis.WorkItemCreateConfiguration{
	// ...
}


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

Example Usage: ComponentWorkItemConfigsAPIsClient.WorkItemConfigurationsDelete

ctx := context.TODO()
id := componentworkitemconfigsapis.NewWorkItemConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "workItemConfigIdValue")

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

Example Usage: ComponentWorkItemConfigsAPIsClient.WorkItemConfigurationsGetDefault

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

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

Example Usage: ComponentWorkItemConfigsAPIsClient.WorkItemConfigurationsGetItem

ctx := context.TODO()
id := componentworkitemconfigsapis.NewWorkItemConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "workItemConfigIdValue")

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

Example Usage: ComponentWorkItemConfigsAPIsClient.WorkItemConfigurationsList

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

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

Example Usage: ComponentWorkItemConfigsAPIsClient.WorkItemConfigurationsUpdateItem

ctx := context.TODO()
id := componentworkitemconfigsapis.NewWorkItemConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "workItemConfigIdValue")

payload := componentworkitemconfigsapis.WorkItemCreateConfiguration{
	// ...
}


read, err := client.WorkItemConfigurationsUpdateItem(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 ValidateComponentID

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

ValidateComponentID checks that 'input' can be parsed as a Component ID

func ValidateWorkItemConfigID

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

ValidateWorkItemConfigID checks that 'input' can be parsed as a Work Item Config ID

Types

type ComponentId

type ComponentId struct {
	SubscriptionId    string
	ResourceGroupName string
	ComponentName     string
}

ComponentId is a struct representing the Resource ID for a Component

func NewComponentID

func NewComponentID(subscriptionId string, resourceGroupName string, componentName string) ComponentId

NewComponentID returns a new ComponentId struct

func ParseComponentID

func ParseComponentID(input string) (*ComponentId, error)

ParseComponentID parses 'input' into a ComponentId

func ParseComponentIDInsensitively

func ParseComponentIDInsensitively(input string) (*ComponentId, error)

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

func (*ComponentId) FromParseResult

func (id *ComponentId) FromParseResult(input resourceids.ParseResult) error

func (ComponentId) ID

func (id ComponentId) ID() string

ID returns the formatted Component ID

func (ComponentId) Segments

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

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

func (ComponentId) String

func (id ComponentId) String() string

String returns a human-readable description of this Component ID

type ComponentWorkItemConfigsAPIsClient

type ComponentWorkItemConfigsAPIsClient struct {
	Client *resourcemanager.Client
}

func NewComponentWorkItemConfigsAPIsClientWithBaseURI

func NewComponentWorkItemConfigsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ComponentWorkItemConfigsAPIsClient, error)

func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsCreate

WorkItemConfigurationsCreate ...

func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsDelete

WorkItemConfigurationsDelete ...

func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetDefault

WorkItemConfigurationsGetDefault ...

func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetItem

WorkItemConfigurationsGetItem ...

func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsList

WorkItemConfigurationsList ...

func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsUpdateItem

WorkItemConfigurationsUpdateItem ...

type WorkItemConfigId

type WorkItemConfigId struct {
	SubscriptionId    string
	ResourceGroupName string
	ComponentName     string
	WorkItemConfigId  string
}

WorkItemConfigId is a struct representing the Resource ID for a Work Item Config

func NewWorkItemConfigID

func NewWorkItemConfigID(subscriptionId string, resourceGroupName string, componentName string, workItemConfigId string) WorkItemConfigId

NewWorkItemConfigID returns a new WorkItemConfigId struct

func ParseWorkItemConfigID

func ParseWorkItemConfigID(input string) (*WorkItemConfigId, error)

ParseWorkItemConfigID parses 'input' into a WorkItemConfigId

func ParseWorkItemConfigIDInsensitively

func ParseWorkItemConfigIDInsensitively(input string) (*WorkItemConfigId, error)

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

func (*WorkItemConfigId) FromParseResult

func (id *WorkItemConfigId) FromParseResult(input resourceids.ParseResult) error

func (WorkItemConfigId) ID

func (id WorkItemConfigId) ID() string

ID returns the formatted Work Item Config ID

func (WorkItemConfigId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Work Item Config ID

func (WorkItemConfigId) String

func (id WorkItemConfigId) String() string

String returns a human-readable description of this Work Item Config ID

type WorkItemConfiguration

type WorkItemConfiguration struct {
	ConfigDisplayName *string `json:"ConfigDisplayName,omitempty"`
	ConfigProperties  *string `json:"ConfigProperties,omitempty"`
	ConnectorId       *string `json:"ConnectorId,omitempty"`
	Id                *string `json:"Id,omitempty"`
	IsDefault         *bool   `json:"IsDefault,omitempty"`
}

type WorkItemConfigurationsCreateOperationResponse

type WorkItemConfigurationsCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkItemConfiguration
}

type WorkItemConfigurationsDeleteOperationResponse

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

type WorkItemConfigurationsGetDefaultOperationResponse

type WorkItemConfigurationsGetDefaultOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkItemConfiguration
}

type WorkItemConfigurationsGetItemOperationResponse

type WorkItemConfigurationsGetItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkItemConfiguration
}

type WorkItemConfigurationsListOperationResponse

type WorkItemConfigurationsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkItemConfigurationsListResult
}

type WorkItemConfigurationsListResult

type WorkItemConfigurationsListResult struct {
	Value *[]WorkItemConfiguration `json:"value,omitempty"`
}

type WorkItemConfigurationsUpdateItemOperationResponse

type WorkItemConfigurationsUpdateItemOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkItemConfiguration
}

type WorkItemCreateConfiguration

type WorkItemCreateConfiguration struct {
	ConnectorDataConfiguration *string            `json:"ConnectorDataConfiguration,omitempty"`
	ConnectorId                *string            `json:"ConnectorId,omitempty"`
	ValidateOnly               *bool              `json:"ValidateOnly,omitempty"`
	WorkItemProperties         *map[string]string `json:"WorkItemProperties,omitempty"`
}

Jump to

Keyboard shortcuts

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