package policy

import "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/policy"

Index

Types

type BearerTokenOptions

type BearerTokenOptions struct {
	// Scopes contains the list of permission scopes required for the token.
	Scopes []string
}

BearerTokenOptions configures the bearer token policy's behavior.

type ClientOptions

type ClientOptions struct {
	policy.ClientOptions

	// DisableRPRegistration disables the auto-RP registration policy. Defaults to false.
	DisableRPRegistration bool
}

ClientOptions contains configuration settings for a client's pipeline.

type RegistrationOptions

type RegistrationOptions struct {
	policy.ClientOptions

	// MaxAttempts is the total number of times to attempt automatic registration
	// in the event that an attempt fails.
	// The default value is 3.
	// Set to a value less than zero to disable the policy.
	MaxAttempts int

	// PollingDelay is the amount of time to sleep between polling intervals.
	// The default value is 15 seconds.
	// A value less than zero means no delay between polling intervals (not recommended).
	PollingDelay time.Duration

	// PollingDuration is the amount of time to wait before abandoning polling.
	// The default valule is 5 minutes.
	// NOTE: Setting this to a small value might cause the policy to prematurely fail.
	PollingDuration time.Duration
}

RegistrationOptions configures the registration policy's behavior. All zero-value fields will be initialized with their default values.

Source Files

policy.go

Version
v1.3.0
Published
Jan 6, 2023
Platform
js/wasm
Imports
2 packages
Last checked
48 seconds ago

Tools for package owners.