sourcecontrolsyncjobstreams

package
v0.20240603.1222802 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

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

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

Client Initialization

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

Example Usage: SourceControlSyncJobStreamsClient.Get

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

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 ValidateSourceControlSyncJobStreamID

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

ValidateSourceControlSyncJobStreamID checks that 'input' can be parsed as a Source Control Sync Job Stream ID

Types

type GetOperationResponse

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

type ListBySyncJobCompleteResult

type ListBySyncJobCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SourceControlSyncJobStream
}

type ListBySyncJobOperationOptions

type ListBySyncJobOperationOptions struct {
	Filter *string
}

func DefaultListBySyncJobOperationOptions

func DefaultListBySyncJobOperationOptions() ListBySyncJobOperationOptions

func (ListBySyncJobOperationOptions) ToHeaders added in v0.20240209.1164150

func (ListBySyncJobOperationOptions) ToOData added in v0.20240209.1164150

func (ListBySyncJobOperationOptions) ToQuery added in v0.20240209.1164150

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

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

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 SourceControlSyncJobStreamId

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

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

func NewSourceControlSyncJobStreamID

func NewSourceControlSyncJobStreamID(subscriptionId string, resourceGroupName string, automationAccountName string, sourceControlName string, sourceControlSyncJobId string, streamId string) SourceControlSyncJobStreamId

NewSourceControlSyncJobStreamID returns a new SourceControlSyncJobStreamId struct

func ParseSourceControlSyncJobStreamID

func ParseSourceControlSyncJobStreamID(input string) (*SourceControlSyncJobStreamId, error)

ParseSourceControlSyncJobStreamID parses 'input' into a SourceControlSyncJobStreamId

func ParseSourceControlSyncJobStreamIDInsensitively

func ParseSourceControlSyncJobStreamIDInsensitively(input string) (*SourceControlSyncJobStreamId, error)

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

func (*SourceControlSyncJobStreamId) FromParseResult

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

func (SourceControlSyncJobStreamId) ID

ID returns the formatted Source Control Sync Job Stream ID

func (SourceControlSyncJobStreamId) Segments

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

func (SourceControlSyncJobStreamId) String

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

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(sdkApi sdkEnv.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 StreamType

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

func (*StreamType) UnmarshalJSON added in v0.20240209.1164150

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

Jump to

Keyboard shortcuts

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