daprcomponentresiliencypolicies

package
v0.20240715.1103416 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/daprcomponentresiliencypolicies Documentation

The daprcomponentresiliencypolicies SDK allows for interaction with the Azure Resource Manager Service containerapps (API Version 2024-02-02-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/containerapps/2024-02-02-preview/daprcomponentresiliencypolicies"

Client Initialization

client := daprcomponentresiliencypolicies.NewDaprComponentResiliencyPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DaprComponentResiliencyPoliciesClient.CreateOrUpdate

ctx := context.TODO()
id := daprcomponentresiliencypolicies.NewDaprComponentResiliencyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue", "resiliencyPolicyValue")

payload := daprcomponentresiliencypolicies.DaprComponentResiliencyPolicy{
	// ...
}


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

ctx := context.TODO()
id := daprcomponentresiliencypolicies.NewDaprComponentResiliencyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue", "resiliencyPolicyValue")

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

ctx := context.TODO()
id := daprcomponentresiliencypolicies.NewDaprComponentResiliencyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue", "resiliencyPolicyValue")

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: DaprComponentResiliencyPoliciesClient.List

ctx := context.TODO()
id := daprcomponentresiliencypolicies.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
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 ValidateDaprComponentID

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

ValidateDaprComponentID checks that 'input' can be parsed as a Dapr Component ID

func ValidateDaprComponentResiliencyPolicyID

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

ValidateDaprComponentResiliencyPolicyID checks that 'input' can be parsed as a Dapr Component Resiliency Policy ID

Types

type CreateOrUpdateOperationResponse

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

type DaprComponentId

type DaprComponentId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
	DaprComponentName      string
}

DaprComponentId is a struct representing the Resource ID for a Dapr Component

func NewDaprComponentID

func NewDaprComponentID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, daprComponentName string) DaprComponentId

NewDaprComponentID returns a new DaprComponentId struct

func ParseDaprComponentID

func ParseDaprComponentID(input string) (*DaprComponentId, error)

ParseDaprComponentID parses 'input' into a DaprComponentId

func ParseDaprComponentIDInsensitively

func ParseDaprComponentIDInsensitively(input string) (*DaprComponentId, error)

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

func (*DaprComponentId) FromParseResult

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

func (DaprComponentId) ID

func (id DaprComponentId) ID() string

ID returns the formatted Dapr Component ID

func (DaprComponentId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Dapr Component ID

func (DaprComponentId) String

func (id DaprComponentId) String() string

String returns a human-readable description of this Dapr Component ID

type DaprComponentResiliencyPoliciesClient

type DaprComponentResiliencyPoliciesClient struct {
	Client *resourcemanager.Client
}

func NewDaprComponentResiliencyPoliciesClientWithBaseURI

func NewDaprComponentResiliencyPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*DaprComponentResiliencyPoliciesClient, error)

func (DaprComponentResiliencyPoliciesClient) CreateOrUpdate

CreateOrUpdate ...

func (DaprComponentResiliencyPoliciesClient) Delete

Delete ...

func (DaprComponentResiliencyPoliciesClient) Get

Get ...

func (DaprComponentResiliencyPoliciesClient) List

List ...

func (DaprComponentResiliencyPoliciesClient) ListComplete

ListComplete retrieves all the results into a single object

func (DaprComponentResiliencyPoliciesClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DaprComponentResiliencyPolicy

type DaprComponentResiliencyPolicy struct {
	Id         *string                                  `json:"id,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *DaprComponentResiliencyPolicyProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                   `json:"systemData,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration

type DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration struct {
	ConsecutiveErrors *int64 `json:"consecutiveErrors,omitempty"`
	IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"`
	TimeoutInSeconds  *int64 `json:"timeoutInSeconds,omitempty"`
}

type DaprComponentResiliencyPolicyConfiguration

type DaprComponentResiliencyPolicyConfiguration struct {
	CircuitBreakerPolicy *DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration `json:"circuitBreakerPolicy,omitempty"`
	HTTPRetryPolicy      *DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration      `json:"httpRetryPolicy,omitempty"`
	TimeoutPolicy        *DaprComponentResiliencyPolicyTimeoutPolicyConfiguration        `json:"timeoutPolicy,omitempty"`
}

type DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration

type DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration struct {
	InitialDelayInMilliseconds *int64 `json:"initialDelayInMilliseconds,omitempty"`
	MaxIntervalInMilliseconds  *int64 `json:"maxIntervalInMilliseconds,omitempty"`
}

type DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration

type DaprComponentResiliencyPolicyHTTPRetryPolicyConfiguration struct {
	MaxRetries   *int64                                                      `json:"maxRetries,omitempty"`
	RetryBackOff *DaprComponentResiliencyPolicyHTTPRetryBackOffConfiguration `json:"retryBackOff,omitempty"`
}

type DaprComponentResiliencyPolicyId

type DaprComponentResiliencyPolicyId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
	DaprComponentName      string
	ResiliencyPolicyName   string
}

DaprComponentResiliencyPolicyId is a struct representing the Resource ID for a Dapr Component Resiliency Policy

func NewDaprComponentResiliencyPolicyID

func NewDaprComponentResiliencyPolicyID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, daprComponentName string, resiliencyPolicyName string) DaprComponentResiliencyPolicyId

NewDaprComponentResiliencyPolicyID returns a new DaprComponentResiliencyPolicyId struct

func ParseDaprComponentResiliencyPolicyID

func ParseDaprComponentResiliencyPolicyID(input string) (*DaprComponentResiliencyPolicyId, error)

ParseDaprComponentResiliencyPolicyID parses 'input' into a DaprComponentResiliencyPolicyId

func ParseDaprComponentResiliencyPolicyIDInsensitively

func ParseDaprComponentResiliencyPolicyIDInsensitively(input string) (*DaprComponentResiliencyPolicyId, error)

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

func (*DaprComponentResiliencyPolicyId) FromParseResult

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

func (DaprComponentResiliencyPolicyId) ID

ID returns the formatted Dapr Component Resiliency Policy ID

func (DaprComponentResiliencyPolicyId) Segments

Segments returns a slice of Resource ID Segments which comprise this Dapr Component Resiliency Policy ID

func (DaprComponentResiliencyPolicyId) String

String returns a human-readable description of this Dapr Component Resiliency Policy ID

type DaprComponentResiliencyPolicyOperationPredicate

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

func (DaprComponentResiliencyPolicyOperationPredicate) Matches

type DaprComponentResiliencyPolicyProperties

type DaprComponentResiliencyPolicyProperties struct {
	InboundPolicy  *DaprComponentResiliencyPolicyConfiguration `json:"inboundPolicy,omitempty"`
	OutboundPolicy *DaprComponentResiliencyPolicyConfiguration `json:"outboundPolicy,omitempty"`
}

type DaprComponentResiliencyPolicyTimeoutPolicyConfiguration

type DaprComponentResiliencyPolicyTimeoutPolicyConfiguration struct {
	ResponseTimeoutInSeconds *int64 `json:"responseTimeoutInSeconds,omitempty"`
}

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DaprComponentResiliencyPolicy
}

type ListCustomPager

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DaprComponentResiliencyPolicy
}

Jump to

Keyboard shortcuts

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