dscnodeconfiguration

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/dscnodeconfiguration Documentation

The dscnodeconfiguration SDK allows for interaction with Azure Resource Manager automation (API Version 2015-10-31).

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/automation/2015-10-31/dscnodeconfiguration"

Client Initialization

client := dscnodeconfiguration.NewDscNodeConfigurationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DscNodeConfigurationClient.CreateOrUpdate

ctx := context.TODO()
id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "nodeConfigurationName")

payload := dscnodeconfiguration.DscNodeConfigurationCreateOrUpdateParameters{
	// ...
}


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

ctx := context.TODO()
id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "nodeConfigurationName")

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

ctx := context.TODO()
id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "nodeConfigurationName")

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: DscNodeConfigurationClient.ListByAutomationAccount

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

// alternatively `client.ListByAutomationAccount(ctx, id, dscnodeconfiguration.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByAutomationAccountComplete(ctx, id, dscnodeconfiguration.DefaultListByAutomationAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForContentSourceType

func PossibleValuesForContentSourceType() []string

func ValidateAutomationAccountID

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

ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID

func ValidateNodeConfigurationID

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

ValidateNodeConfigurationID checks that 'input' can be parsed as a Node Configuration ID

Types

type AutomationAccountId

type AutomationAccountId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
}

AutomationAccountId is a struct representing the Resource ID for a Automation Account

func NewAutomationAccountID

func NewAutomationAccountID(subscriptionId string, resourceGroupName string, automationAccountName string) AutomationAccountId

NewAutomationAccountID returns a new AutomationAccountId struct

func ParseAutomationAccountID

func ParseAutomationAccountID(input string) (*AutomationAccountId, error)

ParseAutomationAccountID parses 'input' into a AutomationAccountId

func ParseAutomationAccountIDInsensitively

func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, error)

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

func (*AutomationAccountId) FromParseResult

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

func (AutomationAccountId) ID

func (id AutomationAccountId) ID() string

ID returns the formatted Automation Account ID

func (AutomationAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Automation Account ID

func (AutomationAccountId) String

func (id AutomationAccountId) String() string

String returns a human-readable description of this Automation Account ID

type ContentHash

type ContentHash struct {
	Algorithm string `json:"algorithm"`
	Value     string `json:"value"`
}

type ContentSource

type ContentSource struct {
	Hash    *ContentHash       `json:"hash,omitempty"`
	Type    *ContentSourceType `json:"type,omitempty"`
	Value   *string            `json:"value,omitempty"`
	Version *string            `json:"version,omitempty"`
}

type ContentSourceType

type ContentSourceType string
const (
	ContentSourceTypeEmbeddedContent ContentSourceType = "embeddedContent"
	ContentSourceTypeUri             ContentSourceType = "uri"
)

func (*ContentSourceType) UnmarshalJSON

func (s *ContentSourceType) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type DscConfigurationAssociationProperty

type DscConfigurationAssociationProperty struct {
	Name *string `json:"name,omitempty"`
}

type DscNodeConfiguration

type DscNodeConfiguration struct {
	Configuration    *DscConfigurationAssociationProperty `json:"configuration,omitempty"`
	CreationTime     *string                              `json:"creationTime,omitempty"`
	Id               *string                              `json:"id,omitempty"`
	LastModifiedTime *string                              `json:"lastModifiedTime,omitempty"`
	Name             *string                              `json:"name,omitempty"`
	Type             *string                              `json:"type,omitempty"`
}

func (*DscNodeConfiguration) GetCreationTimeAsTime

func (o *DscNodeConfiguration) GetCreationTimeAsTime() (*time.Time, error)

func (*DscNodeConfiguration) GetLastModifiedTimeAsTime

func (o *DscNodeConfiguration) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*DscNodeConfiguration) SetCreationTimeAsTime

func (o *DscNodeConfiguration) SetCreationTimeAsTime(input time.Time)

func (*DscNodeConfiguration) SetLastModifiedTimeAsTime

func (o *DscNodeConfiguration) SetLastModifiedTimeAsTime(input time.Time)

type DscNodeConfigurationClient

type DscNodeConfigurationClient struct {
	Client *resourcemanager.Client
}

func NewDscNodeConfigurationClientWithBaseURI

func NewDscNodeConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*DscNodeConfigurationClient, error)

func (DscNodeConfigurationClient) CreateOrUpdate

CreateOrUpdate ...

func (DscNodeConfigurationClient) Delete

Delete ...

func (DscNodeConfigurationClient) Get

Get ...

func (DscNodeConfigurationClient) ListByAutomationAccount

ListByAutomationAccount ...

func (DscNodeConfigurationClient) ListByAutomationAccountComplete

ListByAutomationAccountComplete retrieves all the results into a single object

func (DscNodeConfigurationClient) ListByAutomationAccountCompleteMatchingPredicate

ListByAutomationAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DscNodeConfigurationCreateOrUpdateParameters

type DscNodeConfigurationCreateOrUpdateParameters struct {
	Configuration                   DscConfigurationAssociationProperty `json:"configuration"`
	IncrementNodeConfigurationBuild *bool                               `json:"incrementNodeConfigurationBuild,omitempty"`
	Name                            string                              `json:"name"`
	Source                          ContentSource                       `json:"source"`
}

type DscNodeConfigurationOperationPredicate

type DscNodeConfigurationOperationPredicate struct {
	CreationTime     *string
	Id               *string
	LastModifiedTime *string
	Name             *string
	Type             *string
}

func (DscNodeConfigurationOperationPredicate) Matches

type GetOperationResponse

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

type ListByAutomationAccountCompleteResult

type ListByAutomationAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DscNodeConfiguration
}

type ListByAutomationAccountCustomPager

type ListByAutomationAccountCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link

type ListByAutomationAccountOperationOptions

type ListByAutomationAccountOperationOptions struct {
	Filter *string
}

func DefaultListByAutomationAccountOperationOptions

func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions

func (ListByAutomationAccountOperationOptions) ToHeaders

func (ListByAutomationAccountOperationOptions) ToOData

func (ListByAutomationAccountOperationOptions) ToQuery

type ListByAutomationAccountOperationResponse

type ListByAutomationAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DscNodeConfiguration
}

type NodeConfigurationId

type NodeConfigurationId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
	NodeConfigurationName string
}

NodeConfigurationId is a struct representing the Resource ID for a Node Configuration

func NewNodeConfigurationID

func NewNodeConfigurationID(subscriptionId string, resourceGroupName string, automationAccountName string, nodeConfigurationName string) NodeConfigurationId

NewNodeConfigurationID returns a new NodeConfigurationId struct

func ParseNodeConfigurationID

func ParseNodeConfigurationID(input string) (*NodeConfigurationId, error)

ParseNodeConfigurationID parses 'input' into a NodeConfigurationId

func ParseNodeConfigurationIDInsensitively

func ParseNodeConfigurationIDInsensitively(input string) (*NodeConfigurationId, error)

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

func (*NodeConfigurationId) FromParseResult

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

func (NodeConfigurationId) ID

func (id NodeConfigurationId) ID() string

ID returns the formatted Node Configuration ID

func (NodeConfigurationId) Segments

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

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

func (NodeConfigurationId) String

func (id NodeConfigurationId) String() string

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

Jump to

Keyboard shortcuts

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