configurationprofileassignments

package
v0.20240710.1075622 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments Documentation

The configurationprofileassignments SDK allows for interaction with the Azure Resource Manager Service automanage (API Version 2022-05-04).

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/automanage/2022-05-04/configurationprofileassignments"

Client Initialization

client := configurationprofileassignments.NewConfigurationProfileAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ConfigurationProfileAssignmentsClient.CreateOrUpdate

ctx := context.TODO()
id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue")

payload := configurationprofileassignments.ConfigurationProfileAssignment{
	// ...
}


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

ctx := context.TODO()
id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue")

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

ctx := context.TODO()
id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue")

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: ConfigurationProfileAssignmentsClient.List

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

read, err := client.List(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ConfigurationProfileAssignmentsClient.ListByClusterName

ctx := context.TODO()
id := configurationprofileassignments.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

read, err := client.ListByClusterName(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ConfigurationProfileAssignmentsClient.ListByMachineName

ctx := context.TODO()
id := configurationprofileassignments.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue")

read, err := client.ListByMachineName(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ConfigurationProfileAssignmentsClient.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
}

Example Usage: ConfigurationProfileAssignmentsClient.ListByVirtualMachines

ctx := context.TODO()
id := configurationprofileassignments.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

read, err := client.ListByVirtualMachines(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 ValidateClusterID

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

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

func ValidateMachineID

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

ValidateMachineID checks that 'input' can be parsed as a Machine ID

func ValidateVirtualMachineID

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

ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID

func ValidateVirtualMachineProviders2ConfigurationProfileAssignmentID

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

ValidateVirtualMachineProviders2ConfigurationProfileAssignmentID checks that 'input' can be parsed as a Virtual Machine Providers 2 Configuration Profile Assignment ID

Types

type ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

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

func (*ClusterId) FromParseResult

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

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

func (id ClusterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Cluster ID

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

type ConfigurationProfileAssignment

type ConfigurationProfileAssignment struct {
	Id         *string                                   `json:"id,omitempty"`
	ManagedBy  *string                                   `json:"managedBy,omitempty"`
	Name       *string                                   `json:"name,omitempty"`
	Properties *ConfigurationProfileAssignmentProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                    `json:"systemData,omitempty"`
	Type       *string                                   `json:"type,omitempty"`
}

type ConfigurationProfileAssignmentList

type ConfigurationProfileAssignmentList struct {
	Value *[]ConfigurationProfileAssignment `json:"value,omitempty"`
}

type ConfigurationProfileAssignmentProperties

type ConfigurationProfileAssignmentProperties struct {
	ConfigurationProfile *string `json:"configurationProfile,omitempty"`
	Status               *string `json:"status,omitempty"`
	TargetId             *string `json:"targetId,omitempty"`
}

type ConfigurationProfileAssignmentsClient

type ConfigurationProfileAssignmentsClient struct {
	Client *resourcemanager.Client
}

func NewConfigurationProfileAssignmentsClientWithBaseURI

func NewConfigurationProfileAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfileAssignmentsClient, error)

func (ConfigurationProfileAssignmentsClient) CreateOrUpdate

CreateOrUpdate ...

func (ConfigurationProfileAssignmentsClient) Delete

Delete ...

func (ConfigurationProfileAssignmentsClient) Get

Get ...

func (ConfigurationProfileAssignmentsClient) List

List ...

func (ConfigurationProfileAssignmentsClient) ListByClusterName

ListByClusterName ...

func (ConfigurationProfileAssignmentsClient) ListByMachineName

ListByMachineName ...

func (ConfigurationProfileAssignmentsClient) ListBySubscription

ListBySubscription ...

func (ConfigurationProfileAssignmentsClient) ListByVirtualMachines

ListByVirtualMachines ...

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListByClusterNameOperationResponse

type ListByClusterNameOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationProfileAssignmentList
}

type ListByMachineNameOperationResponse

type ListByMachineNameOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationProfileAssignmentList
}

type ListBySubscriptionOperationResponse

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

type ListByVirtualMachinesOperationResponse

type ListByVirtualMachinesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationProfileAssignmentList
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationProfileAssignmentList
}

type MachineId

type MachineId struct {
	SubscriptionId    string
	ResourceGroupName string
	MachineName       string
}

MachineId is a struct representing the Resource ID for a Machine

func NewMachineID

func NewMachineID(subscriptionId string, resourceGroupName string, machineName string) MachineId

NewMachineID returns a new MachineId struct

func ParseMachineID

func ParseMachineID(input string) (*MachineId, error)

ParseMachineID parses 'input' into a MachineId

func ParseMachineIDInsensitively

func ParseMachineIDInsensitively(input string) (*MachineId, error)

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

func (*MachineId) FromParseResult

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

func (MachineId) ID

func (id MachineId) ID() string

ID returns the formatted Machine ID

func (MachineId) Segments

func (id MachineId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Machine ID

func (MachineId) String

func (id MachineId) String() string

String returns a human-readable description of this Machine ID

type VirtualMachineId

type VirtualMachineId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VirtualMachineName string
}

VirtualMachineId is a struct representing the Resource ID for a Virtual Machine

func NewVirtualMachineID

func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineName string) VirtualMachineId

NewVirtualMachineID returns a new VirtualMachineId struct

func ParseVirtualMachineID

func ParseVirtualMachineID(input string) (*VirtualMachineId, error)

ParseVirtualMachineID parses 'input' into a VirtualMachineId

func ParseVirtualMachineIDInsensitively

func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)

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

func (*VirtualMachineId) FromParseResult

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

func (VirtualMachineId) ID

func (id VirtualMachineId) ID() string

ID returns the formatted Virtual Machine ID

func (VirtualMachineId) Segments

func (id VirtualMachineId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID

func (VirtualMachineId) String

func (id VirtualMachineId) String() string

String returns a human-readable description of this Virtual Machine ID

type VirtualMachineProviders2ConfigurationProfileAssignmentId

type VirtualMachineProviders2ConfigurationProfileAssignmentId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VirtualMachineName                 string
	ConfigurationProfileAssignmentName string
}

VirtualMachineProviders2ConfigurationProfileAssignmentId is a struct representing the Resource ID for a Virtual Machine Providers 2 Configuration Profile Assignment

func NewVirtualMachineProviders2ConfigurationProfileAssignmentID

func NewVirtualMachineProviders2ConfigurationProfileAssignmentID(subscriptionId string, resourceGroupName string, virtualMachineName string, configurationProfileAssignmentName string) VirtualMachineProviders2ConfigurationProfileAssignmentId

NewVirtualMachineProviders2ConfigurationProfileAssignmentID returns a new VirtualMachineProviders2ConfigurationProfileAssignmentId struct

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentID

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentID(input string) (*VirtualMachineProviders2ConfigurationProfileAssignmentId, error)

ParseVirtualMachineProviders2ConfigurationProfileAssignmentID parses 'input' into a VirtualMachineProviders2ConfigurationProfileAssignmentId

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentIDInsensitively

func ParseVirtualMachineProviders2ConfigurationProfileAssignmentIDInsensitively(input string) (*VirtualMachineProviders2ConfigurationProfileAssignmentId, error)

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

func (*VirtualMachineProviders2ConfigurationProfileAssignmentId) FromParseResult

func (VirtualMachineProviders2ConfigurationProfileAssignmentId) ID

ID returns the formatted Virtual Machine Providers 2 Configuration Profile Assignment ID

func (VirtualMachineProviders2ConfigurationProfileAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Providers 2 Configuration Profile Assignment ID

func (VirtualMachineProviders2ConfigurationProfileAssignmentId) String

String returns a human-readable description of this Virtual Machine Providers 2 Configuration Profile Assignment ID

Jump to

Keyboard shortcuts

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