feat: generate clients for replications APIs (#278)
This commit is contained in:
257
api/model_replication_update_request.gen.go
Normal file
257
api/model_replication_update_request.gen.go
Normal file
@ -0,0 +1,257 @@
|
||||
/*
|
||||
* Subset of Influx API covered by Influx CLI
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* API version: 2.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// ReplicationUpdateRequest struct for ReplicationUpdateRequest
|
||||
type ReplicationUpdateRequest struct {
|
||||
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||
RemoteID *string `json:"remoteID,omitempty" yaml:"remoteID,omitempty"`
|
||||
RemoteBucketID *string `json:"remoteBucketID,omitempty" yaml:"remoteBucketID,omitempty"`
|
||||
MaxQueueSizeBytes *int64 `json:"maxQueueSizeBytes,omitempty" yaml:"maxQueueSizeBytes,omitempty"`
|
||||
}
|
||||
|
||||
// NewReplicationUpdateRequest instantiates a new ReplicationUpdateRequest 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 NewReplicationUpdateRequest() *ReplicationUpdateRequest {
|
||||
this := ReplicationUpdateRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewReplicationUpdateRequestWithDefaults instantiates a new ReplicationUpdateRequest 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 NewReplicationUpdateRequestWithDefaults() *ReplicationUpdateRequest {
|
||||
this := ReplicationUpdateRequest{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetName returns the Name field value if set, zero value otherwise.
|
||||
func (o *ReplicationUpdateRequest) GetName() string {
|
||||
if o == nil || o.Name == nil {
|
||||
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 *ReplicationUpdateRequest) GetNameOk() (*string, bool) {
|
||||
if o == nil || o.Name == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Name, true
|
||||
}
|
||||
|
||||
// HasName returns a boolean if a field has been set.
|
||||
func (o *ReplicationUpdateRequest) HasName() bool {
|
||||
if o != nil && o.Name != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetName gets a reference to the given string and assigns it to the Name field.
|
||||
func (o *ReplicationUpdateRequest) SetName(v string) {
|
||||
o.Name = &v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *ReplicationUpdateRequest) GetDescription() string {
|
||||
if o == nil || o.Description == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ReplicationUpdateRequest) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil || o.Description == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description, true
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *ReplicationUpdateRequest) HasDescription() bool {
|
||||
if o != nil && o.Description != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *ReplicationUpdateRequest) SetDescription(v string) {
|
||||
o.Description = &v
|
||||
}
|
||||
|
||||
// GetRemoteID returns the RemoteID field value if set, zero value otherwise.
|
||||
func (o *ReplicationUpdateRequest) GetRemoteID() string {
|
||||
if o == nil || o.RemoteID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RemoteID
|
||||
}
|
||||
|
||||
// GetRemoteIDOk returns a tuple with the RemoteID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ReplicationUpdateRequest) GetRemoteIDOk() (*string, bool) {
|
||||
if o == nil || o.RemoteID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RemoteID, true
|
||||
}
|
||||
|
||||
// HasRemoteID returns a boolean if a field has been set.
|
||||
func (o *ReplicationUpdateRequest) HasRemoteID() bool {
|
||||
if o != nil && o.RemoteID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRemoteID gets a reference to the given string and assigns it to the RemoteID field.
|
||||
func (o *ReplicationUpdateRequest) SetRemoteID(v string) {
|
||||
o.RemoteID = &v
|
||||
}
|
||||
|
||||
// GetRemoteBucketID returns the RemoteBucketID field value if set, zero value otherwise.
|
||||
func (o *ReplicationUpdateRequest) GetRemoteBucketID() string {
|
||||
if o == nil || o.RemoteBucketID == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.RemoteBucketID
|
||||
}
|
||||
|
||||
// GetRemoteBucketIDOk returns a tuple with the RemoteBucketID field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ReplicationUpdateRequest) GetRemoteBucketIDOk() (*string, bool) {
|
||||
if o == nil || o.RemoteBucketID == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.RemoteBucketID, true
|
||||
}
|
||||
|
||||
// HasRemoteBucketID returns a boolean if a field has been set.
|
||||
func (o *ReplicationUpdateRequest) HasRemoteBucketID() bool {
|
||||
if o != nil && o.RemoteBucketID != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetRemoteBucketID gets a reference to the given string and assigns it to the RemoteBucketID field.
|
||||
func (o *ReplicationUpdateRequest) SetRemoteBucketID(v string) {
|
||||
o.RemoteBucketID = &v
|
||||
}
|
||||
|
||||
// GetMaxQueueSizeBytes returns the MaxQueueSizeBytes field value if set, zero value otherwise.
|
||||
func (o *ReplicationUpdateRequest) GetMaxQueueSizeBytes() int64 {
|
||||
if o == nil || o.MaxQueueSizeBytes == nil {
|
||||
var ret int64
|
||||
return ret
|
||||
}
|
||||
return *o.MaxQueueSizeBytes
|
||||
}
|
||||
|
||||
// GetMaxQueueSizeBytesOk returns a tuple with the MaxQueueSizeBytes field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ReplicationUpdateRequest) GetMaxQueueSizeBytesOk() (*int64, bool) {
|
||||
if o == nil || o.MaxQueueSizeBytes == nil {
|
||||
return nil, false
|
||||
}
|
||||
return o.MaxQueueSizeBytes, true
|
||||
}
|
||||
|
||||
// HasMaxQueueSizeBytes returns a boolean if a field has been set.
|
||||
func (o *ReplicationUpdateRequest) HasMaxQueueSizeBytes() bool {
|
||||
if o != nil && o.MaxQueueSizeBytes != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetMaxQueueSizeBytes gets a reference to the given int64 and assigns it to the MaxQueueSizeBytes field.
|
||||
func (o *ReplicationUpdateRequest) SetMaxQueueSizeBytes(v int64) {
|
||||
o.MaxQueueSizeBytes = &v
|
||||
}
|
||||
|
||||
func (o ReplicationUpdateRequest) MarshalJSON() ([]byte, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if o.Name != nil {
|
||||
toSerialize["name"] = o.Name
|
||||
}
|
||||
if o.Description != nil {
|
||||
toSerialize["description"] = o.Description
|
||||
}
|
||||
if o.RemoteID != nil {
|
||||
toSerialize["remoteID"] = o.RemoteID
|
||||
}
|
||||
if o.RemoteBucketID != nil {
|
||||
toSerialize["remoteBucketID"] = o.RemoteBucketID
|
||||
}
|
||||
if o.MaxQueueSizeBytes != nil {
|
||||
toSerialize["maxQueueSizeBytes"] = o.MaxQueueSizeBytes
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
type NullableReplicationUpdateRequest struct {
|
||||
value *ReplicationUpdateRequest
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableReplicationUpdateRequest) Get() *ReplicationUpdateRequest {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableReplicationUpdateRequest) Set(val *ReplicationUpdateRequest) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableReplicationUpdateRequest) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableReplicationUpdateRequest) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableReplicationUpdateRequest(val *ReplicationUpdateRequest) *NullableReplicationUpdateRequest {
|
||||
return &NullableReplicationUpdateRequest{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableReplicationUpdateRequest) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableReplicationUpdateRequest) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
Reference in New Issue
Block a user