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 ¶
- func ValidateComponentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkItemConfigID(input interface{}, key string) (warnings []string, errors []error)
- type ComponentId
- type ComponentWorkItemConfigsAPIsClient
- func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsCreate(ctx context.Context, id ComponentId, input WorkItemCreateConfiguration) (result WorkItemConfigurationsCreateOperationResponse, err error)
- func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsDelete(ctx context.Context, id WorkItemConfigId) (result WorkItemConfigurationsDeleteOperationResponse, err error)
- func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetDefault(ctx context.Context, id ComponentId) (result WorkItemConfigurationsGetDefaultOperationResponse, err error)
- func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetItem(ctx context.Context, id WorkItemConfigId) (result WorkItemConfigurationsGetItemOperationResponse, err error)
- func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsList(ctx context.Context, id ComponentId) (result WorkItemConfigurationsListOperationResponse, err error)
- func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsUpdateItem(ctx context.Context, id WorkItemConfigId, input WorkItemCreateConfiguration) (result WorkItemConfigurationsUpdateItemOperationResponse, err error)
- type WorkItemConfigId
- type WorkItemConfiguration
- type WorkItemConfigurationsCreateOperationResponse
- type WorkItemConfigurationsDeleteOperationResponse
- type WorkItemConfigurationsGetDefaultOperationResponse
- type WorkItemConfigurationsGetItemOperationResponse
- type WorkItemConfigurationsListOperationResponse
- type WorkItemConfigurationsListResult
- type WorkItemConfigurationsUpdateItemOperationResponse
- type WorkItemCreateConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateComponentID ¶
ValidateComponentID checks that 'input' can be parsed as a Component ID
func ValidateWorkItemConfigID ¶
ValidateWorkItemConfigID checks that 'input' can be parsed as a Work Item Config ID
Types ¶
type ComponentId ¶
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 ¶ added in v0.20231127.1171502
func (id *ComponentId) FromParseResult(input resourceids.ParseResult) error
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 ¶
func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsCreate(ctx context.Context, id ComponentId, input WorkItemCreateConfiguration) (result WorkItemConfigurationsCreateOperationResponse, err error)
WorkItemConfigurationsCreate ...
func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsDelete ¶
func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsDelete(ctx context.Context, id WorkItemConfigId) (result WorkItemConfigurationsDeleteOperationResponse, err error)
WorkItemConfigurationsDelete ...
func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetDefault ¶
func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetDefault(ctx context.Context, id ComponentId) (result WorkItemConfigurationsGetDefaultOperationResponse, err error)
WorkItemConfigurationsGetDefault ...
func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetItem ¶
func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsGetItem(ctx context.Context, id WorkItemConfigId) (result WorkItemConfigurationsGetItemOperationResponse, err error)
WorkItemConfigurationsGetItem ...
func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsList ¶
func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsList(ctx context.Context, id ComponentId) (result WorkItemConfigurationsListOperationResponse, err error)
WorkItemConfigurationsList ...
func (ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsUpdateItem ¶
func (c ComponentWorkItemConfigsAPIsClient) WorkItemConfigurationsUpdateItem(ctx context.Context, id WorkItemConfigId, input WorkItemCreateConfiguration) (result WorkItemConfigurationsUpdateItemOperationResponse, err error)
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 ¶ added in v0.20231127.1171502
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 WorkItemConfigurationsCreateOperationResponse ¶
type WorkItemConfigurationsCreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *WorkItemConfiguration }
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"` }
Source Files ¶
- client.go
- id_component.go
- id_workitemconfig.go
- method_workitemconfigurationscreate.go
- method_workitemconfigurationsdelete.go
- method_workitemconfigurationsgetdefault.go
- method_workitemconfigurationsgetitem.go
- method_workitemconfigurationslist.go
- method_workitemconfigurationsupdateitem.go
- model_workitemconfiguration.go
- model_workitemconfigurationslistresult.go
- model_workitemcreateconfiguration.go
- version.go