tagproductlink

package
v0.20240315.1103122 Latest Latest
Warning

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

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

README

The tagproductlink SDK allows for interaction with the Azure Resource Manager Service 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/tagproductlink"

Client Initialization

client := tagproductlink.NewTagProductLinkClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TagProductLinkClient.CreateOrUpdate

ctx := context.TODO()
id := tagproductlink.NewProductLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue", "productLinkIdValue")

payload := tagproductlink.TagProductLinkContract{
	// ...
}


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: TagProductLinkClient.Delete

ctx := context.TODO()
id := tagproductlink.NewProductLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue", "productLinkIdValue")

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: TagProductLinkClient.Get

ctx := context.TODO()
id := tagproductlink.NewProductLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue", "productLinkIdValue")

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: TagProductLinkClient.ListByProduct

ctx := context.TODO()
id := tagproductlink.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue")

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

Example Usage: TagProductLinkClient.WorkspaceTagProductLinkCreateOrUpdate

ctx := context.TODO()
id := tagproductlink.NewTagProductLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue", "productLinkIdValue")

payload := tagproductlink.TagProductLinkContract{
	// ...
}


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

Example Usage: TagProductLinkClient.WorkspaceTagProductLinkDelete

ctx := context.TODO()
id := tagproductlink.NewTagProductLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue", "productLinkIdValue")

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

Example Usage: TagProductLinkClient.WorkspaceTagProductLinkGet

ctx := context.TODO()
id := tagproductlink.NewTagProductLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue", "productLinkIdValue")

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

Example Usage: TagProductLinkClient.WorkspaceTagProductLinkListByProduct

ctx := context.TODO()
id := tagproductlink.NewWorkspaceTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "workspaceIdValue", "tagIdValue")

// alternatively `client.WorkspaceTagProductLinkListByProduct(ctx, id, tagproductlink.DefaultWorkspaceTagProductLinkListByProductOperationOptions())` can be used to do batched pagination
items, err := client.WorkspaceTagProductLinkListByProductComplete(ctx, id, tagproductlink.DefaultWorkspaceTagProductLinkListByProductOperationOptions())
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 ValidateProductLinkID

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

ValidateProductLinkID checks that 'input' can be parsed as a Product 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 ValidateTagProductLinkID

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

ValidateTagProductLinkID checks that 'input' can be parsed as a Tag Product 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        *TagProductLinkContract
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListByProductCompleteResult

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

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        *[]TagProductLinkContract
}

type ProductLinkId

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

ProductLinkId is a struct representing the Resource ID for a Product Link

func NewProductLinkID

func NewProductLinkID(subscriptionId string, resourceGroupName string, serviceName string, tagId string, productLinkId string) ProductLinkId

NewProductLinkID returns a new ProductLinkId struct

func ParseProductLinkID

func ParseProductLinkID(input string) (*ProductLinkId, error)

ParseProductLinkID parses 'input' into a ProductLinkId

func ParseProductLinkIDInsensitively

func ParseProductLinkIDInsensitively(input string) (*ProductLinkId, error)

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

func (*ProductLinkId) FromParseResult

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

func (ProductLinkId) ID

func (id ProductLinkId) ID() string

ID returns the formatted Product Link ID

func (ProductLinkId) Segments

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

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

func (ProductLinkId) String

func (id ProductLinkId) String() string

String returns a human-readable description of this Product 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 TagProductLinkClient

type TagProductLinkClient struct {
	Client *resourcemanager.Client
}

func NewTagProductLinkClientWithBaseURI

func NewTagProductLinkClientWithBaseURI(sdkApi sdkEnv.Api) (*TagProductLinkClient, error)

func (TagProductLinkClient) CreateOrUpdate

CreateOrUpdate ...

func (TagProductLinkClient) Delete

Delete ...

func (TagProductLinkClient) Get

Get ...

func (TagProductLinkClient) ListByProduct

ListByProduct ...

func (TagProductLinkClient) ListByProductComplete

ListByProductComplete retrieves all the results into a single object

func (TagProductLinkClient) ListByProductCompleteMatchingPredicate

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

ListByProductCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TagProductLinkClient) WorkspaceTagProductLinkCreateOrUpdate

WorkspaceTagProductLinkCreateOrUpdate ...

func (TagProductLinkClient) WorkspaceTagProductLinkDelete

func (c TagProductLinkClient) WorkspaceTagProductLinkDelete(ctx context.Context, id TagProductLinkId) (result WorkspaceTagProductLinkDeleteOperationResponse, err error)

WorkspaceTagProductLinkDelete ...

func (TagProductLinkClient) WorkspaceTagProductLinkGet

func (c TagProductLinkClient) WorkspaceTagProductLinkGet(ctx context.Context, id TagProductLinkId) (result WorkspaceTagProductLinkGetOperationResponse, err error)

WorkspaceTagProductLinkGet ...

func (TagProductLinkClient) WorkspaceTagProductLinkListByProduct

WorkspaceTagProductLinkListByProduct ...

func (TagProductLinkClient) WorkspaceTagProductLinkListByProductComplete

WorkspaceTagProductLinkListByProductComplete retrieves all the results into a single object

func (TagProductLinkClient) WorkspaceTagProductLinkListByProductCompleteMatchingPredicate

WorkspaceTagProductLinkListByProductCompleteMatchingPredicate retrieves all the results and then applies the predicate

type TagProductLinkContract

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

type TagProductLinkContractOperationPredicate

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

func (TagProductLinkContractOperationPredicate) Matches

type TagProductLinkContractProperties

type TagProductLinkContractProperties struct {
	ProductId string `json:"productId"`
}

type TagProductLinkId

type TagProductLinkId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	WorkspaceId       string
	TagId             string
	ProductLinkId     string
}

TagProductLinkId is a struct representing the Resource ID for a Tag Product Link

func NewTagProductLinkID

func NewTagProductLinkID(subscriptionId string, resourceGroupName string, serviceName string, workspaceId string, tagId string, productLinkId string) TagProductLinkId

NewTagProductLinkID returns a new TagProductLinkId struct

func ParseTagProductLinkID

func ParseTagProductLinkID(input string) (*TagProductLinkId, error)

ParseTagProductLinkID parses 'input' into a TagProductLinkId

func ParseTagProductLinkIDInsensitively

func ParseTagProductLinkIDInsensitively(input string) (*TagProductLinkId, error)

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

func (*TagProductLinkId) FromParseResult

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

func (TagProductLinkId) ID

func (id TagProductLinkId) ID() string

ID returns the formatted Tag Product Link ID

func (TagProductLinkId) Segments

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

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

func (TagProductLinkId) String

func (id TagProductLinkId) String() string

String returns a human-readable description of this Tag Product 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 WorkspaceTagProductLinkCreateOrUpdateOperationResponse

type WorkspaceTagProductLinkCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TagProductLinkContract
}

type WorkspaceTagProductLinkDeleteOperationResponse

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

type WorkspaceTagProductLinkGetOperationResponse

type WorkspaceTagProductLinkGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TagProductLinkContract
}

type WorkspaceTagProductLinkListByProductCompleteResult

type WorkspaceTagProductLinkListByProductCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []TagProductLinkContract
}

type WorkspaceTagProductLinkListByProductOperationOptions

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

func DefaultWorkspaceTagProductLinkListByProductOperationOptions

func DefaultWorkspaceTagProductLinkListByProductOperationOptions() WorkspaceTagProductLinkListByProductOperationOptions

func (WorkspaceTagProductLinkListByProductOperationOptions) ToHeaders

func (WorkspaceTagProductLinkListByProductOperationOptions) ToOData

func (WorkspaceTagProductLinkListByProductOperationOptions) ToQuery

type WorkspaceTagProductLinkListByProductOperationResponse

type WorkspaceTagProductLinkListByProductOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TagProductLinkContract
}

Jump to

Keyboard shortcuts

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