firewallrulesv1

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package firewallrulesv1 : Operations and models for the FirewallRulesV1 service

Index

Constants

View Source
const (
	FirewallRulesUpdateInputItem_Action_Allow       = "allow"
	FirewallRulesUpdateInputItem_Action_Block       = "block"
	FirewallRulesUpdateInputItem_Action_Challenge   = "challenge"
	FirewallRulesUpdateInputItem_Action_JsChallenge = "js_challenge"
	FirewallRulesUpdateInputItem_Action_Log         = "log"
)

Constants associated with the FirewallRulesUpdateInputItem.Action property. The firewall action to perform, "log" action is only available for enterprise plan instances.

View Source
const (
	UpdateFirewallRuleOptions_Action_Allow       = "allow"
	UpdateFirewallRuleOptions_Action_Block       = "block"
	UpdateFirewallRuleOptions_Action_Challenge   = "challenge"
	UpdateFirewallRuleOptions_Action_JsChallenge = "js_challenge"
	UpdateFirewallRuleOptions_Action_Log         = "log"
)

Constants associated with the UpdateFirewallRuleOptions.Action property. The firewall action to perform, "log" action is only available for enterprise plan instances.

View Source
const (
	FirewallRuleInputWithFilterID_Action_Allow       = "allow"
	FirewallRuleInputWithFilterID_Action_Block       = "block"
	FirewallRuleInputWithFilterID_Action_Challenge   = "challenge"
	FirewallRuleInputWithFilterID_Action_JsChallenge = "js_challenge"
	FirewallRuleInputWithFilterID_Action_Log         = "log"
)

Constants associated with the FirewallRuleInputWithFilterID.Action property. The firewall action to perform, "log" action is only available for enterprise plan instances.

View Source
const DefaultServiceName = "firewall_rules"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://api.cis.cloud.ibm.com"

DefaultServiceURL is the default URL to make service requests to.

Variables

This section is empty.

Functions

func GetServiceURLForRegion

func GetServiceURLForRegion(region string) (string, error)

GetServiceURLForRegion returns the service URL to be used for the specified region

func UnmarshalFirewallRuleInputWithFilterID

func UnmarshalFirewallRuleInputWithFilterID(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalFirewallRuleInputWithFilterID unmarshals an instance of FirewallRuleInputWithFilterID from the specified map of raw messages.

func UnmarshalFirewallRuleInputWithFilterIdFilter

func UnmarshalFirewallRuleInputWithFilterIdFilter(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalFirewallRuleInputWithFilterIdFilter unmarshals an instance of FirewallRuleInputWithFilterIdFilter from the specified map of raw messages.

func UnmarshalFirewallRuleUpdateInputFilter

func UnmarshalFirewallRuleUpdateInputFilter(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalFirewallRuleUpdateInputFilter unmarshals an instance of FirewallRuleUpdateInputFilter from the specified map of raw messages.

func UnmarshalFirewallRulesUpdateInputItem

func UnmarshalFirewallRulesUpdateInputItem(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalFirewallRulesUpdateInputItem unmarshals an instance of FirewallRulesUpdateInputItem from the specified map of raw messages.

func UnmarshalFirewallRulesUpdateInputItemFilter

func UnmarshalFirewallRulesUpdateInputItemFilter(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalFirewallRulesUpdateInputItemFilter unmarshals an instance of FirewallRulesUpdateInputItemFilter from the specified map of raw messages.

Types

type CreateFirewallRulesOptions

type CreateFirewallRulesOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full url-encoded cloud resource name (CRN) of resource instance.
	Crn *string `validate:"required,ne="`

	// Zone identifier of the zone for which firewall rules are created.
	ZoneIdentifier *string `validate:"required,ne="`

	// The type of the response: *_/_* or application/json.
	Accept *string

	// Json objects which are used to create firewall rules.
	FirewallRuleInputWithFilterID []FirewallRuleInputWithFilterID

	// Allows users to set headers on API requests
	Headers map[string]string
}

CreateFirewallRulesOptions : The CreateFirewallRules options.

func (*CreateFirewallRulesOptions) SetAccept

func (options *CreateFirewallRulesOptions) SetAccept(accept string) *CreateFirewallRulesOptions

SetAccept : Allow user to set Accept

func (*CreateFirewallRulesOptions) SetCrn

SetCrn : Allow user to set Crn

func (*CreateFirewallRulesOptions) SetFirewallRuleInputWithFilterID

func (options *CreateFirewallRulesOptions) SetFirewallRuleInputWithFilterID(firewallRuleInputWithFilterID []FirewallRuleInputWithFilterID) *CreateFirewallRulesOptions

SetFirewallRuleInputWithFilterID : Allow user to set FirewallRuleInputWithFilterID

func (*CreateFirewallRulesOptions) SetHeaders

func (options *CreateFirewallRulesOptions) SetHeaders(param map[string]string) *CreateFirewallRulesOptions

SetHeaders : Allow user to set Headers

func (*CreateFirewallRulesOptions) SetXAuthUserToken

func (options *CreateFirewallRulesOptions) SetXAuthUserToken(xAuthUserToken string) *CreateFirewallRulesOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*CreateFirewallRulesOptions) SetZoneIdentifier

func (options *CreateFirewallRulesOptions) SetZoneIdentifier(zoneIdentifier string) *CreateFirewallRulesOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

type DeleteFirewallRuleOptions

type DeleteFirewallRuleOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full crn of the service instance.
	Crn *string `validate:"required,ne="`

	// Identifier of zone whose firewall rule is to be deleted.
	ZoneIdentifier *string `validate:"required,ne="`

	// Identifier of the firewall rule to be deleted.
	FirewallRuleIdentifier *string `validate:"required,ne="`

	// The type of the response: *_/_* or application/json.
	Accept *string

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteFirewallRuleOptions : The DeleteFirewallRule options.

func (*DeleteFirewallRuleOptions) SetAccept

func (options *DeleteFirewallRuleOptions) SetAccept(accept string) *DeleteFirewallRuleOptions

SetAccept : Allow user to set Accept

func (*DeleteFirewallRuleOptions) SetCrn

SetCrn : Allow user to set Crn

func (*DeleteFirewallRuleOptions) SetFirewallRuleIdentifier

func (options *DeleteFirewallRuleOptions) SetFirewallRuleIdentifier(firewallRuleIdentifier string) *DeleteFirewallRuleOptions

SetFirewallRuleIdentifier : Allow user to set FirewallRuleIdentifier

func (*DeleteFirewallRuleOptions) SetHeaders

func (options *DeleteFirewallRuleOptions) SetHeaders(param map[string]string) *DeleteFirewallRuleOptions

SetHeaders : Allow user to set Headers

func (*DeleteFirewallRuleOptions) SetXAuthUserToken

func (options *DeleteFirewallRuleOptions) SetXAuthUserToken(xAuthUserToken string) *DeleteFirewallRuleOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*DeleteFirewallRuleOptions) SetZoneIdentifier

func (options *DeleteFirewallRuleOptions) SetZoneIdentifier(zoneIdentifier string) *DeleteFirewallRuleOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

type DeleteFirewallRulesOptions

type DeleteFirewallRulesOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full crn of the service instance.
	Crn *string `validate:"required,ne="`

	// Identifier of zone whose firewall rules are to be deleted.
	ZoneIdentifier *string `validate:"required,ne="`

	// ids of firewall rules which will be deleted.
	ID *string `validate:"required"`

	// The type of the response: *_/_* or application/json.
	Accept *string

	// Allows users to set headers on API requests
	Headers map[string]string
}

DeleteFirewallRulesOptions : The DeleteFirewallRules options.

func (*DeleteFirewallRulesOptions) SetAccept

func (options *DeleteFirewallRulesOptions) SetAccept(accept string) *DeleteFirewallRulesOptions

SetAccept : Allow user to set Accept

func (*DeleteFirewallRulesOptions) SetCrn

SetCrn : Allow user to set Crn

func (*DeleteFirewallRulesOptions) SetHeaders

func (options *DeleteFirewallRulesOptions) SetHeaders(param map[string]string) *DeleteFirewallRulesOptions

SetHeaders : Allow user to set Headers

func (*DeleteFirewallRulesOptions) SetID

SetID : Allow user to set ID

func (*DeleteFirewallRulesOptions) SetXAuthUserToken

func (options *DeleteFirewallRulesOptions) SetXAuthUserToken(xAuthUserToken string) *DeleteFirewallRulesOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*DeleteFirewallRulesOptions) SetZoneIdentifier

func (options *DeleteFirewallRulesOptions) SetZoneIdentifier(zoneIdentifier string) *DeleteFirewallRulesOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

type FirewallRuleInputWithFilterID

type FirewallRuleInputWithFilterID struct {
	// An existing filter.
	Filter *FirewallRuleInputWithFilterIdFilter `json:"filter" validate:"required"`

	// The firewall action to perform, "log" action is only available for enterprise plan instances.
	Action *string `json:"action" validate:"required"`

	// To briefly describe the firewall rule, omitted from object if empty.
	Description *string `json:"description,omitempty"`
}

FirewallRuleInputWithFilterID : Json objects which are used to create firewall rule.

type FirewallRuleInputWithFilterIdFilter

type FirewallRuleInputWithFilterIdFilter struct {
	// Identifier of the filter.
	ID *string `json:"id" validate:"required"`
}

FirewallRuleInputWithFilterIdFilter : An existing filter.

type FirewallRuleUpdateInputFilter

type FirewallRuleUpdateInputFilter struct {
	// Identifier of the filter.
	ID *string `json:"id" validate:"required"`
}

FirewallRuleUpdateInputFilter : An existing filter.

type FirewallRulesUpdateInputItem

type FirewallRulesUpdateInputItem struct {
	// Identifier of the firewall rule.
	ID *string `json:"id" validate:"required"`

	// The firewall action to perform, "log" action is only available for enterprise plan instances.
	Action *string `json:"action" validate:"required"`

	// Indicates if the firewall rule is active.
	Paused *bool `json:"paused,omitempty"`

	// To briefly describe the firewall rule, omitted from object if empty.
	Description *string `json:"description,omitempty"`

	// An existing filter.
	Filter *FirewallRulesUpdateInputItemFilter `json:"filter,omitempty"`
}

FirewallRulesUpdateInputItem : FirewallRulesUpdateInputItem struct

type FirewallRulesUpdateInputItemFilter

type FirewallRulesUpdateInputItemFilter struct {
	// Identifier of the filter.
	ID *string `json:"id" validate:"required"`
}

FirewallRulesUpdateInputItemFilter : An existing filter.

type FirewallRulesV1

type FirewallRulesV1 struct {
	Service *core.BaseService
}

FirewallRulesV1 : Firewall rules

Version: 1.0.1

func NewFirewallRulesV1

func NewFirewallRulesV1(options *FirewallRulesV1Options) (service *FirewallRulesV1, err error)

NewFirewallRulesV1 : constructs an instance of FirewallRulesV1 with passed in options.

func NewFirewallRulesV1UsingExternalConfig

func NewFirewallRulesV1UsingExternalConfig(options *FirewallRulesV1Options) (firewallRules *FirewallRulesV1, err error)

NewFirewallRulesV1UsingExternalConfig : constructs an instance of FirewallRulesV1 with passed in options and external configuration.

func (*FirewallRulesV1) Clone

func (firewallRules *FirewallRulesV1) Clone() *FirewallRulesV1

Clone makes a copy of "firewallRules" suitable for processing requests.

func (*FirewallRulesV1) CreateFirewallRules

func (firewallRules *FirewallRulesV1) CreateFirewallRules(createFirewallRulesOptions *CreateFirewallRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

CreateFirewallRules : Create firewall rules for a zone Create new firewall rules for a given zone under a service instance.

func (*FirewallRulesV1) CreateFirewallRulesWithContext

func (firewallRules *FirewallRulesV1) CreateFirewallRulesWithContext(ctx context.Context, createFirewallRulesOptions *CreateFirewallRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

CreateFirewallRulesWithContext is an alternate form of the CreateFirewallRules method which supports a Context parameter

func (*FirewallRulesV1) DeleteFirewallRule

func (firewallRules *FirewallRulesV1) DeleteFirewallRule(deleteFirewallRuleOptions *DeleteFirewallRuleOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

DeleteFirewallRule : Delete a firewall rule Delete a firewall rule given its id.

func (*FirewallRulesV1) DeleteFirewallRuleWithContext

func (firewallRules *FirewallRulesV1) DeleteFirewallRuleWithContext(ctx context.Context, deleteFirewallRuleOptions *DeleteFirewallRuleOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

DeleteFirewallRuleWithContext is an alternate form of the DeleteFirewallRule method which supports a Context parameter

func (*FirewallRulesV1) DeleteFirewallRules

func (firewallRules *FirewallRulesV1) DeleteFirewallRules(deleteFirewallRulesOptions *DeleteFirewallRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

DeleteFirewallRules : Delete firewall rules Delete firewall rules by filter ids.

func (*FirewallRulesV1) DeleteFirewallRulesWithContext

func (firewallRules *FirewallRulesV1) DeleteFirewallRulesWithContext(ctx context.Context, deleteFirewallRulesOptions *DeleteFirewallRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

DeleteFirewallRulesWithContext is an alternate form of the DeleteFirewallRules method which supports a Context parameter

func (*FirewallRulesV1) DisableRetries

func (firewallRules *FirewallRulesV1) DisableRetries()

DisableRetries disables automatic retries for requests invoked for this service instance.

func (*FirewallRulesV1) EnableRetries

func (firewallRules *FirewallRulesV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)

EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.

func (*FirewallRulesV1) GetEnableGzipCompression

func (firewallRules *FirewallRulesV1) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*FirewallRulesV1) GetFirewallRule

func (firewallRules *FirewallRulesV1) GetFirewallRule(getFirewallRuleOptions *GetFirewallRuleOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

GetFirewallRule : Get firewall rule details by id Get the details of a firewall rule for a given zone under a given service instance.

func (*FirewallRulesV1) GetFirewallRuleWithContext

func (firewallRules *FirewallRulesV1) GetFirewallRuleWithContext(ctx context.Context, getFirewallRuleOptions *GetFirewallRuleOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

GetFirewallRuleWithContext is an alternate form of the GetFirewallRule method which supports a Context parameter

func (*FirewallRulesV1) GetServiceURL

func (firewallRules *FirewallRulesV1) GetServiceURL() string

GetServiceURL returns the service URL

func (*FirewallRulesV1) ListAllFirewallRules

func (firewallRules *FirewallRulesV1) ListAllFirewallRules(listAllFirewallRulesOptions *ListAllFirewallRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

ListAllFirewallRules : List all firewall rules for a zone List all firewall rules for a zone.

func (*FirewallRulesV1) ListAllFirewallRulesWithContext

func (firewallRules *FirewallRulesV1) ListAllFirewallRulesWithContext(ctx context.Context, listAllFirewallRulesOptions *ListAllFirewallRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

ListAllFirewallRulesWithContext is an alternate form of the ListAllFirewallRules method which supports a Context parameter

func (*FirewallRulesV1) NewCreateFirewallRulesOptions

func (*FirewallRulesV1) NewCreateFirewallRulesOptions(xAuthUserToken string, crn string, zoneIdentifier string) *CreateFirewallRulesOptions

NewCreateFirewallRulesOptions : Instantiate CreateFirewallRulesOptions

func (*FirewallRulesV1) NewDeleteFirewallRuleOptions

func (*FirewallRulesV1) NewDeleteFirewallRuleOptions(xAuthUserToken string, crn string, zoneIdentifier string, firewallRuleIdentifier string) *DeleteFirewallRuleOptions

NewDeleteFirewallRuleOptions : Instantiate DeleteFirewallRuleOptions

func (*FirewallRulesV1) NewDeleteFirewallRulesOptions

func (*FirewallRulesV1) NewDeleteFirewallRulesOptions(xAuthUserToken string, crn string, zoneIdentifier string, id string) *DeleteFirewallRulesOptions

NewDeleteFirewallRulesOptions : Instantiate DeleteFirewallRulesOptions

func (*FirewallRulesV1) NewFirewallRuleInputWithFilterID

func (*FirewallRulesV1) NewFirewallRuleInputWithFilterID(filter *FirewallRuleInputWithFilterIdFilter, action string) (model *FirewallRuleInputWithFilterID, err error)

NewFirewallRuleInputWithFilterID : Instantiate FirewallRuleInputWithFilterID (Generic Model Constructor)

func (*FirewallRulesV1) NewFirewallRuleInputWithFilterIdFilter

func (*FirewallRulesV1) NewFirewallRuleInputWithFilterIdFilter(id string) (model *FirewallRuleInputWithFilterIdFilter, err error)

NewFirewallRuleInputWithFilterIdFilter : Instantiate FirewallRuleInputWithFilterIdFilter (Generic Model Constructor)

func (*FirewallRulesV1) NewFirewallRuleUpdateInputFilter

func (*FirewallRulesV1) NewFirewallRuleUpdateInputFilter(id string) (model *FirewallRuleUpdateInputFilter, err error)

NewFirewallRuleUpdateInputFilter : Instantiate FirewallRuleUpdateInputFilter (Generic Model Constructor)

func (*FirewallRulesV1) NewFirewallRulesUpdateInputItem

func (*FirewallRulesV1) NewFirewallRulesUpdateInputItem(id string, action string) (model *FirewallRulesUpdateInputItem, err error)

NewFirewallRulesUpdateInputItem : Instantiate FirewallRulesUpdateInputItem (Generic Model Constructor)

func (*FirewallRulesV1) NewFirewallRulesUpdateInputItemFilter

func (*FirewallRulesV1) NewFirewallRulesUpdateInputItemFilter(id string) (model *FirewallRulesUpdateInputItemFilter, err error)

NewFirewallRulesUpdateInputItemFilter : Instantiate FirewallRulesUpdateInputItemFilter (Generic Model Constructor)

func (*FirewallRulesV1) NewGetFirewallRuleOptions

func (*FirewallRulesV1) NewGetFirewallRuleOptions(xAuthUserToken string, crn string, zoneIdentifier string, firewallRuleIdentifier string) *GetFirewallRuleOptions

NewGetFirewallRuleOptions : Instantiate GetFirewallRuleOptions

func (*FirewallRulesV1) NewListAllFirewallRulesOptions

func (*FirewallRulesV1) NewListAllFirewallRulesOptions(xAuthUserToken string, crn string, zoneIdentifier string) *ListAllFirewallRulesOptions

NewListAllFirewallRulesOptions : Instantiate ListAllFirewallRulesOptions

func (*FirewallRulesV1) NewUpdateFirewallRuleOptions

func (*FirewallRulesV1) NewUpdateFirewallRuleOptions(xAuthUserToken string, crn string, zoneIdentifier string, firewallRuleIdentifier string) *UpdateFirewallRuleOptions

NewUpdateFirewallRuleOptions : Instantiate UpdateFirewallRuleOptions

func (*FirewallRulesV1) NewUpdateFirewllRulesOptions

func (*FirewallRulesV1) NewUpdateFirewllRulesOptions(xAuthUserToken string, crn string, zoneIdentifier string) *UpdateFirewllRulesOptions

NewUpdateFirewllRulesOptions : Instantiate UpdateFirewllRulesOptions

func (*FirewallRulesV1) SetDefaultHeaders

func (firewallRules *FirewallRulesV1) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*FirewallRulesV1) SetEnableGzipCompression

func (firewallRules *FirewallRulesV1) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*FirewallRulesV1) SetServiceURL

func (firewallRules *FirewallRulesV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*FirewallRulesV1) UpdateFirewallRule

func (firewallRules *FirewallRulesV1) UpdateFirewallRule(updateFirewallRuleOptions *UpdateFirewallRuleOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

UpdateFirewallRule : Update a firewall rule Update an existing firewall rule for a given zone under a given service instance.

func (*FirewallRulesV1) UpdateFirewallRuleWithContext

func (firewallRules *FirewallRulesV1) UpdateFirewallRuleWithContext(ctx context.Context, updateFirewallRuleOptions *UpdateFirewallRuleOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

UpdateFirewallRuleWithContext is an alternate form of the UpdateFirewallRule method which supports a Context parameter

func (*FirewallRulesV1) UpdateFirewllRules

func (firewallRules *FirewallRulesV1) UpdateFirewllRules(updateFirewllRulesOptions *UpdateFirewllRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

UpdateFirewllRules : Update firewall rules Update existing firewall rules for a given zone under a given service instance.

func (*FirewallRulesV1) UpdateFirewllRulesWithContext

func (firewallRules *FirewallRulesV1) UpdateFirewllRulesWithContext(ctx context.Context, updateFirewllRulesOptions *UpdateFirewllRulesOptions) (result io.ReadCloser, response *core.DetailedResponse, err error)

UpdateFirewllRulesWithContext is an alternate form of the UpdateFirewllRules method which supports a Context parameter

type FirewallRulesV1Options

type FirewallRulesV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator
}

FirewallRulesV1Options : Service options

type GetFirewallRuleOptions

type GetFirewallRuleOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full crn of the service instance.
	Crn *string `validate:"required,ne="`

	// Zone identifier (zone id).
	ZoneIdentifier *string `validate:"required,ne="`

	// Identifier of firewall rule for the given zone.
	FirewallRuleIdentifier *string `validate:"required,ne="`

	// The type of the response: *_/_* or application/json.
	Accept *string

	// Allows users to set headers on API requests
	Headers map[string]string
}

GetFirewallRuleOptions : The GetFirewallRule options.

func (*GetFirewallRuleOptions) SetAccept

func (options *GetFirewallRuleOptions) SetAccept(accept string) *GetFirewallRuleOptions

SetAccept : Allow user to set Accept

func (*GetFirewallRuleOptions) SetCrn

SetCrn : Allow user to set Crn

func (*GetFirewallRuleOptions) SetFirewallRuleIdentifier

func (options *GetFirewallRuleOptions) SetFirewallRuleIdentifier(firewallRuleIdentifier string) *GetFirewallRuleOptions

SetFirewallRuleIdentifier : Allow user to set FirewallRuleIdentifier

func (*GetFirewallRuleOptions) SetHeaders

func (options *GetFirewallRuleOptions) SetHeaders(param map[string]string) *GetFirewallRuleOptions

SetHeaders : Allow user to set Headers

func (*GetFirewallRuleOptions) SetXAuthUserToken

func (options *GetFirewallRuleOptions) SetXAuthUserToken(xAuthUserToken string) *GetFirewallRuleOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*GetFirewallRuleOptions) SetZoneIdentifier

func (options *GetFirewallRuleOptions) SetZoneIdentifier(zoneIdentifier string) *GetFirewallRuleOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

type ListAllFirewallRulesOptions

type ListAllFirewallRulesOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full url-encoded cloud resource name (CRN) of resource instance.
	Crn *string `validate:"required,ne="`

	// Zone identifier of the zone for which firewall rules are listed.
	ZoneIdentifier *string `validate:"required,ne="`

	// The type of the response: *_/_* or application/json.
	Accept *string

	// Allows users to set headers on API requests
	Headers map[string]string
}

ListAllFirewallRulesOptions : The ListAllFirewallRules options.

func (*ListAllFirewallRulesOptions) SetAccept

SetAccept : Allow user to set Accept

func (*ListAllFirewallRulesOptions) SetCrn

SetCrn : Allow user to set Crn

func (*ListAllFirewallRulesOptions) SetHeaders

func (options *ListAllFirewallRulesOptions) SetHeaders(param map[string]string) *ListAllFirewallRulesOptions

SetHeaders : Allow user to set Headers

func (*ListAllFirewallRulesOptions) SetXAuthUserToken

func (options *ListAllFirewallRulesOptions) SetXAuthUserToken(xAuthUserToken string) *ListAllFirewallRulesOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*ListAllFirewallRulesOptions) SetZoneIdentifier

func (options *ListAllFirewallRulesOptions) SetZoneIdentifier(zoneIdentifier string) *ListAllFirewallRulesOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

type UpdateFirewallRuleOptions

type UpdateFirewallRuleOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full crn of the service instance.
	Crn *string `validate:"required,ne="`

	// Zone identifier (zone id).
	ZoneIdentifier *string `validate:"required,ne="`

	// Identifier of firewall rule.
	FirewallRuleIdentifier *string `validate:"required,ne="`

	// The type of the response: *_/_* or application/json.
	Accept *string

	// The firewall action to perform, "log" action is only available for enterprise plan instances.
	Action *string

	// Indicates if the firewall rule is active.
	Paused *bool

	// To briefly describe the firewall rule, omitted from object if empty.
	Description *string

	// An existing filter.
	Filter *FirewallRuleUpdateInputFilter

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateFirewallRuleOptions : The UpdateFirewallRule options.

func (*UpdateFirewallRuleOptions) SetAccept

func (options *UpdateFirewallRuleOptions) SetAccept(accept string) *UpdateFirewallRuleOptions

SetAccept : Allow user to set Accept

func (*UpdateFirewallRuleOptions) SetAction

func (options *UpdateFirewallRuleOptions) SetAction(action string) *UpdateFirewallRuleOptions

SetAction : Allow user to set Action

func (*UpdateFirewallRuleOptions) SetCrn

SetCrn : Allow user to set Crn

func (*UpdateFirewallRuleOptions) SetDescription

func (options *UpdateFirewallRuleOptions) SetDescription(description string) *UpdateFirewallRuleOptions

SetDescription : Allow user to set Description

func (*UpdateFirewallRuleOptions) SetFilter

SetFilter : Allow user to set Filter

func (*UpdateFirewallRuleOptions) SetFirewallRuleIdentifier

func (options *UpdateFirewallRuleOptions) SetFirewallRuleIdentifier(firewallRuleIdentifier string) *UpdateFirewallRuleOptions

SetFirewallRuleIdentifier : Allow user to set FirewallRuleIdentifier

func (*UpdateFirewallRuleOptions) SetHeaders

func (options *UpdateFirewallRuleOptions) SetHeaders(param map[string]string) *UpdateFirewallRuleOptions

SetHeaders : Allow user to set Headers

func (*UpdateFirewallRuleOptions) SetPaused

func (options *UpdateFirewallRuleOptions) SetPaused(paused bool) *UpdateFirewallRuleOptions

SetPaused : Allow user to set Paused

func (*UpdateFirewallRuleOptions) SetXAuthUserToken

func (options *UpdateFirewallRuleOptions) SetXAuthUserToken(xAuthUserToken string) *UpdateFirewallRuleOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*UpdateFirewallRuleOptions) SetZoneIdentifier

func (options *UpdateFirewallRuleOptions) SetZoneIdentifier(zoneIdentifier string) *UpdateFirewallRuleOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

type UpdateFirewllRulesOptions

type UpdateFirewllRulesOptions struct {
	// IBM Cloud user IAM token.
	XAuthUserToken *string `validate:"required"`

	// Full crn of the service instance.
	Crn *string `validate:"required,ne="`

	// Zone identifier (zone id).
	ZoneIdentifier *string `validate:"required,ne="`

	// The type of the response: *_/_* or application/json.
	Accept *string

	FirewallRulesUpdateInputItem []FirewallRulesUpdateInputItem

	// Allows users to set headers on API requests
	Headers map[string]string
}

UpdateFirewllRulesOptions : The UpdateFirewllRules options.

func (*UpdateFirewllRulesOptions) SetAccept

func (options *UpdateFirewllRulesOptions) SetAccept(accept string) *UpdateFirewllRulesOptions

SetAccept : Allow user to set Accept

func (*UpdateFirewllRulesOptions) SetCrn

SetCrn : Allow user to set Crn

func (*UpdateFirewllRulesOptions) SetFirewallRulesUpdateInputItem

func (options *UpdateFirewllRulesOptions) SetFirewallRulesUpdateInputItem(firewallRulesUpdateInputItem []FirewallRulesUpdateInputItem) *UpdateFirewllRulesOptions

SetFirewallRulesUpdateInputItem : Allow user to set FirewallRulesUpdateInputItem

func (*UpdateFirewllRulesOptions) SetHeaders

func (options *UpdateFirewllRulesOptions) SetHeaders(param map[string]string) *UpdateFirewllRulesOptions

SetHeaders : Allow user to set Headers

func (*UpdateFirewllRulesOptions) SetXAuthUserToken

func (options *UpdateFirewllRulesOptions) SetXAuthUserToken(xAuthUserToken string) *UpdateFirewllRulesOptions

SetXAuthUserToken : Allow user to set XAuthUserToken

func (*UpdateFirewllRulesOptions) SetZoneIdentifier

func (options *UpdateFirewllRulesOptions) SetZoneIdentifier(zoneIdentifier string) *UpdateFirewllRulesOptions

SetZoneIdentifier : Allow user to set ZoneIdentifier

Jump to

Keyboard shortcuts

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