managedcertificates

package
v0.20231108.1152235 Latest Latest
Warning

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

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

README

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

The managedcertificates 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/managedcertificates"

Client Initialization

client := managedcertificates.NewManagedCertificatesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedCertificatesClient.CreateOrUpdate

ctx := context.TODO()
id := managedcertificates.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue")

payload := managedcertificates.ManagedCertificate{
	// ...
}


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

Example Usage: ManagedCertificatesClient.Delete

ctx := context.TODO()
id := managedcertificates.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue")

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

ctx := context.TODO()
id := managedcertificates.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue")

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

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

// 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
}

Example Usage: ManagedCertificatesClient.Update

ctx := context.TODO()
id := managedcertificates.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue")

payload := managedcertificates.ManagedCertificatePatch{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCertificateProvisioningState

func PossibleValuesForCertificateProvisioningState() []string

func PossibleValuesForManagedCertificateDomainControlValidation

func PossibleValuesForManagedCertificateDomainControlValidation() []string

func ValidateManagedCertificateID

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

ValidateManagedCertificateID checks that 'input' can be parsed as a Managed Certificate ID

func ValidateManagedEnvironmentID

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

ValidateManagedEnvironmentID checks that 'input' can be parsed as a Managed Environment ID

Types

type CertificateProvisioningState

type CertificateProvisioningState string
const (
	CertificateProvisioningStateCanceled     CertificateProvisioningState = "Canceled"
	CertificateProvisioningStateDeleteFailed CertificateProvisioningState = "DeleteFailed"
	CertificateProvisioningStateFailed       CertificateProvisioningState = "Failed"
	CertificateProvisioningStatePending      CertificateProvisioningState = "Pending"
	CertificateProvisioningStateSucceeded    CertificateProvisioningState = "Succeeded"
)

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []ManagedCertificate
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

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

type ManagedCertificate

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

type ManagedCertificateDomainControlValidation

type ManagedCertificateDomainControlValidation string
const (
	ManagedCertificateDomainControlValidationCNAME ManagedCertificateDomainControlValidation = "CNAME"
	ManagedCertificateDomainControlValidationHTTP  ManagedCertificateDomainControlValidation = "HTTP"
	ManagedCertificateDomainControlValidationTXT   ManagedCertificateDomainControlValidation = "TXT"
)

type ManagedCertificateId

type ManagedCertificateId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
	ManagedCertificateName string
}

ManagedCertificateId is a struct representing the Resource ID for a Managed Certificate

func NewManagedCertificateID

func NewManagedCertificateID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, managedCertificateName string) ManagedCertificateId

NewManagedCertificateID returns a new ManagedCertificateId struct

func ParseManagedCertificateID

func ParseManagedCertificateID(input string) (*ManagedCertificateId, error)

ParseManagedCertificateID parses 'input' into a ManagedCertificateId

func ParseManagedCertificateIDInsensitively

func ParseManagedCertificateIDInsensitively(input string) (*ManagedCertificateId, error)

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

func (ManagedCertificateId) ID

func (id ManagedCertificateId) ID() string

ID returns the formatted Managed Certificate ID

func (ManagedCertificateId) Segments

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

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

func (ManagedCertificateId) String

func (id ManagedCertificateId) String() string

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

type ManagedCertificateOperationPredicate

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

func (ManagedCertificateOperationPredicate) Matches

type ManagedCertificatePatch

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

type ManagedCertificateProperties

type ManagedCertificateProperties struct {
	DomainControlValidation *ManagedCertificateDomainControlValidation `json:"domainControlValidation,omitempty"`
	Error                   *string                                    `json:"error,omitempty"`
	ProvisioningState       *CertificateProvisioningState              `json:"provisioningState,omitempty"`
	SubjectName             *string                                    `json:"subjectName,omitempty"`
	ValidationToken         *string                                    `json:"validationToken,omitempty"`
}

type ManagedCertificatesClient

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

func NewManagedCertificatesClientWithBaseURI

func NewManagedCertificatesClientWithBaseURI(endpoint string) ManagedCertificatesClient

func (ManagedCertificatesClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagedCertificatesClient) CreateOrUpdateThenPoll

func (c ManagedCertificatesClient) CreateOrUpdateThenPoll(ctx context.Context, id ManagedCertificateId, input ManagedCertificate) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ManagedCertificatesClient) Delete

Delete ...

func (ManagedCertificatesClient) Get

Get ...

func (ManagedCertificatesClient) List

List ...

func (ManagedCertificatesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ManagedCertificatesClient) ListCompleteMatchingPredicate

func (c ManagedCertificatesClient) ListCompleteMatchingPredicate(ctx context.Context, id ManagedEnvironmentId, predicate ManagedCertificateOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ManagedCertificatesClient) Update

Update ...

type ManagedEnvironmentId

type ManagedEnvironmentId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
}

ManagedEnvironmentId is a struct representing the Resource ID for a Managed Environment

func NewManagedEnvironmentID

func NewManagedEnvironmentID(subscriptionId string, resourceGroupName string, managedEnvironmentName string) ManagedEnvironmentId

NewManagedEnvironmentID returns a new ManagedEnvironmentId struct

func ParseManagedEnvironmentID

func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error)

ParseManagedEnvironmentID parses 'input' into a ManagedEnvironmentId

func ParseManagedEnvironmentIDInsensitively

func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId, error)

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

func (ManagedEnvironmentId) ID

func (id ManagedEnvironmentId) ID() string

ID returns the formatted Managed Environment ID

func (ManagedEnvironmentId) Segments

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

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

func (ManagedEnvironmentId) String

func (id ManagedEnvironmentId) String() string

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ManagedCertificate
}

Jump to

Keyboard shortcuts

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