Documentation ¶
Index ¶
- func PossibleValuesForIncidentTaskStatus() []string
- func ValidateIncidentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTaskID(input interface{}, key string) (warnings []string, errors []error)
- type ClientInfo
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type IncidentId
- type IncidentTask
- type IncidentTaskOperationPredicate
- type IncidentTaskProperties
- func (o *IncidentTaskProperties) GetCreatedTimeUtcAsTime() (*time.Time, error)
- func (o *IncidentTaskProperties) GetLastModifiedTimeUtcAsTime() (*time.Time, error)
- func (o *IncidentTaskProperties) SetCreatedTimeUtcAsTime(input time.Time)
- func (o *IncidentTaskProperties) SetLastModifiedTimeUtcAsTime(input time.Time)
- type IncidentTaskStatus
- type IncidentTasksClient
- func (c IncidentTasksClient) CreateOrUpdate(ctx context.Context, id TaskId, input IncidentTask) (result CreateOrUpdateOperationResponse, err error)
- func (c IncidentTasksClient) Delete(ctx context.Context, id TaskId) (result DeleteOperationResponse, err error)
- func (c IncidentTasksClient) Get(ctx context.Context, id TaskId) (result GetOperationResponse, err error)
- func (c IncidentTasksClient) List(ctx context.Context, id IncidentId) (result ListOperationResponse, err error)
- func (c IncidentTasksClient) ListComplete(ctx context.Context, id IncidentId) (ListCompleteResult, error)
- func (c IncidentTasksClient) ListCompleteMatchingPredicate(ctx context.Context, id IncidentId, predicate IncidentTaskOperationPredicate) (result ListCompleteResult, err error)
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type TaskId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForIncidentTaskStatus ¶
func PossibleValuesForIncidentTaskStatus() []string
func ValidateIncidentID ¶
ValidateIncidentID checks that 'input' can be parsed as a Incident ID
func ValidateTaskID ¶
ValidateTaskID checks that 'input' can be parsed as a Task ID
Types ¶
type ClientInfo ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *IncidentTask }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *IncidentTask }
type IncidentId ¶
type IncidentId struct { SubscriptionId string ResourceGroupName string WorkspaceName string IncidentIdentifier string }
IncidentId is a struct representing the Resource ID for a Incident
func NewIncidentID ¶
func NewIncidentID(subscriptionId string, resourceGroupName string, workspaceName string, incidentIdentifier string) IncidentId
NewIncidentID returns a new IncidentId struct
func ParseIncidentID ¶
func ParseIncidentID(input string) (*IncidentId, error)
ParseIncidentID parses 'input' into a IncidentId
func ParseIncidentIDInsensitively ¶
func ParseIncidentIDInsensitively(input string) (*IncidentId, error)
ParseIncidentIDInsensitively parses 'input' case-insensitively into a IncidentId note: this method should only be used for API response data and not user input
func (*IncidentId) FromParseResult ¶
func (id *IncidentId) FromParseResult(input resourceids.ParseResult) error
func (IncidentId) Segments ¶
func (id IncidentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Incident ID
func (IncidentId) String ¶
func (id IncidentId) String() string
String returns a human-readable description of this Incident ID
type IncidentTask ¶
type IncidentTask struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties IncidentTaskProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type IncidentTaskOperationPredicate ¶
func (IncidentTaskOperationPredicate) Matches ¶
func (p IncidentTaskOperationPredicate) Matches(input IncidentTask) bool
type IncidentTaskProperties ¶
type IncidentTaskProperties struct { CreatedBy *ClientInfo `json:"createdBy,omitempty"` CreatedTimeUtc *string `json:"createdTimeUtc,omitempty"` Description *string `json:"description,omitempty"` LastModifiedBy *ClientInfo `json:"lastModifiedBy,omitempty"` LastModifiedTimeUtc *string `json:"lastModifiedTimeUtc,omitempty"` Status IncidentTaskStatus `json:"status"` Title string `json:"title"` }
func (*IncidentTaskProperties) GetCreatedTimeUtcAsTime ¶
func (o *IncidentTaskProperties) GetCreatedTimeUtcAsTime() (*time.Time, error)
func (*IncidentTaskProperties) GetLastModifiedTimeUtcAsTime ¶
func (o *IncidentTaskProperties) GetLastModifiedTimeUtcAsTime() (*time.Time, error)
func (*IncidentTaskProperties) SetCreatedTimeUtcAsTime ¶
func (o *IncidentTaskProperties) SetCreatedTimeUtcAsTime(input time.Time)
func (*IncidentTaskProperties) SetLastModifiedTimeUtcAsTime ¶
func (o *IncidentTaskProperties) SetLastModifiedTimeUtcAsTime(input time.Time)
type IncidentTaskStatus ¶
type IncidentTaskStatus string
const ( IncidentTaskStatusCompleted IncidentTaskStatus = "Completed" IncidentTaskStatusNew IncidentTaskStatus = "New" )
func (*IncidentTaskStatus) UnmarshalJSON ¶
func (s *IncidentTaskStatus) UnmarshalJSON(bytes []byte) error
type IncidentTasksClient ¶
type IncidentTasksClient struct {
Client *resourcemanager.Client
}
func NewIncidentTasksClientWithBaseURI ¶
func NewIncidentTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*IncidentTasksClient, error)
func (IncidentTasksClient) CreateOrUpdate ¶
func (c IncidentTasksClient) CreateOrUpdate(ctx context.Context, id TaskId, input IncidentTask) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (IncidentTasksClient) Delete ¶
func (c IncidentTasksClient) Delete(ctx context.Context, id TaskId) (result DeleteOperationResponse, err error)
Delete ...
func (IncidentTasksClient) Get ¶
func (c IncidentTasksClient) Get(ctx context.Context, id TaskId) (result GetOperationResponse, err error)
Get ...
func (IncidentTasksClient) List ¶
func (c IncidentTasksClient) List(ctx context.Context, id IncidentId) (result ListOperationResponse, err error)
List ...
func (IncidentTasksClient) ListComplete ¶
func (c IncidentTasksClient) ListComplete(ctx context.Context, id IncidentId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (IncidentTasksClient) ListCompleteMatchingPredicate ¶
func (c IncidentTasksClient) ListCompleteMatchingPredicate(ctx context.Context, id IncidentId, predicate IncidentTaskOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []IncidentTask }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]IncidentTask }
type TaskId ¶
type TaskId struct { SubscriptionId string ResourceGroupName string WorkspaceName string IncidentId string IncidentTaskId string }
TaskId is a struct representing the Resource ID for a Task
func NewTaskID ¶
func NewTaskID(subscriptionId string, resourceGroupName string, workspaceName string, incidentId string, incidentTaskId string) TaskId
NewTaskID returns a new TaskId struct
func ParseTaskID ¶
ParseTaskID parses 'input' into a TaskId
func ParseTaskIDInsensitively ¶
ParseTaskIDInsensitively parses 'input' case-insensitively into a TaskId note: this method should only be used for API response data and not user input
func (*TaskId) FromParseResult ¶
func (id *TaskId) FromParseResult(input resourceids.ParseResult) error
func (TaskId) Segments ¶
func (id TaskId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Task ID