managementconfiguration

package
v0.20240920.1081703 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration Documentation

The managementconfiguration 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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/managementconfiguration"

Client Initialization

client := managementconfiguration.NewManagementConfigurationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagementConfigurationClient.CreateOrUpdate

ctx := context.TODO()
id := managementconfiguration.NewManagementConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managementConfigurationValue")

payload := managementconfiguration.ManagementConfiguration{
	// ...
}


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: ManagementConfigurationClient.Delete

ctx := context.TODO()
id := managementconfiguration.NewManagementConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managementConfigurationValue")

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: ManagementConfigurationClient.Get

ctx := context.TODO()
id := managementconfiguration.NewManagementConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managementConfigurationValue")

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: ManagementConfigurationClient.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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateManagementConfigurationID

func ValidateManagementConfigurationID(input interface{}, key string) (warnings []string, errors []error)

ValidateManagementConfigurationID checks that 'input' can be parsed as a Management Configuration ID

Types

type ArmTemplateParameter

type ArmTemplateParameter struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementConfiguration
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementConfiguration
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementConfigurationPropertiesList
}

type ManagementConfiguration

type ManagementConfiguration struct {
	Id         *string                            `json:"id,omitempty"`
	Location   *string                            `json:"location,omitempty"`
	Name       *string                            `json:"name,omitempty"`
	Properties *ManagementConfigurationProperties `json:"properties,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type ManagementConfigurationClient

type ManagementConfigurationClient struct {
	Client *resourcemanager.Client
}

func NewManagementConfigurationClientWithBaseURI

func NewManagementConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementConfigurationClient, error)

func (ManagementConfigurationClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagementConfigurationClient) Delete

Delete ...

func (ManagementConfigurationClient) Get

Get ...

func (ManagementConfigurationClient) ListBySubscription

ListBySubscription ...

type ManagementConfigurationId

type ManagementConfigurationId struct {
	SubscriptionId              string
	ResourceGroupName           string
	ManagementConfigurationName string
}

ManagementConfigurationId is a struct representing the Resource ID for a Management Configuration

func NewManagementConfigurationID

func NewManagementConfigurationID(subscriptionId string, resourceGroupName string, managementConfigurationName string) ManagementConfigurationId

NewManagementConfigurationID returns a new ManagementConfigurationId struct

func ParseManagementConfigurationID

func ParseManagementConfigurationID(input string) (*ManagementConfigurationId, error)

ParseManagementConfigurationID parses 'input' into a ManagementConfigurationId

func ParseManagementConfigurationIDInsensitively

func ParseManagementConfigurationIDInsensitively(input string) (*ManagementConfigurationId, error)

ParseManagementConfigurationIDInsensitively parses 'input' case-insensitively into a ManagementConfigurationId note: this method should only be used for API response data and not user input

func (*ManagementConfigurationId) FromParseResult

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

func (ManagementConfigurationId) ID

ID returns the formatted Management Configuration ID

func (ManagementConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Management Configuration ID

func (ManagementConfigurationId) String

func (id ManagementConfigurationId) String() string

String returns a human-readable description of this Management Configuration ID

type ManagementConfigurationProperties

type ManagementConfigurationProperties struct {
	ApplicationId      *string                `json:"applicationId,omitempty"`
	Parameters         []ArmTemplateParameter `json:"parameters"`
	ParentResourceType string                 `json:"parentResourceType"`
	ProvisioningState  *string                `json:"provisioningState,omitempty"`
	Template           interface{}            `json:"template"`
}

type ManagementConfigurationPropertiesList

type ManagementConfigurationPropertiesList struct {
	Value *[]ManagementConfiguration `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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