Skip to content

Commit

Permalink
Updated with build 3c7bdf04-cc43-4687-a17c-986c5ccf6893 from OmniCore…
Browse files Browse the repository at this point in the history
…-SDK-Generator commit 09a85d05affbf6098408c51acf5e1cfae21c5054
  • Loading branch information
jaisonjayan committed Jun 19, 2023
1 parent e63d2c7 commit 2bdb0e4
Show file tree
Hide file tree
Showing 10 changed files with 224 additions and 69 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
53 changes: 10 additions & 43 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -3112,6 +3112,13 @@ components:
- INFO
- ERROR
type: string
Config:
example:
connectionParameter: connectionParameter
properties:
connectionParameter:
type: string
type: object
ListSinks:
example:
sinks:
Expand All @@ -3134,7 +3141,7 @@ components:
properties:
sinks:
items:
$ref: '#/components/schemas/ListSinks_sinks_inner'
$ref: '#/components/schemas/Sink'
type: array
type: object
Sink:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down
56 changes: 56 additions & 0 deletions docs/Config.md
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)


8 changes: 4 additions & 4 deletions docs/ListSinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Sinks** | Pointer to [**[]ListSinksSinksInner**](ListSinksSinksInner.md) | | [optional]
**Sinks** | Pointer to [**[]Sink**](Sink.md) | | [optional]

## Methods

Expand All @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions docs/Sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.

Expand Down
133 changes: 133 additions & 0 deletions model_config.go
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)
}


Loading

0 comments on commit 2bdb0e4

Please sign in to comment.