176 lines
6 KiB
Go
176 lines
6 KiB
Go
/*
|
|
STACKIT Application Load Balancer Web Application Firewall API
|
|
|
|
Generate a Web Application Firewall (WAF) to use with Application Load Balancers (ALB). The name of the WAF configuration is used in the listener of the ALB. This will activate the WAF for that ALB. An ALB with a WAF can have OWASP core rule set enabled and in addition can have custom rule configurations. To create a WAF one first needs to create all the configurations that are referenced in the WAF configuration. Currently this only consists of a rule configuration, which is written in Seclang. Once all configurations are created and referenced in the WAF configuration it can be used with an ALB. Currently updating a WAF configuration will not update an existing ALB until the Load Balancer VMs are restarted.
|
|
|
|
API version: 1alpha.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package albwafalpha
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the ListWAFResponse type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ListWAFResponse{}
|
|
|
|
/*
|
|
types and functions for items
|
|
*/
|
|
|
|
// isArray
|
|
type ListWAFResponseGetItemsAttributeType = *[]GetWAFResponse
|
|
type ListWAFResponseGetItemsArgType = []GetWAFResponse
|
|
type ListWAFResponseGetItemsRetType = []GetWAFResponse
|
|
|
|
func getListWAFResponseGetItemsAttributeTypeOk(arg ListWAFResponseGetItemsAttributeType) (ret ListWAFResponseGetItemsRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setListWAFResponseGetItemsAttributeType(arg *ListWAFResponseGetItemsAttributeType, val ListWAFResponseGetItemsRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
/*
|
|
types and functions for nextPageId
|
|
*/
|
|
|
|
// isNotNullableString
|
|
type ListWAFResponseGetNextPageIdAttributeType = *string
|
|
|
|
func getListWAFResponseGetNextPageIdAttributeTypeOk(arg ListWAFResponseGetNextPageIdAttributeType) (ret ListWAFResponseGetNextPageIdRetType, ok bool) {
|
|
if arg == nil {
|
|
return ret, false
|
|
}
|
|
return *arg, true
|
|
}
|
|
|
|
func setListWAFResponseGetNextPageIdAttributeType(arg *ListWAFResponseGetNextPageIdAttributeType, val ListWAFResponseGetNextPageIdRetType) {
|
|
*arg = &val
|
|
}
|
|
|
|
type ListWAFResponseGetNextPageIdArgType = string
|
|
type ListWAFResponseGetNextPageIdRetType = string
|
|
|
|
// ListWAFResponse ListWAFResponse returns a list of WAF responses.
|
|
type ListWAFResponse struct {
|
|
Items ListWAFResponseGetItemsAttributeType `json:"items,omitempty"`
|
|
// Continue token from the ListWAFResponse with Limit option
|
|
NextPageId ListWAFResponseGetNextPageIdAttributeType `json:"nextPageId,omitempty"`
|
|
}
|
|
|
|
// NewListWAFResponse instantiates a new ListWAFResponse object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewListWAFResponse() *ListWAFResponse {
|
|
this := ListWAFResponse{}
|
|
return &this
|
|
}
|
|
|
|
// NewListWAFResponseWithDefaults instantiates a new ListWAFResponse object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewListWAFResponseWithDefaults() *ListWAFResponse {
|
|
this := ListWAFResponse{}
|
|
return &this
|
|
}
|
|
|
|
// GetItems returns the Items field value if set, zero value otherwise.
|
|
func (o *ListWAFResponse) GetItems() (res ListWAFResponseGetItemsRetType) {
|
|
res, _ = o.GetItemsOk()
|
|
return
|
|
}
|
|
|
|
// GetItemsOk returns a tuple with the Items field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ListWAFResponse) GetItemsOk() (ret ListWAFResponseGetItemsRetType, ok bool) {
|
|
return getListWAFResponseGetItemsAttributeTypeOk(o.Items)
|
|
}
|
|
|
|
// HasItems returns a boolean if a field has been set.
|
|
func (o *ListWAFResponse) HasItems() bool {
|
|
_, ok := o.GetItemsOk()
|
|
return ok
|
|
}
|
|
|
|
// SetItems gets a reference to the given []GetWAFResponse and assigns it to the Items field.
|
|
func (o *ListWAFResponse) SetItems(v ListWAFResponseGetItemsRetType) {
|
|
setListWAFResponseGetItemsAttributeType(&o.Items, v)
|
|
}
|
|
|
|
// GetNextPageId returns the NextPageId field value if set, zero value otherwise.
|
|
func (o *ListWAFResponse) GetNextPageId() (res ListWAFResponseGetNextPageIdRetType) {
|
|
res, _ = o.GetNextPageIdOk()
|
|
return
|
|
}
|
|
|
|
// GetNextPageIdOk returns a tuple with the NextPageId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ListWAFResponse) GetNextPageIdOk() (ret ListWAFResponseGetNextPageIdRetType, ok bool) {
|
|
return getListWAFResponseGetNextPageIdAttributeTypeOk(o.NextPageId)
|
|
}
|
|
|
|
// HasNextPageId returns a boolean if a field has been set.
|
|
func (o *ListWAFResponse) HasNextPageId() bool {
|
|
_, ok := o.GetNextPageIdOk()
|
|
return ok
|
|
}
|
|
|
|
// SetNextPageId gets a reference to the given string and assigns it to the NextPageId field.
|
|
func (o *ListWAFResponse) SetNextPageId(v ListWAFResponseGetNextPageIdRetType) {
|
|
setListWAFResponseGetNextPageIdAttributeType(&o.NextPageId, v)
|
|
}
|
|
|
|
func (o ListWAFResponse) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if val, ok := getListWAFResponseGetItemsAttributeTypeOk(o.Items); ok {
|
|
toSerialize["Items"] = val
|
|
}
|
|
if val, ok := getListWAFResponseGetNextPageIdAttributeTypeOk(o.NextPageId); ok {
|
|
toSerialize["NextPageId"] = val
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableListWAFResponse struct {
|
|
value *ListWAFResponse
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableListWAFResponse) Get() *ListWAFResponse {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableListWAFResponse) Set(val *ListWAFResponse) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableListWAFResponse) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableListWAFResponse) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableListWAFResponse(val *ListWAFResponse) *NullableListWAFResponse {
|
|
return &NullableListWAFResponse{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableListWAFResponse) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableListWAFResponse) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|