tagoperationlink

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

The tagoperationlink SDK allows for interaction with Azure Resource Manager apimanagement (API Version 2023-05-01-preview).

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/apimanagement/2023-05-01-preview/tagoperationlink"

Client Initialization

client := tagoperationlink.NewTagOperationLinkClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TagOperationLinkClient.CreateOrUpdate

ctx := context.TODO()
id := tagoperationlink.NewOperationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId", "operationLinkId")

payload := tagoperationlink.TagOperationLinkContract{
	// ...
}


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

Example Usage: TagOperationLinkClient.Delete

ctx := context.TODO()
id := tagoperationlink.NewOperationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId", "operationLinkId")

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

Example Usage: TagOperationLinkClient.Get

ctx := context.TODO()
id := tagoperationlink.NewOperationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId", "operationLinkId")

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

Example Usage: TagOperationLinkClient.ListByProduct

ctx := context.TODO()
id := tagoperationlink.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId")

// alternatively `client.ListByProduct(ctx, id, tagoperationlink.DefaultListByProductOperationOptions())` can be used to do batched pagination
items, err := client.ListByProductComplete(ctx, id, tagoperationlink.DefaultListByProductOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: TagOperationLinkClient.WorkspaceTagOperationLinkCreateOrUpdate

ctx := context.TODO()
id := tagoperationlink.NewTagOperationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId", "operationLinkId")

payload := tagoperationlink.TagOperationLinkContract{
	// ...
}


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

Example Usage: TagOperationLinkClient.WorkspaceTagOperationLinkDelete

ctx := context.TODO()
id := tagoperationlink.NewTagOperationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId", "operationLinkId")

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

Example Usage: TagOperationLinkClient.WorkspaceTagOperationLinkGet

ctx := context.TODO()
id := tagoperationlink.NewTagOperationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId", "operationLinkId")

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

Example Usage: TagOperationLinkClient.WorkspaceTagOperationLinkListByProduct

ctx := context.TODO()
id := tagoperationlink.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "workspaceId", "tagId")

// alternatively `client.WorkspaceTagOperationLinkListByProduct(ctx, id, tagoperationlink.DefaultWorkspaceTagOperationLinkListByProductOperationOptions())` can be used to do batched pagination
items, err := client.WorkspaceTagOperationLinkListByProductComplete(ctx, id, tagoperationlink.DefaultWorkspaceTagOperationLinkListByProductOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateOperationLinkID

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

ValidateOperationLinkID checks that 'input' can be parsed as a Operation Link ID

func ValidateTagID

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

ValidateTagID checks that 'input' can be parsed as a Tag ID

func ValidateTagOperationLinkID

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

ValidateTagOperationLinkID checks that 'input' can be parsed as a Tag Operation Link ID

func ValidateWorkspaceTagID

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

ValidateWorkspaceTagID checks that 'input' can be parsed as a Workspace Tag ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TagOperationLinkContract
}

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TagOperationLinkContract
}

type ListByProductCompleteResult

type ListByProductCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []TagOperationLinkContract
}

type ListByProductCustomPager

type ListByProductCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByProductCustomPager) NextPageLink() *odata.Link

type ListByProductOperationOptions

type ListByProductOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultListByProductOperationOptions

func DefaultListByProductOperationOptions() ListByProductOperationOptions

func (ListByProductOperationOptions) ToHeaders

func (ListByProductOperationOptions) ToOData

func (ListByProductOperationOptions) ToQuery

type ListByProductOperationResponse

type ListByProductOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TagOperationLinkContract
}

type OperationLinkId

type OperationLinkId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	TagId             string
	OperationLinkId   string
}

OperationLinkId is a struct representing the Resource ID for a Operation Link

func NewOperationLinkID

func NewOperationLinkID(subscriptionId string, resourceGroupName string, serviceName string, tagId string, operationLinkId string) OperationLinkId

NewOperationLinkID returns a new OperationLinkId struct

func ParseOperationLinkID

func ParseOperationLinkID(input string) (*OperationLinkId, error)

ParseOperationLinkID parses 'input' into a OperationLinkId

func ParseOperationLinkIDInsensitively

func ParseOperationLinkIDInsensitively(input string) (*OperationLinkId, error)

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

func (*OperationLinkId) FromParseResult

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

func (OperationLinkId) ID

func (id OperationLinkId) ID() string

ID returns the formatted Operation Link ID

func (OperationLinkId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Operation Link ID

func (OperationLinkId) String

func (id OperationLinkId) String() string

String returns a human-readable description of this Operation Link ID

type TagId

type TagId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	TagId             string
}

TagId is a struct representing the Resource ID for a Tag

func NewTagID

func NewTagID(subscriptionId string, resourceGroupName string, serviceName string, tagId string) TagId

NewTagID returns a new TagId struct

func ParseTagID

func ParseTagID(input string) (*TagId, error)

ParseTagID parses 'input' into a TagId

func ParseTagIDInsensitively

func ParseTagIDInsensitively(input string) (*TagId, error)

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

func (*TagId) FromParseResult

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

func (TagId) ID

func (id TagId) ID() string

ID returns the formatted Tag ID

func (TagId) Segments

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

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

func (TagId) String

func (id TagId) String() string

String returns a human-readable description of this Tag ID

type TagOperationLinkClient

type TagOperationLinkClient struct {
	Client *resourcemanager.Client
}

func NewTagOperationLinkClientWithBaseURI

func NewTagOperationLinkClientWithBaseURI(sdkApi sdkEnv.Api) (*TagOperationLinkClient, error)

func (TagOperationLinkClient) CreateOrUpdate

CreateOrUpdate ...

func (TagOperationLinkClient) Delete

Delete ...

func (TagOperationLinkClient) Get

Get ...

func (TagOperationLinkClient) ListByProduct

ListByProduct ...

func (TagOperationLinkClient) ListByProductComplete

ListByProductComplete retrieves all the results into a single object

func (TagOperationLinkClient) ListByProductCompleteMatchingPredicate

func (c TagOperationLinkClient) ListByProductCompleteMatchingPredicate(ctx context.Context, id TagId, options ListByProductOperationOptions, predicate TagOperationLinkContractOperationPredicate) (result ListByProductCompleteResult, err error)

ListByProductCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TagOperationLinkClient) WorkspaceTagOperationLinkCreateOrUpdate

WorkspaceTagOperationLinkCreateOrUpdate ...

func (TagOperationLinkClient) WorkspaceTagOperationLinkDelete

WorkspaceTagOperationLinkDelete ...

func (TagOperationLinkClient) WorkspaceTagOperationLinkGet

WorkspaceTagOperationLinkGet ...

func (TagOperationLinkClient) WorkspaceTagOperationLinkListByProduct

WorkspaceTagOperationLinkListByProduct ...

func (TagOperationLinkClient) WorkspaceTagOperationLinkListByProductComplete

WorkspaceTagOperationLinkListByProductComplete retrieves all the results into a single object

func (TagOperationLinkClient) WorkspaceTagOperationLinkListByProductCompleteMatchingPredicate

WorkspaceTagOperationLinkListByProductCompleteMatchingPredicate retrieves all the results and then applies the predicate

type TagOperationLinkContract

type TagOperationLinkContract struct {
	Id         *string                             `json:"id,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *TagOperationLinkContractProperties `json:"properties,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type TagOperationLinkContractOperationPredicate

type TagOperationLinkContractOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (TagOperationLinkContractOperationPredicate) Matches

type TagOperationLinkContractProperties

type TagOperationLinkContractProperties struct {
	OperationId string `json:"operationId"`
}

type TagOperationLinkId

type TagOperationLinkId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
	TagId             string
	OperationLinkId   string
}

TagOperationLinkId is a struct representing the Resource ID for a Tag Operation Link

func NewTagOperationLinkID

func NewTagOperationLinkID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, tagId string, operationLinkId string) TagOperationLinkId

NewTagOperationLinkID returns a new TagOperationLinkId struct

func ParseTagOperationLinkID

func ParseTagOperationLinkID(input string) (*TagOperationLinkId, error)

ParseTagOperationLinkID parses 'input' into a TagOperationLinkId

func ParseTagOperationLinkIDInsensitively

func ParseTagOperationLinkIDInsensitively(input string) (*TagOperationLinkId, error)

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

func (*TagOperationLinkId) FromParseResult

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

func (TagOperationLinkId) ID

func (id TagOperationLinkId) ID() string

ID returns the formatted Tag Operation Link ID

func (TagOperationLinkId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Tag Operation Link ID

func (TagOperationLinkId) String

func (id TagOperationLinkId) String() string

String returns a human-readable description of this Tag Operation Link ID

type WorkspaceTagId

type WorkspaceTagId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
	TagId             string
}

WorkspaceTagId is a struct representing the Resource ID for a Workspace Tag

func NewWorkspaceTagID

func NewWorkspaceTagID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, tagId string) WorkspaceTagId

NewWorkspaceTagID returns a new WorkspaceTagId struct

func ParseWorkspaceTagID

func ParseWorkspaceTagID(input string) (*WorkspaceTagId, error)

ParseWorkspaceTagID parses 'input' into a WorkspaceTagId

func ParseWorkspaceTagIDInsensitively

func ParseWorkspaceTagIDInsensitively(input string) (*WorkspaceTagId, error)

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

func (*WorkspaceTagId) FromParseResult

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

func (WorkspaceTagId) ID

func (id WorkspaceTagId) ID() string

ID returns the formatted Workspace Tag ID

func (WorkspaceTagId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Workspace Tag ID

func (WorkspaceTagId) String

func (id WorkspaceTagId) String() string

String returns a human-readable description of this Workspace Tag ID

type WorkspaceTagOperationLinkCreateOrUpdateOperationResponse

type WorkspaceTagOperationLinkCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TagOperationLinkContract
}

type WorkspaceTagOperationLinkDeleteOperationResponse

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

type WorkspaceTagOperationLinkGetOperationResponse

type WorkspaceTagOperationLinkGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TagOperationLinkContract
}

type WorkspaceTagOperationLinkListByProductCompleteResult

type WorkspaceTagOperationLinkListByProductCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []TagOperationLinkContract
}

type WorkspaceTagOperationLinkListByProductCustomPager

type WorkspaceTagOperationLinkListByProductCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type WorkspaceTagOperationLinkListByProductOperationOptions

type WorkspaceTagOperationLinkListByProductOperationOptions struct {
	Filter *string
	Skip   *int64
	Top    *int64
}

func DefaultWorkspaceTagOperationLinkListByProductOperationOptions

func DefaultWorkspaceTagOperationLinkListByProductOperationOptions() WorkspaceTagOperationLinkListByProductOperationOptions

func (WorkspaceTagOperationLinkListByProductOperationOptions) ToHeaders

func (WorkspaceTagOperationLinkListByProductOperationOptions) ToOData

func (WorkspaceTagOperationLinkListByProductOperationOptions) ToQuery

type WorkspaceTagOperationLinkListByProductOperationResponse

type WorkspaceTagOperationLinkListByProductOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TagOperationLinkContract
}

Jump to

Keyboard shortcuts

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