configurationprofilehcrpassignments

package
v0.20240321.1145953 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The configurationprofilehcrpassignments 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-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments"

Client Initialization

client := configurationprofilehcrpassignments.NewConfigurationProfileHCRPAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ConfigurationProfileHCRPAssignmentsClient.CreateOrUpdate

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

payload := configurationprofilehcrpassignments.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: ConfigurationProfileHCRPAssignmentsClient.Delete

ctx := context.TODO()
id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "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: ConfigurationProfileHCRPAssignmentsClient.Get

ctx := context.TODO()
id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateProviders2ConfigurationProfileAssignmentID

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

ValidateProviders2ConfigurationProfileAssignmentID checks that 'input' can be parsed as a Providers 2 Configuration Profile Assignment ID

Types

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 ConfigurationProfileAssignmentProperties

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

type ConfigurationProfileHCRPAssignmentsClient

type ConfigurationProfileHCRPAssignmentsClient struct {
	Client *resourcemanager.Client
}

func NewConfigurationProfileHCRPAssignmentsClientWithBaseURI

func NewConfigurationProfileHCRPAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfileHCRPAssignmentsClient, error)

func (ConfigurationProfileHCRPAssignmentsClient) CreateOrUpdate

CreateOrUpdate ...

func (ConfigurationProfileHCRPAssignmentsClient) Delete

Delete ...

func (ConfigurationProfileHCRPAssignmentsClient) Get

Get ...

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 Providers2ConfigurationProfileAssignmentId

type Providers2ConfigurationProfileAssignmentId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	MachineName                        string
	ConfigurationProfileAssignmentName string
}

Providers2ConfigurationProfileAssignmentId is a struct representing the Resource ID for a Providers 2 Configuration Profile Assignment

func NewProviders2ConfigurationProfileAssignmentID

func NewProviders2ConfigurationProfileAssignmentID(subscriptionId string, resourceGroupName string, machineName string, configurationProfileAssignmentName string) Providers2ConfigurationProfileAssignmentId

NewProviders2ConfigurationProfileAssignmentID returns a new Providers2ConfigurationProfileAssignmentId struct

func ParseProviders2ConfigurationProfileAssignmentID

func ParseProviders2ConfigurationProfileAssignmentID(input string) (*Providers2ConfigurationProfileAssignmentId, error)

ParseProviders2ConfigurationProfileAssignmentID parses 'input' into a Providers2ConfigurationProfileAssignmentId

func ParseProviders2ConfigurationProfileAssignmentIDInsensitively

func ParseProviders2ConfigurationProfileAssignmentIDInsensitively(input string) (*Providers2ConfigurationProfileAssignmentId, error)

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

func (*Providers2ConfigurationProfileAssignmentId) FromParseResult

func (Providers2ConfigurationProfileAssignmentId) ID

ID returns the formatted Providers 2 Configuration Profile Assignment ID

func (Providers2ConfigurationProfileAssignmentId) Segments

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

func (Providers2ConfigurationProfileAssignmentId) String

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

Jump to

Keyboard shortcuts

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