Files
sdk/model_iam_auditlogs_input.go

635 lines
17 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the IamAuditlogsInput type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IamAuditlogsInput{}
// IamAuditlogsInput struct for IamAuditlogsInput
type IamAuditlogsInput struct {
Action *string `json:"action,omitempty"`
ClientIp *string `json:"clientIp,omitempty"`
CreatedTime *string `json:"createdTime,omitempty"`
IsTriggered *bool `json:"isTriggered,omitempty"`
Language *string `json:"language,omitempty"`
Method *string `json:"method,omitempty"`
Name *string `json:"name,omitempty"`
Object *string `json:"object,omitempty"`
Organization *string `json:"organization,omitempty"`
Owner *string `json:"owner,omitempty"`
RequestUri *string `json:"requestUri,omitempty"`
Response *string `json:"response,omitempty"`
StatusCode *int64 `json:"statusCode,omitempty"`
User *string `json:"user,omitempty"`
AdditionalProperties map[string]interface{}
}
type _IamAuditlogsInput IamAuditlogsInput
// NewIamAuditlogsInput instantiates a new IamAuditlogsInput 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 NewIamAuditlogsInput() *IamAuditlogsInput {
this := IamAuditlogsInput{}
return &this
}
// NewIamAuditlogsInputWithDefaults instantiates a new IamAuditlogsInput 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 NewIamAuditlogsInputWithDefaults() *IamAuditlogsInput {
this := IamAuditlogsInput{}
return &this
}
// GetAction returns the Action field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetAction() string {
if o == nil || IsNil(o.Action) {
var ret string
return ret
}
return *o.Action
}
// GetActionOk returns a tuple with the Action field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetActionOk() (*string, bool) {
if o == nil || IsNil(o.Action) {
return nil, false
}
return o.Action, true
}
// HasAction returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasAction() bool {
if o != nil && !IsNil(o.Action) {
return true
}
return false
}
// SetAction gets a reference to the given string and assigns it to the Action field.
func (o *IamAuditlogsInput) SetAction(v string) {
o.Action = &v
}
// GetClientIp returns the ClientIp field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetClientIp() string {
if o == nil || IsNil(o.ClientIp) {
var ret string
return ret
}
return *o.ClientIp
}
// GetClientIpOk returns a tuple with the ClientIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetClientIpOk() (*string, bool) {
if o == nil || IsNil(o.ClientIp) {
return nil, false
}
return o.ClientIp, true
}
// HasClientIp returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasClientIp() bool {
if o != nil && !IsNil(o.ClientIp) {
return true
}
return false
}
// SetClientIp gets a reference to the given string and assigns it to the ClientIp field.
func (o *IamAuditlogsInput) SetClientIp(v string) {
o.ClientIp = &v
}
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetCreatedTime() string {
if o == nil || IsNil(o.CreatedTime) {
var ret string
return ret
}
return *o.CreatedTime
}
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetCreatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.CreatedTime) {
return nil, false
}
return o.CreatedTime, true
}
// HasCreatedTime returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasCreatedTime() bool {
if o != nil && !IsNil(o.CreatedTime) {
return true
}
return false
}
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
func (o *IamAuditlogsInput) SetCreatedTime(v string) {
o.CreatedTime = &v
}
// GetIsTriggered returns the IsTriggered field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetIsTriggered() bool {
if o == nil || IsNil(o.IsTriggered) {
var ret bool
return ret
}
return *o.IsTriggered
}
// GetIsTriggeredOk returns a tuple with the IsTriggered field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetIsTriggeredOk() (*bool, bool) {
if o == nil || IsNil(o.IsTriggered) {
return nil, false
}
return o.IsTriggered, true
}
// HasIsTriggered returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasIsTriggered() bool {
if o != nil && !IsNil(o.IsTriggered) {
return true
}
return false
}
// SetIsTriggered gets a reference to the given bool and assigns it to the IsTriggered field.
func (o *IamAuditlogsInput) SetIsTriggered(v bool) {
o.IsTriggered = &v
}
// GetLanguage returns the Language field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetLanguage() string {
if o == nil || IsNil(o.Language) {
var ret string
return ret
}
return *o.Language
}
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetLanguageOk() (*string, bool) {
if o == nil || IsNil(o.Language) {
return nil, false
}
return o.Language, true
}
// HasLanguage returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasLanguage() bool {
if o != nil && !IsNil(o.Language) {
return true
}
return false
}
// SetLanguage gets a reference to the given string and assigns it to the Language field.
func (o *IamAuditlogsInput) SetLanguage(v string) {
o.Language = &v
}
// GetMethod returns the Method field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetMethod() string {
if o == nil || IsNil(o.Method) {
var ret string
return ret
}
return *o.Method
}
// GetMethodOk returns a tuple with the Method field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetMethodOk() (*string, bool) {
if o == nil || IsNil(o.Method) {
return nil, false
}
return o.Method, true
}
// HasMethod returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasMethod() bool {
if o != nil && !IsNil(o.Method) {
return true
}
return false
}
// SetMethod gets a reference to the given string and assigns it to the Method field.
func (o *IamAuditlogsInput) SetMethod(v string) {
o.Method = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *IamAuditlogsInput) SetName(v string) {
o.Name = &v
}
// GetObject returns the Object field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetObject() string {
if o == nil || IsNil(o.Object) {
var ret string
return ret
}
return *o.Object
}
// GetObjectOk returns a tuple with the Object field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetObjectOk() (*string, bool) {
if o == nil || IsNil(o.Object) {
return nil, false
}
return o.Object, true
}
// HasObject returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasObject() bool {
if o != nil && !IsNil(o.Object) {
return true
}
return false
}
// SetObject gets a reference to the given string and assigns it to the Object field.
func (o *IamAuditlogsInput) SetObject(v string) {
o.Object = &v
}
// GetOrganization returns the Organization field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetOrganization() string {
if o == nil || IsNil(o.Organization) {
var ret string
return ret
}
return *o.Organization
}
// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetOrganizationOk() (*string, bool) {
if o == nil || IsNil(o.Organization) {
return nil, false
}
return o.Organization, true
}
// HasOrganization returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasOrganization() bool {
if o != nil && !IsNil(o.Organization) {
return true
}
return false
}
// SetOrganization gets a reference to the given string and assigns it to the Organization field.
func (o *IamAuditlogsInput) SetOrganization(v string) {
o.Organization = &v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *IamAuditlogsInput) SetOwner(v string) {
o.Owner = &v
}
// GetRequestUri returns the RequestUri field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetRequestUri() string {
if o == nil || IsNil(o.RequestUri) {
var ret string
return ret
}
return *o.RequestUri
}
// GetRequestUriOk returns a tuple with the RequestUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetRequestUriOk() (*string, bool) {
if o == nil || IsNil(o.RequestUri) {
return nil, false
}
return o.RequestUri, true
}
// HasRequestUri returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasRequestUri() bool {
if o != nil && !IsNil(o.RequestUri) {
return true
}
return false
}
// SetRequestUri gets a reference to the given string and assigns it to the RequestUri field.
func (o *IamAuditlogsInput) SetRequestUri(v string) {
o.RequestUri = &v
}
// GetResponse returns the Response field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetResponse() string {
if o == nil || IsNil(o.Response) {
var ret string
return ret
}
return *o.Response
}
// GetResponseOk returns a tuple with the Response field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetResponseOk() (*string, bool) {
if o == nil || IsNil(o.Response) {
return nil, false
}
return o.Response, true
}
// HasResponse returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasResponse() bool {
if o != nil && !IsNil(o.Response) {
return true
}
return false
}
// SetResponse gets a reference to the given string and assigns it to the Response field.
func (o *IamAuditlogsInput) SetResponse(v string) {
o.Response = &v
}
// GetStatusCode returns the StatusCode field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetStatusCode() int64 {
if o == nil || IsNil(o.StatusCode) {
var ret int64
return ret
}
return *o.StatusCode
}
// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetStatusCodeOk() (*int64, bool) {
if o == nil || IsNil(o.StatusCode) {
return nil, false
}
return o.StatusCode, true
}
// HasStatusCode returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasStatusCode() bool {
if o != nil && !IsNil(o.StatusCode) {
return true
}
return false
}
// SetStatusCode gets a reference to the given int64 and assigns it to the StatusCode field.
func (o *IamAuditlogsInput) SetStatusCode(v int64) {
o.StatusCode = &v
}
// GetUser returns the User field value if set, zero value otherwise.
func (o *IamAuditlogsInput) GetUser() string {
if o == nil || IsNil(o.User) {
var ret string
return ret
}
return *o.User
}
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IamAuditlogsInput) GetUserOk() (*string, bool) {
if o == nil || IsNil(o.User) {
return nil, false
}
return o.User, true
}
// HasUser returns a boolean if a field has been set.
func (o *IamAuditlogsInput) HasUser() bool {
if o != nil && !IsNil(o.User) {
return true
}
return false
}
// SetUser gets a reference to the given string and assigns it to the User field.
func (o *IamAuditlogsInput) SetUser(v string) {
o.User = &v
}
func (o IamAuditlogsInput) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IamAuditlogsInput) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Action) {
toSerialize["action"] = o.Action
}
if !IsNil(o.ClientIp) {
toSerialize["clientIp"] = o.ClientIp
}
if !IsNil(o.CreatedTime) {
toSerialize["createdTime"] = o.CreatedTime
}
if !IsNil(o.IsTriggered) {
toSerialize["isTriggered"] = o.IsTriggered
}
if !IsNil(o.Language) {
toSerialize["language"] = o.Language
}
if !IsNil(o.Method) {
toSerialize["method"] = o.Method
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Object) {
toSerialize["object"] = o.Object
}
if !IsNil(o.Organization) {
toSerialize["organization"] = o.Organization
}
if !IsNil(o.Owner) {
toSerialize["owner"] = o.Owner
}
if !IsNil(o.RequestUri) {
toSerialize["requestUri"] = o.RequestUri
}
if !IsNil(o.Response) {
toSerialize["response"] = o.Response
}
if !IsNil(o.StatusCode) {
toSerialize["statusCode"] = o.StatusCode
}
if !IsNil(o.User) {
toSerialize["user"] = o.User
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *IamAuditlogsInput) UnmarshalJSON(data []byte) (err error) {
varIamAuditlogsInput := _IamAuditlogsInput{}
err = json.Unmarshal(data, &varIamAuditlogsInput)
if err != nil {
return err
}
*o = IamAuditlogsInput(varIamAuditlogsInput)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "action")
delete(additionalProperties, "clientIp")
delete(additionalProperties, "createdTime")
delete(additionalProperties, "isTriggered")
delete(additionalProperties, "language")
delete(additionalProperties, "method")
delete(additionalProperties, "name")
delete(additionalProperties, "object")
delete(additionalProperties, "organization")
delete(additionalProperties, "owner")
delete(additionalProperties, "requestUri")
delete(additionalProperties, "response")
delete(additionalProperties, "statusCode")
delete(additionalProperties, "user")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableIamAuditlogsInput struct {
value *IamAuditlogsInput
isSet bool
}
func (v NullableIamAuditlogsInput) Get() *IamAuditlogsInput {
return v.value
}
func (v *NullableIamAuditlogsInput) Set(val *IamAuditlogsInput) {
v.value = val
v.isSet = true
}
func (v NullableIamAuditlogsInput) IsSet() bool {
return v.isSet
}
func (v *NullableIamAuditlogsInput) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIamAuditlogsInput(val *IamAuditlogsInput) *NullableIamAuditlogsInput {
return &NullableIamAuditlogsInput{value: val, isSet: true}
}
func (v NullableIamAuditlogsInput) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIamAuditlogsInput) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}