CORSRule
Last updated
Last updated
Name | Type | Description | Notes |
---|---|---|---|
func NewCORSRule(allowedMethods []string, allowedOrigins []string, ) *CORSRule
NewCORSRule instantiates a new CORSRule 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 NewCORSRuleWithDefaults() *CORSRule
NewCORSRuleWithDefaults instantiates a new CORSRule 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 (o *CORSRule) GetID() int32
GetID returns the ID field if non-nil, zero value otherwise.
func (o *CORSRule) GetIDOk() (*int32, bool)
GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CORSRule) SetID(v int32)
SetID sets ID field to given value.
func (o *CORSRule) HasID() bool
HasID returns a boolean if a field has been set.
func (o *CORSRule) GetAllowedHeaders() []string
GetAllowedHeaders returns the AllowedHeaders field if non-nil, zero value otherwise.
func (o *CORSRule) GetAllowedHeadersOk() (*[]string, bool)
GetAllowedHeadersOk returns a tuple with the AllowedHeaders field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CORSRule) SetAllowedHeaders(v []string)
SetAllowedHeaders sets AllowedHeaders field to given value.
func (o *CORSRule) HasAllowedHeaders() bool
HasAllowedHeaders returns a boolean if a field has been set.
func (o *CORSRule) GetAllowedMethods() []string
GetAllowedMethods returns the AllowedMethods field if non-nil, zero value otherwise.
func (o *CORSRule) GetAllowedMethodsOk() (*[]string, bool)
GetAllowedMethodsOk returns a tuple with the AllowedMethods field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CORSRule) SetAllowedMethods(v []string)
SetAllowedMethods sets AllowedMethods field to given value.
func (o *CORSRule) GetAllowedOrigins() []string
GetAllowedOrigins returns the AllowedOrigins field if non-nil, zero value otherwise.
func (o *CORSRule) GetAllowedOriginsOk() (*[]string, bool)
GetAllowedOriginsOk returns a tuple with the AllowedOrigins field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CORSRule) SetAllowedOrigins(v []string)
SetAllowedOrigins sets AllowedOrigins field to given value.
func (o *CORSRule) GetExposeHeaders() []string
GetExposeHeaders returns the ExposeHeaders field if non-nil, zero value otherwise.
func (o *CORSRule) GetExposeHeadersOk() (*[]string, bool)
GetExposeHeadersOk returns a tuple with the ExposeHeaders field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CORSRule) SetExposeHeaders(v []string)
SetExposeHeaders sets ExposeHeaders field to given value.
func (o *CORSRule) HasExposeHeaders() bool
HasExposeHeaders returns a boolean if a field has been set.
func (o *CORSRule) GetMaxAgeSeconds() int32
GetMaxAgeSeconds returns the MaxAgeSeconds field if non-nil, zero value otherwise.
func (o *CORSRule) GetMaxAgeSecondsOk() (*int32, bool)
GetMaxAgeSecondsOk returns a tuple with the MaxAgeSeconds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CORSRule) SetMaxAgeSeconds(v int32)
SetMaxAgeSeconds sets MaxAgeSeconds field to given value.
func (o *CORSRule) HasMaxAgeSeconds() bool
HasMaxAgeSeconds returns a boolean if a field has been set.
ID
Pointer to int32
Container for the Contract Number of the owner.
[optional]
AllowedHeaders
Pointer to []string
Headers that are specified in the `Access-Control-Request-Headers` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, IONOS S3 Object Storage returns any requested headers that are allowed.
[optional]
AllowedMethods
[]string
An HTTP method that you allow the origin to execute. Valid values are `GET`, `PUT`, `HEAD`, `POST`, and `DELETE`.
AllowedOrigins
[]string
One or more origins you want customers to be able to access the bucket from.
ExposeHeaders
Pointer to []string
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript `XMLHttpRequest` object).
[optional]
MaxAgeSeconds
Pointer to int32
The time in seconds that your browser is to cache the preflight response for the specified resource.
[optional]