BmltClient 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/BmltClient.gemspec +38 -0
- data/Gemfile +9 -0
- data/Makefile +22 -0
- data/README.md +157 -0
- data/Rakefile +10 -0
- data/docs/AuthenticationError.md +18 -0
- data/docs/AuthorizationError.md +18 -0
- data/docs/ErrorTest.md +22 -0
- data/docs/Format.md +24 -0
- data/docs/FormatAllOf.md +18 -0
- data/docs/FormatBase.md +22 -0
- data/docs/FormatCreate.md +22 -0
- data/docs/FormatPartialUpdate.md +22 -0
- data/docs/FormatTranslation.md +24 -0
- data/docs/FormatUpdate.md +22 -0
- data/docs/Meeting.md +90 -0
- data/docs/MeetingBase.md +88 -0
- data/docs/MeetingCreate.md +88 -0
- data/docs/MeetingPartialUpdate.md +88 -0
- data/docs/MeetingUpdate.md +88 -0
- data/docs/NotFoundError.md +18 -0
- data/docs/RootServerApi.md +1958 -0
- data/docs/ServerError.md +18 -0
- data/docs/ServiceBody.md +38 -0
- data/docs/ServiceBodyBase.md +36 -0
- data/docs/ServiceBodyCreate.md +36 -0
- data/docs/ServiceBodyPartialUpdate.md +36 -0
- data/docs/ServiceBodyUpdate.md +36 -0
- data/docs/Token.md +24 -0
- data/docs/TokenCredentials.md +20 -0
- data/docs/User.md +30 -0
- data/docs/UserBase.md +28 -0
- data/docs/UserCreate.md +30 -0
- data/docs/UserCreateAllOf.md +18 -0
- data/docs/UserPartialUpdate.md +30 -0
- data/docs/UserUpdate.md +30 -0
- data/docs/ValidationError.md +20 -0
- data/git_push.sh +57 -0
- data/lib/BmltClient/api/root_server_api.rb +1880 -0
- data/lib/BmltClient/api_client.rb +392 -0
- data/lib/BmltClient/api_error.rb +57 -0
- data/lib/BmltClient/configuration.rb +279 -0
- data/lib/BmltClient/models/authentication_error.rb +224 -0
- data/lib/BmltClient/models/authorization_error.rb +224 -0
- data/lib/BmltClient/models/error_test.rb +237 -0
- data/lib/BmltClient/models/format.rb +276 -0
- data/lib/BmltClient/models/format_all_of.rb +219 -0
- data/lib/BmltClient/models/format_base.rb +239 -0
- data/lib/BmltClient/models/format_create.rb +251 -0
- data/lib/BmltClient/models/format_partial_update.rb +246 -0
- data/lib/BmltClient/models/format_translation.rb +266 -0
- data/lib/BmltClient/models/format_update.rb +251 -0
- data/lib/BmltClient/models/meeting.rb +628 -0
- data/lib/BmltClient/models/meeting_base.rb +536 -0
- data/lib/BmltClient/models/meeting_create.rb +593 -0
- data/lib/BmltClient/models/meeting_partial_update.rb +593 -0
- data/lib/BmltClient/models/meeting_update.rb +593 -0
- data/lib/BmltClient/models/not_found_error.rb +224 -0
- data/lib/BmltClient/models/server_error.rb +224 -0
- data/lib/BmltClient/models/service_body.rb +374 -0
- data/lib/BmltClient/models/service_body_base.rb +302 -0
- data/lib/BmltClient/models/service_body_create.rb +339 -0
- data/lib/BmltClient/models/service_body_partial_update.rb +309 -0
- data/lib/BmltClient/models/service_body_update.rb +339 -0
- data/lib/BmltClient/models/token.rb +266 -0
- data/lib/BmltClient/models/token_credentials.rb +238 -0
- data/lib/BmltClient/models/user.rb +316 -0
- data/lib/BmltClient/models/user_base.rb +264 -0
- data/lib/BmltClient/models/user_create.rb +301 -0
- data/lib/BmltClient/models/user_create_all_of.rb +219 -0
- data/lib/BmltClient/models/user_partial_update.rb +281 -0
- data/lib/BmltClient/models/user_update.rb +296 -0
- data/lib/BmltClient/models/validation_error.rb +240 -0
- data/lib/BmltClient/version.rb +15 -0
- data/lib/BmltClient.rb +71 -0
- data/openapi.json +1 -0
- data/spec/api/root_server_api_spec.rb +377 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/authentication_error_spec.rb +34 -0
- data/spec/models/authorization_error_spec.rb +34 -0
- data/spec/models/error_test_spec.rb +46 -0
- data/spec/models/format_all_of_spec.rb +34 -0
- data/spec/models/format_base_spec.rb +46 -0
- data/spec/models/format_create_spec.rb +46 -0
- data/spec/models/format_partial_update_spec.rb +46 -0
- data/spec/models/format_spec.rb +52 -0
- data/spec/models/format_translation_spec.rb +52 -0
- data/spec/models/format_update_spec.rb +46 -0
- data/spec/models/meeting_base_spec.rb +244 -0
- data/spec/models/meeting_create_spec.rb +244 -0
- data/spec/models/meeting_partial_update_spec.rb +244 -0
- data/spec/models/meeting_spec.rb +250 -0
- data/spec/models/meeting_update_spec.rb +244 -0
- data/spec/models/not_found_error_spec.rb +34 -0
- data/spec/models/server_error_spec.rb +34 -0
- data/spec/models/service_body_base_spec.rb +88 -0
- data/spec/models/service_body_create_spec.rb +88 -0
- data/spec/models/service_body_partial_update_spec.rb +88 -0
- data/spec/models/service_body_spec.rb +94 -0
- data/spec/models/service_body_update_spec.rb +88 -0
- data/spec/models/token_credentials_spec.rb +40 -0
- data/spec/models/token_spec.rb +52 -0
- data/spec/models/user_base_spec.rb +64 -0
- data/spec/models/user_create_all_of_spec.rb +34 -0
- data/spec/models/user_create_spec.rb +70 -0
- data/spec/models/user_partial_update_spec.rb +70 -0
- data/spec/models/user_spec.rb +70 -0
- data/spec/models/user_update_spec.rb +70 -0
- data/spec/models/validation_error_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +229 -0
data/docs/ServerError.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# BmltClient::ServerError
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **message** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'BmltClient'
|
|
13
|
+
|
|
14
|
+
instance = BmltClient::ServerError.new(
|
|
15
|
+
message: Server Error
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/ServiceBody.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# BmltClient::ServiceBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **parent_id** | **Integer** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **description** | **String** | | |
|
|
10
|
+
| **type** | **String** | | |
|
|
11
|
+
| **admin_user_id** | **Integer** | | |
|
|
12
|
+
| **assigned_user_ids** | **Array<Integer>** | | |
|
|
13
|
+
| **url** | **String** | | |
|
|
14
|
+
| **helpline** | **String** | | |
|
|
15
|
+
| **email** | **String** | | |
|
|
16
|
+
| **world_id** | **String** | | |
|
|
17
|
+
| **id** | **Integer** | | |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'BmltClient'
|
|
23
|
+
|
|
24
|
+
instance = BmltClient::ServiceBody.new(
|
|
25
|
+
parent_id: 0,
|
|
26
|
+
name: string,
|
|
27
|
+
description: string,
|
|
28
|
+
type: string,
|
|
29
|
+
admin_user_id: 0,
|
|
30
|
+
assigned_user_ids: null,
|
|
31
|
+
url: string,
|
|
32
|
+
helpline: string,
|
|
33
|
+
email: string,
|
|
34
|
+
world_id: string,
|
|
35
|
+
id: 0
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# BmltClient::ServiceBodyBase
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **parent_id** | **Integer** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **description** | **String** | | [optional] |
|
|
10
|
+
| **type** | **String** | | [optional] |
|
|
11
|
+
| **admin_user_id** | **Integer** | | [optional] |
|
|
12
|
+
| **assigned_user_ids** | **Array<Integer>** | | [optional] |
|
|
13
|
+
| **url** | **String** | | [optional] |
|
|
14
|
+
| **helpline** | **String** | | [optional] |
|
|
15
|
+
| **email** | **String** | | [optional] |
|
|
16
|
+
| **world_id** | **String** | | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'BmltClient'
|
|
22
|
+
|
|
23
|
+
instance = BmltClient::ServiceBodyBase.new(
|
|
24
|
+
parent_id: 0,
|
|
25
|
+
name: string,
|
|
26
|
+
description: string,
|
|
27
|
+
type: string,
|
|
28
|
+
admin_user_id: 0,
|
|
29
|
+
assigned_user_ids: null,
|
|
30
|
+
url: string,
|
|
31
|
+
helpline: string,
|
|
32
|
+
email: string,
|
|
33
|
+
world_id: string
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# BmltClient::ServiceBodyCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **parent_id** | **Integer** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **description** | **String** | | |
|
|
10
|
+
| **type** | **String** | | |
|
|
11
|
+
| **admin_user_id** | **Integer** | | |
|
|
12
|
+
| **assigned_user_ids** | **Array<Integer>** | | |
|
|
13
|
+
| **url** | **String** | | [optional] |
|
|
14
|
+
| **helpline** | **String** | | [optional] |
|
|
15
|
+
| **email** | **String** | | [optional] |
|
|
16
|
+
| **world_id** | **String** | | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'BmltClient'
|
|
22
|
+
|
|
23
|
+
instance = BmltClient::ServiceBodyCreate.new(
|
|
24
|
+
parent_id: 0,
|
|
25
|
+
name: string,
|
|
26
|
+
description: string,
|
|
27
|
+
type: string,
|
|
28
|
+
admin_user_id: 0,
|
|
29
|
+
assigned_user_ids: null,
|
|
30
|
+
url: string,
|
|
31
|
+
helpline: string,
|
|
32
|
+
email: string,
|
|
33
|
+
world_id: string
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# BmltClient::ServiceBodyPartialUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **parent_id** | **Integer** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **description** | **String** | | [optional] |
|
|
10
|
+
| **type** | **String** | | [optional] |
|
|
11
|
+
| **admin_user_id** | **Integer** | | [optional] |
|
|
12
|
+
| **assigned_user_ids** | **Array<Integer>** | | [optional] |
|
|
13
|
+
| **url** | **String** | | [optional] |
|
|
14
|
+
| **helpline** | **String** | | [optional] |
|
|
15
|
+
| **email** | **String** | | [optional] |
|
|
16
|
+
| **world_id** | **String** | | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'BmltClient'
|
|
22
|
+
|
|
23
|
+
instance = BmltClient::ServiceBodyPartialUpdate.new(
|
|
24
|
+
parent_id: 0,
|
|
25
|
+
name: string,
|
|
26
|
+
description: string,
|
|
27
|
+
type: string,
|
|
28
|
+
admin_user_id: 0,
|
|
29
|
+
assigned_user_ids: null,
|
|
30
|
+
url: string,
|
|
31
|
+
helpline: string,
|
|
32
|
+
email: string,
|
|
33
|
+
world_id: string
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# BmltClient::ServiceBodyUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **parent_id** | **Integer** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **description** | **String** | | |
|
|
10
|
+
| **type** | **String** | | |
|
|
11
|
+
| **admin_user_id** | **Integer** | | |
|
|
12
|
+
| **assigned_user_ids** | **Array<Integer>** | | |
|
|
13
|
+
| **url** | **String** | | [optional] |
|
|
14
|
+
| **helpline** | **String** | | [optional] |
|
|
15
|
+
| **email** | **String** | | [optional] |
|
|
16
|
+
| **world_id** | **String** | | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'BmltClient'
|
|
22
|
+
|
|
23
|
+
instance = BmltClient::ServiceBodyUpdate.new(
|
|
24
|
+
parent_id: 0,
|
|
25
|
+
name: string,
|
|
26
|
+
description: string,
|
|
27
|
+
type: string,
|
|
28
|
+
admin_user_id: 0,
|
|
29
|
+
assigned_user_ids: null,
|
|
30
|
+
url: string,
|
|
31
|
+
helpline: string,
|
|
32
|
+
email: string,
|
|
33
|
+
world_id: string
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
data/docs/Token.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BmltClient::Token
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **access_token** | **String** | | |
|
|
8
|
+
| **expires_at** | **Integer** | | |
|
|
9
|
+
| **token_type** | **String** | | |
|
|
10
|
+
| **user_id** | **Integer** | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'BmltClient'
|
|
16
|
+
|
|
17
|
+
instance = BmltClient::Token.new(
|
|
18
|
+
access_token: 2|tR6PIqa8tiBJWMu4zyb3qw4eECuERjLd7xeLKgBu,
|
|
19
|
+
expires_at: 1667342171,
|
|
20
|
+
token_type: bearer,
|
|
21
|
+
user_id: 1
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BmltClient::TokenCredentials
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **password** | **String** | | |
|
|
8
|
+
| **username** | **String** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'BmltClient'
|
|
14
|
+
|
|
15
|
+
instance = BmltClient::TokenCredentials.new(
|
|
16
|
+
password: PassWord12345,
|
|
17
|
+
username: MyUsername
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/User.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# BmltClient::User
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | | |
|
|
8
|
+
| **type** | **String** | | |
|
|
9
|
+
| **display_name** | **String** | | |
|
|
10
|
+
| **description** | **String** | | |
|
|
11
|
+
| **email** | **String** | | |
|
|
12
|
+
| **owner_id** | **String** | | |
|
|
13
|
+
| **id** | **Integer** | | |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'BmltClient'
|
|
19
|
+
|
|
20
|
+
instance = BmltClient::User.new(
|
|
21
|
+
username: string,
|
|
22
|
+
type: string,
|
|
23
|
+
display_name: string,
|
|
24
|
+
description: string,
|
|
25
|
+
email: string,
|
|
26
|
+
owner_id: 0,
|
|
27
|
+
id: 0
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
data/docs/UserBase.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# BmltClient::UserBase
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | | [optional] |
|
|
8
|
+
| **type** | **String** | | [optional] |
|
|
9
|
+
| **display_name** | **String** | | [optional] |
|
|
10
|
+
| **description** | **String** | | [optional] |
|
|
11
|
+
| **email** | **String** | | [optional] |
|
|
12
|
+
| **owner_id** | **String** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'BmltClient'
|
|
18
|
+
|
|
19
|
+
instance = BmltClient::UserBase.new(
|
|
20
|
+
username: string,
|
|
21
|
+
type: string,
|
|
22
|
+
display_name: string,
|
|
23
|
+
description: string,
|
|
24
|
+
email: string,
|
|
25
|
+
owner_id: 0
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/UserCreate.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# BmltClient::UserCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | | |
|
|
8
|
+
| **type** | **String** | | |
|
|
9
|
+
| **display_name** | **String** | | |
|
|
10
|
+
| **description** | **String** | | [optional] |
|
|
11
|
+
| **email** | **String** | | [optional] |
|
|
12
|
+
| **owner_id** | **String** | | [optional] |
|
|
13
|
+
| **password** | **String** | | |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'BmltClient'
|
|
19
|
+
|
|
20
|
+
instance = BmltClient::UserCreate.new(
|
|
21
|
+
username: string,
|
|
22
|
+
type: string,
|
|
23
|
+
display_name: string,
|
|
24
|
+
description: string,
|
|
25
|
+
email: string,
|
|
26
|
+
owner_id: 0,
|
|
27
|
+
password: string
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# BmltClient::UserCreateAllOf
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **password** | **String** | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'BmltClient'
|
|
13
|
+
|
|
14
|
+
instance = BmltClient::UserCreateAllOf.new(
|
|
15
|
+
password: string
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# BmltClient::UserPartialUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | | [optional] |
|
|
8
|
+
| **type** | **String** | | [optional] |
|
|
9
|
+
| **display_name** | **String** | | [optional] |
|
|
10
|
+
| **description** | **String** | | [optional] |
|
|
11
|
+
| **email** | **String** | | [optional] |
|
|
12
|
+
| **owner_id** | **String** | | [optional] |
|
|
13
|
+
| **password** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'BmltClient'
|
|
19
|
+
|
|
20
|
+
instance = BmltClient::UserPartialUpdate.new(
|
|
21
|
+
username: string,
|
|
22
|
+
type: string,
|
|
23
|
+
display_name: string,
|
|
24
|
+
description: string,
|
|
25
|
+
email: string,
|
|
26
|
+
owner_id: 0,
|
|
27
|
+
password: string
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
data/docs/UserUpdate.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# BmltClient::UserUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **username** | **String** | | |
|
|
8
|
+
| **type** | **String** | | |
|
|
9
|
+
| **display_name** | **String** | | |
|
|
10
|
+
| **description** | **String** | | [optional] |
|
|
11
|
+
| **email** | **String** | | [optional] |
|
|
12
|
+
| **owner_id** | **String** | | [optional] |
|
|
13
|
+
| **password** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'BmltClient'
|
|
19
|
+
|
|
20
|
+
instance = BmltClient::UserUpdate.new(
|
|
21
|
+
username: string,
|
|
22
|
+
type: string,
|
|
23
|
+
display_name: string,
|
|
24
|
+
description: string,
|
|
25
|
+
email: string,
|
|
26
|
+
owner_id: 0,
|
|
27
|
+
password: string
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BmltClient::ValidationError
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **message** | **String** | | |
|
|
8
|
+
| **errors** | **Hash<String, Array<String>>** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'BmltClient'
|
|
14
|
+
|
|
15
|
+
instance = BmltClient::ValidationError.new(
|
|
16
|
+
message: The field is required. (and 1 more error),
|
|
17
|
+
errors: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="bmlt-enabled"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="bmlt-root-server-ruby-client"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|