diff --git a/README.md b/README.md index 8199ba6..2d958c5 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ This is an OmniCore Model and State Management server. ## Overview -- API version: 1.0 -- Package version: 1.8.0 +- API version: 1.8.1 +- Package version: 1.8.1 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [http://www.korewireless.com](http://www.korewireless.com) @@ -110,6 +110,7 @@ Class | Method | HTTP request | Description - [BindRequest](docs/BindRequest.md) - [BindRequestIdsGateway](docs/BindRequestIdsGateway.md) - [BlockCommunicationBody](docs/BlockCommunicationBody.md) + - [Config](docs/Config.md) - [CustomOnboard](docs/CustomOnboard.md) - [Device](docs/Device.md) - [DeviceCommand](docs/DeviceCommand.md) @@ -130,8 +131,6 @@ Class | Method | HTTP request | Description - [ListDeviceStatesResponse](docs/ListDeviceStatesResponse.md) - [ListDevicesResponse](docs/ListDevicesResponse.md) - [ListSinks](docs/ListSinks.md) - - [ListSinksSinksInner](docs/ListSinksSinksInner.md) - - [ListSinksSinksInnerConfig](docs/ListSinksSinksInnerConfig.md) - [LogLevel](docs/LogLevel.md) - [Metrics](docs/Metrics.md) - [MetricsDetails](docs/MetricsDetails.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index e6043de..e093b49 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6,7 +6,7 @@ info: url: http://www.korewireless.com description: This is an OmniCore Model and State Management server. title: OmniCore Model and State Management API - version: "1.0" + version: 1.8.1 servers: - description: Production Server url: https://api.korewireless.com/omnicore @@ -3112,6 +3112,13 @@ components: - INFO - ERROR type: string + Config: + example: + connectionParameter: connectionParameter + properties: + connectionParameter: + type: string + type: object ListSinks: example: sinks: @@ -3134,7 +3141,7 @@ components: properties: sinks: items: - $ref: '#/components/schemas/ListSinks_sinks_inner' + $ref: '#/components/schemas/Sink' type: array type: object Sink: @@ -3159,7 +3166,7 @@ components: - pubsub type: string config: - $ref: '#/components/schemas/ListSinks_sinks_inner_config' + $ref: '#/components/schemas/Config' status: readOnly: true type: boolean @@ -3207,46 +3214,6 @@ components: details: $ref: '#/components/schemas/Metrics_details' type: object - ListSinks_sinks_inner_config: - example: - connectionParameter: connectionParameter - properties: - connectionParameter: - type: string - type: object - ListSinks_sinks_inner: - example: - sink: pubsub - id: id - subscription: subscription - updatedon: updatedon - config: - connectionParameter: connectionParameter - createdon: createdon - status: true - properties: - id: - readOnly: true - type: string - subscription: - readOnly: true - type: string - sink: - enum: - - pubsub - type: string - config: - $ref: '#/components/schemas/ListSinks_sinks_inner_config' - status: - readOnly: true - type: boolean - createdon: - readOnly: true - type: string - updatedon: - readOnly: true - type: string - type: object Metrics_details: example: noOfRegistries: 4 diff --git a/client.go b/client.go index f084c5e..4279d3d 100644 --- a/client.go +++ b/client.go @@ -48,7 +48,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the OmniCore Model and State Management API API v1.0 +// APIClient manages communication with the OmniCore Model and State Management API API v1.8.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 400dd1d..9dabb24 100644 --- a/configuration.go +++ b/configuration.go @@ -99,7 +99,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.8.0/go", + UserAgent: "OpenAPI-Generator/1.8.1/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/Config.md b/docs/Config.md new file mode 100644 index 0000000..f7976ed --- /dev/null +++ b/docs/Config.md @@ -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) + + diff --git a/docs/ListSinks.md b/docs/ListSinks.md index 6b9ffcb..6474882 100644 --- a/docs/ListSinks.md +++ b/docs/ListSinks.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Sinks** | Pointer to [**[]ListSinksSinksInner**](ListSinksSinksInner.md) | | [optional] +**Sinks** | Pointer to [**[]Sink**](Sink.md) | | [optional] ## Methods @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetSinks -`func (o *ListSinks) GetSinks() []ListSinksSinksInner` +`func (o *ListSinks) GetSinks() []Sink` GetSinks returns the Sinks field if non-nil, zero value otherwise. ### GetSinksOk -`func (o *ListSinks) GetSinksOk() (*[]ListSinksSinksInner, bool)` +`func (o *ListSinks) GetSinksOk() (*[]Sink, bool)` GetSinksOk returns a tuple with the Sinks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSinks -`func (o *ListSinks) SetSinks(v []ListSinksSinksInner)` +`func (o *ListSinks) SetSinks(v []Sink)` SetSinks sets Sinks field to given value. diff --git a/docs/Sink.md b/docs/Sink.md index 4d9fb24..efed456 100644 --- a/docs/Sink.md +++ b/docs/Sink.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | | [optional] [readonly] **Subscription** | Pointer to **string** | | [optional] [readonly] **Sink** | Pointer to **string** | | [optional] -**Config** | Pointer to [**ListSinksSinksInnerConfig**](ListSinksSinksInnerConfig.md) | | [optional] +**Config** | Pointer to [**Config**](Config.md) | | [optional] **Status** | Pointer to **bool** | | [optional] [readonly] **Createdon** | Pointer to **string** | | [optional] [readonly] **Updatedon** | Pointer to **string** | | [optional] [readonly] @@ -108,20 +108,20 @@ HasSink returns a boolean if a field has been set. ### GetConfig -`func (o *Sink) GetConfig() ListSinksSinksInnerConfig` +`func (o *Sink) GetConfig() Config` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *Sink) GetConfigOk() (*ListSinksSinksInnerConfig, bool)` +`func (o *Sink) GetConfigOk() (*Config, bool)` GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfig -`func (o *Sink) SetConfig(v ListSinksSinksInnerConfig)` +`func (o *Sink) SetConfig(v Config)` SetConfig sets Config field to given value. diff --git a/model_config.go b/model_config.go new file mode 100644 index 0000000..fdc305f --- /dev/null +++ b/model_config.go @@ -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) +} + + diff --git a/model_list_sinks.go b/model_list_sinks.go index 45e050e..46ba612 100644 --- a/model_list_sinks.go +++ b/model_list_sinks.go @@ -26,7 +26,7 @@ var _ MappedNullable = &ListSinks{} // ListSinks struct for ListSinks type ListSinks struct { - Sinks []ListSinksSinksInner `json:"sinks,omitempty"` + Sinks []Sink `json:"sinks,omitempty"` } // NewListSinks instantiates a new ListSinks object @@ -47,9 +47,9 @@ func NewListSinksWithDefaults() *ListSinks { } // GetSinks returns the Sinks field value if set, zero value otherwise. -func (o *ListSinks) GetSinks() []ListSinksSinksInner { +func (o *ListSinks) GetSinks() []Sink { if o == nil || IsNil(o.Sinks) { - var ret []ListSinksSinksInner + var ret []Sink return ret } return o.Sinks @@ -57,7 +57,7 @@ func (o *ListSinks) GetSinks() []ListSinksSinksInner { // GetSinksOk returns a tuple with the Sinks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListSinks) GetSinksOk() ([]ListSinksSinksInner, bool) { +func (o *ListSinks) GetSinksOk() ([]Sink, bool) { if o == nil || IsNil(o.Sinks) { return nil, false } @@ -73,8 +73,8 @@ func (o *ListSinks) HasSinks() bool { return false } -// SetSinks gets a reference to the given []ListSinksSinksInner and assigns it to the Sinks field. -func (o *ListSinks) SetSinks(v []ListSinksSinksInner) { +// SetSinks gets a reference to the given []Sink and assigns it to the Sinks field. +func (o *ListSinks) SetSinks(v []Sink) { o.Sinks = v } diff --git a/model_sink.go b/model_sink.go index 70fb3a2..0911283 100644 --- a/model_sink.go +++ b/model_sink.go @@ -29,7 +29,7 @@ type Sink struct { Id *string `json:"id,omitempty"` Subscription *string `json:"subscription,omitempty"` Sink *string `json:"sink,omitempty"` - Config *ListSinksSinksInnerConfig `json:"config,omitempty"` + Config *Config `json:"config,omitempty"` Status *bool `json:"status,omitempty"` Createdon *string `json:"createdon,omitempty"` Updatedon *string `json:"updatedon,omitempty"` @@ -149,9 +149,9 @@ func (o *Sink) SetSink(v string) { } // GetConfig returns the Config field value if set, zero value otherwise. -func (o *Sink) GetConfig() ListSinksSinksInnerConfig { +func (o *Sink) GetConfig() Config { if o == nil || IsNil(o.Config) { - var ret ListSinksSinksInnerConfig + var ret Config return ret } return *o.Config @@ -159,7 +159,7 @@ func (o *Sink) GetConfig() ListSinksSinksInnerConfig { // GetConfigOk returns a tuple with the Config field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Sink) GetConfigOk() (*ListSinksSinksInnerConfig, bool) { +func (o *Sink) GetConfigOk() (*Config, bool) { if o == nil || IsNil(o.Config) { return nil, false } @@ -175,8 +175,8 @@ func (o *Sink) HasConfig() bool { return false } -// SetConfig gets a reference to the given ListSinksSinksInnerConfig and assigns it to the Config field. -func (o *Sink) SetConfig(v ListSinksSinksInnerConfig) { +// SetConfig gets a reference to the given Config and assigns it to the Config field. +func (o *Sink) SetConfig(v Config) { o.Config = &v }