sourcecontrolsyncjobstreams

package
v0.20230328.1121537 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/sourcecontrolsyncjobstreams Documentation

The sourcecontrolsyncjobstreams SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2022-08-08).

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/2022-08-08/sourcecontrolsyncjobstreams"

Client Initialization

client := sourcecontrolsyncjobstreams.NewSourceControlSyncJobStreamsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SourceControlSyncJobStreamsClient.Get

ctx := context.TODO()
id := sourcecontrolsyncjobstreams.NewStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue", "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: SourceControlSyncJobStreamsClient.ListBySyncJob

ctx := context.TODO()
id := sourcecontrolsyncjobstreams.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue", "sourceControlSyncJobIdValue")

// alternatively `client.ListBySyncJob(ctx, id, sourcecontrolsyncjobstreams.DefaultListBySyncJobOperationOptions())` can be used to do batched pagination
items, err := client.ListBySyncJobComplete(ctx, id, sourcecontrolsyncjobstreams.DefaultListBySyncJobOperationOptions())
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 PossibleValuesForStreamType

func PossibleValuesForStreamType() []string

func ValidateSourceControlSyncJobID

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

ValidateSourceControlSyncJobID checks that 'input' can be parsed as a Source Control Sync Job 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 GetOperationResponse

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

type ListBySyncJobCompleteResult

type ListBySyncJobCompleteResult struct {
	Items []SourceControlSyncJobStream
}

type ListBySyncJobOperationOptions

type ListBySyncJobOperationOptions struct {
	Filter *string
}

func DefaultListBySyncJobOperationOptions

func DefaultListBySyncJobOperationOptions() ListBySyncJobOperationOptions

func (ListBySyncJobOperationOptions) ToHeaders added in v0.20230216.1112329

func (ListBySyncJobOperationOptions) ToOData added in v0.20230216.1112329

func (ListBySyncJobOperationOptions) ToQuery added in v0.20230216.1112329

type ListBySyncJobOperationResponse

type ListBySyncJobOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SourceControlSyncJobStream
}

type SourceControlSyncJobId

type SourceControlSyncJobId struct {
	SubscriptionId         string
	ResourceGroupName      string
	AutomationAccountName  string
	SourceControlName      string
	SourceControlSyncJobId string
}

SourceControlSyncJobId is a struct representing the Resource ID for a Source Control Sync Job

func NewSourceControlSyncJobID

func NewSourceControlSyncJobID(subscriptionId string, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobId string) SourceControlSyncJobId

NewSourceControlSyncJobID returns a new SourceControlSyncJobId struct

func ParseSourceControlSyncJobID

func ParseSourceControlSyncJobID(input string) (*SourceControlSyncJobId, error)

ParseSourceControlSyncJobID parses 'input' into a SourceControlSyncJobId

func ParseSourceControlSyncJobIDInsensitively

func ParseSourceControlSyncJobIDInsensitively(input string) (*SourceControlSyncJobId, error)

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

func (SourceControlSyncJobId) ID

ID returns the formatted Source Control Sync Job ID

func (SourceControlSyncJobId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Source Control Sync Job ID

func (SourceControlSyncJobId) String

func (id SourceControlSyncJobId) String() string

String returns a human-readable description of this Source Control Sync Job ID

type SourceControlSyncJobStream

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

type SourceControlSyncJobStreamById

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

type SourceControlSyncJobStreamByIdProperties

type SourceControlSyncJobStreamByIdProperties struct {
	SourceControlSyncJobStreamId *string                 `json:"sourceControlSyncJobStreamId,omitempty"`
	StreamText                   *string                 `json:"streamText,omitempty"`
	StreamType                   *StreamType             `json:"streamType,omitempty"`
	Summary                      *string                 `json:"summary,omitempty"`
	Time                         *string                 `json:"time,omitempty"`
	Value                        *map[string]interface{} `json:"value,omitempty"`
}

func (*SourceControlSyncJobStreamByIdProperties) GetTimeAsTime

func (*SourceControlSyncJobStreamByIdProperties) SetTimeAsTime

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

type SourceControlSyncJobStreamOperationPredicate

type SourceControlSyncJobStreamOperationPredicate struct {
	Id *string
}

func (SourceControlSyncJobStreamOperationPredicate) Matches

type SourceControlSyncJobStreamProperties

type SourceControlSyncJobStreamProperties struct {
	SourceControlSyncJobStreamId *string     `json:"sourceControlSyncJobStreamId,omitempty"`
	StreamType                   *StreamType `json:"streamType,omitempty"`
	Summary                      *string     `json:"summary,omitempty"`
	Time                         *string     `json:"time,omitempty"`
}

func (*SourceControlSyncJobStreamProperties) GetTimeAsTime

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

func (*SourceControlSyncJobStreamProperties) SetTimeAsTime

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

type SourceControlSyncJobStreamsClient

type SourceControlSyncJobStreamsClient struct {
	Client *resourcemanager.Client
}

func NewSourceControlSyncJobStreamsClientWithBaseURI

func NewSourceControlSyncJobStreamsClientWithBaseURI(api environments.Api) (*SourceControlSyncJobStreamsClient, error)

func (SourceControlSyncJobStreamsClient) Get

Get ...

func (SourceControlSyncJobStreamsClient) ListBySyncJob

ListBySyncJob ...

func (SourceControlSyncJobStreamsClient) ListBySyncJobComplete

ListBySyncJobComplete retrieves all the results into a single object

func (SourceControlSyncJobStreamsClient) ListBySyncJobCompleteMatchingPredicate

ListBySyncJobCompleteMatchingPredicate retrieves all the results and then applies the predicate

type StreamId

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

StreamId is a struct representing the Resource ID for a Stream

func NewStreamID

func NewStreamID(subscriptionId string, resourceGroupName string, automationAccountName string, jobName 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) 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 StreamType

type StreamType string
const (
	StreamTypeError  StreamType = "Error"
	StreamTypeOutput StreamType = "Output"
)

Jump to

Keyboard shortcuts

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