jobtargetexecutions

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobtargetexecutions Documentation

The jobtargetexecutions SDK allows for interaction with Azure Resource Manager sql (API Version 2023-08-01-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/sql/2023-08-01-preview/jobtargetexecutions"

Client Initialization

client := jobtargetexecutions.NewJobTargetExecutionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: JobTargetExecutionsClient.Get

ctx := context.TODO()
id := jobtargetexecutions.NewTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName", "jobName", "jobExecutionId", "stepName", "targetId")

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: JobTargetExecutionsClient.ListByJobExecution

ctx := context.TODO()
id := jobtargetexecutions.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName", "jobName", "jobExecutionId")

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

Example Usage: JobTargetExecutionsClient.ListByStep

ctx := context.TODO()
id := jobtargetexecutions.NewExecutionStepID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName", "jobName", "jobExecutionId", "stepName")

// alternatively `client.ListByStep(ctx, id, jobtargetexecutions.DefaultListByStepOperationOptions())` can be used to do batched pagination
items, err := client.ListByStepComplete(ctx, id, jobtargetexecutions.DefaultListByStepOperationOptions())
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 PossibleValuesForJobExecutionLifecycle

func PossibleValuesForJobExecutionLifecycle() []string

func PossibleValuesForJobTargetType

func PossibleValuesForJobTargetType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateExecutionID

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

ValidateExecutionID checks that 'input' can be parsed as a Execution ID

func ValidateExecutionStepID

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

ValidateExecutionStepID checks that 'input' can be parsed as a Execution Step ID

func ValidateTargetID

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

ValidateTargetID checks that 'input' can be parsed as a Target ID

Types

type ExecutionId

type ExecutionId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	JobAgentName      string
	JobName           string
	JobExecutionId    string
}

ExecutionId is a struct representing the Resource ID for a Execution

func NewExecutionID

func NewExecutionID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionId string) ExecutionId

NewExecutionID returns a new ExecutionId struct

func ParseExecutionID

func ParseExecutionID(input string) (*ExecutionId, error)

ParseExecutionID parses 'input' into a ExecutionId

func ParseExecutionIDInsensitively

func ParseExecutionIDInsensitively(input string) (*ExecutionId, error)

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

func (*ExecutionId) FromParseResult

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

func (ExecutionId) ID

func (id ExecutionId) ID() string

ID returns the formatted Execution ID

func (ExecutionId) Segments

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

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

func (ExecutionId) String

func (id ExecutionId) String() string

String returns a human-readable description of this Execution ID

type ExecutionStepId

type ExecutionStepId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	JobAgentName      string
	JobName           string
	JobExecutionId    string
	StepName          string
}

ExecutionStepId is a struct representing the Resource ID for a Execution Step

func NewExecutionStepID

func NewExecutionStepID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionId string, stepName string) ExecutionStepId

NewExecutionStepID returns a new ExecutionStepId struct

func ParseExecutionStepID

func ParseExecutionStepID(input string) (*ExecutionStepId, error)

ParseExecutionStepID parses 'input' into a ExecutionStepId

func ParseExecutionStepIDInsensitively

func ParseExecutionStepIDInsensitively(input string) (*ExecutionStepId, error)

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

func (*ExecutionStepId) FromParseResult

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

func (ExecutionStepId) ID

func (id ExecutionStepId) ID() string

ID returns the formatted Execution Step ID

func (ExecutionStepId) Segments

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

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

func (ExecutionStepId) String

func (id ExecutionStepId) String() string

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

type GetOperationResponse

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

type JobExecution

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

type JobExecutionLifecycle

type JobExecutionLifecycle string
const (
	JobExecutionLifecycleCanceled                     JobExecutionLifecycle = "Canceled"
	JobExecutionLifecycleCreated                      JobExecutionLifecycle = "Created"
	JobExecutionLifecycleFailed                       JobExecutionLifecycle = "Failed"
	JobExecutionLifecycleInProgress                   JobExecutionLifecycle = "InProgress"
	JobExecutionLifecycleSkipped                      JobExecutionLifecycle = "Skipped"
	JobExecutionLifecycleSucceeded                    JobExecutionLifecycle = "Succeeded"
	JobExecutionLifecycleSucceededWithSkipped         JobExecutionLifecycle = "SucceededWithSkipped"
	JobExecutionLifecycleTimedOut                     JobExecutionLifecycle = "TimedOut"
	JobExecutionLifecycleWaitingForChildJobExecutions JobExecutionLifecycle = "WaitingForChildJobExecutions"
	JobExecutionLifecycleWaitingForRetry              JobExecutionLifecycle = "WaitingForRetry"
)

func (*JobExecutionLifecycle) UnmarshalJSON

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

type JobExecutionOperationPredicate

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

func (JobExecutionOperationPredicate) Matches

type JobExecutionProperties

type JobExecutionProperties struct {
	CreateTime              *string                `json:"createTime,omitempty"`
	CurrentAttemptStartTime *string                `json:"currentAttemptStartTime,omitempty"`
	CurrentAttempts         *int64                 `json:"currentAttempts,omitempty"`
	EndTime                 *string                `json:"endTime,omitempty"`
	JobExecutionId          *string                `json:"jobExecutionId,omitempty"`
	JobVersion              *int64                 `json:"jobVersion,omitempty"`
	LastMessage             *string                `json:"lastMessage,omitempty"`
	Lifecycle               *JobExecutionLifecycle `json:"lifecycle,omitempty"`
	ProvisioningState       *ProvisioningState     `json:"provisioningState,omitempty"`
	StartTime               *string                `json:"startTime,omitempty"`
	StepId                  *int64                 `json:"stepId,omitempty"`
	StepName                *string                `json:"stepName,omitempty"`
	Target                  *JobExecutionTarget    `json:"target,omitempty"`
}

func (*JobExecutionProperties) GetCreateTimeAsTime

func (o *JobExecutionProperties) GetCreateTimeAsTime() (*time.Time, error)

func (*JobExecutionProperties) GetCurrentAttemptStartTimeAsTime

func (o *JobExecutionProperties) GetCurrentAttemptStartTimeAsTime() (*time.Time, error)

func (*JobExecutionProperties) GetEndTimeAsTime

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

func (*JobExecutionProperties) GetStartTimeAsTime

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

func (*JobExecutionProperties) SetCreateTimeAsTime

func (o *JobExecutionProperties) SetCreateTimeAsTime(input time.Time)

func (*JobExecutionProperties) SetCurrentAttemptStartTimeAsTime

func (o *JobExecutionProperties) SetCurrentAttemptStartTimeAsTime(input time.Time)

func (*JobExecutionProperties) SetEndTimeAsTime

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

func (*JobExecutionProperties) SetStartTimeAsTime

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

type JobExecutionTarget

type JobExecutionTarget struct {
	DatabaseName *string        `json:"databaseName,omitempty"`
	ServerName   *string        `json:"serverName,omitempty"`
	Type         *JobTargetType `json:"type,omitempty"`
}

type JobTargetExecutionsClient

type JobTargetExecutionsClient struct {
	Client *resourcemanager.Client
}

func NewJobTargetExecutionsClientWithBaseURI

func NewJobTargetExecutionsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobTargetExecutionsClient, error)

func (JobTargetExecutionsClient) Get

Get ...

func (JobTargetExecutionsClient) ListByJobExecution

ListByJobExecution ...

func (JobTargetExecutionsClient) ListByJobExecutionComplete

ListByJobExecutionComplete retrieves all the results into a single object

func (JobTargetExecutionsClient) ListByJobExecutionCompleteMatchingPredicate

func (c JobTargetExecutionsClient) ListByJobExecutionCompleteMatchingPredicate(ctx context.Context, id ExecutionId, options ListByJobExecutionOperationOptions, predicate JobExecutionOperationPredicate) (result ListByJobExecutionCompleteResult, err error)

ListByJobExecutionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JobTargetExecutionsClient) ListByStep

ListByStep ...

func (JobTargetExecutionsClient) ListByStepComplete

ListByStepComplete retrieves all the results into a single object

func (JobTargetExecutionsClient) ListByStepCompleteMatchingPredicate

func (c JobTargetExecutionsClient) ListByStepCompleteMatchingPredicate(ctx context.Context, id ExecutionStepId, options ListByStepOperationOptions, predicate JobExecutionOperationPredicate) (result ListByStepCompleteResult, err error)

ListByStepCompleteMatchingPredicate retrieves all the results and then applies the predicate

type JobTargetType

type JobTargetType string
const (
	JobTargetTypeSqlDatabase    JobTargetType = "SqlDatabase"
	JobTargetTypeSqlElasticPool JobTargetType = "SqlElasticPool"
	JobTargetTypeSqlServer      JobTargetType = "SqlServer"
	JobTargetTypeSqlShardMap    JobTargetType = "SqlShardMap"
	JobTargetTypeTargetGroup    JobTargetType = "TargetGroup"
)

func (*JobTargetType) UnmarshalJSON

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

type ListByJobExecutionCompleteResult

type ListByJobExecutionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []JobExecution
}

type ListByJobExecutionCustomPager

type ListByJobExecutionCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByJobExecutionCustomPager) NextPageLink() *odata.Link

type ListByJobExecutionOperationOptions

type ListByJobExecutionOperationOptions struct {
	CreateTimeMax *string
	CreateTimeMin *string
	EndTimeMax    *string
	EndTimeMin    *string
	IsActive      *bool
	Skip          *int64
	Top           *int64
}

func DefaultListByJobExecutionOperationOptions

func DefaultListByJobExecutionOperationOptions() ListByJobExecutionOperationOptions

func (ListByJobExecutionOperationOptions) ToHeaders

func (ListByJobExecutionOperationOptions) ToOData

func (ListByJobExecutionOperationOptions) ToQuery

type ListByJobExecutionOperationResponse

type ListByJobExecutionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]JobExecution
}

type ListByStepCompleteResult

type ListByStepCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []JobExecution
}

type ListByStepCustomPager

type ListByStepCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByStepCustomPager) NextPageLink() *odata.Link

type ListByStepOperationOptions

type ListByStepOperationOptions struct {
	CreateTimeMax *string
	CreateTimeMin *string
	EndTimeMax    *string
	EndTimeMin    *string
	IsActive      *bool
	Skip          *int64
	Top           *int64
}

func DefaultListByStepOperationOptions

func DefaultListByStepOperationOptions() ListByStepOperationOptions

func (ListByStepOperationOptions) ToHeaders

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

func (ListByStepOperationOptions) ToOData

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

func (ListByStepOperationOptions) ToQuery

type ListByStepOperationResponse

type ListByStepOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]JobExecution
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled   ProvisioningState = "Canceled"
	ProvisioningStateCreated    ProvisioningState = "Created"
	ProvisioningStateFailed     ProvisioningState = "Failed"
	ProvisioningStateInProgress ProvisioningState = "InProgress"
	ProvisioningStateSucceeded  ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

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

type TargetId

type TargetId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	JobAgentName      string
	JobName           string
	JobExecutionId    string
	StepName          string
	TargetId          string
}

TargetId is a struct representing the Resource ID for a Target

func NewTargetID

func NewTargetID(subscriptionId string, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionId string, stepName string, targetId string) TargetId

NewTargetID returns a new TargetId struct

func ParseTargetID

func ParseTargetID(input string) (*TargetId, error)

ParseTargetID parses 'input' into a TargetId

func ParseTargetIDInsensitively

func ParseTargetIDInsensitively(input string) (*TargetId, error)

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

func (*TargetId) FromParseResult

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

func (TargetId) ID

func (id TargetId) ID() string

ID returns the formatted Target ID

func (TargetId) Segments

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

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

func (TargetId) String

func (id TargetId) String() string

String returns a human-readable description of this Target ID

Jump to

Keyboard shortcuts

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