testjobstream

package
v0.20231205.1181718 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/testjobstream Documentation

The testjobstream SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2019-06-01).

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/2019-06-01/testjobstream"

Client Initialization

client := testjobstream.NewTestJobStreamClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TestJobStreamClient.Get

ctx := context.TODO()
id := testjobstream.NewTestJobStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue", "jobStreamIdValue")

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: TestJobStreamClient.ListByTestJob

ctx := context.TODO()
id := testjobstream.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue")

// alternatively `client.ListByTestJob(ctx, id, testjobstream.DefaultListByTestJobOperationOptions())` can be used to do batched pagination
items, err := client.ListByTestJobComplete(ctx, id, testjobstream.DefaultListByTestJobOperationOptions())
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 PossibleValuesForJobStreamType

func PossibleValuesForJobStreamType() []string

func ValidateRunbookID

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

ValidateRunbookID checks that 'input' can be parsed as a Runbook ID

func ValidateTestJobStreamID added in v0.20230523.1140858

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

ValidateTestJobStreamID checks that 'input' can be parsed as a Test Job Stream ID

Types

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *JobStream
}

type JobStream

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

type JobStreamOperationPredicate

type JobStreamOperationPredicate struct {
	Id *string
}

func (JobStreamOperationPredicate) Matches

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"
)

type ListByTestJobCompleteResult

type ListByTestJobCompleteResult struct {
	Items []JobStream
}

type ListByTestJobOperationOptions

type ListByTestJobOperationOptions struct {
	Filter *string
}

func DefaultListByTestJobOperationOptions

func DefaultListByTestJobOperationOptions() ListByTestJobOperationOptions

type ListByTestJobOperationResponse

type ListByTestJobOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]JobStream
	// contains filtered or unexported fields
}

func (ListByTestJobOperationResponse) HasMore

func (ListByTestJobOperationResponse) LoadMore

type RunbookId

type RunbookId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
	RunbookName           string
}

RunbookId is a struct representing the Resource ID for a Runbook

func NewRunbookID

func NewRunbookID(subscriptionId string, resourceGroupName string, automationAccountName string, runbookName string) RunbookId

NewRunbookID returns a new RunbookId struct

func ParseRunbookID

func ParseRunbookID(input string) (*RunbookId, error)

ParseRunbookID parses 'input' into a RunbookId

func ParseRunbookIDInsensitively

func ParseRunbookIDInsensitively(input string) (*RunbookId, error)

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

func (*RunbookId) FromParseResult added in v0.20231127.1171502

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

func (RunbookId) ID

func (id RunbookId) ID() string

ID returns the formatted Runbook ID

func (RunbookId) Segments

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

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

func (RunbookId) String

func (id RunbookId) String() string

String returns a human-readable description of this Runbook ID

type TestJobStreamClient

type TestJobStreamClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewTestJobStreamClientWithBaseURI

func NewTestJobStreamClientWithBaseURI(endpoint string) TestJobStreamClient

func (TestJobStreamClient) Get

Get ...

func (TestJobStreamClient) ListByTestJob

ListByTestJob ...

func (TestJobStreamClient) ListByTestJobComplete

ListByTestJobComplete retrieves all of the results into a single object

func (TestJobStreamClient) ListByTestJobCompleteMatchingPredicate

func (c TestJobStreamClient) ListByTestJobCompleteMatchingPredicate(ctx context.Context, id RunbookId, options ListByTestJobOperationOptions, predicate JobStreamOperationPredicate) (resp ListByTestJobCompleteResult, err error)

ListByTestJobCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type TestJobStreamId added in v0.20230523.1140858

type TestJobStreamId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
	RunbookName           string
	JobStreamId           string
}

TestJobStreamId is a struct representing the Resource ID for a Test Job Stream

func NewTestJobStreamID added in v0.20230523.1140858

func NewTestJobStreamID(subscriptionId string, resourceGroupName string, automationAccountName string, runbookName string, jobStreamId string) TestJobStreamId

NewTestJobStreamID returns a new TestJobStreamId struct

func ParseTestJobStreamID added in v0.20230523.1140858

func ParseTestJobStreamID(input string) (*TestJobStreamId, error)

ParseTestJobStreamID parses 'input' into a TestJobStreamId

func ParseTestJobStreamIDInsensitively added in v0.20230523.1140858

func ParseTestJobStreamIDInsensitively(input string) (*TestJobStreamId, error)

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

func (*TestJobStreamId) FromParseResult added in v0.20231127.1171502

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

func (TestJobStreamId) ID added in v0.20230523.1140858

func (id TestJobStreamId) ID() string

ID returns the formatted Test Job Stream ID

func (TestJobStreamId) Segments added in v0.20230523.1140858

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

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

func (TestJobStreamId) String added in v0.20230523.1140858

func (id TestJobStreamId) String() string

String returns a human-readable description of this Test Job Stream ID

Jump to

Keyboard shortcuts

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