partnerdestinations

package
v0.20240617.1095803 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MPL-2.0 Imports: 16 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations Documentation

The partnerdestinations SDK allows for interaction with the Azure Resource Manager Service eventgrid (API Version 2023-12-15-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations"

Client Initialization

client := partnerdestinations.NewPartnerDestinationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PartnerDestinationsClient.Activate

ctx := context.TODO()
id := partnerdestinations.NewPartnerDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerDestinationValue")

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

Example Usage: PartnerDestinationsClient.CreateOrUpdate

ctx := context.TODO()
id := partnerdestinations.NewPartnerDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerDestinationValue")

payload := partnerdestinations.PartnerDestination{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: PartnerDestinationsClient.Delete

ctx := context.TODO()
id := partnerdestinations.NewPartnerDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerDestinationValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: PartnerDestinationsClient.Get

ctx := context.TODO()
id := partnerdestinations.NewPartnerDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerDestinationValue")

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: PartnerDestinationsClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

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

Example Usage: PartnerDestinationsClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: PartnerDestinationsClient.Update

ctx := context.TODO()
id := partnerdestinations.NewPartnerDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerDestinationValue")

payload := partnerdestinations.PartnerDestinationUpdateParameters{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForPartnerDestinationActivationState

func PossibleValuesForPartnerDestinationActivationState() []string

func PossibleValuesForPartnerDestinationProvisioningState

func PossibleValuesForPartnerDestinationProvisioningState() []string

func ValidatePartnerDestinationID

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

ValidatePartnerDestinationID checks that 'input' can be parsed as a Partner Destination ID

Types

type ActivateOperationResponse

type ActivateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PartnerDestination
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PartnerDestination
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PartnerDestination
}

type ListByResourceGroupOperationOptions

type ListByResourceGroupOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListByResourceGroupOperationOptions

func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions

func (ListByResourceGroupOperationOptions) ToHeaders

func (ListByResourceGroupOperationOptions) ToOData

func (ListByResourceGroupOperationOptions) ToQuery

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PartnerDestination
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PartnerDestination
}

type ListBySubscriptionOperationOptions

type ListBySubscriptionOperationOptions struct {
	Filter *string
	Top    *int64
}

func DefaultListBySubscriptionOperationOptions

func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions

func (ListBySubscriptionOperationOptions) ToHeaders

func (ListBySubscriptionOperationOptions) ToOData

func (ListBySubscriptionOperationOptions) ToQuery

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PartnerDestination
}

type PartnerDestination

type PartnerDestination struct {
	Id         *string                       `json:"id,omitempty"`
	Location   string                        `json:"location"`
	Name       *string                       `json:"name,omitempty"`
	Properties *PartnerDestinationProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData        `json:"systemData,omitempty"`
	Tags       *map[string]string            `json:"tags,omitempty"`
	Type       *string                       `json:"type,omitempty"`
}

type PartnerDestinationActivationState

type PartnerDestinationActivationState string
const (
	PartnerDestinationActivationStateActivated      PartnerDestinationActivationState = "Activated"
	PartnerDestinationActivationStateNeverActivated PartnerDestinationActivationState = "NeverActivated"
)

func (*PartnerDestinationActivationState) UnmarshalJSON

func (s *PartnerDestinationActivationState) UnmarshalJSON(bytes []byte) error

type PartnerDestinationId

type PartnerDestinationId struct {
	SubscriptionId         string
	ResourceGroupName      string
	PartnerDestinationName string
}

PartnerDestinationId is a struct representing the Resource ID for a Partner Destination

func NewPartnerDestinationID

func NewPartnerDestinationID(subscriptionId string, resourceGroupName string, partnerDestinationName string) PartnerDestinationId

NewPartnerDestinationID returns a new PartnerDestinationId struct

func ParsePartnerDestinationID

func ParsePartnerDestinationID(input string) (*PartnerDestinationId, error)

ParsePartnerDestinationID parses 'input' into a PartnerDestinationId

func ParsePartnerDestinationIDInsensitively

func ParsePartnerDestinationIDInsensitively(input string) (*PartnerDestinationId, error)

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

func (*PartnerDestinationId) FromParseResult

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

func (PartnerDestinationId) ID

func (id PartnerDestinationId) ID() string

ID returns the formatted Partner Destination ID

func (PartnerDestinationId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Partner Destination ID

func (PartnerDestinationId) String

func (id PartnerDestinationId) String() string

String returns a human-readable description of this Partner Destination ID

type PartnerDestinationOperationPredicate

type PartnerDestinationOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (PartnerDestinationOperationPredicate) Matches

type PartnerDestinationProperties

type PartnerDestinationProperties struct {
	ActivationState                 *PartnerDestinationActivationState   `json:"activationState,omitempty"`
	EndpointBaseUrl                 *string                              `json:"endpointBaseUrl,omitempty"`
	EndpointServiceContext          *string                              `json:"endpointServiceContext,omitempty"`
	ExpirationTimeIfNotActivatedUtc *string                              `json:"expirationTimeIfNotActivatedUtc,omitempty"`
	MessageForActivation            *string                              `json:"messageForActivation,omitempty"`
	PartnerRegistrationImmutableId  *string                              `json:"partnerRegistrationImmutableId,omitempty"`
	ProvisioningState               *PartnerDestinationProvisioningState `json:"provisioningState,omitempty"`
}

func (*PartnerDestinationProperties) GetExpirationTimeIfNotActivatedUtcAsTime

func (o *PartnerDestinationProperties) GetExpirationTimeIfNotActivatedUtcAsTime() (*time.Time, error)

func (*PartnerDestinationProperties) SetExpirationTimeIfNotActivatedUtcAsTime

func (o *PartnerDestinationProperties) SetExpirationTimeIfNotActivatedUtcAsTime(input time.Time)

type PartnerDestinationProvisioningState

type PartnerDestinationProvisioningState string
const (
	PartnerDestinationProvisioningStateCanceled                                 PartnerDestinationProvisioningState = "Canceled"
	PartnerDestinationProvisioningStateCreating                                 PartnerDestinationProvisioningState = "Creating"
	PartnerDestinationProvisioningStateDeleting                                 PartnerDestinationProvisioningState = "Deleting"
	PartnerDestinationProvisioningStateFailed                                   PartnerDestinationProvisioningState = "Failed"
	PartnerDestinationProvisioningStateIdleDueToMirroredChannelResourceDeletion PartnerDestinationProvisioningState = "IdleDueToMirroredChannelResourceDeletion"
	PartnerDestinationProvisioningStateSucceeded                                PartnerDestinationProvisioningState = "Succeeded"
	PartnerDestinationProvisioningStateUpdating                                 PartnerDestinationProvisioningState = "Updating"
)

func (*PartnerDestinationProvisioningState) UnmarshalJSON

func (s *PartnerDestinationProvisioningState) UnmarshalJSON(bytes []byte) error

type PartnerDestinationUpdateParameters

type PartnerDestinationUpdateParameters struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type PartnerDestinationsClient

type PartnerDestinationsClient struct {
	Client *resourcemanager.Client
}

func NewPartnerDestinationsClientWithBaseURI

func NewPartnerDestinationsClientWithBaseURI(sdkApi sdkEnv.Api) (*PartnerDestinationsClient, error)

func (PartnerDestinationsClient) Activate

Activate ...

func (PartnerDestinationsClient) CreateOrUpdate

CreateOrUpdate ...

func (PartnerDestinationsClient) CreateOrUpdateThenPoll

func (c PartnerDestinationsClient) CreateOrUpdateThenPoll(ctx context.Context, id PartnerDestinationId, input PartnerDestination) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (PartnerDestinationsClient) Delete

Delete ...

func (PartnerDestinationsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (PartnerDestinationsClient) Get

Get ...

func (PartnerDestinationsClient) ListByResourceGroup

ListByResourceGroup ...

func (PartnerDestinationsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (PartnerDestinationsClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PartnerDestinationsClient) ListBySubscription

ListBySubscription ...

func (PartnerDestinationsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (PartnerDestinationsClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PartnerDestinationsClient) Update

Update ...

func (PartnerDestinationsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PartnerDestination
}

Jump to

Keyboard shortcuts

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