workflows
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type Error
- type ErrorData
- type ErrorDataSource
- type InstanceBulkParams
- type InstanceBulkParamsBody
- type InstanceBulkResponse
- type InstanceBulkResponseStatus
- type InstanceEventNewParams
- type InstanceEventNewResponse
- type InstanceEventNewResponseEnvelope
- type InstanceEventNewResponseEnvelopeErrors
- type InstanceEventNewResponseEnvelopeMessages
- type InstanceEventNewResponseEnvelopeResultInfo
- type InstanceEventNewResponseEnvelopeSuccess
- type InstanceEventService
- type InstanceGetParams
- type InstanceGetResponse
- type InstanceGetResponseEnvelope
- type InstanceGetResponseEnvelopeErrors
- type InstanceGetResponseEnvelopeMessages
- type InstanceGetResponseEnvelopeResultInfo
- type InstanceGetResponseEnvelopeSuccess
- type InstanceGetResponseError
- type InstanceGetResponseOutputUnion
- type InstanceGetResponseStatus
- type InstanceGetResponseStep
- type InstanceGetResponseStepsObject
- type InstanceGetResponseStepsObjectAttempt
- type InstanceGetResponseStepsObjectAttemptsError
- type InstanceGetResponseStepsObjectConfig
- type InstanceGetResponseStepsObjectConfigRetries
- type InstanceGetResponseStepsObjectConfigRetriesBackoff
- type InstanceGetResponseStepsObjectType
- type InstanceGetResponseStepsType
- type InstanceGetResponseStepsUnion
- type InstanceGetResponseTrigger
- type InstanceGetResponseTriggerSource
- type InstanceListParams
- type InstanceListParamsStatus
- type InstanceListResponse
- type InstanceListResponseStatus
- type InstanceNewParams
- type InstanceNewResponse
- type InstanceNewResponseEnvelope
- type InstanceNewResponseEnvelopeErrors
- type InstanceNewResponseEnvelopeMessages
- type InstanceNewResponseEnvelopeResultInfo
- type InstanceNewResponseEnvelopeSuccess
- type InstanceNewResponseStatus
- type InstanceService
- func (r *InstanceService) Bulk(ctx context.Context, workflowName string, params InstanceBulkParams, ...) (res *pagination.SinglePage[InstanceBulkResponse], err error)
- func (r *InstanceService) BulkAutoPaging(ctx context.Context, workflowName string, params InstanceBulkParams, ...) *pagination.SinglePageAutoPager[InstanceBulkResponse]
- func (r *InstanceService) Get(ctx context.Context, workflowName string, instanceID string, ...) (res *InstanceGetResponse, err error)
- func (r *InstanceService) List(ctx context.Context, workflowName string, params InstanceListParams, ...) (res *pagination.V4PagePaginationArray[InstanceListResponse], err error)
- func (r *InstanceService) ListAutoPaging(ctx context.Context, workflowName string, params InstanceListParams, ...) *pagination.V4PagePaginationArrayAutoPager[InstanceListResponse]
- func (r *InstanceService) New(ctx context.Context, workflowName string, params InstanceNewParams, ...) (res *InstanceNewResponse, err error)
- type InstanceStatusEditParams
- type InstanceStatusEditParamsStatus
- type InstanceStatusEditResponse
- type InstanceStatusEditResponseEnvelope
- type InstanceStatusEditResponseEnvelopeErrors
- type InstanceStatusEditResponseEnvelopeMessages
- type InstanceStatusEditResponseEnvelopeResultInfo
- type InstanceStatusEditResponseEnvelopeSuccess
- type InstanceStatusEditResponseStatus
- type InstanceStatusService
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type RatePlan
- type RatePlanID
- type RatePlanParam
- type ResponseInfo
- type ResponseInfoSource
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenPolicyResourcesMap
- type TokenPolicyResourcesMapParam
- type TokenPolicyResourcesUnion
- type TokenPolicyResourcesUnionParam
- type TokenStatus
- type TokenValue
- type VersionGetParams
- type VersionGetResponse
- type VersionGetResponseEnvelope
- type VersionGetResponseEnvelopeErrors
- type VersionGetResponseEnvelopeMessages
- type VersionGetResponseEnvelopeResultInfo
- type VersionGetResponseEnvelopeSuccess
- type VersionListParams
- type VersionListResponse
- type VersionService
- func (r *VersionService) Get(ctx context.Context, workflowName string, versionID string, ...) (res *VersionGetResponse, err error)
- func (r *VersionService) List(ctx context.Context, workflowName string, params VersionListParams, ...) (res *pagination.V4PagePaginationArray[VersionListResponse], err error)
- func (r *VersionService) ListAutoPaging(ctx context.Context, workflowName string, params VersionListParams, ...) *pagination.V4PagePaginationArrayAutoPager[VersionListResponse]
- type WorkflowDeleteParams
- type WorkflowDeleteResponse
- type WorkflowDeleteResponseEnvelope
- type WorkflowDeleteResponseEnvelopeErrors
- type WorkflowDeleteResponseEnvelopeMessages
- type WorkflowDeleteResponseEnvelopeResultInfo
- type WorkflowDeleteResponseEnvelopeSuccess
- type WorkflowDeleteResponseStatus
- type WorkflowGetParams
- type WorkflowGetResponse
- type WorkflowGetResponseEnvelope
- type WorkflowGetResponseEnvelopeErrors
- type WorkflowGetResponseEnvelopeMessages
- type WorkflowGetResponseEnvelopeResultInfo
- type WorkflowGetResponseEnvelopeSuccess
- type WorkflowGetResponseInstances
- type WorkflowListParams
- type WorkflowListResponse
- type WorkflowListResponseInstances
- type WorkflowService
- func (r *WorkflowService) Delete(ctx context.Context, workflowName string, body WorkflowDeleteParams, ...) (res *WorkflowDeleteResponse, err error)
- func (r *WorkflowService) Get(ctx context.Context, workflowName string, query WorkflowGetParams, ...) (res *WorkflowGetResponse, err error)
- func (r *WorkflowService) List(ctx context.Context, params WorkflowListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[WorkflowListResponse], err error)
- func (r *WorkflowService) ListAutoPaging(ctx context.Context, params WorkflowListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[WorkflowListResponse]
- func (r *WorkflowService) Update(ctx context.Context, workflowName string, params WorkflowUpdateParams, ...) (res *WorkflowUpdateResponse, err error)
- type WorkflowUpdateParams
- type WorkflowUpdateResponse
- type WorkflowUpdateResponseEnvelope
- type WorkflowUpdateResponseEnvelopeErrors
- type WorkflowUpdateResponseEnvelopeMessages
- type WorkflowUpdateResponseEnvelopeResultInfo
- type WorkflowUpdateResponseEnvelopeSuccess
Constants¶
const AuditLogActorTypeAdmin =shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare =shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser =shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert =shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle =shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt =shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateCASSLCom =shared.CertificateCASSLCom
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate =shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC =shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA =shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded =shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown =shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy =shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive =shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI =shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel =shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE =shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec =shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeMagic =shared.CloudflareTunnelTunTypeMagic
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARP =shared.CloudflareTunnelTunTypeWARP
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector =shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberPoliciesAccessAllow =shared.MemberPoliciesAccessAllow
This is an alias to an internal value.
const MemberPoliciesAccessDeny =shared.MemberPoliciesAccessDeny
This is an alias to an internal value.
const MemberStatusAccepted =shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending =shared.MemberStatusPending
This is an alias to an internal value.
const RatePlanIDBusiness =shared.RatePlanIDBusiness
This is an alias to an internal value.
const RatePlanIDEnterprise =shared.RatePlanIDEnterprise
This is an alias to an internal value.
const RatePlanIDFree =shared.RatePlanIDFree
This is an alias to an internal value.
const RatePlanIDLite =shared.RatePlanIDLite
This is an alias to an internal value.
const RatePlanIDPartnersBusiness =shared.RatePlanIDPartnersBusiness
This is an alias to an internal value.
const RatePlanIDPartnersEnterprise =shared.RatePlanIDPartnersEnterprise
This is an alias to an internal value.
const RatePlanIDPartnersFree =shared.RatePlanIDPartnersFree
This is an alias to an internal value.
const RatePlanIDPartnersPro =shared.RatePlanIDPartnersPro
This is an alias to an internal value.
const RatePlanIDPro =shared.RatePlanIDPro
This is an alias to an internal value.
const RatePlanIDProPlus =shared.RatePlanIDProPlus
This is an alias to an internal value.
const SortDirectionAsc =shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc =shared.SortDirectionDesc
This is an alias to an internal value.
const SubscriptionFrequencyMonthly =shared.SubscriptionFrequencyMonthly
This is an alias to an internal value.
const SubscriptionFrequencyQuarterly =shared.SubscriptionFrequencyQuarterly
This is an alias to an internal value.
const SubscriptionFrequencyWeekly =shared.SubscriptionFrequencyWeekly
This is an alias to an internal value.
const SubscriptionFrequencyYearly =shared.SubscriptionFrequencyYearly
This is an alias to an internal value.
const SubscriptionStateAwaitingPayment =shared.SubscriptionStateAwaitingPayment
This is an alias to an internal value.
const SubscriptionStateCancelled =shared.SubscriptionStateCancelled
This is an alias to an internal value.
const SubscriptionStateExpired =shared.SubscriptionStateExpired
This is an alias to an internal value.
const SubscriptionStateFailed =shared.SubscriptionStateFailed
This is an alias to an internal value.
const SubscriptionStatePaid =shared.SubscriptionStatePaid
This is an alias to an internal value.
const SubscriptionStateProvisioned =shared.SubscriptionStateProvisioned
This is an alias to an internal value.
const SubscriptionStateTrial =shared.SubscriptionStateTrial
This is an alias to an internal value.
const TokenPolicyEffectAllow =shared.TokenPolicyEffectAllow
This is an alias to an internal value.
const TokenPolicyEffectDeny =shared.TokenPolicyEffectDeny
This is an alias to an internal value.
const TokenStatusActive =shared.TokenStatusActive
This is an alias to an internal value.
const TokenStatusDisabled =shared.TokenStatusDisabled
This is an alias to an internal value.
const TokenStatusExpired =shared.TokenStatusExpired
This is an alias to an internal value.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAuditLogActorType¶
type AuditLogActorType =shared.AuditLogActorType
The type of actor, whether a User, Cloudflare Admin, or an Automated System.
This is an alias to an internal type.
typeAuditLogResource¶
type AuditLogResource =shared.AuditLogResource
This is an alias to an internal type.
typeCertificateCA¶
type CertificateCA =shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
typeCertificateRequestType¶
type CertificateRequestType =shared.CertificateRequestType
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),or "keyless-certificate" (for Keyless SSL servers).
This is an alias to an internal type.
typeCloudflareTunnel¶
type CloudflareTunnel =shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
typeCloudflareTunnelConnection¶
type CloudflareTunnelConnection =shared.CloudflareTunnelConnection
This is an alias to an internal type.
typeCloudflareTunnelStatus¶
type CloudflareTunnelStatus =shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never beenrun), `degraded` (tunnel is active and able to serve traffic but in an unhealthystate), `healthy` (tunnel is active and able to serve traffic), or `down`(tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
This is an alias to an internal type.
typeCloudflareTunnelTunType¶
type CloudflareTunnelTunType =shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
typeErrorDataSource¶added inv4.2.0
type ErrorDataSource =shared.ErrorDataSource
This is an alias to an internal type.
typeInstanceBulkParams¶added inv4.2.0
type InstanceBulkParams struct {AccountIDparam.Field[string] `path:"account_id,required"`Body []InstanceBulkParamsBody `json:"body"`}
func (InstanceBulkParams)MarshalJSON¶added inv4.2.0
func (rInstanceBulkParams) MarshalJSON() (data []byte, errerror)
typeInstanceBulkParamsBody¶added inv4.2.0
type InstanceBulkParamsBody struct {InstanceIDparam.Field[string] `json:"instance_id"`InstanceRetentionparam.Field[interface{}] `json:"instance_retention"`Paramsparam.Field[interface{}] `json:"params"`}
func (InstanceBulkParamsBody)MarshalJSON¶added inv4.2.0
func (rInstanceBulkParamsBody) MarshalJSON() (data []byte, errerror)
typeInstanceBulkResponse¶added inv4.2.0
type InstanceBulkResponse struct {IDstring `json:"id,required"`StatusInstanceBulkResponseStatus `json:"status,required"`VersionIDstring `json:"version_id,required" format:"uuid"`WorkflowIDstring `json:"workflow_id,required" format:"uuid"`JSON instanceBulkResponseJSON `json:"-"`}
func (*InstanceBulkResponse)UnmarshalJSON¶added inv4.2.0
func (r *InstanceBulkResponse) UnmarshalJSON(data []byte) (errerror)
typeInstanceBulkResponseStatus¶added inv4.2.0
type InstanceBulkResponseStatusstring
const (InstanceBulkResponseStatusQueuedInstanceBulkResponseStatus = "queued"InstanceBulkResponseStatusRunningInstanceBulkResponseStatus = "running"InstanceBulkResponseStatusPausedInstanceBulkResponseStatus = "paused"InstanceBulkResponseStatusErroredInstanceBulkResponseStatus = "errored"InstanceBulkResponseStatusTerminatedInstanceBulkResponseStatus = "terminated"InstanceBulkResponseStatusCompleteInstanceBulkResponseStatus = "complete"InstanceBulkResponseStatusWaitingForPauseInstanceBulkResponseStatus = "waitingForPause"InstanceBulkResponseStatusWaitingInstanceBulkResponseStatus = "waiting")
func (InstanceBulkResponseStatus)IsKnown¶added inv4.2.0
func (rInstanceBulkResponseStatus) IsKnown()bool
typeInstanceEventNewParams¶added inv4.3.0
type InstanceEventNewParams struct {AccountIDparam.Field[string] `path:"account_id,required"`Body interface{} `json:"body"`}
func (InstanceEventNewParams)MarshalJSON¶added inv4.3.0
func (rInstanceEventNewParams) MarshalJSON() (data []byte, errerror)
typeInstanceEventNewResponse¶added inv4.3.0
type InstanceEventNewResponse = interface{}
typeInstanceEventNewResponseEnvelope¶added inv4.3.0
type InstanceEventNewResponseEnvelope struct {Errors []InstanceEventNewResponseEnvelopeErrors `json:"errors,required"`Messages []InstanceEventNewResponseEnvelopeMessages `json:"messages,required"`SuccessInstanceEventNewResponseEnvelopeSuccess `json:"success,required"`ResultInstanceEventNewResponse `json:"result"`ResultInfoInstanceEventNewResponseEnvelopeResultInfo `json:"result_info"`JSON instanceEventNewResponseEnvelopeJSON `json:"-"`}
func (*InstanceEventNewResponseEnvelope)UnmarshalJSON¶added inv4.3.0
func (r *InstanceEventNewResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeInstanceEventNewResponseEnvelopeErrors¶added inv4.3.0
type InstanceEventNewResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceEventNewResponseEnvelopeErrorsJSON `json:"-"`}
func (*InstanceEventNewResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *InstanceEventNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeInstanceEventNewResponseEnvelopeMessages¶added inv4.3.0
type InstanceEventNewResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceEventNewResponseEnvelopeMessagesJSON `json:"-"`}
func (*InstanceEventNewResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *InstanceEventNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeInstanceEventNewResponseEnvelopeResultInfo¶added inv4.3.0
type InstanceEventNewResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON instanceEventNewResponseEnvelopeResultInfoJSON `json:"-"`}
func (*InstanceEventNewResponseEnvelopeResultInfo)UnmarshalJSON¶added inv4.3.0
func (r *InstanceEventNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeInstanceEventNewResponseEnvelopeSuccess¶added inv4.3.0
type InstanceEventNewResponseEnvelopeSuccessbool
const (InstanceEventNewResponseEnvelopeSuccessTrueInstanceEventNewResponseEnvelopeSuccess =true)
func (InstanceEventNewResponseEnvelopeSuccess)IsKnown¶added inv4.3.0
func (rInstanceEventNewResponseEnvelopeSuccess) IsKnown()bool
typeInstanceEventService¶added inv4.3.0
type InstanceEventService struct {Options []option.RequestOption}
InstanceEventService contains methods and other services that help withinteracting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewInstanceEventService method instead.
funcNewInstanceEventService¶added inv4.3.0
func NewInstanceEventService(opts ...option.RequestOption) (r *InstanceEventService)
NewInstanceEventService generates a new service that applies the given optionsto each request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*InstanceEventService)New¶added inv4.3.0
func (r *InstanceEventService) New(ctxcontext.Context, workflowNamestring, instanceIDstring, eventTypestring, paramsInstanceEventNewParams, opts ...option.RequestOption) (res *InstanceEventNewResponse, errerror)
Send event to instance
typeInstanceGetResponse¶
type InstanceGetResponse struct {Endtime.Time `json:"end,required,nullable" format:"date-time"`ErrorInstanceGetResponseError `json:"error,required,nullable"`OutputInstanceGetResponseOutputUnion `json:"output,required"`Params interface{} `json:"params,required"`Queuedtime.Time `json:"queued,required" format:"date-time"`Starttime.Time `json:"start,required,nullable" format:"date-time"`StatusInstanceGetResponseStatus `json:"status,required"`Steps []InstanceGetResponseStep `json:"steps,required"`Successbool `json:"success,required,nullable"`TriggerInstanceGetResponseTrigger `json:"trigger,required"`VersionIDstring `json:"versionId,required" format:"uuid"`JSON instanceGetResponseJSON `json:"-"`}
func (*InstanceGetResponse)UnmarshalJSON¶
func (r *InstanceGetResponse) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseEnvelope¶
type InstanceGetResponseEnvelope struct {Errors []InstanceGetResponseEnvelopeErrors `json:"errors,required"`Messages []InstanceGetResponseEnvelopeMessages `json:"messages,required"`ResultInstanceGetResponse `json:"result,required"`SuccessInstanceGetResponseEnvelopeSuccess `json:"success,required"`ResultInfoInstanceGetResponseEnvelopeResultInfo `json:"result_info"`JSON instanceGetResponseEnvelopeJSON `json:"-"`}
func (*InstanceGetResponseEnvelope)UnmarshalJSON¶
func (r *InstanceGetResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseEnvelopeErrors¶
type InstanceGetResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceGetResponseEnvelopeErrorsJSON `json:"-"`}
func (*InstanceGetResponseEnvelopeErrors)UnmarshalJSON¶
func (r *InstanceGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseEnvelopeMessages¶
type InstanceGetResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceGetResponseEnvelopeMessagesJSON `json:"-"`}
func (*InstanceGetResponseEnvelopeMessages)UnmarshalJSON¶
func (r *InstanceGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseEnvelopeResultInfo¶
type InstanceGetResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON instanceGetResponseEnvelopeResultInfoJSON `json:"-"`}
func (*InstanceGetResponseEnvelopeResultInfo)UnmarshalJSON¶
func (r *InstanceGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseEnvelopeSuccess¶
type InstanceGetResponseEnvelopeSuccessbool
const (InstanceGetResponseEnvelopeSuccessTrueInstanceGetResponseEnvelopeSuccess =true)
func (InstanceGetResponseEnvelopeSuccess)IsKnown¶
func (rInstanceGetResponseEnvelopeSuccess) IsKnown()bool
typeInstanceGetResponseError¶
type InstanceGetResponseError struct {Messagestring `json:"message,required"`Namestring `json:"name,required"`JSON instanceGetResponseErrorJSON `json:"-"`}
func (*InstanceGetResponseError)UnmarshalJSON¶
func (r *InstanceGetResponseError) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseOutputUnion¶
type InstanceGetResponseOutputUnion interface {ImplementsInstanceGetResponseOutputUnion()}
Union satisfied byshared.UnionString orshared.UnionFloat.
typeInstanceGetResponseStatus¶
type InstanceGetResponseStatusstring
const (InstanceGetResponseStatusQueuedInstanceGetResponseStatus = "queued"InstanceGetResponseStatusRunningInstanceGetResponseStatus = "running"InstanceGetResponseStatusPausedInstanceGetResponseStatus = "paused"InstanceGetResponseStatusErroredInstanceGetResponseStatus = "errored"InstanceGetResponseStatusTerminatedInstanceGetResponseStatus = "terminated"InstanceGetResponseStatusCompleteInstanceGetResponseStatus = "complete"InstanceGetResponseStatusWaitingForPauseInstanceGetResponseStatus = "waitingForPause"InstanceGetResponseStatusWaitingInstanceGetResponseStatus = "waiting")
func (InstanceGetResponseStatus)IsKnown¶
func (rInstanceGetResponseStatus) IsKnown()bool
typeInstanceGetResponseStep¶
type InstanceGetResponseStep struct {TypeInstanceGetResponseStepsType `json:"type,required"`// This field can have the runtime type of// [[]InstanceGetResponseStepsObjectAttempt].Attempts interface{} `json:"attempts"`// This field can have the runtime type of [InstanceGetResponseStepsObjectConfig].Config interface{} `json:"config"`Endtime.Time `json:"end,nullable" format:"date-time"`// This field can have the runtime type of [InstanceGetResponseStepsObjectError].Error interface{} `json:"error"`Finishedbool `json:"finished"`Namestring `json:"name"`// This field can have the runtime type of [interface{}].Output interface{} `json:"output"`Starttime.Time `json:"start" format:"date-time"`Successbool `json:"success,nullable"`// This field can have the runtime type of [InstanceGetResponseStepsObjectTrigger].Trigger interface{} `json:"trigger"`JSON instanceGetResponseStepJSON `json:"-"`// contains filtered or unexported fields}
func (InstanceGetResponseStep)AsUnion¶
func (rInstanceGetResponseStep) AsUnion()InstanceGetResponseStepsUnion
AsUnion returns aInstanceGetResponseStepsUnion interface which you can castto the specific types for more type safety.
Possible runtime types of the union areInstanceGetResponseStepsObject,InstanceGetResponseStepsObject,InstanceGetResponseStepsObject,InstanceGetResponseStepsObject.
func (*InstanceGetResponseStep)UnmarshalJSON¶
func (r *InstanceGetResponseStep) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseStepsObject¶
type InstanceGetResponseStepsObject struct {Attempts []InstanceGetResponseStepsObjectAttempt `json:"attempts,required"`ConfigInstanceGetResponseStepsObjectConfig `json:"config,required"`Endtime.Time `json:"end,required,nullable" format:"date-time"`Namestring `json:"name,required"`Output interface{} `json:"output,required"`Starttime.Time `json:"start,required" format:"date-time"`Successbool `json:"success,required,nullable"`TypeInstanceGetResponseStepsObjectType `json:"type,required"`JSON instanceGetResponseStepsObjectJSON `json:"-"`}
func (*InstanceGetResponseStepsObject)UnmarshalJSON¶
func (r *InstanceGetResponseStepsObject) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseStepsObjectAttempt¶
type InstanceGetResponseStepsObjectAttempt struct {Endtime.Time `json:"end,required,nullable" format:"date-time"`ErrorInstanceGetResponseStepsObjectAttemptsError `json:"error,required,nullable"`Starttime.Time `json:"start,required" format:"date-time"`Successbool `json:"success,required,nullable"`JSON instanceGetResponseStepsObjectAttemptJSON `json:"-"`}
func (*InstanceGetResponseStepsObjectAttempt)UnmarshalJSON¶
func (r *InstanceGetResponseStepsObjectAttempt) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseStepsObjectAttemptsError¶
type InstanceGetResponseStepsObjectAttemptsError struct {Messagestring `json:"message,required"`Namestring `json:"name,required"`JSON instanceGetResponseStepsObjectAttemptsErrorJSON `json:"-"`}
func (*InstanceGetResponseStepsObjectAttemptsError)UnmarshalJSON¶
func (r *InstanceGetResponseStepsObjectAttemptsError) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseStepsObjectConfig¶
type InstanceGetResponseStepsObjectConfig struct {RetriesInstanceGetResponseStepsObjectConfigRetries `json:"retries,required"`Timeout interface{} `json:"timeout,required"`JSON instanceGetResponseStepsObjectConfigJSON `json:"-"`}
func (*InstanceGetResponseStepsObjectConfig)UnmarshalJSON¶
func (r *InstanceGetResponseStepsObjectConfig) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseStepsObjectConfigRetries¶
type InstanceGetResponseStepsObjectConfigRetries struct {Delay interface{} `json:"delay,required"`Limitfloat64 `json:"limit,required"`BackoffInstanceGetResponseStepsObjectConfigRetriesBackoff `json:"backoff"`JSON instanceGetResponseStepsObjectConfigRetriesJSON `json:"-"`}
func (*InstanceGetResponseStepsObjectConfigRetries)UnmarshalJSON¶
func (r *InstanceGetResponseStepsObjectConfigRetries) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseStepsObjectConfigRetriesBackoff¶
type InstanceGetResponseStepsObjectConfigRetriesBackoffstring
const (InstanceGetResponseStepsObjectConfigRetriesBackoffConstantInstanceGetResponseStepsObjectConfigRetriesBackoff = "constant"InstanceGetResponseStepsObjectConfigRetriesBackoffLinearInstanceGetResponseStepsObjectConfigRetriesBackoff = "linear"InstanceGetResponseStepsObjectConfigRetriesBackoffExponentialInstanceGetResponseStepsObjectConfigRetriesBackoff = "exponential")
func (InstanceGetResponseStepsObjectConfigRetriesBackoff)IsKnown¶
func (rInstanceGetResponseStepsObjectConfigRetriesBackoff) IsKnown()bool
typeInstanceGetResponseStepsObjectType¶
type InstanceGetResponseStepsObjectTypestring
const (InstanceGetResponseStepsObjectTypeStepInstanceGetResponseStepsObjectType = "step")
func (InstanceGetResponseStepsObjectType)IsKnown¶
func (rInstanceGetResponseStepsObjectType) IsKnown()bool
typeInstanceGetResponseStepsType¶
type InstanceGetResponseStepsTypestring
const (InstanceGetResponseStepsTypeStepInstanceGetResponseStepsType = "step"InstanceGetResponseStepsTypeSleepInstanceGetResponseStepsType = "sleep"InstanceGetResponseStepsTypeTerminationInstanceGetResponseStepsType = "termination"InstanceGetResponseStepsTypeWaitForEventInstanceGetResponseStepsType = "waitForEvent")
func (InstanceGetResponseStepsType)IsKnown¶
func (rInstanceGetResponseStepsType) IsKnown()bool
typeInstanceGetResponseStepsUnion¶
type InstanceGetResponseStepsUnion interface {// contains filtered or unexported methods}
Union satisfied byInstanceGetResponseStepsObject,InstanceGetResponseStepsObject,InstanceGetResponseStepsObject orInstanceGetResponseStepsObject.
typeInstanceGetResponseTrigger¶
type InstanceGetResponseTrigger struct {SourceInstanceGetResponseTriggerSource `json:"source,required"`JSON instanceGetResponseTriggerJSON `json:"-"`}
func (*InstanceGetResponseTrigger)UnmarshalJSON¶
func (r *InstanceGetResponseTrigger) UnmarshalJSON(data []byte) (errerror)
typeInstanceGetResponseTriggerSource¶
type InstanceGetResponseTriggerSourcestring
const (InstanceGetResponseTriggerSourceUnknownInstanceGetResponseTriggerSource = "unknown"InstanceGetResponseTriggerSourceAPIInstanceGetResponseTriggerSource = "api"InstanceGetResponseTriggerSourceBindingInstanceGetResponseTriggerSource = "binding"InstanceGetResponseTriggerSourceEventInstanceGetResponseTriggerSource = "event"InstanceGetResponseTriggerSourceCronInstanceGetResponseTriggerSource = "cron")
func (InstanceGetResponseTriggerSource)IsKnown¶
func (rInstanceGetResponseTriggerSource) IsKnown()bool
typeInstanceListParams¶
type InstanceListParams struct {AccountIDparam.Field[string] `path:"account_id,required"`// Accepts ISO 8601 with no timezone offsets and in UTC.DateEndparam.Field[time.Time] `query:"date_end" format:"date-time"`// Accepts ISO 8601 with no timezone offsets and in UTC.DateStartparam.Field[time.Time] `query:"date_start" format:"date-time"`Pageparam.Field[float64] `query:"page"`PerPageparam.Field[float64] `query:"per_page"`Statusparam.Field[InstanceListParamsStatus] `query:"status"`}
func (InstanceListParams)URLQuery¶
func (rInstanceListParams) URLQuery() (vurl.Values)
URLQuery serializesInstanceListParams's query parameters as `url.Values`.
typeInstanceListParamsStatus¶
type InstanceListParamsStatusstring
const (InstanceListParamsStatusQueuedInstanceListParamsStatus = "queued"InstanceListParamsStatusRunningInstanceListParamsStatus = "running"InstanceListParamsStatusPausedInstanceListParamsStatus = "paused"InstanceListParamsStatusErroredInstanceListParamsStatus = "errored"InstanceListParamsStatusTerminatedInstanceListParamsStatus = "terminated"InstanceListParamsStatusCompleteInstanceListParamsStatus = "complete"InstanceListParamsStatusWaitingForPauseInstanceListParamsStatus = "waitingForPause"InstanceListParamsStatusWaitingInstanceListParamsStatus = "waiting")
func (InstanceListParamsStatus)IsKnown¶
func (rInstanceListParamsStatus) IsKnown()bool
typeInstanceListResponse¶
type InstanceListResponse struct {IDstring `json:"id,required"`CreatedOntime.Time `json:"created_on,required" format:"date-time"`EndedOntime.Time `json:"ended_on,required,nullable" format:"date-time"`ModifiedOntime.Time `json:"modified_on,required" format:"date-time"`StartedOntime.Time `json:"started_on,required,nullable" format:"date-time"`StatusInstanceListResponseStatus `json:"status,required"`VersionIDstring `json:"version_id,required" format:"uuid"`WorkflowIDstring `json:"workflow_id,required" format:"uuid"`JSON instanceListResponseJSON `json:"-"`}
func (*InstanceListResponse)UnmarshalJSON¶
func (r *InstanceListResponse) UnmarshalJSON(data []byte) (errerror)
typeInstanceListResponseStatus¶
type InstanceListResponseStatusstring
const (InstanceListResponseStatusQueuedInstanceListResponseStatus = "queued"InstanceListResponseStatusRunningInstanceListResponseStatus = "running"InstanceListResponseStatusPausedInstanceListResponseStatus = "paused"InstanceListResponseStatusErroredInstanceListResponseStatus = "errored"InstanceListResponseStatusTerminatedInstanceListResponseStatus = "terminated"InstanceListResponseStatusCompleteInstanceListResponseStatus = "complete"InstanceListResponseStatusWaitingForPauseInstanceListResponseStatus = "waitingForPause"InstanceListResponseStatusWaitingInstanceListResponseStatus = "waiting")
func (InstanceListResponseStatus)IsKnown¶
func (rInstanceListResponseStatus) IsKnown()bool
typeInstanceNewParams¶
type InstanceNewParams struct {AccountIDparam.Field[string] `path:"account_id,required"`InstanceIDparam.Field[string] `json:"instance_id"`InstanceRetentionparam.Field[interface{}] `json:"instance_retention"`Paramsparam.Field[interface{}] `json:"params"`}
func (InstanceNewParams)MarshalJSON¶
func (rInstanceNewParams) MarshalJSON() (data []byte, errerror)
typeInstanceNewResponse¶
type InstanceNewResponse struct {IDstring `json:"id,required"`StatusInstanceNewResponseStatus `json:"status,required"`VersionIDstring `json:"version_id,required" format:"uuid"`WorkflowIDstring `json:"workflow_id,required" format:"uuid"`JSON instanceNewResponseJSON `json:"-"`}
func (*InstanceNewResponse)UnmarshalJSON¶
func (r *InstanceNewResponse) UnmarshalJSON(data []byte) (errerror)
typeInstanceNewResponseEnvelope¶
type InstanceNewResponseEnvelope struct {Errors []InstanceNewResponseEnvelopeErrors `json:"errors,required"`Messages []InstanceNewResponseEnvelopeMessages `json:"messages,required"`ResultInstanceNewResponse `json:"result,required"`SuccessInstanceNewResponseEnvelopeSuccess `json:"success,required"`ResultInfoInstanceNewResponseEnvelopeResultInfo `json:"result_info"`JSON instanceNewResponseEnvelopeJSON `json:"-"`}
func (*InstanceNewResponseEnvelope)UnmarshalJSON¶
func (r *InstanceNewResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeInstanceNewResponseEnvelopeErrors¶
type InstanceNewResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceNewResponseEnvelopeErrorsJSON `json:"-"`}
func (*InstanceNewResponseEnvelopeErrors)UnmarshalJSON¶
func (r *InstanceNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeInstanceNewResponseEnvelopeMessages¶
type InstanceNewResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceNewResponseEnvelopeMessagesJSON `json:"-"`}
func (*InstanceNewResponseEnvelopeMessages)UnmarshalJSON¶
func (r *InstanceNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeInstanceNewResponseEnvelopeResultInfo¶
type InstanceNewResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON instanceNewResponseEnvelopeResultInfoJSON `json:"-"`}
func (*InstanceNewResponseEnvelopeResultInfo)UnmarshalJSON¶
func (r *InstanceNewResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeInstanceNewResponseEnvelopeSuccess¶
type InstanceNewResponseEnvelopeSuccessbool
const (InstanceNewResponseEnvelopeSuccessTrueInstanceNewResponseEnvelopeSuccess =true)
func (InstanceNewResponseEnvelopeSuccess)IsKnown¶
func (rInstanceNewResponseEnvelopeSuccess) IsKnown()bool
typeInstanceNewResponseStatus¶
type InstanceNewResponseStatusstring
const (InstanceNewResponseStatusQueuedInstanceNewResponseStatus = "queued"InstanceNewResponseStatusRunningInstanceNewResponseStatus = "running"InstanceNewResponseStatusPausedInstanceNewResponseStatus = "paused"InstanceNewResponseStatusErroredInstanceNewResponseStatus = "errored"InstanceNewResponseStatusTerminatedInstanceNewResponseStatus = "terminated"InstanceNewResponseStatusCompleteInstanceNewResponseStatus = "complete"InstanceNewResponseStatusWaitingForPauseInstanceNewResponseStatus = "waitingForPause"InstanceNewResponseStatusWaitingInstanceNewResponseStatus = "waiting")
func (InstanceNewResponseStatus)IsKnown¶
func (rInstanceNewResponseStatus) IsKnown()bool
typeInstanceService¶
type InstanceService struct {Options []option.RequestOptionStatus *InstanceStatusServiceEvents *InstanceEventService}
InstanceService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewInstanceService method instead.
funcNewInstanceService¶
func NewInstanceService(opts ...option.RequestOption) (r *InstanceService)
NewInstanceService generates a new service that applies the given options toeach request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*InstanceService)Bulk¶added inv4.2.0
func (r *InstanceService) Bulk(ctxcontext.Context, workflowNamestring, paramsInstanceBulkParams, opts ...option.RequestOption) (res *pagination.SinglePage[InstanceBulkResponse], errerror)
Batch create new Workflow instances
func (*InstanceService)BulkAutoPaging¶added inv4.2.0
func (r *InstanceService) BulkAutoPaging(ctxcontext.Context, workflowNamestring, paramsInstanceBulkParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[InstanceBulkResponse]
Batch create new Workflow instances
func (*InstanceService)Get¶
func (r *InstanceService) Get(ctxcontext.Context, workflowNamestring, instanceIDstring, queryInstanceGetParams, opts ...option.RequestOption) (res *InstanceGetResponse, errerror)
Get logs and status from instance
func (*InstanceService)List¶
func (r *InstanceService) List(ctxcontext.Context, workflowNamestring, paramsInstanceListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[InstanceListResponse], errerror)
List of workflow instances
func (*InstanceService)ListAutoPaging¶
func (r *InstanceService) ListAutoPaging(ctxcontext.Context, workflowNamestring, paramsInstanceListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[InstanceListResponse]
List of workflow instances
func (*InstanceService)New¶
func (r *InstanceService) New(ctxcontext.Context, workflowNamestring, paramsInstanceNewParams, opts ...option.RequestOption) (res *InstanceNewResponse, errerror)
Create a new workflow instance
typeInstanceStatusEditParams¶
type InstanceStatusEditParams struct {AccountIDparam.Field[string] `path:"account_id,required"`// Apply action to instance.Statusparam.Field[InstanceStatusEditParamsStatus] `json:"status,required"`}
func (InstanceStatusEditParams)MarshalJSON¶
func (rInstanceStatusEditParams) MarshalJSON() (data []byte, errerror)
typeInstanceStatusEditParamsStatus¶
type InstanceStatusEditParamsStatusstring
Apply action to instance.
const (InstanceStatusEditParamsStatusResumeInstanceStatusEditParamsStatus = "resume"InstanceStatusEditParamsStatusPauseInstanceStatusEditParamsStatus = "pause"InstanceStatusEditParamsStatusTerminateInstanceStatusEditParamsStatus = "terminate")
func (InstanceStatusEditParamsStatus)IsKnown¶
func (rInstanceStatusEditParamsStatus) IsKnown()bool
typeInstanceStatusEditResponse¶
type InstanceStatusEditResponse struct {StatusInstanceStatusEditResponseStatus `json:"status,required"`// Accepts ISO 8601 with no timezone offsets and in UTC.Timestamptime.Time `json:"timestamp,required" format:"date-time"`JSON instanceStatusEditResponseJSON `json:"-"`}
func (*InstanceStatusEditResponse)UnmarshalJSON¶
func (r *InstanceStatusEditResponse) UnmarshalJSON(data []byte) (errerror)
typeInstanceStatusEditResponseEnvelope¶
type InstanceStatusEditResponseEnvelope struct {Errors []InstanceStatusEditResponseEnvelopeErrors `json:"errors,required"`Messages []InstanceStatusEditResponseEnvelopeMessages `json:"messages,required"`ResultInstanceStatusEditResponse `json:"result,required"`SuccessInstanceStatusEditResponseEnvelopeSuccess `json:"success,required"`ResultInfoInstanceStatusEditResponseEnvelopeResultInfo `json:"result_info"`JSON instanceStatusEditResponseEnvelopeJSON `json:"-"`}
func (*InstanceStatusEditResponseEnvelope)UnmarshalJSON¶
func (r *InstanceStatusEditResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeInstanceStatusEditResponseEnvelopeErrors¶
type InstanceStatusEditResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceStatusEditResponseEnvelopeErrorsJSON `json:"-"`}
func (*InstanceStatusEditResponseEnvelopeErrors)UnmarshalJSON¶
func (r *InstanceStatusEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeInstanceStatusEditResponseEnvelopeMessages¶
type InstanceStatusEditResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON instanceStatusEditResponseEnvelopeMessagesJSON `json:"-"`}
func (*InstanceStatusEditResponseEnvelopeMessages)UnmarshalJSON¶
func (r *InstanceStatusEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeInstanceStatusEditResponseEnvelopeResultInfo¶
type InstanceStatusEditResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON instanceStatusEditResponseEnvelopeResultInfoJSON `json:"-"`}
func (*InstanceStatusEditResponseEnvelopeResultInfo)UnmarshalJSON¶
func (r *InstanceStatusEditResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeInstanceStatusEditResponseEnvelopeSuccess¶
type InstanceStatusEditResponseEnvelopeSuccessbool
const (InstanceStatusEditResponseEnvelopeSuccessTrueInstanceStatusEditResponseEnvelopeSuccess =true)
func (InstanceStatusEditResponseEnvelopeSuccess)IsKnown¶
func (rInstanceStatusEditResponseEnvelopeSuccess) IsKnown()bool
typeInstanceStatusEditResponseStatus¶
type InstanceStatusEditResponseStatusstring
const (InstanceStatusEditResponseStatusQueuedInstanceStatusEditResponseStatus = "queued"InstanceStatusEditResponseStatusRunningInstanceStatusEditResponseStatus = "running"InstanceStatusEditResponseStatusPausedInstanceStatusEditResponseStatus = "paused"InstanceStatusEditResponseStatusErroredInstanceStatusEditResponseStatus = "errored"InstanceStatusEditResponseStatusTerminatedInstanceStatusEditResponseStatus = "terminated"InstanceStatusEditResponseStatusCompleteInstanceStatusEditResponseStatus = "complete"InstanceStatusEditResponseStatusWaitingForPauseInstanceStatusEditResponseStatus = "waitingForPause"InstanceStatusEditResponseStatusWaitingInstanceStatusEditResponseStatus = "waiting")
func (InstanceStatusEditResponseStatus)IsKnown¶
func (rInstanceStatusEditResponseStatus) IsKnown()bool
typeInstanceStatusService¶
type InstanceStatusService struct {Options []option.RequestOption}
InstanceStatusService contains methods and other services that help withinteracting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewInstanceStatusService method instead.
funcNewInstanceStatusService¶
func NewInstanceStatusService(opts ...option.RequestOption) (r *InstanceStatusService)
NewInstanceStatusService generates a new service that applies the given optionsto each request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*InstanceStatusService)Edit¶
func (r *InstanceStatusService) Edit(ctxcontext.Context, workflowNamestring, instanceIDstring, paramsInstanceStatusEditParams, opts ...option.RequestOption) (res *InstanceStatusEditResponse, errerror)
Change status of instance
typeMemberPoliciesAccess¶
type MemberPoliciesAccess =shared.MemberPoliciesAccess
Allow or deny operations against the resources.
This is an alias to an internal type.
typeMemberPoliciesPermissionGroup¶
type MemberPoliciesPermissionGroup =shared.MemberPoliciesPermissionGroup
A named group of permissions that map to a group of operations againstresources.
This is an alias to an internal type.
typeMemberPoliciesPermissionGroupsMeta¶
type MemberPoliciesPermissionGroupsMeta =shared.MemberPoliciesPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
typeMemberPoliciesResourceGroup¶
type MemberPoliciesResourceGroup =shared.MemberPoliciesResourceGroup
A group of scoped resources.
This is an alias to an internal type.
typeMemberPoliciesResourceGroupsMeta¶
type MemberPoliciesResourceGroupsMeta =shared.MemberPoliciesResourceGroupsMeta
Attributes associated to the resource group.
This is an alias to an internal type.
typeMemberPoliciesResourceGroupsScope¶
type MemberPoliciesResourceGroupsScope =shared.MemberPoliciesResourceGroupsScope
A scope is a combination of scope objects which provides additional context.
This is an alias to an internal type.
typeMemberPoliciesResourceGroupsScopeObject¶
type MemberPoliciesResourceGroupsScopeObject =shared.MemberPoliciesResourceGroupsScopeObject
A scope object represents any resource that can have actions applied againstinvite.
This is an alias to an internal type.
typeMemberStatus¶
type MemberStatus =shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
typeMemberUser¶
type MemberUser =shared.MemberUser
Details of the user associated to the membership.
This is an alias to an internal type.
typePermissionGrant¶
type PermissionGrant =shared.PermissionGrant
This is an alias to an internal type.
typePermissionGrantParam¶
type PermissionGrantParam =shared.PermissionGrantParam
This is an alias to an internal type.
typeRatePlanID¶added inv4.1.0
type RatePlanID =shared.RatePlanID
The ID of the rate plan.
This is an alias to an internal type.
typeRatePlanParam¶
type RatePlanParam =shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
typeResponseInfoSource¶added inv4.3.0
type ResponseInfoSource =shared.ResponseInfoSource
This is an alias to an internal type.
typeRolePermissions¶
type RolePermissions =shared.RolePermissions
This is an alias to an internal type.
typeRolePermissionsParam¶
type RolePermissionsParam =shared.RolePermissionsParam
This is an alias to an internal type.
typeSortDirection¶
type SortDirection =shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
typeSubscriptionFrequency¶
type SubscriptionFrequency =shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
typeSubscriptionParam¶
type SubscriptionParam =shared.SubscriptionParam
This is an alias to an internal type.
typeSubscriptionState¶
type SubscriptionState =shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
typeTokenConditionCIDRList¶
type TokenConditionCIDRList =shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
typeTokenConditionCIDRListParam¶
type TokenConditionCIDRListParam =shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
typeTokenConditionParam¶
type TokenConditionParam =shared.TokenConditionParam
This is an alias to an internal type.
typeTokenConditionRequestIP¶
type TokenConditionRequestIP =shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
typeTokenConditionRequestIPParam¶
type TokenConditionRequestIPParam =shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
typeTokenPolicyEffect¶
type TokenPolicyEffect =shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
typeTokenPolicyParam¶
type TokenPolicyParam =shared.TokenPolicyParam
This is an alias to an internal type.
typeTokenPolicyPermissionGroup¶
type TokenPolicyPermissionGroup =shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations againstresources.
This is an alias to an internal type.
typeTokenPolicyPermissionGroupParam¶
type TokenPolicyPermissionGroupParam =shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations againstresources.
This is an alias to an internal type.
typeTokenPolicyPermissionGroupsMeta¶
type TokenPolicyPermissionGroupsMeta =shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
typeTokenPolicyPermissionGroupsMetaParam¶
type TokenPolicyPermissionGroupsMetaParam =shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
typeTokenPolicyResourcesMap¶added inv4.6.0
type TokenPolicyResourcesMap =shared.TokenPolicyResourcesMap
A nested permission grant for further scoping.
This is an alias to an internal type.
typeTokenPolicyResourcesMapParam¶added inv4.6.0
type TokenPolicyResourcesMapParam =shared.TokenPolicyResourcesMapParam
A nested permission grant for further scoping.
This is an alias to an internal type.
typeTokenPolicyResourcesUnion¶added inv4.6.0
type TokenPolicyResourcesUnion =shared.TokenPolicyResourcesUnion
A simple wildcard permission, e.g., "\*".
This is an alias to an internal type.
typeTokenPolicyResourcesUnionParam¶added inv4.6.0
type TokenPolicyResourcesUnionParam =shared.TokenPolicyResourcesUnionParam
A simple wildcard permission, e.g., "\*".
This is an alias to an internal type.
typeTokenStatus¶
type TokenStatus =shared.TokenStatus
Status of the token.
This is an alias to an internal type.
typeTokenValue¶
type TokenValue =shared.TokenValue
The token value.
This is an alias to an internal type.
typeVersionGetResponse¶
type VersionGetResponse struct {IDstring `json:"id,required" format:"uuid"`ClassNamestring `json:"class_name,required"`CreatedOntime.Time `json:"created_on,required" format:"date-time"`ModifiedOntime.Time `json:"modified_on,required" format:"date-time"`WorkflowIDstring `json:"workflow_id,required" format:"uuid"`JSON versionGetResponseJSON `json:"-"`}
func (*VersionGetResponse)UnmarshalJSON¶
func (r *VersionGetResponse) UnmarshalJSON(data []byte) (errerror)
typeVersionGetResponseEnvelope¶
type VersionGetResponseEnvelope struct {Errors []VersionGetResponseEnvelopeErrors `json:"errors,required"`Messages []VersionGetResponseEnvelopeMessages `json:"messages,required"`ResultVersionGetResponse `json:"result,required"`SuccessVersionGetResponseEnvelopeSuccess `json:"success,required"`ResultInfoVersionGetResponseEnvelopeResultInfo `json:"result_info"`JSON versionGetResponseEnvelopeJSON `json:"-"`}
func (*VersionGetResponseEnvelope)UnmarshalJSON¶
func (r *VersionGetResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeVersionGetResponseEnvelopeErrors¶
type VersionGetResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON versionGetResponseEnvelopeErrorsJSON `json:"-"`}
func (*VersionGetResponseEnvelopeErrors)UnmarshalJSON¶
func (r *VersionGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeVersionGetResponseEnvelopeMessages¶
type VersionGetResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON versionGetResponseEnvelopeMessagesJSON `json:"-"`}
func (*VersionGetResponseEnvelopeMessages)UnmarshalJSON¶
func (r *VersionGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeVersionGetResponseEnvelopeResultInfo¶
type VersionGetResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON versionGetResponseEnvelopeResultInfoJSON `json:"-"`}
func (*VersionGetResponseEnvelopeResultInfo)UnmarshalJSON¶
func (r *VersionGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeVersionGetResponseEnvelopeSuccess¶
type VersionGetResponseEnvelopeSuccessbool
const (VersionGetResponseEnvelopeSuccessTrueVersionGetResponseEnvelopeSuccess =true)
func (VersionGetResponseEnvelopeSuccess)IsKnown¶
func (rVersionGetResponseEnvelopeSuccess) IsKnown()bool
typeVersionListParams¶
type VersionListParams struct {AccountIDparam.Field[string] `path:"account_id,required"`Pageparam.Field[float64] `query:"page"`PerPageparam.Field[float64] `query:"per_page"`}
func (VersionListParams)URLQuery¶
func (rVersionListParams) URLQuery() (vurl.Values)
URLQuery serializesVersionListParams's query parameters as `url.Values`.
typeVersionListResponse¶
type VersionListResponse struct {IDstring `json:"id,required" format:"uuid"`ClassNamestring `json:"class_name,required"`CreatedOntime.Time `json:"created_on,required" format:"date-time"`ModifiedOntime.Time `json:"modified_on,required" format:"date-time"`WorkflowIDstring `json:"workflow_id,required" format:"uuid"`JSON versionListResponseJSON `json:"-"`}
func (*VersionListResponse)UnmarshalJSON¶
func (r *VersionListResponse) UnmarshalJSON(data []byte) (errerror)
typeVersionService¶
type VersionService struct {Options []option.RequestOption}
VersionService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewVersionService method instead.
funcNewVersionService¶
func NewVersionService(opts ...option.RequestOption) (r *VersionService)
NewVersionService generates a new service that applies the given options to eachrequest. These options are applied after the parent client's options (if thereis one), and before any request-specific options.
func (*VersionService)Get¶
func (r *VersionService) Get(ctxcontext.Context, workflowNamestring, versionIDstring, queryVersionGetParams, opts ...option.RequestOption) (res *VersionGetResponse, errerror)
Get Workflow version details
func (*VersionService)List¶
func (r *VersionService) List(ctxcontext.Context, workflowNamestring, paramsVersionListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[VersionListResponse], errerror)
List deployed Workflow versions
func (*VersionService)ListAutoPaging¶
func (r *VersionService) ListAutoPaging(ctxcontext.Context, workflowNamestring, paramsVersionListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[VersionListResponse]
List deployed Workflow versions
typeWorkflowDeleteParams¶added inv4.3.0
typeWorkflowDeleteResponse¶added inv4.3.0
type WorkflowDeleteResponse struct {StatusWorkflowDeleteResponseStatus `json:"status,required"`Successbool `json:"success,required,nullable"`JSON workflowDeleteResponseJSON `json:"-"`}
func (*WorkflowDeleteResponse)UnmarshalJSON¶added inv4.3.0
func (r *WorkflowDeleteResponse) UnmarshalJSON(data []byte) (errerror)
typeWorkflowDeleteResponseEnvelope¶added inv4.3.0
type WorkflowDeleteResponseEnvelope struct {Errors []WorkflowDeleteResponseEnvelopeErrors `json:"errors,required"`Messages []WorkflowDeleteResponseEnvelopeMessages `json:"messages,required"`ResultWorkflowDeleteResponse `json:"result,required"`SuccessWorkflowDeleteResponseEnvelopeSuccess `json:"success,required"`ResultInfoWorkflowDeleteResponseEnvelopeResultInfo `json:"result_info"`JSON workflowDeleteResponseEnvelopeJSON `json:"-"`}
func (*WorkflowDeleteResponseEnvelope)UnmarshalJSON¶added inv4.3.0
func (r *WorkflowDeleteResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeWorkflowDeleteResponseEnvelopeErrors¶added inv4.3.0
type WorkflowDeleteResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON workflowDeleteResponseEnvelopeErrorsJSON `json:"-"`}
func (*WorkflowDeleteResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *WorkflowDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeWorkflowDeleteResponseEnvelopeMessages¶added inv4.3.0
type WorkflowDeleteResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON workflowDeleteResponseEnvelopeMessagesJSON `json:"-"`}
func (*WorkflowDeleteResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *WorkflowDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeWorkflowDeleteResponseEnvelopeResultInfo¶added inv4.3.0
type WorkflowDeleteResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON workflowDeleteResponseEnvelopeResultInfoJSON `json:"-"`}
func (*WorkflowDeleteResponseEnvelopeResultInfo)UnmarshalJSON¶added inv4.3.0
func (r *WorkflowDeleteResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeWorkflowDeleteResponseEnvelopeSuccess¶added inv4.3.0
type WorkflowDeleteResponseEnvelopeSuccessbool
const (WorkflowDeleteResponseEnvelopeSuccessTrueWorkflowDeleteResponseEnvelopeSuccess =true)
func (WorkflowDeleteResponseEnvelopeSuccess)IsKnown¶added inv4.3.0
func (rWorkflowDeleteResponseEnvelopeSuccess) IsKnown()bool
typeWorkflowDeleteResponseStatus¶added inv4.3.0
type WorkflowDeleteResponseStatusstring
const (WorkflowDeleteResponseStatusOkWorkflowDeleteResponseStatus = "ok")
func (WorkflowDeleteResponseStatus)IsKnown¶added inv4.3.0
func (rWorkflowDeleteResponseStatus) IsKnown()bool
typeWorkflowGetResponse¶
type WorkflowGetResponse struct {IDstring `json:"id,required" format:"uuid"`ClassNamestring `json:"class_name,required"`CreatedOntime.Time `json:"created_on,required" format:"date-time"`InstancesWorkflowGetResponseInstances `json:"instances,required"`ModifiedOntime.Time `json:"modified_on,required" format:"date-time"`Namestring `json:"name,required"`ScriptNamestring `json:"script_name,required"`TriggeredOntime.Time `json:"triggered_on,required,nullable" format:"date-time"`JSON workflowGetResponseJSON `json:"-"`}
func (*WorkflowGetResponse)UnmarshalJSON¶
func (r *WorkflowGetResponse) UnmarshalJSON(data []byte) (errerror)
typeWorkflowGetResponseEnvelope¶
type WorkflowGetResponseEnvelope struct {Errors []WorkflowGetResponseEnvelopeErrors `json:"errors,required"`Messages []WorkflowGetResponseEnvelopeMessages `json:"messages,required"`ResultWorkflowGetResponse `json:"result,required"`SuccessWorkflowGetResponseEnvelopeSuccess `json:"success,required"`ResultInfoWorkflowGetResponseEnvelopeResultInfo `json:"result_info"`JSON workflowGetResponseEnvelopeJSON `json:"-"`}
func (*WorkflowGetResponseEnvelope)UnmarshalJSON¶
func (r *WorkflowGetResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeWorkflowGetResponseEnvelopeErrors¶
type WorkflowGetResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON workflowGetResponseEnvelopeErrorsJSON `json:"-"`}
func (*WorkflowGetResponseEnvelopeErrors)UnmarshalJSON¶
func (r *WorkflowGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeWorkflowGetResponseEnvelopeMessages¶
type WorkflowGetResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON workflowGetResponseEnvelopeMessagesJSON `json:"-"`}
func (*WorkflowGetResponseEnvelopeMessages)UnmarshalJSON¶
func (r *WorkflowGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeWorkflowGetResponseEnvelopeResultInfo¶
type WorkflowGetResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON workflowGetResponseEnvelopeResultInfoJSON `json:"-"`}
func (*WorkflowGetResponseEnvelopeResultInfo)UnmarshalJSON¶
func (r *WorkflowGetResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeWorkflowGetResponseEnvelopeSuccess¶
type WorkflowGetResponseEnvelopeSuccessbool
const (WorkflowGetResponseEnvelopeSuccessTrueWorkflowGetResponseEnvelopeSuccess =true)
func (WorkflowGetResponseEnvelopeSuccess)IsKnown¶
func (rWorkflowGetResponseEnvelopeSuccess) IsKnown()bool
typeWorkflowGetResponseInstances¶
type WorkflowGetResponseInstances struct {Completefloat64 `json:"complete"`Erroredfloat64 `json:"errored"`Pausedfloat64 `json:"paused"`Queuedfloat64 `json:"queued"`Runningfloat64 `json:"running"`Terminatedfloat64 `json:"terminated"`Waitingfloat64 `json:"waiting"`WaitingForPausefloat64 `json:"waitingForPause"`JSON workflowGetResponseInstancesJSON `json:"-"`}
func (*WorkflowGetResponseInstances)UnmarshalJSON¶
func (r *WorkflowGetResponseInstances) UnmarshalJSON(data []byte) (errerror)
typeWorkflowListParams¶
type WorkflowListParams struct {AccountIDparam.Field[string] `path:"account_id,required"`Pageparam.Field[float64] `query:"page"`PerPageparam.Field[float64] `query:"per_page"`// Allows filtering workflows` name.Searchparam.Field[string] `query:"search"`}
func (WorkflowListParams)URLQuery¶
func (rWorkflowListParams) URLQuery() (vurl.Values)
URLQuery serializesWorkflowListParams's query parameters as `url.Values`.
typeWorkflowListResponse¶
type WorkflowListResponse struct {IDstring `json:"id,required" format:"uuid"`ClassNamestring `json:"class_name,required"`CreatedOntime.Time `json:"created_on,required" format:"date-time"`InstancesWorkflowListResponseInstances `json:"instances,required"`ModifiedOntime.Time `json:"modified_on,required" format:"date-time"`Namestring `json:"name,required"`ScriptNamestring `json:"script_name,required"`TriggeredOntime.Time `json:"triggered_on,required,nullable" format:"date-time"`JSON workflowListResponseJSON `json:"-"`}
func (*WorkflowListResponse)UnmarshalJSON¶
func (r *WorkflowListResponse) UnmarshalJSON(data []byte) (errerror)
typeWorkflowListResponseInstances¶
type WorkflowListResponseInstances struct {Completefloat64 `json:"complete"`Erroredfloat64 `json:"errored"`Pausedfloat64 `json:"paused"`Queuedfloat64 `json:"queued"`Runningfloat64 `json:"running"`Terminatedfloat64 `json:"terminated"`Waitingfloat64 `json:"waiting"`WaitingForPausefloat64 `json:"waitingForPause"`JSON workflowListResponseInstancesJSON `json:"-"`}
func (*WorkflowListResponseInstances)UnmarshalJSON¶
func (r *WorkflowListResponseInstances) UnmarshalJSON(data []byte) (errerror)
typeWorkflowService¶
type WorkflowService struct {Options []option.RequestOptionInstances *InstanceServiceVersions *VersionService}
WorkflowService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewWorkflowService method instead.
funcNewWorkflowService¶
func NewWorkflowService(opts ...option.RequestOption) (r *WorkflowService)
NewWorkflowService generates a new service that applies the given options toeach request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*WorkflowService)Delete¶added inv4.3.0
func (r *WorkflowService) Delete(ctxcontext.Context, workflowNamestring, bodyWorkflowDeleteParams, opts ...option.RequestOption) (res *WorkflowDeleteResponse, errerror)
Deletes a Workflow. This only deletes the Workflow and does not delete or modifyany Worker associated to this Workflow or bounded to it.
func (*WorkflowService)Get¶
func (r *WorkflowService) Get(ctxcontext.Context, workflowNamestring, queryWorkflowGetParams, opts ...option.RequestOption) (res *WorkflowGetResponse, errerror)
Get Workflow details
func (*WorkflowService)List¶
func (r *WorkflowService) List(ctxcontext.Context, paramsWorkflowListParams, opts ...option.RequestOption) (res *pagination.V4PagePaginationArray[WorkflowListResponse], errerror)
List all Workflows
func (*WorkflowService)ListAutoPaging¶
func (r *WorkflowService) ListAutoPaging(ctxcontext.Context, paramsWorkflowListParams, opts ...option.RequestOption) *pagination.V4PagePaginationArrayAutoPager[WorkflowListResponse]
List all Workflows
func (*WorkflowService)Update¶
func (r *WorkflowService) Update(ctxcontext.Context, workflowNamestring, paramsWorkflowUpdateParams, opts ...option.RequestOption) (res *WorkflowUpdateResponse, errerror)
Create/modify Workflow
typeWorkflowUpdateParams¶
type WorkflowUpdateParams struct {AccountIDparam.Field[string] `path:"account_id,required"`ClassNameparam.Field[string] `json:"class_name,required"`ScriptNameparam.Field[string] `json:"script_name,required"`}
func (WorkflowUpdateParams)MarshalJSON¶
func (rWorkflowUpdateParams) MarshalJSON() (data []byte, errerror)
typeWorkflowUpdateResponse¶
type WorkflowUpdateResponse struct {IDstring `json:"id,required" format:"uuid"`ClassNamestring `json:"class_name,required"`CreatedOntime.Time `json:"created_on,required" format:"date-time"`IsDeletedfloat64 `json:"is_deleted,required"`ModifiedOntime.Time `json:"modified_on,required" format:"date-time"`Namestring `json:"name,required"`ScriptNamestring `json:"script_name,required"`TerminatorRunningfloat64 `json:"terminator_running,required"`TriggeredOntime.Time `json:"triggered_on,required,nullable" format:"date-time"`VersionIDstring `json:"version_id,required" format:"uuid"`JSON workflowUpdateResponseJSON `json:"-"`}
func (*WorkflowUpdateResponse)UnmarshalJSON¶
func (r *WorkflowUpdateResponse) UnmarshalJSON(data []byte) (errerror)
typeWorkflowUpdateResponseEnvelope¶
type WorkflowUpdateResponseEnvelope struct {Errors []WorkflowUpdateResponseEnvelopeErrors `json:"errors,required"`Messages []WorkflowUpdateResponseEnvelopeMessages `json:"messages,required"`ResultWorkflowUpdateResponse `json:"result,required"`SuccessWorkflowUpdateResponseEnvelopeSuccess `json:"success,required"`ResultInfoWorkflowUpdateResponseEnvelopeResultInfo `json:"result_info"`JSON workflowUpdateResponseEnvelopeJSON `json:"-"`}
func (*WorkflowUpdateResponseEnvelope)UnmarshalJSON¶
func (r *WorkflowUpdateResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeWorkflowUpdateResponseEnvelopeErrors¶
type WorkflowUpdateResponseEnvelopeErrors struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON workflowUpdateResponseEnvelopeErrorsJSON `json:"-"`}
func (*WorkflowUpdateResponseEnvelopeErrors)UnmarshalJSON¶
func (r *WorkflowUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeWorkflowUpdateResponseEnvelopeMessages¶
type WorkflowUpdateResponseEnvelopeMessages struct {Codefloat64 `json:"code,required"`Messagestring `json:"message,required"`JSON workflowUpdateResponseEnvelopeMessagesJSON `json:"-"`}
func (*WorkflowUpdateResponseEnvelopeMessages)UnmarshalJSON¶
func (r *WorkflowUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeWorkflowUpdateResponseEnvelopeResultInfo¶
type WorkflowUpdateResponseEnvelopeResultInfo struct {Countfloat64 `json:"count,required"`Pagefloat64 `json:"page,required"`PerPagefloat64 `json:"per_page,required"`TotalCountfloat64 `json:"total_count,required"`JSON workflowUpdateResponseEnvelopeResultInfoJSON `json:"-"`}
func (*WorkflowUpdateResponseEnvelopeResultInfo)UnmarshalJSON¶
func (r *WorkflowUpdateResponseEnvelopeResultInfo) UnmarshalJSON(data []byte) (errerror)
typeWorkflowUpdateResponseEnvelopeSuccess¶
type WorkflowUpdateResponseEnvelopeSuccessbool
const (WorkflowUpdateResponseEnvelopeSuccessTrueWorkflowUpdateResponseEnvelopeSuccess =true)
func (WorkflowUpdateResponseEnvelopeSuccess)IsKnown¶
func (rWorkflowUpdateResponseEnvelopeSuccess) IsKnown()bool