-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated with build 3c7bdf04-cc43-4687-a17c-986c5ccf6893 from OmniCore…
…-SDK-Generator commit 09a85d05affbf6098408c51acf5e1cfae21c5054
- Loading branch information
1 parent
e63d2c7
commit 2bdb0e4
Showing
10 changed files
with
224 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Config | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**ConnectionParameter** | Pointer to **string** | | [optional] | ||
|
||
## Methods | ||
|
||
### NewConfig | ||
|
||
`func NewConfig() *Config` | ||
|
||
NewConfig instantiates a new Config 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 | ||
|
||
### NewConfigWithDefaults | ||
|
||
`func NewConfigWithDefaults() *Config` | ||
|
||
NewConfigWithDefaults instantiates a new Config 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 | ||
|
||
### GetConnectionParameter | ||
|
||
`func (o *Config) GetConnectionParameter() string` | ||
|
||
GetConnectionParameter returns the ConnectionParameter field if non-nil, zero value otherwise. | ||
|
||
### GetConnectionParameterOk | ||
|
||
`func (o *Config) GetConnectionParameterOk() (*string, bool)` | ||
|
||
GetConnectionParameterOk returns a tuple with the ConnectionParameter field if it's non-nil, zero value otherwise | ||
and a boolean to check if the value has been set. | ||
|
||
### SetConnectionParameter | ||
|
||
`func (o *Config) SetConnectionParameter(v string)` | ||
|
||
SetConnectionParameter sets ConnectionParameter field to given value. | ||
|
||
### HasConnectionParameter | ||
|
||
`func (o *Config) HasConnectionParameter() bool` | ||
|
||
HasConnectionParameter returns a boolean if a field has been set. | ||
|
||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
/* Copyright 2018-2020 KoreWireless | ||
* | ||
* This is part of the KoreWireless Omnicore SDK. | ||
* It is licensed under the BSD 3-Clause license; you may not use this file | ||
* except in compliance with the License. | ||
* | ||
* You may obtain a copy of the License at: | ||
* https://opensource.org/licenses/BSD-3-Clause | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
package OmniCore | ||
|
||
import ( | ||
"encoding/json" | ||
) | ||
|
||
// checks if the Config type satisfies the MappedNullable interface at compile time | ||
var _ MappedNullable = &Config{} | ||
|
||
// Config struct for Config | ||
type Config struct { | ||
ConnectionParameter *string `json:"connectionParameter,omitempty"` | ||
} | ||
|
||
// NewConfig instantiates a new Config 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 NewConfig() *Config { | ||
this := Config{} | ||
return &this | ||
} | ||
|
||
// NewConfigWithDefaults instantiates a new Config 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 NewConfigWithDefaults() *Config { | ||
this := Config{} | ||
return &this | ||
} | ||
|
||
// GetConnectionParameter returns the ConnectionParameter field value if set, zero value otherwise. | ||
func (o *Config) GetConnectionParameter() string { | ||
if o == nil || IsNil(o.ConnectionParameter) { | ||
var ret string | ||
return ret | ||
} | ||
return *o.ConnectionParameter | ||
} | ||
|
||
// GetConnectionParameterOk returns a tuple with the ConnectionParameter field value if set, nil otherwise | ||
// and a boolean to check if the value has been set. | ||
func (o *Config) GetConnectionParameterOk() (*string, bool) { | ||
if o == nil || IsNil(o.ConnectionParameter) { | ||
return nil, false | ||
} | ||
return o.ConnectionParameter, true | ||
} | ||
|
||
// HasConnectionParameter returns a boolean if a field has been set. | ||
func (o *Config) HasConnectionParameter() bool { | ||
if o != nil && !IsNil(o.ConnectionParameter) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetConnectionParameter gets a reference to the given string and assigns it to the ConnectionParameter field. | ||
func (o *Config) SetConnectionParameter(v string) { | ||
o.ConnectionParameter = &v | ||
} | ||
|
||
func (o Config) MarshalJSON() ([]byte, error) { | ||
toSerialize,err := o.ToMap() | ||
if err != nil { | ||
return []byte{}, err | ||
} | ||
return json.Marshal(toSerialize) | ||
} | ||
|
||
func (o Config) ToMap() (map[string]interface{}, error) { | ||
toSerialize := map[string]interface{}{} | ||
if !IsNil(o.ConnectionParameter) { | ||
toSerialize["connectionParameter"] = o.ConnectionParameter | ||
} | ||
return toSerialize, nil | ||
} | ||
|
||
type NullableConfig struct { | ||
value *Config | ||
isSet bool | ||
} | ||
|
||
func (v NullableConfig) Get() *Config { | ||
return v.value | ||
} | ||
|
||
func (v *NullableConfig) Set(val *Config) { | ||
v.value = val | ||
v.isSet = true | ||
} | ||
|
||
func (v NullableConfig) IsSet() bool { | ||
return v.isSet | ||
} | ||
|
||
func (v *NullableConfig) Unset() { | ||
v.value = nil | ||
v.isSet = false | ||
} | ||
|
||
func NewNullableConfig(val *Config) *NullableConfig { | ||
return &NullableConfig{value: val, isSet: true} | ||
} | ||
|
||
func (v NullableConfig) MarshalJSON() ([]byte, error) { | ||
return json.Marshal(v.value) | ||
} | ||
|
||
func (v *NullableConfig) UnmarshalJSON(src []byte) error { | ||
v.isSet = true | ||
return json.Unmarshal(src, &v.value) | ||
} | ||
|
||
|
Oops, something went wrong.