certificates

package
v0.20231023.1051734 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2022-11-01-preview/certificates Documentation

The certificates SDK allows for interaction with the Azure Resource Manager Service containerapps (API Version 2022-11-01-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/2022-11-01-preview/certificates"

Client Initialization

client := certificates.NewCertificatesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CertificatesClient.ConnectedEnvironmentsCertificatesCreateOrUpdate

ctx := context.TODO()
id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue")

payload := certificates.Certificate{
	// ...
}


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

Example Usage: CertificatesClient.ConnectedEnvironmentsCertificatesDelete

ctx := context.TODO()
id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue")

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

Example Usage: CertificatesClient.ConnectedEnvironmentsCertificatesGet

ctx := context.TODO()
id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue")

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

Example Usage: CertificatesClient.ConnectedEnvironmentsCertificatesList

ctx := context.TODO()
id := certificates.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue")

// alternatively `client.ConnectedEnvironmentsCertificatesList(ctx, id)` can be used to do batched pagination
items, err := client.ConnectedEnvironmentsCertificatesListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: CertificatesClient.ConnectedEnvironmentsCertificatesUpdate

ctx := context.TODO()
id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue")

payload := certificates.CertificatePatch{
	// ...
}


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

Example Usage: CertificatesClient.CreateOrUpdate

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

payload := certificates.Certificate{
	// ...
}


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

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

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

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

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

ctx := context.TODO()
id := certificates.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: CertificatesClient.Update

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

payload := certificates.CertificatePatch{
	// ...
}


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 ValidateCertificateID

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

ValidateCertificateID checks that 'input' can be parsed as a Certificate ID

func ValidateConnectedEnvironmentCertificateID

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

ValidateConnectedEnvironmentCertificateID checks that 'input' can be parsed as a Connected Environment Certificate ID

func ValidateConnectedEnvironmentID

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

ValidateConnectedEnvironmentID checks that 'input' can be parsed as a Connected Environment 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 Certificate

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

type CertificateId

type CertificateId struct {
	SubscriptionId         string
	ResourceGroupName      string
	ManagedEnvironmentName string
	CertificateName        string
}

CertificateId is a struct representing the Resource ID for a Certificate

func NewCertificateID

func NewCertificateID(subscriptionId string, resourceGroupName string, managedEnvironmentName string, certificateName string) CertificateId

NewCertificateID returns a new CertificateId struct

func ParseCertificateID

func ParseCertificateID(input string) (*CertificateId, error)

ParseCertificateID parses 'input' into a CertificateId

func ParseCertificateIDInsensitively

func ParseCertificateIDInsensitively(input string) (*CertificateId, error)

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

func (CertificateId) ID

func (id CertificateId) ID() string

ID returns the formatted Certificate ID

func (CertificateId) Segments

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

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

func (CertificateId) String

func (id CertificateId) String() string

String returns a human-readable description of this Certificate ID

type CertificateOperationPredicate

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

func (CertificateOperationPredicate) Matches

type CertificatePatch

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

type CertificateProperties

type CertificateProperties struct {
	ExpirationDate          *string                       `json:"expirationDate,omitempty"`
	IssueDate               *string                       `json:"issueDate,omitempty"`
	Issuer                  *string                       `json:"issuer,omitempty"`
	Password                *string                       `json:"password,omitempty"`
	ProvisioningState       *CertificateProvisioningState `json:"provisioningState,omitempty"`
	PublicKeyHash           *string                       `json:"publicKeyHash,omitempty"`
	SubjectAlternativeNames *[]string                     `json:"subjectAlternativeNames,omitempty"`
	SubjectName             *string                       `json:"subjectName,omitempty"`
	Thumbprint              *string                       `json:"thumbprint,omitempty"`
	Valid                   *bool                         `json:"valid,omitempty"`
	Value                   *string                       `json:"value,omitempty"`
}

func (*CertificateProperties) GetExpirationDateAsTime

func (o *CertificateProperties) GetExpirationDateAsTime() (*time.Time, error)

func (*CertificateProperties) GetIssueDateAsTime

func (o *CertificateProperties) GetIssueDateAsTime() (*time.Time, error)

func (*CertificateProperties) SetExpirationDateAsTime

func (o *CertificateProperties) SetExpirationDateAsTime(input time.Time)

func (*CertificateProperties) SetIssueDateAsTime

func (o *CertificateProperties) SetIssueDateAsTime(input time.Time)

type CertificateProvisioningState

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

type CertificatesClient

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

func NewCertificatesClientWithBaseURI

func NewCertificatesClientWithBaseURI(endpoint string) CertificatesClient

func (CertificatesClient) ConnectedEnvironmentsCertificatesCreateOrUpdate

ConnectedEnvironmentsCertificatesCreateOrUpdate ...

func (CertificatesClient) ConnectedEnvironmentsCertificatesDelete

ConnectedEnvironmentsCertificatesDelete ...

func (CertificatesClient) ConnectedEnvironmentsCertificatesGet

ConnectedEnvironmentsCertificatesGet ...

func (CertificatesClient) ConnectedEnvironmentsCertificatesList

ConnectedEnvironmentsCertificatesList ...

func (CertificatesClient) ConnectedEnvironmentsCertificatesListComplete

func (c CertificatesClient) ConnectedEnvironmentsCertificatesListComplete(ctx context.Context, id ConnectedEnvironmentId) (ConnectedEnvironmentsCertificatesListCompleteResult, error)

ConnectedEnvironmentsCertificatesListComplete retrieves all of the results into a single object

func (CertificatesClient) ConnectedEnvironmentsCertificatesListCompleteMatchingPredicate

func (c CertificatesClient) ConnectedEnvironmentsCertificatesListCompleteMatchingPredicate(ctx context.Context, id ConnectedEnvironmentId, predicate CertificateOperationPredicate) (resp ConnectedEnvironmentsCertificatesListCompleteResult, err error)

ConnectedEnvironmentsCertificatesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (CertificatesClient) ConnectedEnvironmentsCertificatesUpdate

ConnectedEnvironmentsCertificatesUpdate ...

func (CertificatesClient) CreateOrUpdate

func (c CertificatesClient) CreateOrUpdate(ctx context.Context, id CertificateId, input Certificate) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (CertificatesClient) Delete

Delete ...

func (CertificatesClient) Get

Get ...

func (CertificatesClient) List

List ...

func (CertificatesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (CertificatesClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (CertificatesClient) Update

Update ...

type ConnectedEnvironmentCertificateId

type ConnectedEnvironmentCertificateId struct {
	SubscriptionId           string
	ResourceGroupName        string
	ConnectedEnvironmentName string
	CertificateName          string
}

ConnectedEnvironmentCertificateId is a struct representing the Resource ID for a Connected Environment Certificate

func NewConnectedEnvironmentCertificateID

func NewConnectedEnvironmentCertificateID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string, certificateName string) ConnectedEnvironmentCertificateId

NewConnectedEnvironmentCertificateID returns a new ConnectedEnvironmentCertificateId struct

func ParseConnectedEnvironmentCertificateID

func ParseConnectedEnvironmentCertificateID(input string) (*ConnectedEnvironmentCertificateId, error)

ParseConnectedEnvironmentCertificateID parses 'input' into a ConnectedEnvironmentCertificateId

func ParseConnectedEnvironmentCertificateIDInsensitively

func ParseConnectedEnvironmentCertificateIDInsensitively(input string) (*ConnectedEnvironmentCertificateId, error)

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

func (ConnectedEnvironmentCertificateId) ID

ID returns the formatted Connected Environment Certificate ID

func (ConnectedEnvironmentCertificateId) Segments

Segments returns a slice of Resource ID Segments which comprise this Connected Environment Certificate ID

func (ConnectedEnvironmentCertificateId) String

String returns a human-readable description of this Connected Environment Certificate ID

type ConnectedEnvironmentId

type ConnectedEnvironmentId struct {
	SubscriptionId           string
	ResourceGroupName        string
	ConnectedEnvironmentName string
}

ConnectedEnvironmentId is a struct representing the Resource ID for a Connected Environment

func NewConnectedEnvironmentID

func NewConnectedEnvironmentID(subscriptionId string, resourceGroupName string, connectedEnvironmentName string) ConnectedEnvironmentId

NewConnectedEnvironmentID returns a new ConnectedEnvironmentId struct

func ParseConnectedEnvironmentID

func ParseConnectedEnvironmentID(input string) (*ConnectedEnvironmentId, error)

ParseConnectedEnvironmentID parses 'input' into a ConnectedEnvironmentId

func ParseConnectedEnvironmentIDInsensitively

func ParseConnectedEnvironmentIDInsensitively(input string) (*ConnectedEnvironmentId, error)

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

func (ConnectedEnvironmentId) ID

ID returns the formatted Connected Environment ID

func (ConnectedEnvironmentId) Segments

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

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

func (ConnectedEnvironmentId) String

func (id ConnectedEnvironmentId) String() string

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

type ConnectedEnvironmentsCertificatesCreateOrUpdateOperationResponse

type ConnectedEnvironmentsCertificatesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Certificate
}

type ConnectedEnvironmentsCertificatesDeleteOperationResponse

type ConnectedEnvironmentsCertificatesDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type ConnectedEnvironmentsCertificatesGetOperationResponse

type ConnectedEnvironmentsCertificatesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Certificate
}

type ConnectedEnvironmentsCertificatesListCompleteResult

type ConnectedEnvironmentsCertificatesListCompleteResult struct {
	Items []Certificate
}

type ConnectedEnvironmentsCertificatesListOperationResponse

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

func (ConnectedEnvironmentsCertificatesListOperationResponse) HasMore

func (ConnectedEnvironmentsCertificatesListOperationResponse) LoadMore

type ConnectedEnvironmentsCertificatesUpdateOperationResponse

type ConnectedEnvironmentsCertificatesUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Certificate
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Certificate
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []Certificate
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Certificate
	// 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 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        *Certificate
}

Jump to

Keyboard shortcuts

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