managementassociation

package
v0.20240130.1163644 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 10 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.NewScopedManagementAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "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.NewScopedManagementAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "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.NewScopedManagementAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "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 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 DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

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

CreateOrUpdate ...

func (ManagementAssociationClient) Delete

Delete ...

func (ManagementAssociationClient) Get

Get ...

func (ManagementAssociationClient) ListBySubscription

ListBySubscription ...

type ManagementAssociationProperties

type ManagementAssociationProperties struct {
	ApplicationId string `json:"applicationId"`
}

type ManagementAssociationPropertiesList

type ManagementAssociationPropertiesList struct {
	Value *[]ManagementAssociation `json:"value,omitempty"`
}

type ScopedManagementAssociationId

type ScopedManagementAssociationId struct {
	Scope                     string
	ManagementAssociationName string
}

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

ID returns the formatted Scoped Management Association ID

func (ScopedManagementAssociationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Scoped Management Association ID

func (ScopedManagementAssociationId) String

String returns a human-readable description of this Scoped Management Association ID

Jump to

Keyboard shortcuts

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