codesigningaccounts

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts Documentation

The codesigningaccounts SDK allows for interaction with Azure Resource Manager codesigning (API Version 2024-09-30-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts"

Client Initialization

client := codesigningaccounts.NewCodeSigningAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CodeSigningAccountsClient.CheckNameAvailability

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

payload := codesigningaccounts.CheckNameAvailability{
	// ...
}


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

Example Usage: CodeSigningAccountsClient.Create

ctx := context.TODO()
id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName")

payload := codesigningaccounts.CodeSigningAccount{
	// ...
}


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

Example Usage: CodeSigningAccountsClient.Delete

ctx := context.TODO()
id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName")

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

Example Usage: CodeSigningAccountsClient.Get

ctx := context.TODO()
id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName")

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: CodeSigningAccountsClient.ListByResourceGroup

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

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

Example Usage: CodeSigningAccountsClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: CodeSigningAccountsClient.Update

ctx := context.TODO()
id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName")

payload := codesigningaccounts.CodeSigningAccountPatch{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForNameUnavailabilityReason

func PossibleValuesForNameUnavailabilityReason() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func ValidateCodeSigningAccountID

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

ValidateCodeSigningAccountID checks that 'input' can be parsed as a Code Signing Account ID

Types

type AccountSku

type AccountSku struct {
	Name SkuName `json:"name"`
}

type AccountSkuPatch

type AccountSkuPatch struct {
	Name *SkuName `json:"name,omitempty"`
}

type CheckNameAvailability

type CheckNameAvailability struct {
	Name string `json:"name"`
}

type CheckNameAvailabilityOperationResponse

type CheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CheckNameAvailabilityResult
}

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	Message       *string                   `json:"message,omitempty"`
	NameAvailable *bool                     `json:"nameAvailable,omitempty"`
	Reason        *NameUnavailabilityReason `json:"reason,omitempty"`
}

type CodeSigningAccount

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

type CodeSigningAccountId

type CodeSigningAccountId struct {
	SubscriptionId         string
	ResourceGroupName      string
	CodeSigningAccountName string
}

CodeSigningAccountId is a struct representing the Resource ID for a Code Signing Account

func NewCodeSigningAccountID

func NewCodeSigningAccountID(subscriptionId string, resourceGroupName string, codeSigningAccountName string) CodeSigningAccountId

NewCodeSigningAccountID returns a new CodeSigningAccountId struct

func ParseCodeSigningAccountID

func ParseCodeSigningAccountID(input string) (*CodeSigningAccountId, error)

ParseCodeSigningAccountID parses 'input' into a CodeSigningAccountId

func ParseCodeSigningAccountIDInsensitively

func ParseCodeSigningAccountIDInsensitively(input string) (*CodeSigningAccountId, error)

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

func (*CodeSigningAccountId) FromParseResult

func (id *CodeSigningAccountId) FromParseResult(input resourceids.ParseResult) error

func (CodeSigningAccountId) ID

func (id CodeSigningAccountId) ID() string

ID returns the formatted Code Signing Account ID

func (CodeSigningAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Code Signing Account ID

func (CodeSigningAccountId) String

func (id CodeSigningAccountId) String() string

String returns a human-readable description of this Code Signing Account ID

type CodeSigningAccountOperationPredicate

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

func (CodeSigningAccountOperationPredicate) Matches

type CodeSigningAccountPatch

type CodeSigningAccountPatch struct {
	Properties *CodeSigningAccountPatchProperties `json:"properties,omitempty"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
}

type CodeSigningAccountPatchProperties

type CodeSigningAccountPatchProperties struct {
	Sku *AccountSkuPatch `json:"sku,omitempty"`
}

type CodeSigningAccountProperties

type CodeSigningAccountProperties struct {
	AccountUri        *string            `json:"accountUri,omitempty"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	Sku               *AccountSku        `json:"sku,omitempty"`
}

type CodeSigningAccountsClient

type CodeSigningAccountsClient struct {
	Client *resourcemanager.Client
}

func NewCodeSigningAccountsClientWithBaseURI

func NewCodeSigningAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*CodeSigningAccountsClient, error)

func (CodeSigningAccountsClient) CheckNameAvailability

CheckNameAvailability ...

func (CodeSigningAccountsClient) Create

Create ...

func (CodeSigningAccountsClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (CodeSigningAccountsClient) Delete

Delete ...

func (CodeSigningAccountsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (CodeSigningAccountsClient) Get

Get ...

func (CodeSigningAccountsClient) ListByResourceGroup

ListByResourceGroup ...

func (CodeSigningAccountsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (CodeSigningAccountsClient) ListByResourceGroupCompleteMatchingPredicate

func (c CodeSigningAccountsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CodeSigningAccountOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CodeSigningAccountsClient) ListBySubscription

ListBySubscription ...

func (CodeSigningAccountsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (CodeSigningAccountsClient) ListBySubscriptionCompleteMatchingPredicate

func (c CodeSigningAccountsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate CodeSigningAccountOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CodeSigningAccountsClient) Update

Update ...

func (CodeSigningAccountsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CodeSigningAccount
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CodeSigningAccount
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []CodeSigningAccount
}

type ListByResourceGroupCustomPager

type ListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CodeSigningAccount
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []CodeSigningAccount
}

type ListBySubscriptionCustomPager

type ListBySubscriptionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CodeSigningAccount
}

type NameUnavailabilityReason

type NameUnavailabilityReason string
const (
	NameUnavailabilityReasonAccountNameInvalid NameUnavailabilityReason = "AccountNameInvalid"
	NameUnavailabilityReasonAlreadyExists      NameUnavailabilityReason = "AlreadyExists"
)

func (*NameUnavailabilityReason) UnmarshalJSON

func (s *NameUnavailabilityReason) UnmarshalJSON(bytes []byte) error

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted  ProvisioningState = "Accepted"
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type SkuName

type SkuName string
const (
	SkuNameBasic   SkuName = "Basic"
	SkuNamePremium SkuName = "Premium"
)

func (*SkuName) UnmarshalJSON

func (s *SkuName) UnmarshalJSON(bytes []byte) error

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CodeSigningAccount
}

Jump to

Keyboard shortcuts

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