application

package
v2.96.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForFailureAction

func PossibleValuesForFailureAction() []string

func PossibleValuesForRollingUpgradeMode

func PossibleValuesForRollingUpgradeMode() []string

func ValidateApplicationID

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

ValidateApplicationID checks that 'input' can be parsed as a Application ID

func ValidateManagedClusterID

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

ValidateManagedClusterID checks that 'input' can be parsed as a Managed Cluster ID

Types

type ApplicationClient

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

func NewApplicationClientWithBaseURI

func NewApplicationClientWithBaseURI(endpoint string) ApplicationClient

func (ApplicationClient) CreateOrUpdate

func (c ApplicationClient) CreateOrUpdate(ctx context.Context, id ApplicationId, input ApplicationResource) (result CreateOrUpdateResponse, err error)

CreateOrUpdate ...

func (ApplicationClient) CreateOrUpdateThenPoll

func (c ApplicationClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationId, input ApplicationResource) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ApplicationClient) Delete

func (c ApplicationClient) Delete(ctx context.Context, id ApplicationId) (result DeleteResponse, err error)

Delete ...

func (ApplicationClient) DeleteThenPoll

func (c ApplicationClient) DeleteThenPoll(ctx context.Context, id ApplicationId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ApplicationClient) Get

func (c ApplicationClient) Get(ctx context.Context, id ApplicationId) (result GetResponse, err error)

Get ...

func (ApplicationClient) List

List ...

func (ApplicationClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ApplicationClient) ListCompleteMatchingPredicate

func (c ApplicationClient) ListCompleteMatchingPredicate(ctx context.Context, id ManagedClusterId, predicate ApplicationResourcePredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ApplicationClient) Update

Update ...

type ApplicationHealthPolicy

type ApplicationHealthPolicy struct {
	ConsiderWarningAsError                  bool                                `json:"considerWarningAsError"`
	DefaultServiceTypeHealthPolicy          *ServiceTypeHealthPolicy            `json:"defaultServiceTypeHealthPolicy,omitempty"`
	MaxPercentUnhealthyDeployedApplications int64                               `json:"maxPercentUnhealthyDeployedApplications"`
	ServiceTypeHealthPolicyMap              *map[string]ServiceTypeHealthPolicy `json:"serviceTypeHealthPolicyMap,omitempty"`
}

type ApplicationId

type ApplicationId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	ApplicationName   string
}

ApplicationId is a struct representing the Resource ID for a Application

func NewApplicationID

func NewApplicationID(subscriptionId string, resourceGroupName string, clusterName string, applicationName string) ApplicationId

NewApplicationID returns a new ApplicationId struct

func ParseApplicationID

func ParseApplicationID(input string) (*ApplicationId, error)

ParseApplicationID parses 'input' into a ApplicationId

func ParseApplicationIDInsensitively

func ParseApplicationIDInsensitively(input string) (*ApplicationId, error)

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

func (ApplicationId) ID

func (id ApplicationId) ID() string

ID returns the formatted Application ID

func (ApplicationId) Segments

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

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

func (ApplicationId) String

func (id ApplicationId) String() string

String returns a human-readable description of this Application ID

type ApplicationResource

type ApplicationResource struct {
	Id         *string                                 `json:"id,omitempty"`
	Identity   *identity.SystemUserAssignedIdentityMap `json:"identity,omitempty"`
	Location   *string                                 `json:"location,omitempty"`
	Name       *string                                 `json:"name,omitempty"`
	Properties *ApplicationResourceProperties          `json:"properties,omitempty"`
	SystemData *SystemData                             `json:"systemData,omitempty"`
	Tags       *map[string]string                      `json:"tags,omitempty"`
	Type       *string                                 `json:"type,omitempty"`
}

type ApplicationResourcePredicate

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

func (ApplicationResourcePredicate) Matches

type ApplicationResourceProperties

type ApplicationResourceProperties struct {
	ManagedIdentities *[]ApplicationUserAssignedIdentity `json:"managedIdentities,omitempty"`
	Parameters        *map[string]string                 `json:"parameters,omitempty"`
	ProvisioningState *string                            `json:"provisioningState,omitempty"`
	UpgradePolicy     *ApplicationUpgradePolicy          `json:"upgradePolicy,omitempty"`
	Version           *string                            `json:"version,omitempty"`
}

type ApplicationUpdateParameters

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

type ApplicationUpgradePolicy

type ApplicationUpgradePolicy struct {
	ApplicationHealthPolicy        *ApplicationHealthPolicy        `json:"applicationHealthPolicy,omitempty"`
	ForceRestart                   *bool                           `json:"forceRestart,omitempty"`
	InstanceCloseDelayDuration     *int64                          `json:"instanceCloseDelayDuration,omitempty"`
	RecreateApplication            *bool                           `json:"recreateApplication,omitempty"`
	RollingUpgradeMonitoringPolicy *RollingUpgradeMonitoringPolicy `json:"rollingUpgradeMonitoringPolicy,omitempty"`
	UpgradeMode                    *RollingUpgradeMode             `json:"upgradeMode,omitempty"`
	UpgradeReplicaSetCheckTimeout  *int64                          `json:"upgradeReplicaSetCheckTimeout,omitempty"`
}

type ApplicationUserAssignedIdentity

type ApplicationUserAssignedIdentity struct {
	Name        string `json:"name"`
	PrincipalId string `json:"principalId"`
}

type CreateOrUpdateResponse

type CreateOrUpdateResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DeleteResponse

type DeleteResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type FailureAction

type FailureAction string
const (
	FailureActionManual   FailureAction = "Manual"
	FailureActionRollback FailureAction = "Rollback"
)

type GetResponse

type GetResponse struct {
	HttpResponse *http.Response
	Model        *ApplicationResource
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []ApplicationResource
}

type ListResponse

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

func (ListResponse) HasMore

func (r ListResponse) HasMore() bool

func (ListResponse) LoadMore

func (r ListResponse) LoadMore(ctx context.Context) (resp ListResponse, err error)

type ManagedClusterId

type ManagedClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ManagedClusterId is a struct representing the Resource ID for a Managed Cluster

func NewManagedClusterID

func NewManagedClusterID(subscriptionId string, resourceGroupName string, clusterName string) ManagedClusterId

NewManagedClusterID returns a new ManagedClusterId struct

func ParseManagedClusterID

func ParseManagedClusterID(input string) (*ManagedClusterId, error)

ParseManagedClusterID parses 'input' into a ManagedClusterId

func ParseManagedClusterIDInsensitively

func ParseManagedClusterIDInsensitively(input string) (*ManagedClusterId, error)

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

func (ManagedClusterId) ID

func (id ManagedClusterId) ID() string

ID returns the formatted Managed Cluster ID

func (ManagedClusterId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Managed Cluster ID

func (ManagedClusterId) String

func (id ManagedClusterId) String() string

String returns a human-readable description of this Managed Cluster ID

type RollingUpgradeMode

type RollingUpgradeMode string
const (
	RollingUpgradeModeMonitored       RollingUpgradeMode = "Monitored"
	RollingUpgradeModeUnmonitoredAuto RollingUpgradeMode = "UnmonitoredAuto"
)

type RollingUpgradeMonitoringPolicy

type RollingUpgradeMonitoringPolicy struct {
	FailureAction             FailureAction `json:"failureAction"`
	HealthCheckRetryTimeout   string        `json:"healthCheckRetryTimeout"`
	HealthCheckStableDuration string        `json:"healthCheckStableDuration"`
	HealthCheckWaitDuration   string        `json:"healthCheckWaitDuration"`
	UpgradeDomainTimeout      string        `json:"upgradeDomainTimeout"`
	UpgradeTimeout            string        `json:"upgradeTimeout"`
}

type ServiceTypeHealthPolicy

type ServiceTypeHealthPolicy struct {
	MaxPercentUnhealthyPartitionsPerService int64 `json:"maxPercentUnhealthyPartitionsPerService"`
	MaxPercentUnhealthyReplicasPerPartition int64 `json:"maxPercentUnhealthyReplicasPerPartition"`
	MaxPercentUnhealthyServices             int64 `json:"maxPercentUnhealthyServices"`
}

type SystemData

type SystemData struct {
	CreatedAt          *string `json:"createdAt,omitempty"`
	CreatedBy          *string `json:"createdBy,omitempty"`
	CreatedByType      *string `json:"createdByType,omitempty"`
	LastModifiedAt     *string `json:"lastModifiedAt,omitempty"`
	LastModifiedBy     *string `json:"lastModifiedBy,omitempty"`
	LastModifiedByType *string `json:"lastModifiedByType,omitempty"`
}

type UpdateResponse

type UpdateResponse struct {
	HttpResponse *http.Response
	Model        *ApplicationResource
}

Jump to

Keyboard shortcuts

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