dsccompilationjob

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/dsccompilationjob Documentation

The dsccompilationjob SDK allows for interaction with Azure Resource Manager automation (API Version 2020-01-13-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/automation/2020-01-13-preview/dsccompilationjob"

Client Initialization

client := dsccompilationjob.NewDscCompilationJobClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DscCompilationJobClient.Create

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

payload := dsccompilationjob.DscCompilationJobCreateParameters{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: DscCompilationJobClient.Get

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

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: DscCompilationJobClient.GetStream

ctx := context.TODO()
id := dsccompilationjob.NewStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobId", "jobStreamId")

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

Example Usage: DscCompilationJobClient.ListByAutomationAccount

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

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

Example Usage: DscCompilationJobClient.StreamListByJob

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

// alternatively `client.StreamListByJob(ctx, id)` can be used to do batched pagination
items, err := client.StreamListByJobComplete(ctx, id)
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 PossibleValuesForJobProvisioningState

func PossibleValuesForJobProvisioningState() []string

func PossibleValuesForJobStatus

func PossibleValuesForJobStatus() []string

func PossibleValuesForJobStreamType

func PossibleValuesForJobStreamType() []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 ValidateStreamID

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

ValidateStreamID checks that 'input' can be parsed as a Stream 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 CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DscCompilationJob
}

type DscCompilationJob

type DscCompilationJob struct {
	Id         *string                      `json:"id,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	Properties *DscCompilationJobProperties `json:"properties,omitempty"`
	Type       *string                      `json:"type,omitempty"`
}

type DscCompilationJobClient

type DscCompilationJobClient struct {
	Client *resourcemanager.Client
}

func NewDscCompilationJobClientWithBaseURI

func NewDscCompilationJobClientWithBaseURI(sdkApi sdkEnv.Api) (*DscCompilationJobClient, error)

func (DscCompilationJobClient) Create

Create ...

func (DscCompilationJobClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (DscCompilationJobClient) Get

Get ...

func (DscCompilationJobClient) GetStream

GetStream ...

func (DscCompilationJobClient) ListByAutomationAccount

ListByAutomationAccount ...

func (DscCompilationJobClient) ListByAutomationAccountComplete

ListByAutomationAccountComplete retrieves all the results into a single object

func (DscCompilationJobClient) ListByAutomationAccountCompleteMatchingPredicate

ListByAutomationAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DscCompilationJobClient) StreamListByJob

StreamListByJob ...

func (DscCompilationJobClient) StreamListByJobComplete added in v0.20240226.1173038

StreamListByJobComplete retrieves all the results into a single object

func (DscCompilationJobClient) StreamListByJobCompleteMatchingPredicate added in v0.20240226.1173038

func (c DscCompilationJobClient) StreamListByJobCompleteMatchingPredicate(ctx context.Context, id commonids.AutomationCompilationJobId, predicate JobStreamOperationPredicate) (result StreamListByJobCompleteResult, err error)

StreamListByJobCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DscCompilationJobCreateParameters

type DscCompilationJobCreateParameters struct {
	Location   *string                           `json:"location,omitempty"`
	Name       *string                           `json:"name,omitempty"`
	Properties DscCompilationJobCreateProperties `json:"properties"`
	Tags       *map[string]string                `json:"tags,omitempty"`
}

type DscCompilationJobCreateProperties

type DscCompilationJobCreateProperties struct {
	Configuration                   DscConfigurationAssociationProperty `json:"configuration"`
	IncrementNodeConfigurationBuild *bool                               `json:"incrementNodeConfigurationBuild,omitempty"`
	Parameters                      *map[string]string                  `json:"parameters,omitempty"`
}

type DscCompilationJobOperationPredicate

type DscCompilationJobOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (DscCompilationJobOperationPredicate) Matches

type DscCompilationJobProperties

type DscCompilationJobProperties struct {
	Configuration          *DscConfigurationAssociationProperty `json:"configuration,omitempty"`
	CreationTime           *string                              `json:"creationTime,omitempty"`
	EndTime                *string                              `json:"endTime,omitempty"`
	Exception              *string                              `json:"exception,omitempty"`
	JobId                  *string                              `json:"jobId,omitempty"`
	LastModifiedTime       *string                              `json:"lastModifiedTime,omitempty"`
	LastStatusModifiedTime *string                              `json:"lastStatusModifiedTime,omitempty"`
	Parameters             *map[string]string                   `json:"parameters,omitempty"`
	ProvisioningState      *JobProvisioningState                `json:"provisioningState,omitempty"`
	RunOn                  *string                              `json:"runOn,omitempty"`
	StartTime              *string                              `json:"startTime,omitempty"`
	StartedBy              *string                              `json:"startedBy,omitempty"`
	Status                 *JobStatus                           `json:"status,omitempty"`
	StatusDetails          *string                              `json:"statusDetails,omitempty"`
}

func (*DscCompilationJobProperties) GetCreationTimeAsTime

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

func (*DscCompilationJobProperties) GetEndTimeAsTime

func (o *DscCompilationJobProperties) GetEndTimeAsTime() (*time.Time, error)

func (*DscCompilationJobProperties) GetLastModifiedTimeAsTime

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

func (*DscCompilationJobProperties) GetLastStatusModifiedTimeAsTime

func (o *DscCompilationJobProperties) GetLastStatusModifiedTimeAsTime() (*time.Time, error)

func (*DscCompilationJobProperties) GetStartTimeAsTime

func (o *DscCompilationJobProperties) GetStartTimeAsTime() (*time.Time, error)

func (*DscCompilationJobProperties) SetCreationTimeAsTime

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

func (*DscCompilationJobProperties) SetEndTimeAsTime

func (o *DscCompilationJobProperties) SetEndTimeAsTime(input time.Time)

func (*DscCompilationJobProperties) SetLastModifiedTimeAsTime

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

func (*DscCompilationJobProperties) SetLastStatusModifiedTimeAsTime

func (o *DscCompilationJobProperties) SetLastStatusModifiedTimeAsTime(input time.Time)

func (*DscCompilationJobProperties) SetStartTimeAsTime

func (o *DscCompilationJobProperties) SetStartTimeAsTime(input time.Time)

type DscConfigurationAssociationProperty

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

type GetOperationResponse

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

type GetStreamOperationResponse

type GetStreamOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *JobStream
}

type JobProvisioningState

type JobProvisioningState string
const (
	JobProvisioningStateFailed     JobProvisioningState = "Failed"
	JobProvisioningStateProcessing JobProvisioningState = "Processing"
	JobProvisioningStateSucceeded  JobProvisioningState = "Succeeded"
	JobProvisioningStateSuspended  JobProvisioningState = "Suspended"
)

func (*JobProvisioningState) UnmarshalJSON added in v0.20240209.1164150

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

type JobStatus

type JobStatus string
const (
	JobStatusActivating   JobStatus = "Activating"
	JobStatusBlocked      JobStatus = "Blocked"
	JobStatusCompleted    JobStatus = "Completed"
	JobStatusDisconnected JobStatus = "Disconnected"
	JobStatusFailed       JobStatus = "Failed"
	JobStatusNew          JobStatus = "New"
	JobStatusRemoving     JobStatus = "Removing"
	JobStatusResuming     JobStatus = "Resuming"
	JobStatusRunning      JobStatus = "Running"
	JobStatusStopped      JobStatus = "Stopped"
	JobStatusStopping     JobStatus = "Stopping"
	JobStatusSuspended    JobStatus = "Suspended"
	JobStatusSuspending   JobStatus = "Suspending"
)

func (*JobStatus) UnmarshalJSON added in v0.20240209.1164150

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

type JobStream

type JobStream struct {
	Id         *string              `json:"id,omitempty"`
	Properties *JobStreamProperties `json:"properties,omitempty"`
}

type JobStreamOperationPredicate added in v0.20240226.1173038

type JobStreamOperationPredicate struct {
	Id *string
}

func (JobStreamOperationPredicate) Matches added in v0.20240226.1173038

func (p JobStreamOperationPredicate) Matches(input JobStream) bool

type JobStreamProperties

type JobStreamProperties struct {
	JobStreamId *string                 `json:"jobStreamId,omitempty"`
	StreamText  *string                 `json:"streamText,omitempty"`
	StreamType  *JobStreamType          `json:"streamType,omitempty"`
	Summary     *string                 `json:"summary,omitempty"`
	Time        *string                 `json:"time,omitempty"`
	Value       *map[string]interface{} `json:"value,omitempty"`
}

func (*JobStreamProperties) GetTimeAsTime

func (o *JobStreamProperties) GetTimeAsTime() (*time.Time, error)

func (*JobStreamProperties) SetTimeAsTime

func (o *JobStreamProperties) SetTimeAsTime(input time.Time)

type JobStreamType

type JobStreamType string
const (
	JobStreamTypeAny      JobStreamType = "Any"
	JobStreamTypeDebug    JobStreamType = "Debug"
	JobStreamTypeError    JobStreamType = "Error"
	JobStreamTypeOutput   JobStreamType = "Output"
	JobStreamTypeProgress JobStreamType = "Progress"
	JobStreamTypeVerbose  JobStreamType = "Verbose"
	JobStreamTypeWarning  JobStreamType = "Warning"
)

func (*JobStreamType) UnmarshalJSON added in v0.20240209.1164150

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

type ListByAutomationAccountCompleteResult

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

type ListByAutomationAccountCustomPager added in v0.20240628.1153531

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 added in v0.20240209.1164150

func (ListByAutomationAccountOperationOptions) ToOData added in v0.20240209.1164150

func (ListByAutomationAccountOperationOptions) ToQuery added in v0.20240209.1164150

type ListByAutomationAccountOperationResponse

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

type StreamId

type StreamId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
	JobId                 string
	JobStreamId           string
}

StreamId is a struct representing the Resource ID for a Stream

func NewStreamID

func NewStreamID(subscriptionId string, resourceGroupName string, automationAccountName string, jobId string, jobStreamId string) StreamId

NewStreamID returns a new StreamId struct

func ParseStreamID

func ParseStreamID(input string) (*StreamId, error)

ParseStreamID parses 'input' into a StreamId

func ParseStreamIDInsensitively

func ParseStreamIDInsensitively(input string) (*StreamId, error)

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

func (*StreamId) FromParseResult

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

func (StreamId) ID

func (id StreamId) ID() string

ID returns the formatted Stream ID

func (StreamId) Segments

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

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

func (StreamId) String

func (id StreamId) String() string

String returns a human-readable description of this Stream ID

type StreamListByJobCompleteResult added in v0.20240226.1173038

type StreamListByJobCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []JobStream
}

type StreamListByJobCustomPager added in v0.20240628.1153531

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

type StreamListByJobOperationResponse

type StreamListByJobOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]JobStream
}

Jump to

Keyboard shortcuts

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