containerappssourcecontrols

package
v0.20231002.1065327 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappssourcecontrols Documentation

The containerappssourcecontrols SDK allows for interaction with the Azure Resource Manager Service containerapps (API Version 2023-05-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/containerapps/2023-05-01/containerappssourcecontrols"

Client Initialization

client := containerappssourcecontrols.NewContainerAppsSourceControlsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ContainerAppsSourceControlsClient.CreateOrUpdate

ctx := context.TODO()
id := containerappssourcecontrols.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "sourceControlValue")

payload := containerappssourcecontrols.SourceControl{
	// ...
}


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

Example Usage: ContainerAppsSourceControlsClient.Delete

ctx := context.TODO()
id := containerappssourcecontrols.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "sourceControlValue")

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

Example Usage: ContainerAppsSourceControlsClient.Get

ctx := context.TODO()
id := containerappssourcecontrols.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "sourceControlValue")

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: ContainerAppsSourceControlsClient.ListByContainerApp

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

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

func PossibleValuesForSourceControlOperationState() []string

func ValidateContainerAppID

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

ValidateContainerAppID checks that 'input' can be parsed as a Container App ID

func ValidateSourceControlID

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

ValidateSourceControlID checks that 'input' can be parsed as a Source Control ID

Types

type AzureCredentials

type AzureCredentials struct {
	ClientId       *string `json:"clientId,omitempty"`
	ClientSecret   *string `json:"clientSecret,omitempty"`
	Kind           *string `json:"kind,omitempty"`
	SubscriptionId *string `json:"subscriptionId,omitempty"`
	TenantId       *string `json:"tenantId,omitempty"`
}

type ContainerAppId

type ContainerAppId struct {
	SubscriptionId    string
	ResourceGroupName string
	ContainerAppName  string
}

ContainerAppId is a struct representing the Resource ID for a Container App

func NewContainerAppID

func NewContainerAppID(subscriptionId string, resourceGroupName string, containerAppName string) ContainerAppId

NewContainerAppID returns a new ContainerAppId struct

func ParseContainerAppID

func ParseContainerAppID(input string) (*ContainerAppId, error)

ParseContainerAppID parses 'input' into a ContainerAppId

func ParseContainerAppIDInsensitively

func ParseContainerAppIDInsensitively(input string) (*ContainerAppId, error)

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

func (ContainerAppId) ID

func (id ContainerAppId) ID() string

ID returns the formatted Container App ID

func (ContainerAppId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Container App ID

func (ContainerAppId) String

func (id ContainerAppId) String() string

String returns a human-readable description of this Container App ID

type ContainerAppsSourceControlsClient

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

func NewContainerAppsSourceControlsClientWithBaseURI

func NewContainerAppsSourceControlsClientWithBaseURI(endpoint string) ContainerAppsSourceControlsClient

func (ContainerAppsSourceControlsClient) CreateOrUpdate

CreateOrUpdate ...

func (ContainerAppsSourceControlsClient) CreateOrUpdateThenPoll

func (c ContainerAppsSourceControlsClient) CreateOrUpdateThenPoll(ctx context.Context, id SourceControlId, input SourceControl) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ContainerAppsSourceControlsClient) Delete

Delete ...

func (ContainerAppsSourceControlsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ContainerAppsSourceControlsClient) Get

Get ...

func (ContainerAppsSourceControlsClient) ListByContainerApp

ListByContainerApp ...

func (ContainerAppsSourceControlsClient) ListByContainerAppComplete

ListByContainerAppComplete retrieves all of the results into a single object

func (ContainerAppsSourceControlsClient) ListByContainerAppCompleteMatchingPredicate

func (c ContainerAppsSourceControlsClient) ListByContainerAppCompleteMatchingPredicate(ctx context.Context, id ContainerAppId, predicate SourceControlOperationPredicate) (resp ListByContainerAppCompleteResult, err error)

ListByContainerAppCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *SourceControl
}

type GithubActionConfiguration

type GithubActionConfiguration struct {
	AzureCredentials          *AzureCredentials `json:"azureCredentials,omitempty"`
	ContextPath               *string           `json:"contextPath,omitempty"`
	GitHubPersonalAccessToken *string           `json:"githubPersonalAccessToken,omitempty"`
	Image                     *string           `json:"image,omitempty"`
	Os                        *string           `json:"os,omitempty"`
	PublishType               *string           `json:"publishType,omitempty"`
	RegistryInfo              *RegistryInfo     `json:"registryInfo,omitempty"`
	RuntimeStack              *string           `json:"runtimeStack,omitempty"`
	RuntimeVersion            *string           `json:"runtimeVersion,omitempty"`
}

type ListByContainerAppCompleteResult

type ListByContainerAppCompleteResult struct {
	Items []SourceControl
}

type ListByContainerAppOperationResponse

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

func (ListByContainerAppOperationResponse) HasMore

func (ListByContainerAppOperationResponse) LoadMore

type RegistryInfo

type RegistryInfo struct {
	RegistryPassword *string `json:"registryPassword,omitempty"`
	RegistryUrl      *string `json:"registryUrl,omitempty"`
	RegistryUserName *string `json:"registryUserName,omitempty"`
}

type SourceControl

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

type SourceControlId

type SourceControlId struct {
	SubscriptionId    string
	ResourceGroupName string
	ContainerAppName  string
	SourceControlName string
}

SourceControlId is a struct representing the Resource ID for a Source Control

func NewSourceControlID

func NewSourceControlID(subscriptionId string, resourceGroupName string, containerAppName string, sourceControlName string) SourceControlId

NewSourceControlID returns a new SourceControlId struct

func ParseSourceControlID

func ParseSourceControlID(input string) (*SourceControlId, error)

ParseSourceControlID parses 'input' into a SourceControlId

func ParseSourceControlIDInsensitively

func ParseSourceControlIDInsensitively(input string) (*SourceControlId, error)

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

func (SourceControlId) ID

func (id SourceControlId) ID() string

ID returns the formatted Source Control ID

func (SourceControlId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Source Control ID

func (SourceControlId) String

func (id SourceControlId) String() string

String returns a human-readable description of this Source Control ID

type SourceControlOperationPredicate

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

func (SourceControlOperationPredicate) Matches

type SourceControlOperationState

type SourceControlOperationState string
const (
	SourceControlOperationStateCanceled   SourceControlOperationState = "Canceled"
	SourceControlOperationStateFailed     SourceControlOperationState = "Failed"
	SourceControlOperationStateInProgress SourceControlOperationState = "InProgress"
	SourceControlOperationStateSucceeded  SourceControlOperationState = "Succeeded"
)

type SourceControlProperties

type SourceControlProperties struct {
	Branch                    *string                      `json:"branch,omitempty"`
	GitHubActionConfiguration *GithubActionConfiguration   `json:"githubActionConfiguration,omitempty"`
	OperationState            *SourceControlOperationState `json:"operationState,omitempty"`
	RepoUrl                   *string                      `json:"repoUrl,omitempty"`
}

Jump to

Keyboard shortcuts

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