apiissueattachment

package
v0.20230802.1072231 Latest Latest
Warning

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

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

README

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

The apiissueattachment SDK allows for interaction with the Azure Resource Manager Service apimanagement (API Version 2021-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/2021-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.NewApiIssueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "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 ValidateApiIssueID added in v0.20230523.1140858

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

ValidateApiIssueID checks that 'input' can be parsed as a Api Issue ID

func ValidateAttachmentID

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

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

Types

type ApiIssueAttachmentClient

type ApiIssueAttachmentClient struct {
	Client *resourcemanager.Client
}

func NewApiIssueAttachmentClientWithBaseURI

func NewApiIssueAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiIssueAttachmentClient, error)

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 the results into a single object

func (ApiIssueAttachmentClient) ListByServiceCompleteMatchingPredicate

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

ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ApiIssueId added in v0.20230523.1140858

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

ApiIssueId is a struct representing the Resource ID for a Api Issue

func NewApiIssueID added in v0.20230523.1140858

func NewApiIssueID(subscriptionId string, resourceGroupName string, serviceName string, apiId string, issueId string) ApiIssueId

NewApiIssueID returns a new ApiIssueId struct

func ParseApiIssueID added in v0.20230523.1140858

func ParseApiIssueID(input string) (*ApiIssueId, error)

ParseApiIssueID parses 'input' into a ApiIssueId

func ParseApiIssueIDInsensitively added in v0.20230523.1140858

func ParseApiIssueIDInsensitively(input string) (*ApiIssueId, error)

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

func (ApiIssueId) ID added in v0.20230523.1140858

func (id ApiIssueId) ID() string

ID returns the formatted Api Issue ID

func (ApiIssueId) Segments added in v0.20230523.1140858

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

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

func (ApiIssueId) String added in v0.20230523.1140858

func (id ApiIssueId) String() string

String returns a human-readable description of this Api Issue ID

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

func (CreateOrUpdateOperationOptions) ToHeaders added in v0.20230801.1071415

func (CreateOrUpdateOperationOptions) ToOData added in v0.20230801.1071415

func (CreateOrUpdateOperationOptions) ToQuery added in v0.20230801.1071415

type CreateOrUpdateOperationResponse

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

type DeleteOperationOptions

type DeleteOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders added in v0.20230801.1071415

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData added in v0.20230801.1071415

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery added in v0.20230801.1071415

type DeleteOperationResponse

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

type GetEntityTagOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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 ListByServiceCompleteResult

type ListByServiceCompleteResult struct {
	Items []IssueAttachmentContract
}

type ListByServiceOperationOptions

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

func DefaultListByServiceOperationOptions

func DefaultListByServiceOperationOptions() ListByServiceOperationOptions

func (ListByServiceOperationOptions) ToHeaders added in v0.20230801.1071415

func (ListByServiceOperationOptions) ToOData added in v0.20230801.1071415

func (ListByServiceOperationOptions) ToQuery added in v0.20230801.1071415

type ListByServiceOperationResponse

type ListByServiceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]IssueAttachmentContract
}

Jump to

Keyboard shortcuts

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