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.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 ¶
- func PossibleValuesForStreamType() []string
- func ValidateSourceControlSyncJobID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateStreamID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListBySyncJobCompleteResult
- type ListBySyncJobOperationOptions
- type ListBySyncJobOperationResponse
- type SourceControlSyncJobId
- func NewSourceControlSyncJobID(subscriptionId string, resourceGroupName string, automationAccountName string, ...) SourceControlSyncJobId
- func ParseSourceControlSyncJobID(input string) (*SourceControlSyncJobId, error)
- func ParseSourceControlSyncJobIDInsensitively(input string) (*SourceControlSyncJobId, error)
- type SourceControlSyncJobStream
- type SourceControlSyncJobStreamById
- type SourceControlSyncJobStreamByIdProperties
- type SourceControlSyncJobStreamOperationPredicate
- type SourceControlSyncJobStreamProperties
- type SourceControlSyncJobStreamsClient
- func (c SourceControlSyncJobStreamsClient) Get(ctx context.Context, id StreamId) (result GetOperationResponse, err error)
- func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id SourceControlSyncJobId, ...) (resp ListBySyncJobOperationResponse, err error)
- func (c SourceControlSyncJobStreamsClient) ListBySyncJobComplete(ctx context.Context, id SourceControlSyncJobId, ...) (ListBySyncJobCompleteResult, error)
- func (c SourceControlSyncJobStreamsClient) ListBySyncJobCompleteMatchingPredicate(ctx context.Context, id SourceControlSyncJobId, ...) (resp ListBySyncJobCompleteResult, err error)
- type StreamId
- type StreamType
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 ¶
ValidateStreamID checks that 'input' can be parsed as a Stream ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *SourceControlSyncJobStreamById }
type ListBySyncJobCompleteResult ¶
type ListBySyncJobCompleteResult struct {
Items []SourceControlSyncJobStream
}
type ListBySyncJobOperationOptions ¶
type ListBySyncJobOperationOptions struct {
Filter *string
}
func DefaultListBySyncJobOperationOptions ¶
func DefaultListBySyncJobOperationOptions() ListBySyncJobOperationOptions
type ListBySyncJobOperationResponse ¶
type ListBySyncJobOperationResponse struct { HttpResponse *http.Response Model *[]SourceControlSyncJobStream // contains filtered or unexported fields }
func (ListBySyncJobOperationResponse) HasMore ¶
func (r ListBySyncJobOperationResponse) HasMore() bool
func (ListBySyncJobOperationResponse) LoadMore ¶
func (r ListBySyncJobOperationResponse) LoadMore(ctx context.Context) (resp ListBySyncJobOperationResponse, err error)
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 ¶
func (id SourceControlSyncJobId) ID() string
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 (o *SourceControlSyncJobStreamByIdProperties) GetTimeAsTime() (*time.Time, error)
func (*SourceControlSyncJobStreamByIdProperties) SetTimeAsTime ¶
func (o *SourceControlSyncJobStreamByIdProperties) SetTimeAsTime(input time.Time)
type SourceControlSyncJobStreamOperationPredicate ¶
type SourceControlSyncJobStreamOperationPredicate struct {
Id *string
}
func (SourceControlSyncJobStreamOperationPredicate) Matches ¶
func (p SourceControlSyncJobStreamOperationPredicate) Matches(input SourceControlSyncJobStream) bool
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 autorest.Client // contains filtered or unexported fields }
func NewSourceControlSyncJobStreamsClientWithBaseURI ¶
func NewSourceControlSyncJobStreamsClientWithBaseURI(endpoint string) SourceControlSyncJobStreamsClient
func (SourceControlSyncJobStreamsClient) Get ¶
func (c SourceControlSyncJobStreamsClient) Get(ctx context.Context, id StreamId) (result GetOperationResponse, err error)
Get ...
func (SourceControlSyncJobStreamsClient) ListBySyncJob ¶
func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions) (resp ListBySyncJobOperationResponse, err error)
ListBySyncJob ...
func (SourceControlSyncJobStreamsClient) ListBySyncJobComplete ¶
func (c SourceControlSyncJobStreamsClient) ListBySyncJobComplete(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions) (ListBySyncJobCompleteResult, error)
ListBySyncJobComplete retrieves all of the results into a single object
func (SourceControlSyncJobStreamsClient) ListBySyncJobCompleteMatchingPredicate ¶
func (c SourceControlSyncJobStreamsClient) ListBySyncJobCompleteMatchingPredicate(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions, predicate SourceControlSyncJobStreamOperationPredicate) (resp ListBySyncJobCompleteResult, err error)
ListBySyncJobCompleteMatchingPredicate retrieves all of the results and then applied 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 ¶
ParseStreamID parses 'input' into a StreamId
func ParseStreamIDInsensitively ¶
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) Segments ¶
func (id StreamId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Stream ID
type StreamType ¶
type StreamType string
const ( StreamTypeError StreamType = "Error" StreamTypeOutput StreamType = "Output" )
Source Files ¶
- client.go
- constants.go
- id_sourcecontrolsyncjob.go
- id_stream.go
- method_get_autorest.go
- method_listbysyncjob_autorest.go
- model_sourcecontrolsyncjobstream.go
- model_sourcecontrolsyncjobstreambyid.go
- model_sourcecontrolsyncjobstreambyidproperties.go
- model_sourcecontrolsyncjobstreamproperties.go
- predicates.go
- version.go