managementassociation

package
v0.20221104.1175859 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MPL-2.0 Imports: 8 Imported by: 1

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

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 DeleteOperationResponse struct {
	HttpResponse *http.Response
}

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

CreateOrUpdate ...

func (ManagementAssociationClient) Delete

Delete ...

func (ManagementAssociationClient) Get

Get ...

func (ManagementAssociationClient) ListBySubscription

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

ID returns the formatted Management Association ID

func (ManagementAssociationId) Segments

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"`
}

Jump to

Keyboard shortcuts

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