Documentation ¶
Index ¶
- func PossibleValuesForHTTPStatusCode() []string
- func ValidateRunbookID(input interface{}, key string) (warnings []string, errors []error)
- type ContentHash
- type ContentLink
- type GetContentOperationResponse
- type GetOperationResponse
- type HTTPStatusCode
- type PublishOperationResponse
- type ReplaceContentOperationResponse
- type RunbookDraft
- type RunbookDraftClient
- func (c RunbookDraftClient) Get(ctx context.Context, id RunbookId) (result GetOperationResponse, err error)
- func (c RunbookDraftClient) GetContent(ctx context.Context, id RunbookId) (result GetContentOperationResponse, err error)
- func (c RunbookDraftClient) Publish(ctx context.Context, id RunbookId) (result PublishOperationResponse, err error)
- func (c RunbookDraftClient) PublishThenPoll(ctx context.Context, id RunbookId) error
- func (c RunbookDraftClient) ReplaceContent(ctx context.Context, id RunbookId, input []byte) (result ReplaceContentOperationResponse, err error)
- func (c RunbookDraftClient) ReplaceContentThenPoll(ctx context.Context, id RunbookId, input []byte) error
- func (c RunbookDraftClient) UndoEdit(ctx context.Context, id RunbookId) (result UndoEditOperationResponse, err error)
- type RunbookDraftUndoEditResult
- type RunbookId
- type RunbookParameter
- type UndoEditOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForHTTPStatusCode ¶
func PossibleValuesForHTTPStatusCode() []string
func ValidateRunbookID ¶
ValidateRunbookID checks that 'input' can be parsed as a Runbook ID
Types ¶
type ContentHash ¶
type ContentLink ¶
type ContentLink struct { ContentHash *ContentHash `json:"contentHash,omitempty"` Uri *string `json:"uri,omitempty"` Version *string `json:"version,omitempty"` }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *RunbookDraft }
type HTTPStatusCode ¶
type HTTPStatusCode string
const ( HTTPStatusCodeAccepted HTTPStatusCode = "Accepted" HTTPStatusCodeAmbiguous HTTPStatusCode = "Ambiguous" HTTPStatusCodeBadGateway HTTPStatusCode = "BadGateway" HTTPStatusCodeBadRequest HTTPStatusCode = "BadRequest" HTTPStatusCodeConflict HTTPStatusCode = "Conflict" HTTPStatusCodeContinue HTTPStatusCode = "Continue" HTTPStatusCodeCreated HTTPStatusCode = "Created" HTTPStatusCodeExpectationFailed HTTPStatusCode = "ExpectationFailed" HTTPStatusCodeForbidden HTTPStatusCode = "Forbidden" HTTPStatusCodeFound HTTPStatusCode = "Found" HTTPStatusCodeGatewayTimeout HTTPStatusCode = "GatewayTimeout" HTTPStatusCodeGone HTTPStatusCode = "Gone" HTTPStatusCodeHTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported" HTTPStatusCodeInternalServerError HTTPStatusCode = "InternalServerError" HTTPStatusCodeLengthRequired HTTPStatusCode = "LengthRequired" HTTPStatusCodeMethodNotAllowed HTTPStatusCode = "MethodNotAllowed" HTTPStatusCodeMoved HTTPStatusCode = "Moved" HTTPStatusCodeMovedPermanently HTTPStatusCode = "MovedPermanently" HTTPStatusCodeMultipleChoices HTTPStatusCode = "MultipleChoices" HTTPStatusCodeNoContent HTTPStatusCode = "NoContent" HTTPStatusCodeNonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation" HTTPStatusCodeNotAcceptable HTTPStatusCode = "NotAcceptable" HTTPStatusCodeNotFound HTTPStatusCode = "NotFound" HTTPStatusCodeNotImplemented HTTPStatusCode = "NotImplemented" HTTPStatusCodeNotModified HTTPStatusCode = "NotModified" HTTPStatusCodeOK HTTPStatusCode = "OK" HTTPStatusCodePartialContent HTTPStatusCode = "PartialContent" HTTPStatusCodePaymentRequired HTTPStatusCode = "PaymentRequired" HTTPStatusCodePreconditionFailed HTTPStatusCode = "PreconditionFailed" HTTPStatusCodeProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired" HTTPStatusCodeRedirect HTTPStatusCode = "Redirect" HTTPStatusCodeRedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb" HTTPStatusCodeRedirectMethod HTTPStatusCode = "RedirectMethod" HTTPStatusCodeRequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge" HTTPStatusCodeRequestTimeout HTTPStatusCode = "RequestTimeout" HTTPStatusCodeRequestUriTooLong HTTPStatusCode = "RequestUriTooLong" HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable" HTTPStatusCodeResetContent HTTPStatusCode = "ResetContent" HTTPStatusCodeSeeOther HTTPStatusCode = "SeeOther" HTTPStatusCodeSwitchingProtocols HTTPStatusCode = "SwitchingProtocols" HTTPStatusCodeTemporaryRedirect HTTPStatusCode = "TemporaryRedirect" HTTPStatusCodeUnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType" HTTPStatusCodeUnused HTTPStatusCode = "Unused" HTTPStatusCodeUpgradeRequired HTTPStatusCode = "UpgradeRequired" HTTPStatusCodeUseProxy HTTPStatusCode = "UseProxy" )
type PublishOperationResponse ¶
type PublishOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ReplaceContentOperationResponse ¶
type ReplaceContentOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type RunbookDraft ¶
type RunbookDraft struct { CreationTime *string `json:"creationTime,omitempty"` DraftContentLink *ContentLink `json:"draftContentLink,omitempty"` InEdit *bool `json:"inEdit,omitempty"` LastModifiedTime *string `json:"lastModifiedTime,omitempty"` OutputTypes *[]string `json:"outputTypes,omitempty"` Parameters *map[string]RunbookParameter `json:"parameters,omitempty"` }
func (*RunbookDraft) GetCreationTimeAsTime ¶
func (o *RunbookDraft) GetCreationTimeAsTime() (*time.Time, error)
func (*RunbookDraft) GetLastModifiedTimeAsTime ¶
func (o *RunbookDraft) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*RunbookDraft) SetCreationTimeAsTime ¶
func (o *RunbookDraft) SetCreationTimeAsTime(input time.Time)
func (*RunbookDraft) SetLastModifiedTimeAsTime ¶
func (o *RunbookDraft) SetLastModifiedTimeAsTime(input time.Time)
type RunbookDraftClient ¶
func NewRunbookDraftClientWithBaseURI ¶
func NewRunbookDraftClientWithBaseURI(endpoint string) RunbookDraftClient
func (RunbookDraftClient) Get ¶
func (c RunbookDraftClient) Get(ctx context.Context, id RunbookId) (result GetOperationResponse, err error)
Get ...
func (RunbookDraftClient) GetContent ¶
func (c RunbookDraftClient) GetContent(ctx context.Context, id RunbookId) (result GetContentOperationResponse, err error)
GetContent ...
func (RunbookDraftClient) Publish ¶
func (c RunbookDraftClient) Publish(ctx context.Context, id RunbookId) (result PublishOperationResponse, err error)
Publish ...
func (RunbookDraftClient) PublishThenPoll ¶
func (c RunbookDraftClient) PublishThenPoll(ctx context.Context, id RunbookId) error
PublishThenPoll performs Publish then polls until it's completed
func (RunbookDraftClient) ReplaceContent ¶
func (c RunbookDraftClient) ReplaceContent(ctx context.Context, id RunbookId, input []byte) (result ReplaceContentOperationResponse, err error)
ReplaceContent ...
func (RunbookDraftClient) ReplaceContentThenPoll ¶
func (c RunbookDraftClient) ReplaceContentThenPoll(ctx context.Context, id RunbookId, input []byte) error
ReplaceContentThenPoll performs ReplaceContent then polls until it's completed
func (RunbookDraftClient) UndoEdit ¶
func (c RunbookDraftClient) UndoEdit(ctx context.Context, id RunbookId) (result UndoEditOperationResponse, err error)
UndoEdit ...
type RunbookDraftUndoEditResult ¶
type RunbookDraftUndoEditResult struct { RequestId *string `json:"requestId,omitempty"` StatusCode *HTTPStatusCode `json:"statusCode,omitempty"` }
type RunbookId ¶
type RunbookId struct { SubscriptionId string ResourceGroupName string AutomationAccountName string RunbookName string }
RunbookId is a struct representing the Resource ID for a Runbook
func NewRunbookID ¶
func NewRunbookID(subscriptionId string, resourceGroupName string, automationAccountName string, runbookName string) RunbookId
NewRunbookID returns a new RunbookId struct
func ParseRunbookID ¶
ParseRunbookID parses 'input' into a RunbookId
func ParseRunbookIDInsensitively ¶
ParseRunbookIDInsensitively parses 'input' case-insensitively into a RunbookId note: this method should only be used for API response data and not user input
func (RunbookId) Segments ¶
func (id RunbookId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Runbook ID
type RunbookParameter ¶
type UndoEditOperationResponse ¶
type UndoEditOperationResponse struct { HttpResponse *http.Response Model *RunbookDraftUndoEditResult }
Source Files ¶
- client.go
- constants.go
- id_runbook.go
- method_get_autorest.go
- method_getcontent_autorest.go
- method_publish_autorest.go
- method_replacecontent_autorest.go
- method_undoedit_autorest.go
- model_contenthash.go
- model_contentlink.go
- model_runbookdraft.go
- model_runbookdraftundoeditresult.go
- model_runbookparameter.go
- version.go