Name | Type | Description | Notes |
---|---|---|---|
ContentType | Pointer to string | The expected `Content-type` header of the request this signed URL will be valid for. If provided, the `Content-type` header must be sent with the request when this URL is used, and must be the same as it was when the signed URL was created. Required for all methods except `GET` or `DELETE`. | [optional] |
ExpiresIn | Pointer to int32 | How long this signed URL will be valid for, in seconds. If omitted, the URL will be valid for 3600 seconds (1 hour). | [optional] [default to 3600] |
Method | string | The HTTP method allowed to be used with the pre-signed URL. | [default to "GET"] |
Name | string | The name of the object that will be accessed with the pre-signed URL. This object need not exist, and no error will be returned if it doesn't. This behavior is useful for generating pre-signed URLs to upload new objects to by setting the `method` to `PUT`. |
func NewPostObjectStorageObjectUrlRequest(method string, name string, ) *PostObjectStorageObjectUrlRequest
NewPostObjectStorageObjectUrlRequest instantiates a new PostObjectStorageObjectUrlRequest 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 NewPostObjectStorageObjectUrlRequestWithDefaults() *PostObjectStorageObjectUrlRequest
NewPostObjectStorageObjectUrlRequestWithDefaults instantiates a new PostObjectStorageObjectUrlRequest 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 *PostObjectStorageObjectUrlRequest) GetContentType() string
GetContentType returns the ContentType field if non-nil, zero value otherwise.
func (o *PostObjectStorageObjectUrlRequest) GetContentTypeOk() (*string, bool)
GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostObjectStorageObjectUrlRequest) SetContentType(v string)
SetContentType sets ContentType field to given value.
func (o *PostObjectStorageObjectUrlRequest) HasContentType() bool
HasContentType returns a boolean if a field has been set.
func (o *PostObjectStorageObjectUrlRequest) GetExpiresIn() int32
GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise.
func (o *PostObjectStorageObjectUrlRequest) GetExpiresInOk() (*int32, bool)
GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostObjectStorageObjectUrlRequest) SetExpiresIn(v int32)
SetExpiresIn sets ExpiresIn field to given value.
func (o *PostObjectStorageObjectUrlRequest) HasExpiresIn() bool
HasExpiresIn returns a boolean if a field has been set.
func (o *PostObjectStorageObjectUrlRequest) GetMethod() string
GetMethod returns the Method field if non-nil, zero value otherwise.
func (o *PostObjectStorageObjectUrlRequest) GetMethodOk() (*string, bool)
GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostObjectStorageObjectUrlRequest) SetMethod(v string)
SetMethod sets Method field to given value.
func (o *PostObjectStorageObjectUrlRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *PostObjectStorageObjectUrlRequest) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PostObjectStorageObjectUrlRequest) SetName(v string)
SetName sets Name field to given value.