cloudforce_one

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
const TokenStatusExpired = shared.TokenStatusExpired

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

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.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate

This is an alias to an internal type.

type CertificateRequestType

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.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

A Cloudflare Tunnel that connects your origin to Cloudflare's edge.

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelStatus

type CloudflareTunnelStatus = shared.CloudflareTunnelStatus

The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `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.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type CloudforceOneService

type CloudforceOneService struct {
	Options      []option.RequestOption
	Scans        *ScanService
	Requests     *RequestService
	ThreatEvents *ThreatEventService
}

CloudforceOneService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewCloudforceOneService method instead.

func NewCloudforceOneService

func NewCloudforceOneService(opts ...option.RequestOption) (r *CloudforceOneService)

NewCloudforceOneService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource added in v4.2.0

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type Item

type Item struct {
	// UUID
	ID string `json:"id,required"`
	// Request content
	Content  string    `json:"content,required"`
	Created  time.Time `json:"created,required" format:"date-time"`
	Priority time.Time `json:"priority,required" format:"date-time"`
	// Requested information from request
	Request string `json:"request,required"`
	// Brief description of the request
	Summary string `json:"summary,required"`
	// The CISA defined Traffic Light Protocol (TLP)
	TLP       ItemTLP   `json:"tlp,required"`
	Updated   time.Time `json:"updated,required" format:"date-time"`
	Completed time.Time `json:"completed" format:"date-time"`
	// Tokens for the request messages
	MessageTokens int64 `json:"message_tokens"`
	// Readable Request ID
	ReadableID string `json:"readable_id"`
	// Request Status
	Status ItemStatus `json:"status"`
	// Tokens for the request
	Tokens int64    `json:"tokens"`
	JSON   itemJSON `json:"-"`
}

func (*Item) UnmarshalJSON

func (r *Item) UnmarshalJSON(data []byte) (err error)

type ItemStatus

type ItemStatus string

Request Status

const (
	ItemStatusOpen      ItemStatus = "open"
	ItemStatusAccepted  ItemStatus = "accepted"
	ItemStatusReported  ItemStatus = "reported"
	ItemStatusApproved  ItemStatus = "approved"
	ItemStatusCompleted ItemStatus = "completed"
	ItemStatusDeclined  ItemStatus = "declined"
)

func (ItemStatus) IsKnown

func (r ItemStatus) IsKnown() bool

type ItemTLP

type ItemTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	ItemTLPClear       ItemTLP = "clear"
	ItemTLPAmber       ItemTLP = "amber"
	ItemTLPAmberStrict ItemTLP = "amber-strict"
	ItemTLPGreen       ItemTLP = "green"
	ItemTLPRed         ItemTLP = "red"
)

func (ItemTLP) IsKnown

func (r ItemTLP) IsKnown() bool

type Label

type Label = string

type LabelParam

type LabelParam = string

type ListItem

type ListItem struct {
	// UUID
	ID string `json:"id,required"`
	// Request creation time
	Created  time.Time        `json:"created,required" format:"date-time"`
	Priority ListItemPriority `json:"priority,required"`
	// Requested information from request
	Request string `json:"request,required"`
	// Brief description of the request
	Summary string `json:"summary,required"`
	// The CISA defined Traffic Light Protocol (TLP)
	TLP ListItemTLP `json:"tlp,required"`
	// Request last updated time
	Updated time.Time `json:"updated,required" format:"date-time"`
	// Request completion time
	Completed time.Time `json:"completed" format:"date-time"`
	// Tokens for the request messages
	MessageTokens int64 `json:"message_tokens"`
	// Readable Request ID
	ReadableID string `json:"readable_id"`
	// Request Status
	Status ListItemStatus `json:"status"`
	// Tokens for the request
	Tokens int64        `json:"tokens"`
	JSON   listItemJSON `json:"-"`
}

func (*ListItem) UnmarshalJSON

func (r *ListItem) UnmarshalJSON(data []byte) (err error)

type ListItemPriority

type ListItemPriority string
const (
	ListItemPriorityRoutine ListItemPriority = "routine"
	ListItemPriorityHigh    ListItemPriority = "high"
	ListItemPriorityUrgent  ListItemPriority = "urgent"
)

func (ListItemPriority) IsKnown

func (r ListItemPriority) IsKnown() bool

type ListItemStatus

type ListItemStatus string

Request Status

const (
	ListItemStatusOpen      ListItemStatus = "open"
	ListItemStatusAccepted  ListItemStatus = "accepted"
	ListItemStatusReported  ListItemStatus = "reported"
	ListItemStatusApproved  ListItemStatus = "approved"
	ListItemStatusCompleted ListItemStatus = "completed"
	ListItemStatusDeclined  ListItemStatus = "declined"
)

func (ListItemStatus) IsKnown

func (r ListItemStatus) IsKnown() bool

type ListItemTLP

type ListItemTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	ListItemTLPClear       ListItemTLP = "clear"
	ListItemTLPAmber       ListItemTLP = "amber"
	ListItemTLPAmberStrict ListItemTLP = "amber-strict"
	ListItemTLPGreen       ListItemTLP = "green"
	ListItemTLPRed         ListItemTLP = "red"
)

func (ListItemTLP) IsKnown

func (r ListItemTLP) IsKnown() bool

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

A scope is a combination of scope objects which provides additional context.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

A scope object represents any resource that can have actions applied against invite.

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type Message

type Message struct {
	// Message ID
	ID int64 `json:"id,required"`
	// Author of message
	Author string `json:"author,required"`
	// Content of message
	Content string `json:"content,required"`
	// Whether the message is a follow-on request
	IsFollowOnRequest bool `json:"is_follow_on_request,required"`
	// Message last updated time
	Updated time.Time `json:"updated,required" format:"date-time"`
	// Message creation time
	Created time.Time   `json:"created" format:"date-time"`
	JSON    messageJSON `json:"-"`
}

func (*Message) UnmarshalJSON

func (r *Message) UnmarshalJSON(data []byte) (err error)

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type Priority

type Priority struct {
	// UUID
	ID string `json:"id,required"`
	// Priority creation time
	Created time.Time `json:"created,required" format:"date-time"`
	// List of labels
	Labels []Label `json:"labels,required"`
	// Priority
	Priority int64 `json:"priority,required"`
	// Requirement
	Requirement string `json:"requirement,required"`
	// The CISA defined Traffic Light Protocol (TLP)
	TLP PriorityTLP `json:"tlp,required"`
	// Priority last updated time
	Updated time.Time    `json:"updated,required" format:"date-time"`
	JSON    priorityJSON `json:"-"`
}

func (*Priority) UnmarshalJSON

func (r *Priority) UnmarshalJSON(data []byte) (err error)

type PriorityEditParam

type PriorityEditParam struct {
	// List of labels
	Labels param.Field[[]LabelParam] `json:"labels,required"`
	// Priority
	Priority param.Field[int64] `json:"priority,required"`
	// Requirement
	Requirement param.Field[string] `json:"requirement,required"`
	// The CISA defined Traffic Light Protocol (TLP)
	TLP param.Field[PriorityEditTLP] `json:"tlp,required"`
}

func (PriorityEditParam) MarshalJSON

func (r PriorityEditParam) MarshalJSON() (data []byte, err error)

type PriorityEditTLP

type PriorityEditTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	PriorityEditTLPClear       PriorityEditTLP = "clear"
	PriorityEditTLPAmber       PriorityEditTLP = "amber"
	PriorityEditTLPAmberStrict PriorityEditTLP = "amber-strict"
	PriorityEditTLPGreen       PriorityEditTLP = "green"
	PriorityEditTLPRed         PriorityEditTLP = "red"
)

func (PriorityEditTLP) IsKnown

func (r PriorityEditTLP) IsKnown() bool

type PriorityTLP

type PriorityTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	PriorityTLPClear       PriorityTLP = "clear"
	PriorityTLPAmber       PriorityTLP = "amber"
	PriorityTLPAmberStrict PriorityTLP = "amber-strict"
	PriorityTLPGreen       PriorityTLP = "green"
	PriorityTLPRed         PriorityTLP = "red"
)

func (PriorityTLP) IsKnown

func (r PriorityTLP) IsKnown() bool

type Quota

type Quota struct {
	// Anniversary date is when annual quota limit is refresh
	AnniversaryDate time.Time `json:"anniversary_date" format:"date-time"`
	// Quater anniversary date is when quota limit is refreshed each quarter
	QuarterAnniversaryDate time.Time `json:"quarter_anniversary_date" format:"date-time"`
	// Tokens for the quarter
	Quota int64 `json:"quota"`
	// Tokens remaining for the quarter
	Remaining int64     `json:"remaining"`
	JSON      quotaJSON `json:"-"`
}

func (*Quota) UnmarshalJSON

func (r *Quota) UnmarshalJSON(data []byte) (err error)

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID added in v4.1.0

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type RequestAssetDeleteResponse

type RequestAssetDeleteResponse struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestAssetDeleteResponseSuccess `json:"success,required"`
	JSON    requestAssetDeleteResponseJSON    `json:"-"`
}

func (*RequestAssetDeleteResponse) UnmarshalJSON

func (r *RequestAssetDeleteResponse) UnmarshalJSON(data []byte) (err error)

type RequestAssetDeleteResponseSuccess

type RequestAssetDeleteResponseSuccess bool

Whether the API call was successful

const (
	RequestAssetDeleteResponseSuccessTrue RequestAssetDeleteResponseSuccess = true
)

func (RequestAssetDeleteResponseSuccess) IsKnown

type RequestAssetGetResponse

type RequestAssetGetResponse struct {
	// Asset ID
	ID int64 `json:"id,required"`
	// Asset name
	Name string `json:"name,required"`
	// Asset creation time
	Created time.Time `json:"created" format:"date-time"`
	// Asset description
	Description string `json:"description"`
	// Asset file type
	FileType string                      `json:"file_type"`
	JSON     requestAssetGetResponseJSON `json:"-"`
}

func (*RequestAssetGetResponse) UnmarshalJSON

func (r *RequestAssetGetResponse) UnmarshalJSON(data []byte) (err error)

type RequestAssetNewParams

type RequestAssetNewParams struct {
	// Page number of results
	Page param.Field[int64] `json:"page,required"`
	// Number of results per page
	PerPage param.Field[int64] `json:"per_page,required"`
}

func (RequestAssetNewParams) MarshalJSON

func (r RequestAssetNewParams) MarshalJSON() (data []byte, err error)

type RequestAssetNewResponse

type RequestAssetNewResponse struct {
	// Asset ID
	ID int64 `json:"id,required"`
	// Asset name
	Name string `json:"name,required"`
	// Asset creation time
	Created time.Time `json:"created" format:"date-time"`
	// Asset description
	Description string `json:"description"`
	// Asset file type
	FileType string                      `json:"file_type"`
	JSON     requestAssetNewResponseJSON `json:"-"`
}

func (*RequestAssetNewResponse) UnmarshalJSON

func (r *RequestAssetNewResponse) UnmarshalJSON(data []byte) (err error)

type RequestAssetService

type RequestAssetService struct {
	Options []option.RequestOption
}

RequestAssetService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewRequestAssetService method instead.

func NewRequestAssetService

func NewRequestAssetService(opts ...option.RequestOption) (r *RequestAssetService)

NewRequestAssetService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*RequestAssetService) Delete

func (r *RequestAssetService) Delete(ctx context.Context, accountIdentifier string, requestIdentifier string, assetIdentifer string, opts ...option.RequestOption) (res *RequestAssetDeleteResponse, err error)

Delete a Request Asset

func (*RequestAssetService) Get

func (r *RequestAssetService) Get(ctx context.Context, accountIdentifier string, requestIdentifier string, assetIdentifer string, opts ...option.RequestOption) (res *pagination.SinglePage[RequestAssetGetResponse], err error)

Get a Request Asset

func (*RequestAssetService) GetAutoPaging added in v4.1.0

func (r *RequestAssetService) GetAutoPaging(ctx context.Context, accountIdentifier string, requestIdentifier string, assetIdentifer string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[RequestAssetGetResponse]

Get a Request Asset

func (*RequestAssetService) New

func (r *RequestAssetService) New(ctx context.Context, accountIdentifier string, requestIdentifier string, body RequestAssetNewParams, opts ...option.RequestOption) (res *pagination.SinglePage[RequestAssetNewResponse], err error)

List Request Assets

func (*RequestAssetService) NewAutoPaging added in v4.1.0

func (r *RequestAssetService) NewAutoPaging(ctx context.Context, accountIdentifier string, requestIdentifier string, body RequestAssetNewParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[RequestAssetNewResponse]

List Request Assets

func (*RequestAssetService) Update

func (r *RequestAssetService) Update(ctx context.Context, accountIdentifier string, requestIdentifier string, assetIdentifer string, body RequestAssetUpdateParams, opts ...option.RequestOption) (res *RequestAssetUpdateResponse, err error)

Update a Request Asset

type RequestAssetUpdateParams

type RequestAssetUpdateParams struct {
	// Asset file to upload
	Source param.Field[string] `json:"source"`
}

func (RequestAssetUpdateParams) MarshalJSON

func (r RequestAssetUpdateParams) MarshalJSON() (data []byte, err error)

type RequestAssetUpdateResponse

type RequestAssetUpdateResponse struct {
	// Asset ID
	ID int64 `json:"id,required"`
	// Asset name
	Name string `json:"name,required"`
	// Asset creation time
	Created time.Time `json:"created" format:"date-time"`
	// Asset description
	Description string `json:"description"`
	// Asset file type
	FileType string                         `json:"file_type"`
	JSON     requestAssetUpdateResponseJSON `json:"-"`
}

func (*RequestAssetUpdateResponse) UnmarshalJSON

func (r *RequestAssetUpdateResponse) UnmarshalJSON(data []byte) (err error)

type RequestAssetUpdateResponseEnvelope

type RequestAssetUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestAssetUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  RequestAssetUpdateResponse                `json:"result"`
	JSON    requestAssetUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*RequestAssetUpdateResponseEnvelope) UnmarshalJSON

func (r *RequestAssetUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestAssetUpdateResponseEnvelopeSuccess

type RequestAssetUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestAssetUpdateResponseEnvelopeSuccessTrue RequestAssetUpdateResponseEnvelopeSuccess = true
)

func (RequestAssetUpdateResponseEnvelopeSuccess) IsKnown

type RequestConstants

type RequestConstants struct {
	Priority []RequestConstantsPriority `json:"priority"`
	Status   []RequestConstantsStatus   `json:"status"`
	TLP      []RequestConstantsTLP      `json:"tlp"`
	JSON     requestConstantsJSON       `json:"-"`
}

func (*RequestConstants) UnmarshalJSON

func (r *RequestConstants) UnmarshalJSON(data []byte) (err error)

type RequestConstantsPriority

type RequestConstantsPriority string
const (
	RequestConstantsPriorityRoutine RequestConstantsPriority = "routine"
	RequestConstantsPriorityHigh    RequestConstantsPriority = "high"
	RequestConstantsPriorityUrgent  RequestConstantsPriority = "urgent"
)

func (RequestConstantsPriority) IsKnown

func (r RequestConstantsPriority) IsKnown() bool

type RequestConstantsResponseEnvelope

type RequestConstantsResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestConstantsResponseEnvelopeSuccess `json:"success,required"`
	Result  RequestConstants                        `json:"result"`
	JSON    requestConstantsResponseEnvelopeJSON    `json:"-"`
}

func (*RequestConstantsResponseEnvelope) UnmarshalJSON

func (r *RequestConstantsResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestConstantsResponseEnvelopeSuccess

type RequestConstantsResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestConstantsResponseEnvelopeSuccessTrue RequestConstantsResponseEnvelopeSuccess = true
)

func (RequestConstantsResponseEnvelopeSuccess) IsKnown

type RequestConstantsStatus

type RequestConstantsStatus string

Request Status

const (
	RequestConstantsStatusOpen      RequestConstantsStatus = "open"
	RequestConstantsStatusAccepted  RequestConstantsStatus = "accepted"
	RequestConstantsStatusReported  RequestConstantsStatus = "reported"
	RequestConstantsStatusApproved  RequestConstantsStatus = "approved"
	RequestConstantsStatusCompleted RequestConstantsStatus = "completed"
	RequestConstantsStatusDeclined  RequestConstantsStatus = "declined"
)

func (RequestConstantsStatus) IsKnown

func (r RequestConstantsStatus) IsKnown() bool

type RequestConstantsTLP

type RequestConstantsTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	RequestConstantsTLPClear       RequestConstantsTLP = "clear"
	RequestConstantsTLPAmber       RequestConstantsTLP = "amber"
	RequestConstantsTLPAmberStrict RequestConstantsTLP = "amber-strict"
	RequestConstantsTLPGreen       RequestConstantsTLP = "green"
	RequestConstantsTLPRed         RequestConstantsTLP = "red"
)

func (RequestConstantsTLP) IsKnown

func (r RequestConstantsTLP) IsKnown() bool

type RequestDeleteResponse

type RequestDeleteResponse struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestDeleteResponseSuccess `json:"success,required"`
	JSON    requestDeleteResponseJSON    `json:"-"`
}

func (*RequestDeleteResponse) UnmarshalJSON

func (r *RequestDeleteResponse) UnmarshalJSON(data []byte) (err error)

type RequestDeleteResponseSuccess

type RequestDeleteResponseSuccess bool

Whether the API call was successful

const (
	RequestDeleteResponseSuccessTrue RequestDeleteResponseSuccess = true
)

func (RequestDeleteResponseSuccess) IsKnown

func (r RequestDeleteResponseSuccess) IsKnown() bool

type RequestGetResponseEnvelope

type RequestGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestGetResponseEnvelopeSuccess `json:"success,required"`
	Result  Item                              `json:"result"`
	JSON    requestGetResponseEnvelopeJSON    `json:"-"`
}

func (*RequestGetResponseEnvelope) UnmarshalJSON

func (r *RequestGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestGetResponseEnvelopeSuccess

type RequestGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestGetResponseEnvelopeSuccessTrue RequestGetResponseEnvelopeSuccess = true
)

func (RequestGetResponseEnvelopeSuccess) IsKnown

type RequestListParams

type RequestListParams struct {
	// Page number of results
	Page param.Field[int64] `json:"page,required"`
	// Number of results per page
	PerPage param.Field[int64] `json:"per_page,required"`
	// Retrieve requests completed after this time
	CompletedAfter param.Field[time.Time] `json:"completed_after" format:"date-time"`
	// Retrieve requests completed before this time
	CompletedBefore param.Field[time.Time] `json:"completed_before" format:"date-time"`
	// Retrieve requests created after this time
	CreatedAfter param.Field[time.Time] `json:"created_after" format:"date-time"`
	// Retrieve requests created before this time
	CreatedBefore param.Field[time.Time] `json:"created_before" format:"date-time"`
	// Requested information from request
	RequestType param.Field[string] `json:"request_type"`
	// Field to sort results by
	SortBy param.Field[string] `json:"sort_by"`
	// Sort order (asc or desc)
	SortOrder param.Field[RequestListParamsSortOrder] `json:"sort_order"`
	// Request Status
	Status param.Field[RequestListParamsStatus] `json:"status"`
}

func (RequestListParams) MarshalJSON

func (r RequestListParams) MarshalJSON() (data []byte, err error)

type RequestListParamsSortOrder

type RequestListParamsSortOrder string

Sort order (asc or desc)

const (
	RequestListParamsSortOrderAsc  RequestListParamsSortOrder = "asc"
	RequestListParamsSortOrderDesc RequestListParamsSortOrder = "desc"
)

func (RequestListParamsSortOrder) IsKnown

func (r RequestListParamsSortOrder) IsKnown() bool

type RequestListParamsStatus

type RequestListParamsStatus string

Request Status

const (
	RequestListParamsStatusOpen      RequestListParamsStatus = "open"
	RequestListParamsStatusAccepted  RequestListParamsStatus = "accepted"
	RequestListParamsStatusReported  RequestListParamsStatus = "reported"
	RequestListParamsStatusApproved  RequestListParamsStatus = "approved"
	RequestListParamsStatusCompleted RequestListParamsStatus = "completed"
	RequestListParamsStatusDeclined  RequestListParamsStatus = "declined"
)

func (RequestListParamsStatus) IsKnown

func (r RequestListParamsStatus) IsKnown() bool

type RequestMessageDeleteResponse

type RequestMessageDeleteResponse struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestMessageDeleteResponseSuccess `json:"success,required"`
	JSON    requestMessageDeleteResponseJSON    `json:"-"`
}

func (*RequestMessageDeleteResponse) UnmarshalJSON

func (r *RequestMessageDeleteResponse) UnmarshalJSON(data []byte) (err error)

type RequestMessageDeleteResponseSuccess

type RequestMessageDeleteResponseSuccess bool

Whether the API call was successful

const (
	RequestMessageDeleteResponseSuccessTrue RequestMessageDeleteResponseSuccess = true
)

func (RequestMessageDeleteResponseSuccess) IsKnown

type RequestMessageGetParams

type RequestMessageGetParams struct {
	// Page number of results
	Page param.Field[int64] `json:"page,required"`
	// Number of results per page
	PerPage param.Field[int64] `json:"per_page,required"`
	// Retrieve messages created after this time
	After param.Field[time.Time] `json:"after" format:"date-time"`
	// Retrieve messages created before this time
	Before param.Field[time.Time] `json:"before" format:"date-time"`
	// Field to sort results by
	SortBy param.Field[string] `json:"sort_by"`
	// Sort order (asc or desc)
	SortOrder param.Field[RequestMessageGetParamsSortOrder] `json:"sort_order"`
}

func (RequestMessageGetParams) MarshalJSON

func (r RequestMessageGetParams) MarshalJSON() (data []byte, err error)

type RequestMessageGetParamsSortOrder

type RequestMessageGetParamsSortOrder string

Sort order (asc or desc)

const (
	RequestMessageGetParamsSortOrderAsc  RequestMessageGetParamsSortOrder = "asc"
	RequestMessageGetParamsSortOrderDesc RequestMessageGetParamsSortOrder = "desc"
)

func (RequestMessageGetParamsSortOrder) IsKnown

type RequestMessageNewParams

type RequestMessageNewParams struct {
	// Content of message
	Content param.Field[string] `json:"content"`
}

func (RequestMessageNewParams) MarshalJSON

func (r RequestMessageNewParams) MarshalJSON() (data []byte, err error)

type RequestMessageNewResponseEnvelope

type RequestMessageNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestMessageNewResponseEnvelopeSuccess `json:"success,required"`
	Result  Message                                  `json:"result"`
	JSON    requestMessageNewResponseEnvelopeJSON    `json:"-"`
}

func (*RequestMessageNewResponseEnvelope) UnmarshalJSON

func (r *RequestMessageNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestMessageNewResponseEnvelopeSuccess

type RequestMessageNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestMessageNewResponseEnvelopeSuccessTrue RequestMessageNewResponseEnvelopeSuccess = true
)

func (RequestMessageNewResponseEnvelopeSuccess) IsKnown

type RequestMessageService

type RequestMessageService struct {
	Options []option.RequestOption
}

RequestMessageService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewRequestMessageService method instead.

func NewRequestMessageService

func NewRequestMessageService(opts ...option.RequestOption) (r *RequestMessageService)

NewRequestMessageService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*RequestMessageService) Delete

func (r *RequestMessageService) Delete(ctx context.Context, accountIdentifier string, requestIdentifier string, messageIdentifer int64, opts ...option.RequestOption) (res *RequestMessageDeleteResponse, err error)

Delete a Request Message

func (*RequestMessageService) Get

func (r *RequestMessageService) Get(ctx context.Context, accountIdentifier string, requestIdentifier string, body RequestMessageGetParams, opts ...option.RequestOption) (res *pagination.SinglePage[Message], err error)

List Request Messages

func (*RequestMessageService) GetAutoPaging added in v4.1.0

func (r *RequestMessageService) GetAutoPaging(ctx context.Context, accountIdentifier string, requestIdentifier string, body RequestMessageGetParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[Message]

List Request Messages

func (*RequestMessageService) New

func (r *RequestMessageService) New(ctx context.Context, accountIdentifier string, requestIdentifier string, body RequestMessageNewParams, opts ...option.RequestOption) (res *Message, err error)

Create a New Request Message

func (*RequestMessageService) Update

func (r *RequestMessageService) Update(ctx context.Context, accountIdentifier string, requestIdentifier string, messageIdentifer int64, body RequestMessageUpdateParams, opts ...option.RequestOption) (res *Message, err error)

Update a Request Message

type RequestMessageUpdateParams

type RequestMessageUpdateParams struct {
	// Content of message
	Content param.Field[string] `json:"content"`
}

func (RequestMessageUpdateParams) MarshalJSON

func (r RequestMessageUpdateParams) MarshalJSON() (data []byte, err error)

type RequestMessageUpdateResponseEnvelope

type RequestMessageUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestMessageUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  Message                                     `json:"result"`
	JSON    requestMessageUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*RequestMessageUpdateResponseEnvelope) UnmarshalJSON

func (r *RequestMessageUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestMessageUpdateResponseEnvelopeSuccess

type RequestMessageUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestMessageUpdateResponseEnvelopeSuccessTrue RequestMessageUpdateResponseEnvelopeSuccess = true
)

func (RequestMessageUpdateResponseEnvelopeSuccess) IsKnown

type RequestNewParams

type RequestNewParams struct {
	// Request content
	Content param.Field[string] `json:"content"`
	// Priority for analyzing the request
	Priority param.Field[string] `json:"priority"`
	// Requested information from request
	RequestType param.Field[string] `json:"request_type"`
	// Brief description of the request
	Summary param.Field[string] `json:"summary"`
	// The CISA defined Traffic Light Protocol (TLP)
	TLP param.Field[RequestNewParamsTLP] `json:"tlp"`
}

func (RequestNewParams) MarshalJSON

func (r RequestNewParams) MarshalJSON() (data []byte, err error)

type RequestNewParamsTLP

type RequestNewParamsTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	RequestNewParamsTLPClear       RequestNewParamsTLP = "clear"
	RequestNewParamsTLPAmber       RequestNewParamsTLP = "amber"
	RequestNewParamsTLPAmberStrict RequestNewParamsTLP = "amber-strict"
	RequestNewParamsTLPGreen       RequestNewParamsTLP = "green"
	RequestNewParamsTLPRed         RequestNewParamsTLP = "red"
)

func (RequestNewParamsTLP) IsKnown

func (r RequestNewParamsTLP) IsKnown() bool

type RequestNewResponseEnvelope

type RequestNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestNewResponseEnvelopeSuccess `json:"success,required"`
	Result  Item                              `json:"result"`
	JSON    requestNewResponseEnvelopeJSON    `json:"-"`
}

func (*RequestNewResponseEnvelope) UnmarshalJSON

func (r *RequestNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestNewResponseEnvelopeSuccess

type RequestNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestNewResponseEnvelopeSuccessTrue RequestNewResponseEnvelopeSuccess = true
)

func (RequestNewResponseEnvelopeSuccess) IsKnown

type RequestPriorityDeleteResponse

type RequestPriorityDeleteResponse struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestPriorityDeleteResponseSuccess `json:"success,required"`
	JSON    requestPriorityDeleteResponseJSON    `json:"-"`
}

func (*RequestPriorityDeleteResponse) UnmarshalJSON

func (r *RequestPriorityDeleteResponse) UnmarshalJSON(data []byte) (err error)

type RequestPriorityDeleteResponseSuccess

type RequestPriorityDeleteResponseSuccess bool

Whether the API call was successful

const (
	RequestPriorityDeleteResponseSuccessTrue RequestPriorityDeleteResponseSuccess = true
)

func (RequestPriorityDeleteResponseSuccess) IsKnown

type RequestPriorityGetResponseEnvelope

type RequestPriorityGetResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestPriorityGetResponseEnvelopeSuccess `json:"success,required"`
	Result  Item                                      `json:"result"`
	JSON    requestPriorityGetResponseEnvelopeJSON    `json:"-"`
}

func (*RequestPriorityGetResponseEnvelope) UnmarshalJSON

func (r *RequestPriorityGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestPriorityGetResponseEnvelopeSuccess

type RequestPriorityGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestPriorityGetResponseEnvelopeSuccessTrue RequestPriorityGetResponseEnvelopeSuccess = true
)

func (RequestPriorityGetResponseEnvelopeSuccess) IsKnown

type RequestPriorityNewParams

type RequestPriorityNewParams struct {
	PriorityEdit PriorityEditParam `json:"priority_edit,required"`
}

func (RequestPriorityNewParams) MarshalJSON

func (r RequestPriorityNewParams) MarshalJSON() (data []byte, err error)

type RequestPriorityNewResponseEnvelope

type RequestPriorityNewResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestPriorityNewResponseEnvelopeSuccess `json:"success,required"`
	Result  Priority                                  `json:"result"`
	JSON    requestPriorityNewResponseEnvelopeJSON    `json:"-"`
}

func (*RequestPriorityNewResponseEnvelope) UnmarshalJSON

func (r *RequestPriorityNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestPriorityNewResponseEnvelopeSuccess

type RequestPriorityNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestPriorityNewResponseEnvelopeSuccessTrue RequestPriorityNewResponseEnvelopeSuccess = true
)

func (RequestPriorityNewResponseEnvelopeSuccess) IsKnown

type RequestPriorityQuotaResponseEnvelope

type RequestPriorityQuotaResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestPriorityQuotaResponseEnvelopeSuccess `json:"success,required"`
	Result  Quota                                       `json:"result"`
	JSON    requestPriorityQuotaResponseEnvelopeJSON    `json:"-"`
}

func (*RequestPriorityQuotaResponseEnvelope) UnmarshalJSON

func (r *RequestPriorityQuotaResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestPriorityQuotaResponseEnvelopeSuccess

type RequestPriorityQuotaResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestPriorityQuotaResponseEnvelopeSuccessTrue RequestPriorityQuotaResponseEnvelopeSuccess = true
)

func (RequestPriorityQuotaResponseEnvelopeSuccess) IsKnown

type RequestPriorityService

type RequestPriorityService struct {
	Options []option.RequestOption
}

RequestPriorityService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewRequestPriorityService method instead.

func NewRequestPriorityService

func NewRequestPriorityService(opts ...option.RequestOption) (r *RequestPriorityService)

NewRequestPriorityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*RequestPriorityService) Delete

func (r *RequestPriorityService) Delete(ctx context.Context, accountIdentifier string, priorityIdentifer string, opts ...option.RequestOption) (res *RequestPriorityDeleteResponse, err error)

Delete a Priority Intelligence Requirement

func (*RequestPriorityService) Get

func (r *RequestPriorityService) Get(ctx context.Context, accountIdentifier string, priorityIdentifer string, opts ...option.RequestOption) (res *Item, err error)

Get a Priority Intelligence Requirement

func (*RequestPriorityService) New

func (r *RequestPriorityService) New(ctx context.Context, accountIdentifier string, body RequestPriorityNewParams, opts ...option.RequestOption) (res *Priority, err error)

Create a New Priority Intelligence Requirement

func (*RequestPriorityService) Quota

func (r *RequestPriorityService) Quota(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) (res *Quota, err error)

Get Priority Intelligence Requirement Quota

func (*RequestPriorityService) Update

func (r *RequestPriorityService) Update(ctx context.Context, accountIdentifier string, priorityIdentifer string, body RequestPriorityUpdateParams, opts ...option.RequestOption) (res *Item, err error)

Update a Priority Intelligence Requirement

type RequestPriorityUpdateParams

type RequestPriorityUpdateParams struct {
	PriorityEdit PriorityEditParam `json:"priority_edit,required"`
}

func (RequestPriorityUpdateParams) MarshalJSON

func (r RequestPriorityUpdateParams) MarshalJSON() (data []byte, err error)

type RequestPriorityUpdateResponseEnvelope

type RequestPriorityUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestPriorityUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  Item                                         `json:"result"`
	JSON    requestPriorityUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*RequestPriorityUpdateResponseEnvelope) UnmarshalJSON

func (r *RequestPriorityUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestPriorityUpdateResponseEnvelopeSuccess

type RequestPriorityUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestPriorityUpdateResponseEnvelopeSuccessTrue RequestPriorityUpdateResponseEnvelopeSuccess = true
)

func (RequestPriorityUpdateResponseEnvelopeSuccess) IsKnown

type RequestQuotaResponseEnvelope

type RequestQuotaResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestQuotaResponseEnvelopeSuccess `json:"success,required"`
	Result  Quota                               `json:"result"`
	JSON    requestQuotaResponseEnvelopeJSON    `json:"-"`
}

func (*RequestQuotaResponseEnvelope) UnmarshalJSON

func (r *RequestQuotaResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestQuotaResponseEnvelopeSuccess

type RequestQuotaResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestQuotaResponseEnvelopeSuccessTrue RequestQuotaResponseEnvelopeSuccess = true
)

func (RequestQuotaResponseEnvelopeSuccess) IsKnown

type RequestService

type RequestService struct {
	Options  []option.RequestOption
	Message  *RequestMessageService
	Priority *RequestPriorityService
	Assets   *RequestAssetService
}

RequestService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewRequestService method instead.

func NewRequestService

func NewRequestService(opts ...option.RequestOption) (r *RequestService)

NewRequestService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*RequestService) Constants

func (r *RequestService) Constants(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) (res *RequestConstants, err error)

Get Request Priority, Status, and TLP constants

func (*RequestService) Delete

func (r *RequestService) Delete(ctx context.Context, accountIdentifier string, requestIdentifier string, opts ...option.RequestOption) (res *RequestDeleteResponse, err error)

Delete a Request

func (*RequestService) Get

func (r *RequestService) Get(ctx context.Context, accountIdentifier string, requestIdentifier string, opts ...option.RequestOption) (res *Item, err error)

Get a Request

func (*RequestService) List

func (r *RequestService) List(ctx context.Context, accountIdentifier string, body RequestListParams, opts ...option.RequestOption) (res *pagination.SinglePage[ListItem], err error)

List Requests

func (*RequestService) ListAutoPaging

func (r *RequestService) ListAutoPaging(ctx context.Context, accountIdentifier string, body RequestListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[ListItem]

List Requests

func (*RequestService) New

func (r *RequestService) New(ctx context.Context, accountIdentifier string, body RequestNewParams, opts ...option.RequestOption) (res *Item, err error)

Creating a request adds the request into the Cloudforce One queue for analysis. In addition to the content, a short title, type, priority, and releasability should be provided. If one is not provided, a default will be assigned.

func (*RequestService) Quota

func (r *RequestService) Quota(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) (res *Quota, err error)

Get Request Quota

func (*RequestService) Types

func (r *RequestService) Types(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) (res *pagination.SinglePage[string], err error)

Get Request Types

func (*RequestService) TypesAutoPaging added in v4.1.0

func (r *RequestService) TypesAutoPaging(ctx context.Context, accountIdentifier string, opts ...option.RequestOption) *pagination.SinglePageAutoPager[string]

Get Request Types

func (*RequestService) Update

func (r *RequestService) Update(ctx context.Context, accountIdentifier string, requestIdentifier string, body RequestUpdateParams, opts ...option.RequestOption) (res *Item, err error)

Updating a request alters the request in the Cloudforce One queue. This API may be used to update any attributes of the request after the initial submission. Only fields that you choose to update need to be add to the request body.

type RequestTypes

type RequestTypes []string

type RequestUpdateParams

type RequestUpdateParams struct {
	// Request content
	Content param.Field[string] `json:"content"`
	// Priority for analyzing the request
	Priority param.Field[string] `json:"priority"`
	// Requested information from request
	RequestType param.Field[string] `json:"request_type"`
	// Brief description of the request
	Summary param.Field[string] `json:"summary"`
	// The CISA defined Traffic Light Protocol (TLP)
	TLP param.Field[RequestUpdateParamsTLP] `json:"tlp"`
}

func (RequestUpdateParams) MarshalJSON

func (r RequestUpdateParams) MarshalJSON() (data []byte, err error)

type RequestUpdateParamsTLP

type RequestUpdateParamsTLP string

The CISA defined Traffic Light Protocol (TLP)

const (
	RequestUpdateParamsTLPClear       RequestUpdateParamsTLP = "clear"
	RequestUpdateParamsTLPAmber       RequestUpdateParamsTLP = "amber"
	RequestUpdateParamsTLPAmberStrict RequestUpdateParamsTLP = "amber-strict"
	RequestUpdateParamsTLPGreen       RequestUpdateParamsTLP = "green"
	RequestUpdateParamsTLPRed         RequestUpdateParamsTLP = "red"
)

func (RequestUpdateParamsTLP) IsKnown

func (r RequestUpdateParamsTLP) IsKnown() bool

type RequestUpdateResponseEnvelope

type RequestUpdateResponseEnvelope struct {
	Errors   []shared.ResponseInfo `json:"errors,required"`
	Messages []shared.ResponseInfo `json:"messages,required"`
	// Whether the API call was successful
	Success RequestUpdateResponseEnvelopeSuccess `json:"success,required"`
	Result  Item                                 `json:"result"`
	JSON    requestUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*RequestUpdateResponseEnvelope) UnmarshalJSON

func (r *RequestUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type RequestUpdateResponseEnvelopeSuccess

type RequestUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	RequestUpdateResponseEnvelopeSuccessTrue RequestUpdateResponseEnvelopeSuccess = true
)

func (RequestUpdateResponseEnvelopeSuccess) IsKnown

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource added in v4.3.0

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

This is an alias to an internal type.

type RolePermissions

type RolePermissions = shared.RolePermissions

This is an alias to an internal type.

type RolePermissionsParam

type RolePermissionsParam = shared.RolePermissionsParam

This is an alias to an internal type.

type ScanConfigDeleteParams added in v4.2.0

type ScanConfigDeleteParams struct {
	// Defines the Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ScanConfigDeleteResponse added in v4.2.0

type ScanConfigDeleteResponse = interface{}

type ScanConfigDeleteResponseEnvelope added in v4.2.0

type ScanConfigDeleteResponseEnvelope struct {
	Errors   []string                             `json:"errors,required"`
	Messages []string                             `json:"messages,required"`
	Result   ScanConfigDeleteResponse             `json:"result,required"`
	Success  bool                                 `json:"success,required"`
	JSON     scanConfigDeleteResponseEnvelopeJSON `json:"-"`
}

func (*ScanConfigDeleteResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ScanConfigDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditParams added in v4.2.0

type ScanConfigEditParams struct {
	// Defines the Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
	// Defines the number of days between each scan (0 = One-off scan).
	Frequency param.Field[float64] `json:"frequency"`
	// Defines a list of IP addresses or CIDR blocks to scan. The maximum number of
	// total IP addresses allowed is 5000.
	IPs param.Field[[]string] `json:"ips"`
	// Defines a list of ports to scan. Valid values are:"default", "all", or a
	// comma-separated list of ports or range of ports (e.g. ["1-80", "443"]).
	// "default" scans the 100 most commonly open ports.
	Ports param.Field[[]string] `json:"ports"`
}

func (ScanConfigEditParams) MarshalJSON added in v4.2.0

func (r ScanConfigEditParams) MarshalJSON() (data []byte, err error)

type ScanConfigEditResponse added in v4.2.0

type ScanConfigEditResponse struct {
	// Defines the Config ID.
	ID        string `json:"id,required"`
	AccountID string `json:"account_id,required"`
	// Defines the number of days between each scan (0 = One-off scan).
	Frequency float64 `json:"frequency,required"`
	// Defines a list of IP addresses or CIDR blocks to scan. The maximum number of
	// total IP addresses allowed is 5000.
	IPs []string `json:"ips,required"`
	// Defines a list of ports to scan. Valid values are:"default", "all", or a
	// comma-separated list of ports or range of ports (e.g. ["1-80", "443"]).
	// "default" scans the 100 most commonly open ports.
	Ports []string                   `json:"ports,required"`
	JSON  scanConfigEditResponseJSON `json:"-"`
}

func (*ScanConfigEditResponse) UnmarshalJSON added in v4.2.0

func (r *ScanConfigEditResponse) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditResponseEnvelope added in v4.2.0

type ScanConfigEditResponseEnvelope struct {
	Errors   []ScanConfigEditResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScanConfigEditResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScanConfigEditResponseEnvelopeSuccess `json:"success,required"`
	Result  ScanConfigEditResponse                `json:"result"`
	JSON    scanConfigEditResponseEnvelopeJSON    `json:"-"`
}

func (*ScanConfigEditResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ScanConfigEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditResponseEnvelopeErrors added in v4.3.0

type ScanConfigEditResponseEnvelopeErrors struct {
	Code             int64                                      `json:"code,required"`
	Message          string                                     `json:"message,required"`
	DocumentationURL string                                     `json:"documentation_url"`
	Source           ScanConfigEditResponseEnvelopeErrorsSource `json:"source"`
	JSON             scanConfigEditResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScanConfigEditResponseEnvelopeErrors) UnmarshalJSON added in v4.3.0

func (r *ScanConfigEditResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditResponseEnvelopeErrorsSource added in v4.3.0

type ScanConfigEditResponseEnvelopeErrorsSource struct {
	Pointer string                                         `json:"pointer"`
	JSON    scanConfigEditResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScanConfigEditResponseEnvelopeErrorsSource) UnmarshalJSON added in v4.3.0

func (r *ScanConfigEditResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditResponseEnvelopeMessages added in v4.3.0

type ScanConfigEditResponseEnvelopeMessages struct {
	Code             int64                                        `json:"code,required"`
	Message          string                                       `json:"message,required"`
	DocumentationURL string                                       `json:"documentation_url"`
	Source           ScanConfigEditResponseEnvelopeMessagesSource `json:"source"`
	JSON             scanConfigEditResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScanConfigEditResponseEnvelopeMessages) UnmarshalJSON added in v4.3.0

func (r *ScanConfigEditResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditResponseEnvelopeMessagesSource added in v4.3.0

type ScanConfigEditResponseEnvelopeMessagesSource struct {
	Pointer string                                           `json:"pointer"`
	JSON    scanConfigEditResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScanConfigEditResponseEnvelopeMessagesSource) UnmarshalJSON added in v4.3.0

func (r *ScanConfigEditResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)

type ScanConfigEditResponseEnvelopeSuccess added in v4.2.0

type ScanConfigEditResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScanConfigEditResponseEnvelopeSuccessTrue ScanConfigEditResponseEnvelopeSuccess = true
)

func (ScanConfigEditResponseEnvelopeSuccess) IsKnown added in v4.2.0

type ScanConfigListParams added in v4.2.0

type ScanConfigListParams struct {
	// Defines the Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ScanConfigListResponse added in v4.2.0

type ScanConfigListResponse struct {
	// Defines the Config ID.
	ID        string `json:"id,required"`
	AccountID string `json:"account_id,required"`
	// Defines the number of days between each scan (0 = One-off scan).
	Frequency float64 `json:"frequency,required"`
	// Defines a list of IP addresses or CIDR blocks to scan. The maximum number of
	// total IP addresses allowed is 5000.
	IPs []string `json:"ips,required"`
	// Defines a list of ports to scan. Valid values are:"default", "all", or a
	// comma-separated list of ports or range of ports (e.g. ["1-80", "443"]).
	// "default" scans the 100 most commonly open ports.
	Ports []string                   `json:"ports,required"`
	JSON  scanConfigListResponseJSON `json:"-"`
}

func (*ScanConfigListResponse) UnmarshalJSON added in v4.2.0

func (r *ScanConfigListResponse) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewParams added in v4.2.0

type ScanConfigNewParams struct {
	// Defines the Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
	// Defines a list of IP addresses or CIDR blocks to scan. The maximum number of
	// total IP addresses allowed is 5000.
	IPs param.Field[[]string] `json:"ips,required"`
	// Defines the number of days between each scan (0 = One-off scan).
	Frequency param.Field[float64] `json:"frequency"`
	// Defines a list of ports to scan. Valid values are:"default", "all", or a
	// comma-separated list of ports or range of ports (e.g. ["1-80", "443"]).
	// "default" scans the 100 most commonly open ports.
	Ports param.Field[[]string] `json:"ports"`
}

func (ScanConfigNewParams) MarshalJSON added in v4.2.0

func (r ScanConfigNewParams) MarshalJSON() (data []byte, err error)

type ScanConfigNewResponse added in v4.2.0

type ScanConfigNewResponse struct {
	// Defines the Config ID.
	ID        string `json:"id,required"`
	AccountID string `json:"account_id,required"`
	// Defines the number of days between each scan (0 = One-off scan).
	Frequency float64 `json:"frequency,required"`
	// Defines a list of IP addresses or CIDR blocks to scan. The maximum number of
	// total IP addresses allowed is 5000.
	IPs []string `json:"ips,required"`
	// Defines a list of ports to scan. Valid values are:"default", "all", or a
	// comma-separated list of ports or range of ports (e.g. ["1-80", "443"]).
	// "default" scans the 100 most commonly open ports.
	Ports []string                  `json:"ports,required"`
	JSON  scanConfigNewResponseJSON `json:"-"`
}

func (*ScanConfigNewResponse) UnmarshalJSON added in v4.2.0

func (r *ScanConfigNewResponse) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewResponseEnvelope added in v4.2.0

type ScanConfigNewResponseEnvelope struct {
	Errors   []ScanConfigNewResponseEnvelopeErrors   `json:"errors,required"`
	Messages []ScanConfigNewResponseEnvelopeMessages `json:"messages,required"`
	// Whether the API call was successful.
	Success ScanConfigNewResponseEnvelopeSuccess `json:"success,required"`
	Result  ScanConfigNewResponse                `json:"result"`
	JSON    scanConfigNewResponseEnvelopeJSON    `json:"-"`
}

func (*ScanConfigNewResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ScanConfigNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewResponseEnvelopeErrors added in v4.3.0

type ScanConfigNewResponseEnvelopeErrors struct {
	Code             int64                                     `json:"code,required"`
	Message          string                                    `json:"message,required"`
	DocumentationURL string                                    `json:"documentation_url"`
	Source           ScanConfigNewResponseEnvelopeErrorsSource `json:"source"`
	JSON             scanConfigNewResponseEnvelopeErrorsJSON   `json:"-"`
}

func (*ScanConfigNewResponseEnvelopeErrors) UnmarshalJSON added in v4.3.0

func (r *ScanConfigNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewResponseEnvelopeErrorsSource added in v4.3.0

type ScanConfigNewResponseEnvelopeErrorsSource struct {
	Pointer string                                        `json:"pointer"`
	JSON    scanConfigNewResponseEnvelopeErrorsSourceJSON `json:"-"`
}

func (*ScanConfigNewResponseEnvelopeErrorsSource) UnmarshalJSON added in v4.3.0

func (r *ScanConfigNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewResponseEnvelopeMessages added in v4.3.0

type ScanConfigNewResponseEnvelopeMessages struct {
	Code             int64                                       `json:"code,required"`
	Message          string                                      `json:"message,required"`
	DocumentationURL string                                      `json:"documentation_url"`
	Source           ScanConfigNewResponseEnvelopeMessagesSource `json:"source"`
	JSON             scanConfigNewResponseEnvelopeMessagesJSON   `json:"-"`
}

func (*ScanConfigNewResponseEnvelopeMessages) UnmarshalJSON added in v4.3.0

func (r *ScanConfigNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewResponseEnvelopeMessagesSource added in v4.3.0

type ScanConfigNewResponseEnvelopeMessagesSource struct {
	Pointer string                                          `json:"pointer"`
	JSON    scanConfigNewResponseEnvelopeMessagesSourceJSON `json:"-"`
}

func (*ScanConfigNewResponseEnvelopeMessagesSource) UnmarshalJSON added in v4.3.0

func (r *ScanConfigNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (err error)

type ScanConfigNewResponseEnvelopeSuccess added in v4.2.0

type ScanConfigNewResponseEnvelopeSuccess bool

Whether the API call was successful.

const (
	ScanConfigNewResponseEnvelopeSuccessTrue ScanConfigNewResponseEnvelopeSuccess = true
)

func (ScanConfigNewResponseEnvelopeSuccess) IsKnown added in v4.2.0

type ScanConfigService added in v4.2.0

type ScanConfigService struct {
	Options []option.RequestOption
}

ScanConfigService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewScanConfigService method instead.

func NewScanConfigService added in v4.2.0

func NewScanConfigService(opts ...option.RequestOption) (r *ScanConfigService)

NewScanConfigService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ScanConfigService) Delete added in v4.2.0

Delete a Scan Config

func (*ScanConfigService) Edit added in v4.2.0

func (r *ScanConfigService) Edit(ctx context.Context, configID string, params ScanConfigEditParams, opts ...option.RequestOption) (res *ScanConfigEditResponse, err error)

Update an existing Scan Config

func (*ScanConfigService) List added in v4.2.0

List Scan Configs

func (*ScanConfigService) ListAutoPaging added in v4.2.0

List Scan Configs

func (*ScanConfigService) New added in v4.2.0

Create a new Scan Config

type ScanResult added in v4.2.0

type ScanResult struct {
	Number float64        `json:"number"`
	Proto  string         `json:"proto"`
	Status string         `json:"status"`
	JSON   scanResultJSON `json:"-"`
}

func (*ScanResult) UnmarshalJSON added in v4.2.0

func (r *ScanResult) UnmarshalJSON(data []byte) (err error)

type ScanResultGetParams added in v4.2.0

type ScanResultGetParams struct {
	// Defines the Account ID.
	AccountID param.Field[string] `path:"account_id,required"`
}

type ScanResultGetResponse added in v4.2.0

type ScanResultGetResponse struct {
	OneOneOneOne []ScanResult              `json:"1.1.1.1,required"`
	JSON         scanResultGetResponseJSON `json:"-"`
}

func (*ScanResultGetResponse) UnmarshalJSON added in v4.2.0

func (r *ScanResultGetResponse) UnmarshalJSON(data []byte) (err error)

type ScanResultGetResponseEnvelope added in v4.2.0

type ScanResultGetResponseEnvelope struct {
	Errors   []string                          `json:"errors,required"`
	Messages []string                          `json:"messages,required"`
	Result   ScanResultGetResponse             `json:"result,required"`
	Success  bool                              `json:"success,required"`
	JSON     scanResultGetResponseEnvelopeJSON `json:"-"`
}

func (*ScanResultGetResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ScanResultGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ScanResultService added in v4.2.0

type ScanResultService struct {
	Options []option.RequestOption
}

ScanResultService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewScanResultService method instead.

func NewScanResultService added in v4.2.0

func NewScanResultService(opts ...option.RequestOption) (r *ScanResultService)

NewScanResultService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ScanResultService) Get added in v4.2.0

Get the Latest Scan Result

type ScanService added in v4.2.0

type ScanService struct {
	Options []option.RequestOption
	Results *ScanResultService
	Config  *ScanConfigService
}

ScanService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewScanService method instead.

func NewScanService added in v4.2.0

func NewScanService(opts ...option.RequestOption) (r *ScanService)

NewScanService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type Subscription

type Subscription = shared.Subscription

This is an alias to an internal type.

type SubscriptionFrequency

type SubscriptionFrequency = shared.SubscriptionFrequency

How often the subscription is renewed automatically.

This is an alias to an internal type.

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type ThreatEventAttackerListParams added in v4.2.0

type ThreatEventAttackerListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventAttackerListResponse added in v4.2.0

type ThreatEventAttackerListResponse struct {
	Items ThreatEventAttackerListResponseItems `json:"items,required"`
	Type  string                               `json:"type,required"`
	JSON  threatEventAttackerListResponseJSON  `json:"-"`
}

func (*ThreatEventAttackerListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventAttackerListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventAttackerListResponseItems added in v4.2.0

type ThreatEventAttackerListResponseItems struct {
	Type string                                   `json:"type,required"`
	JSON threatEventAttackerListResponseItemsJSON `json:"-"`
}

func (*ThreatEventAttackerListResponseItems) UnmarshalJSON added in v4.2.0

func (r *ThreatEventAttackerListResponseItems) UnmarshalJSON(data []byte) (err error)

type ThreatEventAttackerService added in v4.2.0

type ThreatEventAttackerService struct {
	Options []option.RequestOption
}

ThreatEventAttackerService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventAttackerService method instead.

func NewThreatEventAttackerService added in v4.2.0

func NewThreatEventAttackerService(opts ...option.RequestOption) (r *ThreatEventAttackerService)

NewThreatEventAttackerService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventAttackerService) List added in v4.2.0

Lists attackers

type ThreatEventBulkNewParams added in v4.2.0

type ThreatEventBulkNewParams struct {
	// Account ID
	AccountID param.Field[float64]                        `path:"account_id,required"`
	Data      param.Field[[]ThreatEventBulkNewParamsData] `json:"data,required"`
	DatasetID param.Field[string]                         `json:"datasetId,required"`
}

func (ThreatEventBulkNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventBulkNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventBulkNewParamsData added in v4.2.0

type ThreatEventBulkNewParamsData struct {
	Attacker        param.Field[string]                          `json:"attacker,required"`
	AttackerCountry param.Field[string]                          `json:"attackerCountry,required"`
	Category        param.Field[string]                          `json:"category,required"`
	Date            param.Field[time.Time]                       `json:"date,required" format:"date-time"`
	Event           param.Field[string]                          `json:"event,required"`
	IndicatorType   param.Field[string]                          `json:"indicatorType,required"`
	Raw             param.Field[ThreatEventBulkNewParamsDataRaw] `json:"raw,required"`
	TLP             param.Field[string]                          `json:"tlp,required"`
	AccountID       param.Field[float64]                         `json:"accountId"`
	DatasetID       param.Field[string]                          `json:"datasetId"`
	Indicator       param.Field[string]                          `json:"indicator"`
	Tags            param.Field[[]string]                        `json:"tags"`
	TargetCountry   param.Field[string]                          `json:"targetCountry"`
	TargetIndustry  param.Field[string]                          `json:"targetIndustry"`
}

func (ThreatEventBulkNewParamsData) MarshalJSON added in v4.2.0

func (r ThreatEventBulkNewParamsData) MarshalJSON() (data []byte, err error)

type ThreatEventBulkNewParamsDataRaw added in v4.2.0

type ThreatEventBulkNewParamsDataRaw struct {
	Data   param.Field[interface{}] `json:"data"`
	Source param.Field[string]      `json:"source"`
	TLP    param.Field[string]      `json:"tlp"`
}

func (ThreatEventBulkNewParamsDataRaw) MarshalJSON added in v4.2.0

func (r ThreatEventBulkNewParamsDataRaw) MarshalJSON() (data []byte, err error)

type ThreatEventBulkNewResponse added in v4.2.0

type ThreatEventBulkNewResponse struct {
	ID              float64                        `json:"id,required"`
	AccountID       float64                        `json:"accountId,required"`
	Attacker        string                         `json:"attacker,required"`
	AttackerCountry string                         `json:"attackerCountry,required"`
	Category        string                         `json:"category,required"`
	CategoryID      float64                        `json:"categoryId,required"`
	Date            string                         `json:"date,required"`
	Event           string                         `json:"event,required"`
	Indicator       string                         `json:"indicator,required"`
	IndicatorType   string                         `json:"indicatorType,required"`
	IndicatorTypeID float64                        `json:"indicatorTypeId,required"`
	KillChain       float64                        `json:"killChain,required"`
	MitreAttack     []string                       `json:"mitreAttack,required"`
	NumReferenced   float64                        `json:"numReferenced,required"`
	NumReferences   float64                        `json:"numReferences,required"`
	RawID           string                         `json:"rawId,required"`
	Referenced      []string                       `json:"referenced,required"`
	ReferencedIDs   []float64                      `json:"referencedIds,required"`
	References      []string                       `json:"references,required"`
	ReferencesIDs   []float64                      `json:"referencesIds,required"`
	Tags            []string                       `json:"tags,required"`
	TargetCountry   string                         `json:"targetCountry,required"`
	TargetIndustry  string                         `json:"targetIndustry,required"`
	TLP             string                         `json:"tlp,required"`
	UUID            string                         `json:"uuid,required"`
	Insight         string                         `json:"insight"`
	ReleasabilityID string                         `json:"releasabilityId"`
	JSON            threatEventBulkNewResponseJSON `json:"-"`
}

func (*ThreatEventBulkNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventBulkNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCategoryDeleteParams added in v4.2.0

type ThreatEventCategoryDeleteParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventCategoryDeleteResponse added in v4.2.0

type ThreatEventCategoryDeleteResponse struct {
	UUID string                                `json:"uuid,required"`
	JSON threatEventCategoryDeleteResponseJSON `json:"-"`
}

func (*ThreatEventCategoryDeleteResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCategoryDeleteResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCategoryEditParams added in v4.2.0

type ThreatEventCategoryEditParams struct {
	// Account ID
	AccountID   param.Field[float64]  `path:"account_id,required"`
	KillChain   param.Field[float64]  `json:"killChain"`
	MitreAttack param.Field[[]string] `json:"mitreAttack"`
	Name        param.Field[string]   `json:"name"`
	Shortname   param.Field[string]   `json:"shortname"`
}

func (ThreatEventCategoryEditParams) MarshalJSON added in v4.2.0

func (r ThreatEventCategoryEditParams) MarshalJSON() (data []byte, err error)

type ThreatEventCategoryEditResponse added in v4.2.0

type ThreatEventCategoryEditResponse struct {
	KillChain   float64                             `json:"killChain,required"`
	Name        string                              `json:"name,required"`
	UUID        string                              `json:"uuid,required"`
	MitreAttack []string                            `json:"mitreAttack"`
	Shortname   string                              `json:"shortname"`
	JSON        threatEventCategoryEditResponseJSON `json:"-"`
}

func (*ThreatEventCategoryEditResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCategoryEditResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCategoryGetParams added in v4.2.0

type ThreatEventCategoryGetParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventCategoryGetResponse added in v4.2.0

type ThreatEventCategoryGetResponse struct {
	KillChain   float64                            `json:"killChain,required"`
	Name        string                             `json:"name,required"`
	UUID        string                             `json:"uuid,required"`
	MitreAttack []string                           `json:"mitreAttack"`
	Shortname   string                             `json:"shortname"`
	JSON        threatEventCategoryGetResponseJSON `json:"-"`
}

func (*ThreatEventCategoryGetResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCategoryGetResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCategoryListParams added in v4.2.0

type ThreatEventCategoryListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventCategoryListResponse added in v4.2.0

type ThreatEventCategoryListResponse struct {
	KillChain   float64                             `json:"killChain,required"`
	Name        string                              `json:"name,required"`
	UUID        string                              `json:"uuid,required"`
	MitreAttack []string                            `json:"mitreAttack"`
	Shortname   string                              `json:"shortname"`
	JSON        threatEventCategoryListResponseJSON `json:"-"`
}

func (*ThreatEventCategoryListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCategoryListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCategoryNewParams added in v4.2.0

type ThreatEventCategoryNewParams struct {
	// Account ID
	AccountID   param.Field[float64]  `path:"account_id,required"`
	KillChain   param.Field[float64]  `json:"killChain,required"`
	Name        param.Field[string]   `json:"name,required"`
	MitreAttack param.Field[[]string] `json:"mitreAttack"`
	Shortname   param.Field[string]   `json:"shortname"`
}

func (ThreatEventCategoryNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventCategoryNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventCategoryNewResponse added in v4.2.0

type ThreatEventCategoryNewResponse struct {
	KillChain   float64                            `json:"killChain,required"`
	Name        string                             `json:"name,required"`
	UUID        string                             `json:"uuid,required"`
	MitreAttack []string                           `json:"mitreAttack"`
	Shortname   string                             `json:"shortname"`
	JSON        threatEventCategoryNewResponseJSON `json:"-"`
}

func (*ThreatEventCategoryNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCategoryNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCategoryService added in v4.2.0

type ThreatEventCategoryService struct {
	Options []option.RequestOption
}

ThreatEventCategoryService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventCategoryService method instead.

func NewThreatEventCategoryService added in v4.2.0

func NewThreatEventCategoryService(opts ...option.RequestOption) (r *ThreatEventCategoryService)

NewThreatEventCategoryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventCategoryService) Delete added in v4.2.0

Deletes a category

func (*ThreatEventCategoryService) Edit added in v4.2.0

Updates a category

func (*ThreatEventCategoryService) Get added in v4.2.0

Reads a category

func (*ThreatEventCategoryService) List added in v4.2.0

Lists categories

func (*ThreatEventCategoryService) New added in v4.2.0

Creates a new category

type ThreatEventCountryListParams added in v4.2.0

type ThreatEventCountryListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventCountryListResponse added in v4.2.0

type ThreatEventCountryListResponse struct {
	Result  []ThreatEventCountryListResponseResult `json:"result,required"`
	Success string                                 `json:"success,required"`
	JSON    threatEventCountryListResponseJSON     `json:"-"`
}

func (*ThreatEventCountryListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCountryListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCountryListResponseResult added in v4.2.0

type ThreatEventCountryListResponseResult struct {
	Alpha3 string                                   `json:"alpha3,required"`
	Name   string                                   `json:"name,required"`
	JSON   threatEventCountryListResponseResultJSON `json:"-"`
}

func (*ThreatEventCountryListResponseResult) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCountryListResponseResult) UnmarshalJSON(data []byte) (err error)

type ThreatEventCountryService added in v4.2.0

type ThreatEventCountryService struct {
	Options []option.RequestOption
}

ThreatEventCountryService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventCountryService method instead.

func NewThreatEventCountryService added in v4.2.0

func NewThreatEventCountryService(opts ...option.RequestOption) (r *ThreatEventCountryService)

NewThreatEventCountryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventCountryService) List added in v4.2.0

Retrieves countries information for all countries

type ThreatEventCronEditParams added in v4.2.0

type ThreatEventCronEditParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventCronEditResponse added in v4.2.0

type ThreatEventCronEditResponse struct {
	ID     float64                         `json:"id,required"`
	Update string                          `json:"update,required"`
	JSON   threatEventCronEditResponseJSON `json:"-"`
}

func (*ThreatEventCronEditResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCronEditResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCronListParams added in v4.2.0

type ThreatEventCronListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventCronListResponse added in v4.2.0

type ThreatEventCronListResponse struct {
	Update string                          `json:"update,required"`
	JSON   threatEventCronListResponseJSON `json:"-"`
}

func (*ThreatEventCronListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventCronListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventCronService added in v4.2.0

type ThreatEventCronService struct {
	Options []option.RequestOption
}

ThreatEventCronService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventCronService method instead.

func NewThreatEventCronService added in v4.2.0

func NewThreatEventCronService(opts ...option.RequestOption) (r *ThreatEventCronService)

NewThreatEventCronService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventCronService) Edit added in v4.2.0

Reads the last cron update time

func (*ThreatEventCronService) List added in v4.2.0

Reads the last cron update time

type ThreatEventDatasetEditParams added in v4.2.0

type ThreatEventDatasetEditParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
	// If true, then anyone can search the dataset. If false, then its limited to the
	// account.
	IsPublic param.Field[bool] `json:"isPublic,required"`
	// Used to describe the dataset within the account context
	Name param.Field[string] `json:"name,required"`
}

func (ThreatEventDatasetEditParams) MarshalJSON added in v4.2.0

func (r ThreatEventDatasetEditParams) MarshalJSON() (data []byte, err error)

type ThreatEventDatasetEditResponse added in v4.2.0

type ThreatEventDatasetEditResponse struct {
	IsPublic bool                               `json:"isPublic,required"`
	Name     string                             `json:"name,required"`
	UUID     string                             `json:"uuid,required"`
	JSON     threatEventDatasetEditResponseJSON `json:"-"`
}

func (*ThreatEventDatasetEditResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventDatasetEditResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventDatasetGetParams added in v4.2.0

type ThreatEventDatasetGetParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventDatasetGetResponse added in v4.2.0

type ThreatEventDatasetGetResponse struct {
	IsPublic bool                              `json:"isPublic,required"`
	Name     string                            `json:"name,required"`
	UUID     string                            `json:"uuid,required"`
	JSON     threatEventDatasetGetResponseJSON `json:"-"`
}

func (*ThreatEventDatasetGetResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventDatasetGetResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventDatasetListParams added in v4.2.0

type ThreatEventDatasetListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventDatasetListResponse added in v4.2.0

type ThreatEventDatasetListResponse struct {
	IsPublic bool                               `json:"isPublic,required"`
	Name     string                             `json:"name,required"`
	UUID     string                             `json:"uuid,required"`
	JSON     threatEventDatasetListResponseJSON `json:"-"`
}

func (*ThreatEventDatasetListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventDatasetListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventDatasetNewParams added in v4.2.0

type ThreatEventDatasetNewParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
	// If true, then anyone can search the dataset. If false, then its limited to the
	// account.
	IsPublic param.Field[bool] `json:"isPublic,required"`
	// Used to describe the dataset within the account context
	Name param.Field[string] `json:"name,required"`
}

func (ThreatEventDatasetNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventDatasetNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventDatasetNewResponse added in v4.2.0

type ThreatEventDatasetNewResponse struct {
	IsPublic bool                              `json:"isPublic,required"`
	Name     string                            `json:"name,required"`
	UUID     string                            `json:"uuid,required"`
	JSON     threatEventDatasetNewResponseJSON `json:"-"`
}

func (*ThreatEventDatasetNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventDatasetNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventDatasetRawParams added in v4.2.0

type ThreatEventDatasetRawParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventDatasetRawResponse added in v4.2.0

type ThreatEventDatasetRawResponse struct {
	ID        string                            `json:"id,required"`
	AccountID float64                           `json:"accountId,required"`
	Created   string                            `json:"created,required"`
	Data      interface{}                       `json:"data,required"`
	Source    string                            `json:"source,required"`
	TLP       string                            `json:"tlp,required"`
	JSON      threatEventDatasetRawResponseJSON `json:"-"`
}

func (*ThreatEventDatasetRawResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventDatasetRawResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventDatasetService added in v4.2.0

type ThreatEventDatasetService struct {
	Options []option.RequestOption
}

ThreatEventDatasetService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventDatasetService method instead.

func NewThreatEventDatasetService added in v4.2.0

func NewThreatEventDatasetService(opts ...option.RequestOption) (r *ThreatEventDatasetService)

NewThreatEventDatasetService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventDatasetService) Edit added in v4.2.0

Updates an existing dataset

func (*ThreatEventDatasetService) Get added in v4.2.0

Reads a dataset

func (*ThreatEventDatasetService) List added in v4.2.0

Lists all datasets in an account

func (*ThreatEventDatasetService) New added in v4.2.0

Creates a dataset

func (*ThreatEventDatasetService) Raw added in v4.2.0

Reads data for a raw event

type ThreatEventDeleteParams added in v4.2.0

type ThreatEventDeleteParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventDeleteResponse added in v4.2.0

type ThreatEventDeleteResponse struct {
	UUID string                        `json:"uuid,required"`
	JSON threatEventDeleteResponseJSON `json:"-"`
}

func (*ThreatEventDeleteResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventDeleteResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventEditParams added in v4.2.0

type ThreatEventEditParams struct {
	// Account ID
	AccountID       param.Field[float64]   `path:"account_id,required"`
	Attacker        param.Field[string]    `json:"attacker"`
	AttackerCountry param.Field[string]    `json:"attackerCountry"`
	Category        param.Field[string]    `json:"category"`
	Date            param.Field[time.Time] `json:"date" format:"date-time"`
	Event           param.Field[string]    `json:"event"`
	Indicator       param.Field[string]    `json:"indicator"`
	IndicatorType   param.Field[string]    `json:"indicatorType"`
	TargetCountry   param.Field[string]    `json:"targetCountry"`
	TargetIndustry  param.Field[string]    `json:"targetIndustry"`
	TLP             param.Field[string]    `json:"tlp"`
}

func (ThreatEventEditParams) MarshalJSON added in v4.2.0

func (r ThreatEventEditParams) MarshalJSON() (data []byte, err error)

type ThreatEventEditResponse added in v4.2.0

type ThreatEventEditResponse struct {
	ID              float64                     `json:"id,required"`
	AccountID       float64                     `json:"accountId,required"`
	Attacker        string                      `json:"attacker,required"`
	AttackerCountry string                      `json:"attackerCountry,required"`
	Category        string                      `json:"category,required"`
	CategoryID      float64                     `json:"categoryId,required"`
	Date            string                      `json:"date,required"`
	Event           string                      `json:"event,required"`
	Indicator       string                      `json:"indicator,required"`
	IndicatorType   string                      `json:"indicatorType,required"`
	IndicatorTypeID float64                     `json:"indicatorTypeId,required"`
	KillChain       float64                     `json:"killChain,required"`
	MitreAttack     []string                    `json:"mitreAttack,required"`
	NumReferenced   float64                     `json:"numReferenced,required"`
	NumReferences   float64                     `json:"numReferences,required"`
	RawID           string                      `json:"rawId,required"`
	Referenced      []string                    `json:"referenced,required"`
	ReferencedIDs   []float64                   `json:"referencedIds,required"`
	References      []string                    `json:"references,required"`
	ReferencesIDs   []float64                   `json:"referencesIds,required"`
	Tags            []string                    `json:"tags,required"`
	TargetCountry   string                      `json:"targetCountry,required"`
	TargetIndustry  string                      `json:"targetIndustry,required"`
	TLP             string                      `json:"tlp,required"`
	UUID            string                      `json:"uuid,required"`
	Insight         string                      `json:"insight"`
	ReleasabilityID string                      `json:"releasabilityId"`
	JSON            threatEventEditResponseJSON `json:"-"`
}

func (*ThreatEventEditResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventEditResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventEventTagDeleteParams added in v4.2.0

type ThreatEventEventTagDeleteParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventEventTagDeleteResponse added in v4.2.0

type ThreatEventEventTagDeleteResponse struct {
	Success bool                                  `json:"success,required"`
	JSON    threatEventEventTagDeleteResponseJSON `json:"-"`
}

func (*ThreatEventEventTagDeleteResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventEventTagDeleteResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventEventTagDeleteResponseEnvelope added in v4.2.0

type ThreatEventEventTagDeleteResponseEnvelope struct {
	Result  ThreatEventEventTagDeleteResponse             `json:"result,required"`
	Success bool                                          `json:"success,required"`
	JSON    threatEventEventTagDeleteResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventEventTagDeleteResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventEventTagDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventEventTagNewParams added in v4.2.0

type ThreatEventEventTagNewParams struct {
	// Account ID
	AccountID param.Field[float64]  `path:"account_id,required"`
	Tags      param.Field[[]string] `json:"tags,required"`
}

func (ThreatEventEventTagNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventEventTagNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventEventTagNewResponse added in v4.2.0

type ThreatEventEventTagNewResponse struct {
	Success bool                               `json:"success,required"`
	JSON    threatEventEventTagNewResponseJSON `json:"-"`
}

func (*ThreatEventEventTagNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventEventTagNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventEventTagNewResponseEnvelope added in v4.2.0

type ThreatEventEventTagNewResponseEnvelope struct {
	Result  ThreatEventEventTagNewResponse             `json:"result,required"`
	Success bool                                       `json:"success,required"`
	JSON    threatEventEventTagNewResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventEventTagNewResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventEventTagNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventEventTagService added in v4.2.0

type ThreatEventEventTagService struct {
	Options []option.RequestOption
}

ThreatEventEventTagService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventEventTagService method instead.

func NewThreatEventEventTagService added in v4.2.0

func NewThreatEventEventTagService(opts ...option.RequestOption) (r *ThreatEventEventTagService)

NewThreatEventEventTagService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventEventTagService) Delete added in v4.2.0

Removes a tag from an event

func (*ThreatEventEventTagService) New added in v4.2.0

Adds a tag to an event

type ThreatEventGetParams added in v4.2.0

type ThreatEventGetParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventGetResponse added in v4.2.0

type ThreatEventGetResponse struct {
	ID              float64                    `json:"id,required"`
	AccountID       float64                    `json:"accountId,required"`
	Attacker        string                     `json:"attacker,required"`
	AttackerCountry string                     `json:"attackerCountry,required"`
	Category        string                     `json:"category,required"`
	CategoryID      float64                    `json:"categoryId,required"`
	Date            string                     `json:"date,required"`
	Event           string                     `json:"event,required"`
	Indicator       string                     `json:"indicator,required"`
	IndicatorType   string                     `json:"indicatorType,required"`
	IndicatorTypeID float64                    `json:"indicatorTypeId,required"`
	KillChain       float64                    `json:"killChain,required"`
	MitreAttack     []string                   `json:"mitreAttack,required"`
	NumReferenced   float64                    `json:"numReferenced,required"`
	NumReferences   float64                    `json:"numReferences,required"`
	RawID           string                     `json:"rawId,required"`
	Referenced      []string                   `json:"referenced,required"`
	ReferencedIDs   []float64                  `json:"referencedIds,required"`
	References      []string                   `json:"references,required"`
	ReferencesIDs   []float64                  `json:"referencesIds,required"`
	Tags            []string                   `json:"tags,required"`
	TargetCountry   string                     `json:"targetCountry,required"`
	TargetIndustry  string                     `json:"targetIndustry,required"`
	TLP             string                     `json:"tlp,required"`
	UUID            string                     `json:"uuid,required"`
	Insight         string                     `json:"insight"`
	ReleasabilityID string                     `json:"releasabilityId"`
	JSON            threatEventGetResponseJSON `json:"-"`
}

func (*ThreatEventGetResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventGetResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventIndicatorTypeListParams added in v4.2.0

type ThreatEventIndicatorTypeListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventIndicatorTypeListResponse added in v4.2.0

type ThreatEventIndicatorTypeListResponse struct {
	Items ThreatEventIndicatorTypeListResponseItems `json:"items,required"`
	Type  string                                    `json:"type,required"`
	JSON  threatEventIndicatorTypeListResponseJSON  `json:"-"`
}

func (*ThreatEventIndicatorTypeListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventIndicatorTypeListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventIndicatorTypeListResponseItems added in v4.2.0

type ThreatEventIndicatorTypeListResponseItems struct {
	Type string                                        `json:"type,required"`
	JSON threatEventIndicatorTypeListResponseItemsJSON `json:"-"`
}

func (*ThreatEventIndicatorTypeListResponseItems) UnmarshalJSON added in v4.2.0

func (r *ThreatEventIndicatorTypeListResponseItems) UnmarshalJSON(data []byte) (err error)

type ThreatEventIndicatorTypeService added in v4.2.0

type ThreatEventIndicatorTypeService struct {
	Options []option.RequestOption
}

ThreatEventIndicatorTypeService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventIndicatorTypeService method instead.

func NewThreatEventIndicatorTypeService added in v4.2.0

func NewThreatEventIndicatorTypeService(opts ...option.RequestOption) (r *ThreatEventIndicatorTypeService)

NewThreatEventIndicatorTypeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventIndicatorTypeService) List added in v4.2.0

Lists all indicator types

type ThreatEventInsightDeleteParams added in v4.2.0

type ThreatEventInsightDeleteParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventInsightDeleteResponse added in v4.2.0

type ThreatEventInsightDeleteResponse struct {
	Success bool                                 `json:"success,required"`
	JSON    threatEventInsightDeleteResponseJSON `json:"-"`
}

func (*ThreatEventInsightDeleteResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightDeleteResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightDeleteResponseEnvelope added in v4.2.0

type ThreatEventInsightDeleteResponseEnvelope struct {
	Result  ThreatEventInsightDeleteResponse             `json:"result,required"`
	Success bool                                         `json:"success,required"`
	JSON    threatEventInsightDeleteResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventInsightDeleteResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightEditParams added in v4.2.0

type ThreatEventInsightEditParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
	Content   param.Field[string]  `json:"content,required"`
}

func (ThreatEventInsightEditParams) MarshalJSON added in v4.2.0

func (r ThreatEventInsightEditParams) MarshalJSON() (data []byte, err error)

type ThreatEventInsightEditResponse added in v4.2.0

type ThreatEventInsightEditResponse struct {
	Content string                             `json:"content,required"`
	UUID    string                             `json:"uuid,required"`
	JSON    threatEventInsightEditResponseJSON `json:"-"`
}

func (*ThreatEventInsightEditResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightEditResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightEditResponseEnvelope added in v4.2.0

type ThreatEventInsightEditResponseEnvelope struct {
	Result  ThreatEventInsightEditResponse             `json:"result,required"`
	Success bool                                       `json:"success,required"`
	JSON    threatEventInsightEditResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventInsightEditResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightEditResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightGetParams added in v4.2.0

type ThreatEventInsightGetParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventInsightGetResponse added in v4.2.0

type ThreatEventInsightGetResponse struct {
	Content string                            `json:"content,required"`
	UUID    string                            `json:"uuid,required"`
	JSON    threatEventInsightGetResponseJSON `json:"-"`
}

func (*ThreatEventInsightGetResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightGetResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightGetResponseEnvelope added in v4.2.0

type ThreatEventInsightGetResponseEnvelope struct {
	Result  ThreatEventInsightGetResponse             `json:"result,required"`
	Success bool                                      `json:"success,required"`
	JSON    threatEventInsightGetResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventInsightGetResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightNewParams added in v4.2.0

type ThreatEventInsightNewParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
	Content   param.Field[string]  `json:"content,required"`
}

func (ThreatEventInsightNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventInsightNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventInsightNewResponse added in v4.2.0

type ThreatEventInsightNewResponse struct {
	Content string                            `json:"content,required"`
	UUID    string                            `json:"uuid,required"`
	JSON    threatEventInsightNewResponseJSON `json:"-"`
}

func (*ThreatEventInsightNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightNewResponseEnvelope added in v4.2.0

type ThreatEventInsightNewResponseEnvelope struct {
	Result  ThreatEventInsightNewResponse             `json:"result,required"`
	Success bool                                      `json:"success,required"`
	JSON    threatEventInsightNewResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventInsightNewResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventInsightNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventInsightService added in v4.2.0

type ThreatEventInsightService struct {
	Options []option.RequestOption
}

ThreatEventInsightService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventInsightService method instead.

func NewThreatEventInsightService added in v4.2.0

func NewThreatEventInsightService(opts ...option.RequestOption) (r *ThreatEventInsightService)

NewThreatEventInsightService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventInsightService) Delete added in v4.2.0

Deletes an event insight

func (*ThreatEventInsightService) Edit added in v4.2.0

Updates an event insight

func (*ThreatEventInsightService) Get added in v4.2.0

Reads an event insight

func (*ThreatEventInsightService) New added in v4.2.0

Adds an insight to an event

type ThreatEventListParams added in v4.3.0

type ThreatEventListParams struct {
	// Account ID
	AccountID param.Field[float64]                       `path:"account_id,required"`
	DatasetID param.Field[[]string]                      `query:"datasetId"`
	Order     param.Field[ThreatEventListParamsOrder]    `query:"order"`
	OrderBy   param.Field[string]                        `query:"orderBy"`
	Page      param.Field[float64]                       `query:"page"`
	PageSize  param.Field[float64]                       `query:"pageSize"`
	Search    param.Field[[]ThreatEventListParamsSearch] `query:"search"`
}

func (ThreatEventListParams) URLQuery added in v4.3.0

func (r ThreatEventListParams) URLQuery() (v url.Values)

URLQuery serializes ThreatEventListParams's query parameters as `url.Values`.

type ThreatEventListParamsOrder added in v4.3.0

type ThreatEventListParamsOrder string
const (
	ThreatEventListParamsOrderAsc  ThreatEventListParamsOrder = "asc"
	ThreatEventListParamsOrderDesc ThreatEventListParamsOrder = "desc"
)

func (ThreatEventListParamsOrder) IsKnown added in v4.3.0

func (r ThreatEventListParamsOrder) IsKnown() bool

type ThreatEventListParamsSearch added in v4.3.0

type ThreatEventListParamsSearch struct {
	Field param.Field[string]                                `query:"field"`
	Op    param.Field[ThreatEventListParamsSearchOp]         `query:"op"`
	Value param.Field[ThreatEventListParamsSearchValueUnion] `query:"value"`
}

func (ThreatEventListParamsSearch) URLQuery added in v4.3.0

func (r ThreatEventListParamsSearch) URLQuery() (v url.Values)

URLQuery serializes ThreatEventListParamsSearch's query parameters as `url.Values`.

type ThreatEventListParamsSearchOp added in v4.3.0

type ThreatEventListParamsSearchOp string
const (
	ThreatEventListParamsSearchOpEquals     ThreatEventListParamsSearchOp = "equals"
	ThreatEventListParamsSearchOpNot        ThreatEventListParamsSearchOp = "not"
	ThreatEventListParamsSearchOpGt         ThreatEventListParamsSearchOp = "gt"
	ThreatEventListParamsSearchOpGte        ThreatEventListParamsSearchOp = "gte"
	ThreatEventListParamsSearchOpLt         ThreatEventListParamsSearchOp = "lt"
	ThreatEventListParamsSearchOpLte        ThreatEventListParamsSearchOp = "lte"
	ThreatEventListParamsSearchOpLike       ThreatEventListParamsSearchOp = "like"
	ThreatEventListParamsSearchOpContains   ThreatEventListParamsSearchOp = "contains"
	ThreatEventListParamsSearchOpStartsWith ThreatEventListParamsSearchOp = "startsWith"
	ThreatEventListParamsSearchOpEndsWith   ThreatEventListParamsSearchOp = "endsWith"
	ThreatEventListParamsSearchOpIn         ThreatEventListParamsSearchOp = "in"
	ThreatEventListParamsSearchOpFind       ThreatEventListParamsSearchOp = "find"
)

func (ThreatEventListParamsSearchOp) IsKnown added in v4.3.0

func (r ThreatEventListParamsSearchOp) IsKnown() bool

type ThreatEventListParamsSearchValueArray added in v4.3.0

type ThreatEventListParamsSearchValueArray []ThreatEventListParamsSearchValueArrayItemUnion

func (ThreatEventListParamsSearchValueArray) ImplementsThreatEventListParamsSearchValueUnion added in v4.3.0

func (r ThreatEventListParamsSearchValueArray) ImplementsThreatEventListParamsSearchValueUnion()

type ThreatEventListParamsSearchValueArrayItemUnion added in v4.3.0

type ThreatEventListParamsSearchValueArrayItemUnion interface {
	ImplementsThreatEventListParamsSearchValueArrayItemUnion()
}

Satisfied by shared.UnionString, shared.UnionFloat.

type ThreatEventListParamsSearchValueUnion added in v4.3.0

type ThreatEventListParamsSearchValueUnion interface {
	ImplementsThreatEventListParamsSearchValueUnion()
}

Satisfied by shared.UnionString, shared.UnionFloat, cloudforce_one.ThreatEventListParamsSearchValueArray.

type ThreatEventListResponse added in v4.3.0

type ThreatEventListResponse struct {
	ID              float64                     `json:"id,required"`
	AccountID       float64                     `json:"accountId,required"`
	Attacker        string                      `json:"attacker,required"`
	AttackerCountry string                      `json:"attackerCountry,required"`
	Category        string                      `json:"category,required"`
	CategoryID      float64                     `json:"categoryId,required"`
	Date            string                      `json:"date,required"`
	Event           string                      `json:"event,required"`
	Indicator       string                      `json:"indicator,required"`
	IndicatorType   string                      `json:"indicatorType,required"`
	IndicatorTypeID float64                     `json:"indicatorTypeId,required"`
	KillChain       float64                     `json:"killChain,required"`
	MitreAttack     []string                    `json:"mitreAttack,required"`
	NumReferenced   float64                     `json:"numReferenced,required"`
	NumReferences   float64                     `json:"numReferences,required"`
	RawID           string                      `json:"rawId,required"`
	Referenced      []string                    `json:"referenced,required"`
	ReferencedIDs   []float64                   `json:"referencedIds,required"`
	References      []string                    `json:"references,required"`
	ReferencesIDs   []float64                   `json:"referencesIds,required"`
	Tags            []string                    `json:"tags,required"`
	TargetCountry   string                      `json:"targetCountry,required"`
	TargetIndustry  string                      `json:"targetIndustry,required"`
	TLP             string                      `json:"tlp,required"`
	UUID            string                      `json:"uuid,required"`
	Insight         string                      `json:"insight"`
	ReleasabilityID string                      `json:"releasabilityId"`
	JSON            threatEventListResponseJSON `json:"-"`
}

func (*ThreatEventListResponse) UnmarshalJSON added in v4.3.0

func (r *ThreatEventListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventNewParams added in v4.2.0

type ThreatEventNewParams struct {
	// Account ID
	PathAccountID   param.Field[float64]                 `path:"account_id,required"`
	Attacker        param.Field[string]                  `json:"attacker,required"`
	AttackerCountry param.Field[string]                  `json:"attackerCountry,required"`
	Category        param.Field[string]                  `json:"category,required"`
	Date            param.Field[time.Time]               `json:"date,required" format:"date-time"`
	Event           param.Field[string]                  `json:"event,required"`
	IndicatorType   param.Field[string]                  `json:"indicatorType,required"`
	Raw             param.Field[ThreatEventNewParamsRaw] `json:"raw,required"`
	TLP             param.Field[string]                  `json:"tlp,required"`
	BodyAccountID   param.Field[float64]                 `json:"accountId"`
	DatasetID       param.Field[string]                  `json:"datasetId"`
	Indicator       param.Field[string]                  `json:"indicator"`
	Tags            param.Field[[]string]                `json:"tags"`
	TargetCountry   param.Field[string]                  `json:"targetCountry"`
	TargetIndustry  param.Field[string]                  `json:"targetIndustry"`
}

func (ThreatEventNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventNewParamsRaw added in v4.2.0

type ThreatEventNewParamsRaw struct {
	Data   param.Field[interface{}] `json:"data"`
	Source param.Field[string]      `json:"source"`
	TLP    param.Field[string]      `json:"tlp"`
}

func (ThreatEventNewParamsRaw) MarshalJSON added in v4.2.0

func (r ThreatEventNewParamsRaw) MarshalJSON() (data []byte, err error)

type ThreatEventNewResponse added in v4.2.0

type ThreatEventNewResponse struct {
	ID              float64                    `json:"id,required"`
	AccountID       float64                    `json:"accountId,required"`
	Attacker        string                     `json:"attacker,required"`
	AttackerCountry string                     `json:"attackerCountry,required"`
	Category        string                     `json:"category,required"`
	CategoryID      float64                    `json:"categoryId,required"`
	Date            string                     `json:"date,required"`
	Event           string                     `json:"event,required"`
	Indicator       string                     `json:"indicator,required"`
	IndicatorType   string                     `json:"indicatorType,required"`
	IndicatorTypeID float64                    `json:"indicatorTypeId,required"`
	KillChain       float64                    `json:"killChain,required"`
	MitreAttack     []string                   `json:"mitreAttack,required"`
	NumReferenced   float64                    `json:"numReferenced,required"`
	NumReferences   float64                    `json:"numReferences,required"`
	RawID           string                     `json:"rawId,required"`
	Referenced      []string                   `json:"referenced,required"`
	ReferencedIDs   []float64                  `json:"referencedIds,required"`
	References      []string                   `json:"references,required"`
	ReferencesIDs   []float64                  `json:"referencesIds,required"`
	Tags            []string                   `json:"tags,required"`
	TargetCountry   string                     `json:"targetCountry,required"`
	TargetIndustry  string                     `json:"targetIndustry,required"`
	TLP             string                     `json:"tlp,required"`
	UUID            string                     `json:"uuid,required"`
	Insight         string                     `json:"insight"`
	ReleasabilityID string                     `json:"releasabilityId"`
	JSON            threatEventNewResponseJSON `json:"-"`
}

func (*ThreatEventNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventRawEditParams added in v4.2.0

type ThreatEventRawEditParams struct {
	// Account ID
	AccountID param.Field[float64]     `path:"account_id,required"`
	Data      param.Field[interface{}] `json:"data"`
	Source    param.Field[string]      `json:"source"`
	TLP       param.Field[string]      `json:"tlp"`
}

func (ThreatEventRawEditParams) MarshalJSON added in v4.2.0

func (r ThreatEventRawEditParams) MarshalJSON() (data []byte, err error)

type ThreatEventRawEditResponse added in v4.2.0

type ThreatEventRawEditResponse struct {
	ID   string                         `json:"id,required"`
	Data interface{}                    `json:"data,required"`
	JSON threatEventRawEditResponseJSON `json:"-"`
}

func (*ThreatEventRawEditResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventRawEditResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventRawGetParams added in v4.2.0

type ThreatEventRawGetParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventRawGetResponse added in v4.2.0

type ThreatEventRawGetResponse struct {
	ID        string                        `json:"id,required"`
	AccountID float64                       `json:"accountId,required"`
	Created   string                        `json:"created,required"`
	Data      interface{}                   `json:"data,required"`
	Source    string                        `json:"source,required"`
	TLP       string                        `json:"tlp,required"`
	JSON      threatEventRawGetResponseJSON `json:"-"`
}

func (*ThreatEventRawGetResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventRawGetResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventRawService added in v4.2.0

type ThreatEventRawService struct {
	Options []option.RequestOption
}

ThreatEventRawService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventRawService method instead.

func NewThreatEventRawService added in v4.2.0

func NewThreatEventRawService(opts ...option.RequestOption) (r *ThreatEventRawService)

NewThreatEventRawService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventRawService) Edit added in v4.2.0

Updates a raw event

func (*ThreatEventRawService) Get added in v4.2.0

Reads data for a raw event

type ThreatEventRelateDeleteParams added in v4.2.0

type ThreatEventRelateDeleteParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventRelateDeleteResponse added in v4.2.0

type ThreatEventRelateDeleteResponse struct {
	Success bool                                `json:"success,required"`
	JSON    threatEventRelateDeleteResponseJSON `json:"-"`
}

func (*ThreatEventRelateDeleteResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventRelateDeleteResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventRelateDeleteResponseEnvelope added in v4.2.0

type ThreatEventRelateDeleteResponseEnvelope struct {
	Result  ThreatEventRelateDeleteResponse             `json:"result,required"`
	Success bool                                        `json:"success,required"`
	JSON    threatEventRelateDeleteResponseEnvelopeJSON `json:"-"`
}

func (*ThreatEventRelateDeleteResponseEnvelope) UnmarshalJSON added in v4.2.0

func (r *ThreatEventRelateDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type ThreatEventRelateService added in v4.2.0

type ThreatEventRelateService struct {
	Options []option.RequestOption
}

ThreatEventRelateService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventRelateService method instead.

func NewThreatEventRelateService added in v4.2.0

func NewThreatEventRelateService(opts ...option.RequestOption) (r *ThreatEventRelateService)

NewThreatEventRelateService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventRelateService) Delete added in v4.2.0

Removes an event reference

type ThreatEventService added in v4.2.0

ThreatEventService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventService method instead.

func NewThreatEventService added in v4.2.0

func NewThreatEventService(opts ...option.RequestOption) (r *ThreatEventService)

NewThreatEventService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventService) BulkNew added in v4.2.0

The `datasetId` parameter must be defined. To list existing datasets (and their IDs) in your account, use the [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) endpoint.

func (*ThreatEventService) Delete added in v4.2.0

The `datasetId` parameter must be defined. To list existing datasets (and their IDs) in your account, use the [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) endpoint.

func (*ThreatEventService) Edit added in v4.2.0

Updates an event

func (*ThreatEventService) Get added in v4.2.0

Reads an event

func (*ThreatEventService) List added in v4.3.0

The `datasetId` parameter must be defined. Must provide query parameters. To list existing datasets (and their IDs), use the [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) endpoint.

func (*ThreatEventService) New added in v4.2.0

Events must be created in a client-specific dataset, which means the `datasetId` parameter must be defined. To create a dataset, see the [`Create Dataset`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/create/) endpoint.

type ThreatEventTagNewParams added in v4.2.0

type ThreatEventTagNewParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
	Name      param.Field[string]  `json:"name,required"`
}

func (ThreatEventTagNewParams) MarshalJSON added in v4.2.0

func (r ThreatEventTagNewParams) MarshalJSON() (data []byte, err error)

type ThreatEventTagNewResponse added in v4.2.0

type ThreatEventTagNewResponse struct {
	Name string                        `json:"name,required"`
	UUID string                        `json:"uuid,required"`
	JSON threatEventTagNewResponseJSON `json:"-"`
}

func (*ThreatEventTagNewResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventTagNewResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventTagService added in v4.2.0

type ThreatEventTagService struct {
	Options []option.RequestOption
}

ThreatEventTagService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventTagService method instead.

func NewThreatEventTagService added in v4.2.0

func NewThreatEventTagService(opts ...option.RequestOption) (r *ThreatEventTagService)

NewThreatEventTagService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventTagService) New added in v4.2.0

Creates a new tag

type ThreatEventTargetIndustryListParams added in v4.2.0

type ThreatEventTargetIndustryListParams struct {
	// Account ID
	AccountID param.Field[float64] `path:"account_id,required"`
}

type ThreatEventTargetIndustryListResponse added in v4.2.0

type ThreatEventTargetIndustryListResponse struct {
	Items ThreatEventTargetIndustryListResponseItems `json:"items,required"`
	Type  string                                     `json:"type,required"`
	JSON  threatEventTargetIndustryListResponseJSON  `json:"-"`
}

func (*ThreatEventTargetIndustryListResponse) UnmarshalJSON added in v4.2.0

func (r *ThreatEventTargetIndustryListResponse) UnmarshalJSON(data []byte) (err error)

type ThreatEventTargetIndustryListResponseItems added in v4.2.0

type ThreatEventTargetIndustryListResponseItems struct {
	Type string                                         `json:"type,required"`
	JSON threatEventTargetIndustryListResponseItemsJSON `json:"-"`
}

func (*ThreatEventTargetIndustryListResponseItems) UnmarshalJSON added in v4.2.0

func (r *ThreatEventTargetIndustryListResponseItems) UnmarshalJSON(data []byte) (err error)

type ThreatEventTargetIndustryService added in v4.2.0

type ThreatEventTargetIndustryService struct {
	Options []option.RequestOption
}

ThreatEventTargetIndustryService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewThreatEventTargetIndustryService method instead.

func NewThreatEventTargetIndustryService added in v4.2.0

func NewThreatEventTargetIndustryService(opts ...option.RequestOption) (r *ThreatEventTargetIndustryService)

NewThreatEventTargetIndustryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*ThreatEventTargetIndustryService) List added in v4.2.0

Lists all target industries

type Token

type Token = shared.Token

This is an alias to an internal type.

type TokenCondition

type TokenCondition = shared.TokenCondition

This is an alias to an internal type.

type TokenConditionCIDRList

type TokenConditionCIDRList = shared.TokenConditionCIDRList

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionCIDRListParam

type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionParam

type TokenConditionParam = shared.TokenConditionParam

This is an alias to an internal type.

type TokenConditionRequestIP

type TokenConditionRequestIP = shared.TokenConditionRequestIP

Client IP restrictions.

This is an alias to an internal type.

type TokenConditionRequestIPParam

type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam

Client IP restrictions.

This is an alias to an internal type.

type TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

This is an alias to an internal type.

type TokenPolicyEffect

type TokenPolicyEffect = shared.TokenPolicyEffect

Allow or deny operations against the resources.

This is an alias to an internal type.

type TokenPolicyParam

type TokenPolicyParam = shared.TokenPolicyParam

This is an alias to an internal type.

type TokenPolicyPermissionGroup

type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupParam

type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMeta

type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMetaParam

type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenStatus

type TokenStatus = shared.TokenStatus

Status of the token.

This is an alias to an internal type.

type TokenValue

type TokenValue = shared.TokenValue

The token value.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

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