experiments

package
v0.20231108.1171627 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-04-15-preview/experiments Documentation

The experiments SDK allows for interaction with the Azure Resource Manager Service chaosstudio (API Version 2023-04-15-preview).

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/chaosstudio/2023-04-15-preview/experiments"

Client Initialization

client := experiments.NewExperimentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ExperimentsClient.Cancel

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

read, err := client.Cancel(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentsClient.CreateOrUpdate

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

payload := experiments.Experiment{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentsClient.Delete

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentsClient.Get

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

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: ExperimentsClient.GetExecutionDetails

ctx := context.TODO()
id := experiments.NewExecutionDetailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue", "executionDetailsIdValue")

read, err := client.GetExecutionDetails(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentsClient.GetStatus

ctx := context.TODO()
id := experiments.NewStatusID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue", "statusIdValue")

read, err := client.GetStatus(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentsClient.List

ctx := context.TODO()
id := experiments.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.List(ctx, id, experiments.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, experiments.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ExperimentsClient.ListAll

ctx := context.TODO()
id := experiments.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ListAll(ctx, id, experiments.DefaultListAllOperationOptions())` can be used to do batched pagination
items, err := client.ListAllComplete(ctx, id, experiments.DefaultListAllOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ExperimentsClient.ListAllStatuses

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

// alternatively `client.ListAllStatuses(ctx, id)` can be used to do batched pagination
items, err := client.ListAllStatusesComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ExperimentsClient.ListExecutionDetails

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

// alternatively `client.ListExecutionDetails(ctx, id)` can be used to do batched pagination
items, err := client.ListExecutionDetailsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ExperimentsClient.Start

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

read, err := client.Start(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentsClient.Update

ctx := context.TODO()
id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue")

payload := experiments.ExperimentUpdate{
	// ...
}


read, err := client.Update(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForFilterType

func PossibleValuesForFilterType() []string

func PossibleValuesForSelectorType

func PossibleValuesForSelectorType() []string

func ValidateExecutionDetailID

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

ValidateExecutionDetailID checks that 'input' can be parsed as a Execution Detail ID

func ValidateExperimentID

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

ValidateExperimentID checks that 'input' can be parsed as a Experiment ID

func ValidateStatusID

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

ValidateStatusID checks that 'input' can be parsed as a Status ID

Types

type Action

type Action struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type ActionStatus

type ActionStatus struct {
	ActionId   *string                                             `json:"actionId,omitempty"`
	ActionName *string                                             `json:"actionName,omitempty"`
	EndTime    *string                                             `json:"endTime,omitempty"`
	StartTime  *string                                             `json:"startTime,omitempty"`
	Status     *string                                             `json:"status,omitempty"`
	Targets    *[]ExperimentExecutionActionTargetDetailsProperties `json:"targets,omitempty"`
}

func (*ActionStatus) GetEndTimeAsTime

func (o *ActionStatus) GetEndTimeAsTime() (*time.Time, error)

func (*ActionStatus) GetStartTimeAsTime

func (o *ActionStatus) GetStartTimeAsTime() (*time.Time, error)

func (*ActionStatus) SetEndTimeAsTime

func (o *ActionStatus) SetEndTimeAsTime(input time.Time)

func (*ActionStatus) SetStartTimeAsTime

func (o *ActionStatus) SetStartTimeAsTime(input time.Time)

type Branch

type Branch struct {
	Actions []Action `json:"actions"`
	Name    string   `json:"name"`
}

type BranchStatus

type BranchStatus struct {
	Actions    *[]ActionStatus `json:"actions,omitempty"`
	BranchId   *string         `json:"branchId,omitempty"`
	BranchName *string         `json:"branchName,omitempty"`
	Status     *string         `json:"status,omitempty"`
}

type CancelOperationResponse

type CancelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExperimentCancelOperationResult
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Experiment
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ExecutionDetailId

type ExecutionDetailId struct {
	SubscriptionId     string
	ResourceGroupName  string
	ExperimentName     string
	ExecutionDetailsId string
}

ExecutionDetailId is a struct representing the Resource ID for a Execution Detail

func NewExecutionDetailID

func NewExecutionDetailID(subscriptionId string, resourceGroupName string, experimentName string, executionDetailsId string) ExecutionDetailId

NewExecutionDetailID returns a new ExecutionDetailId struct

func ParseExecutionDetailID

func ParseExecutionDetailID(input string) (*ExecutionDetailId, error)

ParseExecutionDetailID parses 'input' into a ExecutionDetailId

func ParseExecutionDetailIDInsensitively

func ParseExecutionDetailIDInsensitively(input string) (*ExecutionDetailId, error)

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

func (ExecutionDetailId) ID

func (id ExecutionDetailId) ID() string

ID returns the formatted Execution Detail ID

func (ExecutionDetailId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Execution Detail ID

func (ExecutionDetailId) String

func (id ExecutionDetailId) String() string

String returns a human-readable description of this Execution Detail ID

type Experiment

type Experiment struct {
	Id         *string                           `json:"id,omitempty"`
	Identity   *identity.SystemOrUserAssignedMap `json:"identity,omitempty"`
	Location   string                            `json:"location"`
	Name       *string                           `json:"name,omitempty"`
	Properties ExperimentProperties              `json:"properties"`
	SystemData *systemdata.SystemData            `json:"systemData,omitempty"`
	Tags       *map[string]string                `json:"tags,omitempty"`
	Type       *string                           `json:"type,omitempty"`
}

type ExperimentCancelOperationResult

type ExperimentCancelOperationResult struct {
	Name      *string `json:"name,omitempty"`
	StatusUrl *string `json:"statusUrl,omitempty"`
}

type ExperimentExecutionActionTargetDetailsError

type ExperimentExecutionActionTargetDetailsError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type ExperimentExecutionActionTargetDetailsProperties

type ExperimentExecutionActionTargetDetailsProperties struct {
	Error               *ExperimentExecutionActionTargetDetailsError `json:"error,omitempty"`
	Status              *string                                      `json:"status,omitempty"`
	Target              *string                                      `json:"target,omitempty"`
	TargetCompletedTime *string                                      `json:"targetCompletedTime,omitempty"`
	TargetFailedTime    *string                                      `json:"targetFailedTime,omitempty"`
}

func (*ExperimentExecutionActionTargetDetailsProperties) GetTargetCompletedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) GetTargetCompletedTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionActionTargetDetailsProperties) GetTargetFailedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) GetTargetFailedTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionActionTargetDetailsProperties) SetTargetCompletedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) SetTargetCompletedTimeAsTime(input time.Time)

func (*ExperimentExecutionActionTargetDetailsProperties) SetTargetFailedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) SetTargetFailedTimeAsTime(input time.Time)

type ExperimentExecutionDetails

type ExperimentExecutionDetails struct {
	Id         *string                               `json:"id,omitempty"`
	Name       *string                               `json:"name,omitempty"`
	Properties *ExperimentExecutionDetailsProperties `json:"properties,omitempty"`
	Type       *string                               `json:"type,omitempty"`
}

type ExperimentExecutionDetailsOperationPredicate

type ExperimentExecutionDetailsOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ExperimentExecutionDetailsOperationPredicate) Matches

type ExperimentExecutionDetailsProperties

type ExperimentExecutionDetailsProperties struct {
	CreatedDateTime    *string                                             `json:"createdDateTime,omitempty"`
	ExperimentId       *string                                             `json:"experimentId,omitempty"`
	FailureReason      *string                                             `json:"failureReason,omitempty"`
	LastActionDateTime *string                                             `json:"lastActionDateTime,omitempty"`
	RunInformation     *ExperimentExecutionDetailsPropertiesRunInformation `json:"runInformation,omitempty"`
	StartDateTime      *string                                             `json:"startDateTime,omitempty"`
	Status             *string                                             `json:"status,omitempty"`
	StopDateTime       *string                                             `json:"stopDateTime,omitempty"`
}

func (*ExperimentExecutionDetailsProperties) GetCreatedDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) GetCreatedDateTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) GetLastActionDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) GetLastActionDateTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) GetStartDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) GetStartDateTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) GetStopDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) GetStopDateTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) SetCreatedDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) SetCreatedDateTimeAsTime(input time.Time)

func (*ExperimentExecutionDetailsProperties) SetLastActionDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) SetLastActionDateTimeAsTime(input time.Time)

func (*ExperimentExecutionDetailsProperties) SetStartDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) SetStartDateTimeAsTime(input time.Time)

func (*ExperimentExecutionDetailsProperties) SetStopDateTimeAsTime

func (o *ExperimentExecutionDetailsProperties) SetStopDateTimeAsTime(input time.Time)

type ExperimentExecutionDetailsPropertiesRunInformation

type ExperimentExecutionDetailsPropertiesRunInformation struct {
	Steps *[]StepStatus `json:"steps,omitempty"`
}

type ExperimentId

type ExperimentId struct {
	SubscriptionId    string
	ResourceGroupName string
	ExperimentName    string
}

ExperimentId is a struct representing the Resource ID for a Experiment

func NewExperimentID

func NewExperimentID(subscriptionId string, resourceGroupName string, experimentName string) ExperimentId

NewExperimentID returns a new ExperimentId struct

func ParseExperimentID

func ParseExperimentID(input string) (*ExperimentId, error)

ParseExperimentID parses 'input' into a ExperimentId

func ParseExperimentIDInsensitively

func ParseExperimentIDInsensitively(input string) (*ExperimentId, error)

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

func (ExperimentId) ID

func (id ExperimentId) ID() string

ID returns the formatted Experiment ID

func (ExperimentId) Segments

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

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

func (ExperimentId) String

func (id ExperimentId) String() string

String returns a human-readable description of this Experiment ID

type ExperimentOperationPredicate

type ExperimentOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ExperimentOperationPredicate) Matches

func (p ExperimentOperationPredicate) Matches(input Experiment) bool

type ExperimentProperties

type ExperimentProperties struct {
	Selectors       []Selector `json:"selectors"`
	StartOnCreation *bool      `json:"startOnCreation,omitempty"`
	Steps           []Step     `json:"steps"`
}

type ExperimentStartOperationResult

type ExperimentStartOperationResult struct {
	Name      *string `json:"name,omitempty"`
	StatusUrl *string `json:"statusUrl,omitempty"`
}

type ExperimentStatus

type ExperimentStatus struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *ExperimentStatusProperties `json:"properties,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type ExperimentStatusOperationPredicate

type ExperimentStatusOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ExperimentStatusOperationPredicate) Matches

type ExperimentStatusProperties

type ExperimentStatusProperties struct {
	CreatedDateUtc *string `json:"createdDateUtc,omitempty"`
	EndDateUtc     *string `json:"endDateUtc,omitempty"`
	Status         *string `json:"status,omitempty"`
}

func (*ExperimentStatusProperties) GetCreatedDateUtcAsTime

func (o *ExperimentStatusProperties) GetCreatedDateUtcAsTime() (*time.Time, error)

func (*ExperimentStatusProperties) GetEndDateUtcAsTime

func (o *ExperimentStatusProperties) GetEndDateUtcAsTime() (*time.Time, error)

func (*ExperimentStatusProperties) SetCreatedDateUtcAsTime

func (o *ExperimentStatusProperties) SetCreatedDateUtcAsTime(input time.Time)

func (*ExperimentStatusProperties) SetEndDateUtcAsTime

func (o *ExperimentStatusProperties) SetEndDateUtcAsTime(input time.Time)

type ExperimentUpdate

type ExperimentUpdate struct {
	Identity *identity.SystemOrUserAssignedMap `json:"identity,omitempty"`
}

type ExperimentsClient

type ExperimentsClient struct {
	Client *resourcemanager.Client
}

func NewExperimentsClientWithBaseURI

func NewExperimentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExperimentsClient, error)

func (ExperimentsClient) Cancel

Cancel ...

func (ExperimentsClient) CreateOrUpdate

func (c ExperimentsClient) CreateOrUpdate(ctx context.Context, id ExperimentId, input Experiment) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (ExperimentsClient) Delete

Delete ...

func (ExperimentsClient) Get

Get ...

func (ExperimentsClient) GetExecutionDetails

GetExecutionDetails ...

func (ExperimentsClient) GetStatus

func (c ExperimentsClient) GetStatus(ctx context.Context, id StatusId) (result GetStatusOperationResponse, err error)

GetStatus ...

func (ExperimentsClient) List

List ...

func (ExperimentsClient) ListAll

ListAll ...

func (ExperimentsClient) ListAllComplete

ListAllComplete retrieves all the results into a single object

func (ExperimentsClient) ListAllCompleteMatchingPredicate

func (c ExperimentsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions, predicate ExperimentOperationPredicate) (result ListAllCompleteResult, err error)

ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExperimentsClient) ListAllStatuses

func (c ExperimentsClient) ListAllStatuses(ctx context.Context, id ExperimentId) (result ListAllStatusesOperationResponse, err error)

ListAllStatuses ...

func (ExperimentsClient) ListAllStatusesComplete

func (c ExperimentsClient) ListAllStatusesComplete(ctx context.Context, id ExperimentId) (ListAllStatusesCompleteResult, error)

ListAllStatusesComplete retrieves all the results into a single object

func (ExperimentsClient) ListAllStatusesCompleteMatchingPredicate

func (c ExperimentsClient) ListAllStatusesCompleteMatchingPredicate(ctx context.Context, id ExperimentId, predicate ExperimentStatusOperationPredicate) (result ListAllStatusesCompleteResult, err error)

ListAllStatusesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExperimentsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ExperimentsClient) ListCompleteMatchingPredicate

func (c ExperimentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions, predicate ExperimentOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExperimentsClient) ListExecutionDetails

func (c ExperimentsClient) ListExecutionDetails(ctx context.Context, id ExperimentId) (result ListExecutionDetailsOperationResponse, err error)

ListExecutionDetails ...

func (ExperimentsClient) ListExecutionDetailsComplete

func (c ExperimentsClient) ListExecutionDetailsComplete(ctx context.Context, id ExperimentId) (ListExecutionDetailsCompleteResult, error)

ListExecutionDetailsComplete retrieves all the results into a single object

func (ExperimentsClient) ListExecutionDetailsCompleteMatchingPredicate

func (c ExperimentsClient) ListExecutionDetailsCompleteMatchingPredicate(ctx context.Context, id ExperimentId, predicate ExperimentExecutionDetailsOperationPredicate) (result ListExecutionDetailsCompleteResult, err error)

ListExecutionDetailsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExperimentsClient) Start

Start ...

func (ExperimentsClient) Update

Update ...

type Filter

type Filter struct {
	Type FilterType `json:"type"`
}

type FilterType

type FilterType string
const (
	FilterTypeSimple FilterType = "Simple"
)

func (*FilterType) UnmarshalJSON

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

type GetExecutionDetailsOperationResponse

type GetExecutionDetailsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExperimentExecutionDetails
}

type GetOperationResponse

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

type GetStatusOperationResponse

type GetStatusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExperimentStatus
}

type ListAllCompleteResult

type ListAllCompleteResult struct {
	Items []Experiment
}

type ListAllOperationOptions

type ListAllOperationOptions struct {
	ContinuationToken *string
	Running           *bool
}

func DefaultListAllOperationOptions

func DefaultListAllOperationOptions() ListAllOperationOptions

func (ListAllOperationOptions) ToHeaders

func (o ListAllOperationOptions) ToHeaders() *client.Headers

func (ListAllOperationOptions) ToOData

func (o ListAllOperationOptions) ToOData() *odata.Query

func (ListAllOperationOptions) ToQuery

type ListAllOperationResponse

type ListAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Experiment
}

type ListAllStatusesCompleteResult

type ListAllStatusesCompleteResult struct {
	Items []ExperimentStatus
}

type ListAllStatusesOperationResponse

type ListAllStatusesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExperimentStatus
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []Experiment
}

type ListExecutionDetailsCompleteResult

type ListExecutionDetailsCompleteResult struct {
	Items []ExperimentExecutionDetails
}

type ListExecutionDetailsOperationResponse

type ListExecutionDetailsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExperimentExecutionDetails
}

type ListOperationOptions

type ListOperationOptions struct {
	ContinuationToken *string
	Running           *bool
}

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Experiment
}

type Selector

type Selector struct {
	Filter *Filter      `json:"filter,omitempty"`
	Id     string       `json:"id"`
	Type   SelectorType `json:"type"`
}

type SelectorType

type SelectorType string
const (
	SelectorTypeList  SelectorType = "List"
	SelectorTypeQuery SelectorType = "Query"
)

func (*SelectorType) UnmarshalJSON

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

type StartOperationResponse

type StartOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExperimentStartOperationResult
}

type StatusId

type StatusId struct {
	SubscriptionId    string
	ResourceGroupName string
	ExperimentName    string
	StatusId          string
}

StatusId is a struct representing the Resource ID for a Status

func NewStatusID

func NewStatusID(subscriptionId string, resourceGroupName string, experimentName string, statusId string) StatusId

NewStatusID returns a new StatusId struct

func ParseStatusID

func ParseStatusID(input string) (*StatusId, error)

ParseStatusID parses 'input' into a StatusId

func ParseStatusIDInsensitively

func ParseStatusIDInsensitively(input string) (*StatusId, error)

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

func (StatusId) ID

func (id StatusId) ID() string

ID returns the formatted Status ID

func (StatusId) Segments

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

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

func (StatusId) String

func (id StatusId) String() string

String returns a human-readable description of this Status ID

type Step

type Step struct {
	Branches []Branch `json:"branches"`
	Name     string   `json:"name"`
}

type StepStatus

type StepStatus struct {
	Branches *[]BranchStatus `json:"branches,omitempty"`
	Status   *string         `json:"status,omitempty"`
	StepId   *string         `json:"stepId,omitempty"`
	StepName *string         `json:"stepName,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Experiment
}

Jump to

Keyboard shortcuts

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