README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementassociation
Documentation
The managementassociation
SDK allows for interaction with the Azure Resource Manager Service 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-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.NewManagementAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue", "managementAssociationValue")
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.NewManagementAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue", "managementAssociationValue")
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.NewManagementAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue", "managementAssociationValue")
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 := managementassociation.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 ValidateManagementAssociationID(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 ManagementAssociationId, input ManagementAssociation) (result CreateOrUpdateOperationResponse, err error)
- func (c ManagementAssociationClient) Delete(ctx context.Context, id ManagementAssociationId) (result DeleteOperationResponse, err error)
- func (c ManagementAssociationClient) Get(ctx context.Context, id ManagementAssociationId) (result GetOperationResponse, err error)
- func (c ManagementAssociationClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- type ManagementAssociationId
- func NewManagementAssociationID(subscriptionId string, resourceGroupName string, providerName string, ...) ManagementAssociationId
- func ParseManagementAssociationID(input string) (*ManagementAssociationId, error)
- func ParseManagementAssociationIDInsensitively(input string) (*ManagementAssociationId, error)
- type ManagementAssociationProperties
- type ManagementAssociationPropertiesList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateManagementAssociationID ¶
func ValidateManagementAssociationID(input interface{}, key string) (warnings []string, errors []error)
ValidateManagementAssociationID checks that 'input' can be parsed as a Management Association ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ManagementAssociation }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ManagementAssociation }
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response 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 autorest.Client // contains filtered or unexported fields }
func NewManagementAssociationClientWithBaseURI ¶
func NewManagementAssociationClientWithBaseURI(endpoint string) ManagementAssociationClient
func (ManagementAssociationClient) CreateOrUpdate ¶
func (c ManagementAssociationClient) CreateOrUpdate(ctx context.Context, id ManagementAssociationId, input ManagementAssociation) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ManagementAssociationClient) Delete ¶
func (c ManagementAssociationClient) Delete(ctx context.Context, id ManagementAssociationId) (result DeleteOperationResponse, err error)
Delete ...
func (ManagementAssociationClient) Get ¶
func (c ManagementAssociationClient) Get(ctx context.Context, id ManagementAssociationId) (result GetOperationResponse, err error)
Get ...
func (ManagementAssociationClient) ListBySubscription ¶
func (c ManagementAssociationClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
type ManagementAssociationId ¶
type ManagementAssociationId struct { SubscriptionId string ResourceGroupName string ProviderName string ResourceType string ResourceName string ManagementAssociationName string }
ManagementAssociationId is a struct representing the Resource ID for a Management Association
func NewManagementAssociationID ¶
func NewManagementAssociationID(subscriptionId string, resourceGroupName string, providerName string, resourceType string, resourceName string, managementAssociationName string) ManagementAssociationId
NewManagementAssociationID returns a new ManagementAssociationId struct
func ParseManagementAssociationID ¶
func ParseManagementAssociationID(input string) (*ManagementAssociationId, error)
ParseManagementAssociationID parses 'input' into a ManagementAssociationId
func ParseManagementAssociationIDInsensitively ¶
func ParseManagementAssociationIDInsensitively(input string) (*ManagementAssociationId, error)
ParseManagementAssociationIDInsensitively parses 'input' case-insensitively into a ManagementAssociationId note: this method should only be used for API response data and not user input
func (ManagementAssociationId) ID ¶
func (id ManagementAssociationId) ID() string
ID returns the formatted Management Association ID
func (ManagementAssociationId) Segments ¶
func (id ManagementAssociationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Management Association ID
func (ManagementAssociationId) String ¶
func (id ManagementAssociationId) String() string
String returns a human-readable description of this Management Association ID
type ManagementAssociationProperties ¶
type ManagementAssociationProperties struct {
ApplicationId string `json:"applicationId"`
}
type ManagementAssociationPropertiesList ¶
type ManagementAssociationPropertiesList struct {
Value *[]ManagementAssociation `json:"value,omitempty"`
}