mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
154 lines
4.7 KiB
Go
154 lines
4.7 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 O11yUninstallIntegrationRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &O11yUninstallIntegrationRequest{}
|
|
|
|
// O11yUninstallIntegrationRequest struct for O11yUninstallIntegrationRequest
|
|
type O11yUninstallIntegrationRequest struct {
|
|
IntegrationId *string `json:"integration_id,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _O11yUninstallIntegrationRequest O11yUninstallIntegrationRequest
|
|
|
|
// NewO11yUninstallIntegrationRequest instantiates a new O11yUninstallIntegrationRequest 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 NewO11yUninstallIntegrationRequest() *O11yUninstallIntegrationRequest {
|
|
this := O11yUninstallIntegrationRequest{}
|
|
return &this
|
|
}
|
|
|
|
// NewO11yUninstallIntegrationRequestWithDefaults instantiates a new O11yUninstallIntegrationRequest 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 NewO11yUninstallIntegrationRequestWithDefaults() *O11yUninstallIntegrationRequest {
|
|
this := O11yUninstallIntegrationRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetIntegrationId returns the IntegrationId field value if set, zero value otherwise.
|
|
func (o *O11yUninstallIntegrationRequest) GetIntegrationId() string {
|
|
if o == nil || IsNil(o.IntegrationId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.IntegrationId
|
|
}
|
|
|
|
// GetIntegrationIdOk returns a tuple with the IntegrationId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *O11yUninstallIntegrationRequest) GetIntegrationIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.IntegrationId) {
|
|
return nil, false
|
|
}
|
|
return o.IntegrationId, true
|
|
}
|
|
|
|
// HasIntegrationId returns a boolean if a field has been set.
|
|
func (o *O11yUninstallIntegrationRequest) HasIntegrationId() bool {
|
|
if o != nil && !IsNil(o.IntegrationId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIntegrationId gets a reference to the given string and assigns it to the IntegrationId field.
|
|
func (o *O11yUninstallIntegrationRequest) SetIntegrationId(v string) {
|
|
o.IntegrationId = &v
|
|
}
|
|
|
|
func (o O11yUninstallIntegrationRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o O11yUninstallIntegrationRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.IntegrationId) {
|
|
toSerialize["integration_id"] = o.IntegrationId
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *O11yUninstallIntegrationRequest) UnmarshalJSON(data []byte) (err error) {
|
|
varO11yUninstallIntegrationRequest := _O11yUninstallIntegrationRequest{}
|
|
|
|
err = json.Unmarshal(data, &varO11yUninstallIntegrationRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = O11yUninstallIntegrationRequest(varO11yUninstallIntegrationRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "integration_id")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableO11yUninstallIntegrationRequest struct {
|
|
value *O11yUninstallIntegrationRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableO11yUninstallIntegrationRequest) Get() *O11yUninstallIntegrationRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableO11yUninstallIntegrationRequest) Set(val *O11yUninstallIntegrationRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableO11yUninstallIntegrationRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableO11yUninstallIntegrationRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableO11yUninstallIntegrationRequest(val *O11yUninstallIntegrationRequest) *NullableO11yUninstallIntegrationRequest {
|
|
return &NullableO11yUninstallIntegrationRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableO11yUninstallIntegrationRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableO11yUninstallIntegrationRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|