scopemaps

package
v0.20240903.1111904 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps Documentation

The scopemaps SDK allows for interaction with the Azure Resource Manager Service containerregistry (API Version 2023-06-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/containerregistry/2023-06-01-preview/scopemaps"

Client Initialization

client := scopemaps.NewScopeMapsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ScopeMapsClient.Create

ctx := context.TODO()
id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue")

payload := scopemaps.ScopeMap{
	// ...
}


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

Example Usage: ScopeMapsClient.Delete

ctx := context.TODO()
id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue")

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

Example Usage: ScopeMapsClient.Get

ctx := context.TODO()
id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue")

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

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

// 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: ScopeMapsClient.Update

ctx := context.TODO()
id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue")

payload := scopemaps.ScopeMapUpdateParameters{
	// ...
}


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 PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateRegistryID

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

ValidateRegistryID checks that 'input' can be parsed as a Registry ID

func ValidateScopeMapID

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

ValidateScopeMapID checks that 'input' can be parsed as a Scope Map ID

Types

type CreateOperationResponse

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

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        *ScopeMap
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ScopeMap
}

type ListCustomPager added in v0.20240628.1153531

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ScopeMap
}

type ProvisioningState

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

func (*ProvisioningState) UnmarshalJSON

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

type RegistryId

type RegistryId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
}

RegistryId is a struct representing the Resource ID for a Registry

func NewRegistryID

func NewRegistryID(subscriptionId string, resourceGroupName string, registryName string) RegistryId

NewRegistryID returns a new RegistryId struct

func ParseRegistryID

func ParseRegistryID(input string) (*RegistryId, error)

ParseRegistryID parses 'input' into a RegistryId

func ParseRegistryIDInsensitively

func ParseRegistryIDInsensitively(input string) (*RegistryId, error)

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

func (*RegistryId) FromParseResult

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

func (RegistryId) ID

func (id RegistryId) ID() string

ID returns the formatted Registry ID

func (RegistryId) Segments

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

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

func (RegistryId) String

func (id RegistryId) String() string

String returns a human-readable description of this Registry ID

type ScopeMap

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

type ScopeMapId

type ScopeMapId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	ScopeMapName      string
}

ScopeMapId is a struct representing the Resource ID for a Scope Map

func NewScopeMapID

func NewScopeMapID(subscriptionId string, resourceGroupName string, registryName string, scopeMapName string) ScopeMapId

NewScopeMapID returns a new ScopeMapId struct

func ParseScopeMapID

func ParseScopeMapID(input string) (*ScopeMapId, error)

ParseScopeMapID parses 'input' into a ScopeMapId

func ParseScopeMapIDInsensitively

func ParseScopeMapIDInsensitively(input string) (*ScopeMapId, error)

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

func (*ScopeMapId) FromParseResult

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

func (ScopeMapId) ID

func (id ScopeMapId) ID() string

ID returns the formatted Scope Map ID

func (ScopeMapId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Scope Map ID

func (ScopeMapId) String

func (id ScopeMapId) String() string

String returns a human-readable description of this Scope Map ID

type ScopeMapOperationPredicate

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

func (ScopeMapOperationPredicate) Matches

func (p ScopeMapOperationPredicate) Matches(input ScopeMap) bool

type ScopeMapProperties

type ScopeMapProperties struct {
	Actions           []string           `json:"actions"`
	CreationDate      *string            `json:"creationDate,omitempty"`
	Description       *string            `json:"description,omitempty"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	Type              *string            `json:"type,omitempty"`
}

func (*ScopeMapProperties) GetCreationDateAsTime

func (o *ScopeMapProperties) GetCreationDateAsTime() (*time.Time, error)

func (*ScopeMapProperties) SetCreationDateAsTime

func (o *ScopeMapProperties) SetCreationDateAsTime(input time.Time)

type ScopeMapPropertiesUpdateParameters

type ScopeMapPropertiesUpdateParameters struct {
	Actions     *[]string `json:"actions,omitempty"`
	Description *string   `json:"description,omitempty"`
}

type ScopeMapUpdateParameters

type ScopeMapUpdateParameters struct {
	Properties *ScopeMapPropertiesUpdateParameters `json:"properties,omitempty"`
}

type ScopeMapsClient

type ScopeMapsClient struct {
	Client *resourcemanager.Client
}

func NewScopeMapsClientWithBaseURI

func NewScopeMapsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScopeMapsClient, error)

func (ScopeMapsClient) Create

func (c ScopeMapsClient) Create(ctx context.Context, id ScopeMapId, input ScopeMap) (result CreateOperationResponse, err error)

Create ...

func (ScopeMapsClient) CreateThenPoll

func (c ScopeMapsClient) CreateThenPoll(ctx context.Context, id ScopeMapId, input ScopeMap) error

CreateThenPoll performs Create then polls until it's completed

func (ScopeMapsClient) Delete

func (c ScopeMapsClient) Delete(ctx context.Context, id ScopeMapId) (result DeleteOperationResponse, err error)

Delete ...

func (ScopeMapsClient) DeleteThenPoll

func (c ScopeMapsClient) DeleteThenPoll(ctx context.Context, id ScopeMapId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ScopeMapsClient) Get

func (c ScopeMapsClient) Get(ctx context.Context, id ScopeMapId) (result GetOperationResponse, err error)

Get ...

func (ScopeMapsClient) List

func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error)

List ...

func (ScopeMapsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ScopeMapsClient) ListCompleteMatchingPredicate

func (c ScopeMapsClient) ListCompleteMatchingPredicate(ctx context.Context, id RegistryId, predicate ScopeMapOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ScopeMapsClient) Update

Update ...

func (ScopeMapsClient) UpdateThenPoll

func (c ScopeMapsClient) UpdateThenPoll(ctx context.Context, id ScopeMapId, input ScopeMapUpdateParameters) error

UpdateThenPoll performs Update then polls until it's completed

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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