README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation
Documentation
The managementassociation
SDK allows for interaction with Azure Resource Manager operationsmanagement
(API Version 2015-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation"
Client Initialization
client := managementassociation.NewManagementAssociationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ManagementAssociationClient.CreateOrUpdate
ctx := context.TODO()
id := managementassociation.NewScopedManagementAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "managementAssociationName")
payload := managementassociation.ManagementAssociation{
// ...
}
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: ManagementAssociationClient.Delete
ctx := context.TODO()
id := managementassociation.NewScopedManagementAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "managementAssociationName")
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: ManagementAssociationClient.Get
ctx := context.TODO()
id := managementassociation.NewScopedManagementAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "managementAssociationName")
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: ManagementAssociationClient.ListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
read, err := client.ListBySubscription(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateScopedManagementAssociationID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListBySubscriptionOperationResponse
- type ManagementAssociation
- type ManagementAssociationClient
- func (c ManagementAssociationClient) CreateOrUpdate(ctx context.Context, id ScopedManagementAssociationId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ManagementAssociationClient) Delete(ctx context.Context, id ScopedManagementAssociationId) (result DeleteOperationResponse, err error)
- func (c ManagementAssociationClient) Get(ctx context.Context, id ScopedManagementAssociationId) (result GetOperationResponse, err error)
- func (c ManagementAssociationClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- type ManagementAssociationProperties
- type ManagementAssociationPropertiesList
- type ScopedManagementAssociationId
- func NewScopedManagementAssociationID(scope string, managementAssociationName string) ScopedManagementAssociationId
- func ParseScopedManagementAssociationID(input string) (*ScopedManagementAssociationId, error)
- func ParseScopedManagementAssociationIDInsensitively(input string) (*ScopedManagementAssociationId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateScopedManagementAssociationID ¶
func ValidateScopedManagementAssociationID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedManagementAssociationID checks that 'input' can be parsed as a Scoped Management Association ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ManagementAssociation }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ManagementAssociation }
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ManagementAssociationPropertiesList }
type ManagementAssociation ¶
type ManagementAssociation struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ManagementAssociationProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ManagementAssociationClient ¶
type ManagementAssociationClient struct {
Client *resourcemanager.Client
}
func NewManagementAssociationClientWithBaseURI ¶
func NewManagementAssociationClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementAssociationClient, error)
func (ManagementAssociationClient) CreateOrUpdate ¶
func (c ManagementAssociationClient) CreateOrUpdate(ctx context.Context, id ScopedManagementAssociationId, input ManagementAssociation) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ManagementAssociationClient) Delete ¶
func (c ManagementAssociationClient) Delete(ctx context.Context, id ScopedManagementAssociationId) (result DeleteOperationResponse, err error)
Delete ...
func (ManagementAssociationClient) Get ¶
func (c ManagementAssociationClient) Get(ctx context.Context, id ScopedManagementAssociationId) (result GetOperationResponse, err error)
Get ...
func (ManagementAssociationClient) ListBySubscription ¶
func (c ManagementAssociationClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
type ManagementAssociationProperties ¶
type ManagementAssociationProperties struct {
ApplicationId string `json:"applicationId"`
}
type ManagementAssociationPropertiesList ¶
type ManagementAssociationPropertiesList struct {
Value *[]ManagementAssociation `json:"value,omitempty"`
}
type ScopedManagementAssociationId ¶
ScopedManagementAssociationId is a struct representing the Resource ID for a Scoped Management Association
func NewScopedManagementAssociationID ¶
func NewScopedManagementAssociationID(scope string, managementAssociationName string) ScopedManagementAssociationId
NewScopedManagementAssociationID returns a new ScopedManagementAssociationId struct
func ParseScopedManagementAssociationID ¶
func ParseScopedManagementAssociationID(input string) (*ScopedManagementAssociationId, error)
ParseScopedManagementAssociationID parses 'input' into a ScopedManagementAssociationId
func ParseScopedManagementAssociationIDInsensitively ¶
func ParseScopedManagementAssociationIDInsensitively(input string) (*ScopedManagementAssociationId, error)
ParseScopedManagementAssociationIDInsensitively parses 'input' case-insensitively into a ScopedManagementAssociationId note: this method should only be used for API response data and not user input
func (*ScopedManagementAssociationId) FromParseResult ¶
func (id *ScopedManagementAssociationId) FromParseResult(input resourceids.ParseResult) error
func (ScopedManagementAssociationId) ID ¶
func (id ScopedManagementAssociationId) ID() string
ID returns the formatted Scoped Management Association ID
func (ScopedManagementAssociationId) Segments ¶
func (id ScopedManagementAssociationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Management Association ID
func (ScopedManagementAssociationId) String ¶
func (id ScopedManagementAssociationId) String() string
String returns a human-readable description of this Scoped Management Association ID