README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2019-06-01/registrationassignments
Documentation
The registrationassignments
SDK allows for interaction with the Azure Resource Manager Service managedservices
(API Version 2019-06-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/managedservices/2019-06-01/registrationassignments"
Client Initialization
client := registrationassignments.NewRegistrationAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: RegistrationAssignmentsClient.CreateOrUpdate
ctx := context.TODO()
id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentIdValue")
payload := registrationassignments.RegistrationAssignment{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: RegistrationAssignmentsClient.Delete
ctx := context.TODO()
id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentIdValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: RegistrationAssignmentsClient.Get
ctx := context.TODO()
id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentIdValue")
read, err := client.Get(ctx, id, registrationassignments.DefaultGetOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: RegistrationAssignmentsClient.List
ctx := context.TODO()
id := registrationassignments.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")
// alternatively `client.List(ctx, id, registrationassignments.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, registrationassignments.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateScopedRegistrationAssignmentID(input interface{}, key string) (warnings []string, errors []error)
- type Authorization
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type Plan
- type ProvisioningState
- type RegistrationAssignment
- type RegistrationAssignmentOperationPredicate
- type RegistrationAssignmentProperties
- type RegistrationAssignmentPropertiesRegistrationDefinition
- type RegistrationAssignmentPropertiesRegistrationDefinitionProperties
- type RegistrationAssignmentsClient
- func (c RegistrationAssignmentsClient) CreateOrUpdate(ctx context.Context, id ScopedRegistrationAssignmentId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c RegistrationAssignmentsClient) CreateOrUpdateThenPoll(ctx context.Context, id ScopedRegistrationAssignmentId, ...) error
- func (c RegistrationAssignmentsClient) Delete(ctx context.Context, id ScopedRegistrationAssignmentId) (result DeleteOperationResponse, err error)
- func (c RegistrationAssignmentsClient) DeleteThenPoll(ctx context.Context, id ScopedRegistrationAssignmentId) error
- func (c RegistrationAssignmentsClient) Get(ctx context.Context, id ScopedRegistrationAssignmentId, ...) (result GetOperationResponse, err error)
- func (c RegistrationAssignmentsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c RegistrationAssignmentsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
- func (c RegistrationAssignmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type ScopedRegistrationAssignmentId
- func NewScopedRegistrationAssignmentID(scope string, registrationAssignmentId string) ScopedRegistrationAssignmentId
- func ParseScopedRegistrationAssignmentID(input string) (*ScopedRegistrationAssignmentId, error)
- func ParseScopedRegistrationAssignmentIDInsensitively(input string) (*ScopedRegistrationAssignmentId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateScopedRegistrationAssignmentID ¶
func ValidateScopedRegistrationAssignmentID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedRegistrationAssignmentID checks that 'input' can be parsed as a Scoped Registration Assignment ID
Types ¶
type Authorization ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationOptions ¶
type GetOperationOptions struct {
ExpandRegistrationDefinition *bool
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *RegistrationAssignment }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []RegistrationAssignment
}
type ListOperationOptions ¶
type ListOperationOptions struct {
ExpandRegistrationDefinition *bool
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]RegistrationAssignment // 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 ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" ProvisioningStateReady ProvisioningState = "Ready" ProvisioningStateRunning ProvisioningState = "Running" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
type RegistrationAssignment ¶
type RegistrationAssignment struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RegistrationAssignmentProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type RegistrationAssignmentOperationPredicate ¶
func (RegistrationAssignmentOperationPredicate) Matches ¶
func (p RegistrationAssignmentOperationPredicate) Matches(input RegistrationAssignment) bool
type RegistrationAssignmentProperties ¶
type RegistrationAssignmentProperties struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RegistrationDefinition *RegistrationAssignmentPropertiesRegistrationDefinition `json:"registrationDefinition,omitempty"` RegistrationDefinitionId string `json:"registrationDefinitionId"` }
type RegistrationAssignmentPropertiesRegistrationDefinition ¶
type RegistrationAssignmentPropertiesRegistrationDefinition struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Plan *Plan `json:"plan,omitempty"` Properties *RegistrationAssignmentPropertiesRegistrationDefinitionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type RegistrationAssignmentPropertiesRegistrationDefinitionProperties ¶
type RegistrationAssignmentPropertiesRegistrationDefinitionProperties struct { Authorizations *[]Authorization `json:"authorizations,omitempty"` Description *string `json:"description,omitempty"` ManagedByTenantId *string `json:"managedByTenantId,omitempty"` ManagedByTenantName *string `json:"managedByTenantName,omitempty"` ManageeTenantId *string `json:"manageeTenantId,omitempty"` ManageeTenantName *string `json:"manageeTenantName,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RegistrationDefinitionName *string `json:"registrationDefinitionName,omitempty"` }
type RegistrationAssignmentsClient ¶
type RegistrationAssignmentsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewRegistrationAssignmentsClientWithBaseURI ¶
func NewRegistrationAssignmentsClientWithBaseURI(endpoint string) RegistrationAssignmentsClient
func (RegistrationAssignmentsClient) CreateOrUpdate ¶
func (c RegistrationAssignmentsClient) CreateOrUpdate(ctx context.Context, id ScopedRegistrationAssignmentId, input RegistrationAssignment) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (RegistrationAssignmentsClient) CreateOrUpdateThenPoll ¶
func (c RegistrationAssignmentsClient) CreateOrUpdateThenPoll(ctx context.Context, id ScopedRegistrationAssignmentId, input RegistrationAssignment) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (RegistrationAssignmentsClient) Delete ¶
func (c RegistrationAssignmentsClient) Delete(ctx context.Context, id ScopedRegistrationAssignmentId) (result DeleteOperationResponse, err error)
Delete ...
func (RegistrationAssignmentsClient) DeleteThenPoll ¶
func (c RegistrationAssignmentsClient) DeleteThenPoll(ctx context.Context, id ScopedRegistrationAssignmentId) error
DeleteThenPoll performs Delete then polls until it's completed
func (RegistrationAssignmentsClient) Get ¶
func (c RegistrationAssignmentsClient) Get(ctx context.Context, id ScopedRegistrationAssignmentId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (RegistrationAssignmentsClient) List ¶
func (c RegistrationAssignmentsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (RegistrationAssignmentsClient) ListComplete ¶
func (c RegistrationAssignmentsClient) ListComplete(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (RegistrationAssignmentsClient) ListCompleteMatchingPredicate ¶
func (c RegistrationAssignmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListOperationOptions, predicate RegistrationAssignmentOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ScopedRegistrationAssignmentId ¶
ScopedRegistrationAssignmentId is a struct representing the Resource ID for a Scoped Registration Assignment
func NewScopedRegistrationAssignmentID ¶
func NewScopedRegistrationAssignmentID(scope string, registrationAssignmentId string) ScopedRegistrationAssignmentId
NewScopedRegistrationAssignmentID returns a new ScopedRegistrationAssignmentId struct
func ParseScopedRegistrationAssignmentID ¶
func ParseScopedRegistrationAssignmentID(input string) (*ScopedRegistrationAssignmentId, error)
ParseScopedRegistrationAssignmentID parses 'input' into a ScopedRegistrationAssignmentId
func ParseScopedRegistrationAssignmentIDInsensitively ¶
func ParseScopedRegistrationAssignmentIDInsensitively(input string) (*ScopedRegistrationAssignmentId, error)
ParseScopedRegistrationAssignmentIDInsensitively parses 'input' case-insensitively into a ScopedRegistrationAssignmentId note: this method should only be used for API response data and not user input
func (ScopedRegistrationAssignmentId) ID ¶
func (id ScopedRegistrationAssignmentId) ID() string
ID returns the formatted Scoped Registration Assignment ID
func (ScopedRegistrationAssignmentId) Segments ¶
func (id ScopedRegistrationAssignmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Registration Assignment ID
func (ScopedRegistrationAssignmentId) String ¶
func (id ScopedRegistrationAssignmentId) String() string
String returns a human-readable description of this Scoped Registration Assignment ID
Source Files ¶
- client.go
- constants.go
- id_scopedregistrationassignment.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- model_authorization.go
- model_plan.go
- model_registrationassignment.go
- model_registrationassignmentproperties.go
- model_registrationassignmentpropertiesregistrationdefinition.go
- model_registrationassignmentpropertiesregistrationdefinitionproperties.go
- predicates.go
- version.go