managementassociation

package
v0.20231215.1092747 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 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 added in v0.20230714.1170806

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 added in v0.20230714.1170806

type ScopedManagementAssociationId struct {
	Scope                     string
	ManagementAssociationName string
}

ScopedManagementAssociationId is a struct representing the Resource ID for a Scoped Management Association

func NewScopedManagementAssociationID added in v0.20230714.1170806

func NewScopedManagementAssociationID(scope string, managementAssociationName string) ScopedManagementAssociationId

NewScopedManagementAssociationID returns a new ScopedManagementAssociationId struct

func ParseScopedManagementAssociationID added in v0.20230714.1170806

func ParseScopedManagementAssociationID(input string) (*ScopedManagementAssociationId, error)

ParseScopedManagementAssociationID parses 'input' into a ScopedManagementAssociationId

func ParseScopedManagementAssociationIDInsensitively added in v0.20230714.1170806

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 added in v0.20231127.1171502

func (id *ScopedManagementAssociationId) FromParseResult(input resourceids.ParseResult) error

func (ScopedManagementAssociationId) ID added in v0.20230714.1170806

ID returns the formatted Scoped Management Association ID

func (ScopedManagementAssociationId) Segments added in v0.20230714.1170806

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

func (ScopedManagementAssociationId) String added in v0.20230714.1170806

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