Documentation ¶
Index ¶
- func PossibleValuesForEnableStatus() []string
- func PossibleValuesForSourceControlType() []string
- func ValidateArtifactSourceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLabID(input interface{}, key string) (warnings []string, errors []error)
- type ArtifactSource
- type ArtifactSourceId
- type ArtifactSourceOperationPredicate
- type ArtifactSourceProperties
- type ArtifactSourcesClient
- func (c ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, id ArtifactSourceId, input ArtifactSource) (result CreateOrUpdateOperationResponse, err error)
- func (c ArtifactSourcesClient) Delete(ctx context.Context, id ArtifactSourceId) (result DeleteOperationResponse, err error)
- func (c ArtifactSourcesClient) Get(ctx context.Context, id ArtifactSourceId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c ArtifactSourcesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ArtifactSourcesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ArtifactSourcesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c ArtifactSourcesClient) Update(ctx context.Context, id ArtifactSourceId, input UpdateResource) (result UpdateOperationResponse, err error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type EnableStatus
- type GetOperationOptions
- type GetOperationResponse
- type LabId
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type SourceControlType
- type UpdateOperationResponse
- type UpdateResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnableStatus ¶
func PossibleValuesForEnableStatus() []string
func PossibleValuesForSourceControlType ¶
func PossibleValuesForSourceControlType() []string
func ValidateArtifactSourceID ¶
ValidateArtifactSourceID checks that 'input' can be parsed as a Artifact Source ID
func ValidateLabID ¶
ValidateLabID checks that 'input' can be parsed as a Lab ID
Types ¶
type ArtifactSource ¶
type ArtifactSourceId ¶
type ArtifactSourceId struct { SubscriptionId string ResourceGroupName string LabName string ArtifactSourceName string }
ArtifactSourceId is a struct representing the Resource ID for a Artifact Source
func NewArtifactSourceID ¶
func NewArtifactSourceID(subscriptionId string, resourceGroupName string, labName string, artifactSourceName string) ArtifactSourceId
NewArtifactSourceID returns a new ArtifactSourceId struct
func ParseArtifactSourceID ¶
func ParseArtifactSourceID(input string) (*ArtifactSourceId, error)
ParseArtifactSourceID parses 'input' into a ArtifactSourceId
func ParseArtifactSourceIDInsensitively ¶
func ParseArtifactSourceIDInsensitively(input string) (*ArtifactSourceId, error)
ParseArtifactSourceIDInsensitively parses 'input' case-insensitively into a ArtifactSourceId note: this method should only be used for API response data and not user input
func (*ArtifactSourceId) FromParseResult ¶
func (id *ArtifactSourceId) FromParseResult(input resourceids.ParseResult) error
func (ArtifactSourceId) ID ¶
func (id ArtifactSourceId) ID() string
ID returns the formatted Artifact Source ID
func (ArtifactSourceId) Segments ¶
func (id ArtifactSourceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Artifact Source ID
func (ArtifactSourceId) String ¶
func (id ArtifactSourceId) String() string
String returns a human-readable description of this Artifact Source ID
type ArtifactSourceOperationPredicate ¶
type ArtifactSourceOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (ArtifactSourceOperationPredicate) Matches ¶
func (p ArtifactSourceOperationPredicate) Matches(input ArtifactSource) bool
type ArtifactSourceProperties ¶
type ArtifactSourceProperties struct { ArmTemplateFolderPath *string `json:"armTemplateFolderPath,omitempty"` BranchRef *string `json:"branchRef,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` DisplayName *string `json:"displayName,omitempty"` FolderPath *string `json:"folderPath,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` SecurityToken *string `json:"securityToken,omitempty"` SourceType *SourceControlType `json:"sourceType,omitempty"` Status *EnableStatus `json:"status,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` Uri *string `json:"uri,omitempty"` }
func (*ArtifactSourceProperties) GetCreatedDateAsTime ¶
func (o *ArtifactSourceProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*ArtifactSourceProperties) SetCreatedDateAsTime ¶
func (o *ArtifactSourceProperties) SetCreatedDateAsTime(input time.Time)
type ArtifactSourcesClient ¶
type ArtifactSourcesClient struct {
Client *resourcemanager.Client
}
func NewArtifactSourcesClientWithBaseURI ¶
func NewArtifactSourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*ArtifactSourcesClient, error)
func (ArtifactSourcesClient) CreateOrUpdate ¶
func (c ArtifactSourcesClient) CreateOrUpdate(ctx context.Context, id ArtifactSourceId, input ArtifactSource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ArtifactSourcesClient) Delete ¶
func (c ArtifactSourcesClient) Delete(ctx context.Context, id ArtifactSourceId) (result DeleteOperationResponse, err error)
Delete ...
func (ArtifactSourcesClient) Get ¶
func (c ArtifactSourcesClient) Get(ctx context.Context, id ArtifactSourceId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (ArtifactSourcesClient) List ¶
func (c ArtifactSourcesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ArtifactSourcesClient) ListComplete ¶
func (c ArtifactSourcesClient) ListComplete(ctx context.Context, id LabId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ArtifactSourcesClient) ListCompleteMatchingPredicate ¶
func (c ArtifactSourcesClient) ListCompleteMatchingPredicate(ctx context.Context, id LabId, options ListOperationOptions, predicate ArtifactSourceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ArtifactSourcesClient) Update ¶
func (c ArtifactSourcesClient) Update(ctx context.Context, id ArtifactSourceId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ArtifactSource }
type DeleteOperationResponse ¶
type EnableStatus ¶
type EnableStatus string
const ( EnableStatusDisabled EnableStatus = "Disabled" EnableStatusEnabled EnableStatus = "Enabled" )
func (*EnableStatus) UnmarshalJSON ¶
func (s *EnableStatus) UnmarshalJSON(bytes []byte) error
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ArtifactSource }
type LabId ¶
LabId is a struct representing the Resource ID for a Lab
func ParseLabID ¶
ParseLabID parses 'input' into a LabId
func ParseLabIDInsensitively ¶
ParseLabIDInsensitively parses 'input' case-insensitively into a LabId note: this method should only be used for API response data and not user input
func (*LabId) FromParseResult ¶
func (id *LabId) FromParseResult(input resourceids.ParseResult) error
func (LabId) Segments ¶
func (id LabId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Lab ID
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []ArtifactSource }
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ArtifactSource }
type SourceControlType ¶
type SourceControlType string
const ( SourceControlTypeGitHub SourceControlType = "GitHub" SourceControlTypeStorageAccount SourceControlType = "StorageAccount" SourceControlTypeVsoGit SourceControlType = "VsoGit" )
func (*SourceControlType) UnmarshalJSON ¶
func (s *SourceControlType) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ArtifactSource }