configurationprofilesversions

package
v0.20231114.1115341 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

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

The configurationprofilesversions 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/configurationprofilesversions"

Client Initialization

client := configurationprofilesversions.NewConfigurationProfilesVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ConfigurationProfilesVersionsClient.CreateOrUpdate

ctx := context.TODO()
id := configurationprofilesversions.NewConfigurationProfileVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue", "versionValue")

payload := configurationprofilesversions.ConfigurationProfile{
	// ...
}


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

ctx := context.TODO()
id := configurationprofilesversions.NewConfigurationProfileVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue", "versionValue")

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

ctx := context.TODO()
id := configurationprofilesversions.NewConfigurationProfileVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue", "versionValue")

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: ConfigurationProfilesVersionsClient.ListChildResources

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

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

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

ValidateConfigurationProfileID checks that 'input' can be parsed as a Configuration Profile ID

func ValidateConfigurationProfileVersionID

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

ValidateConfigurationProfileVersionID checks that 'input' can be parsed as a Configuration Profile Version ID

Types

type ConfigurationProfile

type ConfigurationProfile struct {
	Id         *string                         `json:"id,omitempty"`
	Location   string                          `json:"location"`
	Name       *string                         `json:"name,omitempty"`
	Properties *ConfigurationProfileProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type ConfigurationProfileId

type ConfigurationProfileId struct {
	SubscriptionId           string
	ResourceGroupName        string
	ConfigurationProfileName string
}

ConfigurationProfileId is a struct representing the Resource ID for a Configuration Profile

func NewConfigurationProfileID

func NewConfigurationProfileID(subscriptionId string, resourceGroupName string, configurationProfileName string) ConfigurationProfileId

NewConfigurationProfileID returns a new ConfigurationProfileId struct

func ParseConfigurationProfileID

func ParseConfigurationProfileID(input string) (*ConfigurationProfileId, error)

ParseConfigurationProfileID parses 'input' into a ConfigurationProfileId

func ParseConfigurationProfileIDInsensitively

func ParseConfigurationProfileIDInsensitively(input string) (*ConfigurationProfileId, error)

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

func (ConfigurationProfileId) ID

ID returns the formatted Configuration Profile ID

func (ConfigurationProfileId) Segments

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

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

func (ConfigurationProfileId) String

func (id ConfigurationProfileId) String() string

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

type ConfigurationProfileList

type ConfigurationProfileList struct {
	Value *[]ConfigurationProfile `json:"value,omitempty"`
}

type ConfigurationProfileProperties

type ConfigurationProfileProperties struct {
	Configuration *interface{} `json:"configuration,omitempty"`
}

type ConfigurationProfileVersionId

type ConfigurationProfileVersionId struct {
	SubscriptionId           string
	ResourceGroupName        string
	ConfigurationProfileName string
	VersionName              string
}

ConfigurationProfileVersionId is a struct representing the Resource ID for a Configuration Profile Version

func NewConfigurationProfileVersionID

func NewConfigurationProfileVersionID(subscriptionId string, resourceGroupName string, configurationProfileName string, versionName string) ConfigurationProfileVersionId

NewConfigurationProfileVersionID returns a new ConfigurationProfileVersionId struct

func ParseConfigurationProfileVersionID

func ParseConfigurationProfileVersionID(input string) (*ConfigurationProfileVersionId, error)

ParseConfigurationProfileVersionID parses 'input' into a ConfigurationProfileVersionId

func ParseConfigurationProfileVersionIDInsensitively

func ParseConfigurationProfileVersionIDInsensitively(input string) (*ConfigurationProfileVersionId, error)

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

func (ConfigurationProfileVersionId) ID

ID returns the formatted Configuration Profile Version ID

func (ConfigurationProfileVersionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Configuration Profile Version ID

func (ConfigurationProfileVersionId) String

String returns a human-readable description of this Configuration Profile Version ID

type ConfigurationProfilesVersionsClient

type ConfigurationProfilesVersionsClient struct {
	Client *resourcemanager.Client
}

func NewConfigurationProfilesVersionsClientWithBaseURI

func NewConfigurationProfilesVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfilesVersionsClient, error)

func (ConfigurationProfilesVersionsClient) CreateOrUpdate

CreateOrUpdate ...

func (ConfigurationProfilesVersionsClient) Delete

Delete ...

func (ConfigurationProfilesVersionsClient) Get

Get ...

func (ConfigurationProfilesVersionsClient) ListChildResources

ListChildResources ...

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListChildResourcesOperationResponse

type ListChildResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ConfigurationProfileList
}

Jump to

Keyboard shortcuts

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