apiissueattachment

package
v0.20230309.1123256 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiissueattachment Documentation

The apiissueattachment SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2022-08-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/apimanagement/2022-08-01/apiissueattachment"

Client Initialization

client := apiissueattachment.NewApiIssueAttachmentClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApiIssueAttachmentClient.CreateOrUpdate

ctx := context.TODO()
id := apiissueattachment.NewAttachmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "issueIdValue", "attachmentIdValue")

payload := apiissueattachment.IssueAttachmentContract{
	// ...
}


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

Example Usage: ApiIssueAttachmentClient.Delete

ctx := context.TODO()
id := apiissueattachment.NewAttachmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "issueIdValue", "attachmentIdValue")

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

Example Usage: ApiIssueAttachmentClient.Get

ctx := context.TODO()
id := apiissueattachment.NewAttachmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "issueIdValue", "attachmentIdValue")

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: ApiIssueAttachmentClient.GetEntityTag

ctx := context.TODO()
id := apiissueattachment.NewAttachmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "issueIdValue", "attachmentIdValue")

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

Example Usage: ApiIssueAttachmentClient.ListByService

ctx := context.TODO()
id := apiissueattachment.NewIssueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "issueIdValue")

// alternatively `client.ListByService(ctx, id, apiissueattachment.DefaultListByServiceOperationOptions())` can be used to do batched pagination
items, err := client.ListByServiceComplete(ctx, id, apiissueattachment.DefaultListByServiceOperationOptions())
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 ValidateAttachmentID

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

ValidateAttachmentID checks that 'input' can be parsed as a Attachment ID

func ValidateIssueID

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

ValidateIssueID checks that 'input' can be parsed as a Issue ID

Types

type ApiIssueAttachmentClient

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

func NewApiIssueAttachmentClientWithBaseURI

func NewApiIssueAttachmentClientWithBaseURI(endpoint string) ApiIssueAttachmentClient

func (ApiIssueAttachmentClient) CreateOrUpdate

CreateOrUpdate ...

func (ApiIssueAttachmentClient) Delete

Delete ...

func (ApiIssueAttachmentClient) Get

Get ...

func (ApiIssueAttachmentClient) GetEntityTag

GetEntityTag ...

func (ApiIssueAttachmentClient) ListByService

ListByService ...

func (ApiIssueAttachmentClient) ListByServiceComplete

ListByServiceComplete retrieves all of the results into a single object

func (ApiIssueAttachmentClient) ListByServiceCompleteMatchingPredicate

func (c ApiIssueAttachmentClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id IssueId, options ListByServiceOperationOptions, predicate IssueAttachmentContractOperationPredicate) (resp ListByServiceCompleteResult, err error)

ListByServiceCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type AttachmentId

type AttachmentId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServiceName       string
	ApiId             string
	IssueId           string
	AttachmentId      string
}

AttachmentId is a struct representing the Resource ID for a Attachment

func NewAttachmentID

func NewAttachmentID(subscriptionId string, resourceGroupName string, serviceName string, apiId string, issueId string, attachmentId string) AttachmentId

NewAttachmentID returns a new AttachmentId struct

func ParseAttachmentID

func ParseAttachmentID(input string) (*AttachmentId, error)

ParseAttachmentID parses 'input' into a AttachmentId

func ParseAttachmentIDInsensitively

func ParseAttachmentIDInsensitively(input string) (*AttachmentId, error)

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

func (AttachmentId) ID

func (id AttachmentId) ID() string

ID returns the formatted Attachment ID

func (AttachmentId) Segments

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

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

func (AttachmentId) String

func (id AttachmentId) String() string

String returns a human-readable description of this Attachment ID

type CreateOrUpdateOperationOptions

type CreateOrUpdateOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateOperationOptions

func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *IssueAttachmentContract
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetEntityTagOperationResponse

type GetEntityTagOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *IssueAttachmentContract
}

type IssueAttachmentContract

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

type IssueAttachmentContractOperationPredicate

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

func (IssueAttachmentContractOperationPredicate) Matches

type IssueAttachmentContractProperties

type IssueAttachmentContractProperties struct {
	Content       string `json:"content"`
	ContentFormat string `json:"contentFormat"`
	Title         string `json:"title"`
}

type IssueId

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

IssueId is a struct representing the Resource ID for a Issue

func NewIssueID

func NewIssueID(subscriptionId string, resourceGroupName string, serviceName string, issueId string) IssueId

NewIssueID returns a new IssueId struct

func ParseIssueID

func ParseIssueID(input string) (*IssueId, error)

ParseIssueID parses 'input' into a IssueId

func ParseIssueIDInsensitively

func ParseIssueIDInsensitively(input string) (*IssueId, error)

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

func (IssueId) ID

func (id IssueId) ID() string

ID returns the formatted Issue ID

func (IssueId) Segments

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

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

func (IssueId) String

func (id IssueId) String() string

String returns a human-readable description of this Issue ID

type ListByServiceCompleteResult

type ListByServiceCompleteResult struct {
	Items []IssueAttachmentContract
}

type ListByServiceOperationOptions

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

func DefaultListByServiceOperationOptions

func DefaultListByServiceOperationOptions() ListByServiceOperationOptions

type ListByServiceOperationResponse

type ListByServiceOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]IssueAttachmentContract
	// contains filtered or unexported fields
}

func (ListByServiceOperationResponse) HasMore

func (ListByServiceOperationResponse) LoadMore

Jump to

Keyboard shortcuts

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