autosde_openapi_client 1.1.26 → 1.1.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e443ae5897a2f748e43b2cc64c3a6edd3926d6c3c69bcb6171dfbc7b6e1ada5
4
- data.tar.gz: 74dd7fe5014e0f1d6ad531fa66888546a5349f70c8c4f63509b65136c49c0616
3
+ metadata.gz: eb75de6ca7c68e3a0229facd745a56e9855fc45f62b631ae0536934a7abaeee4
4
+ data.tar.gz: 11f8cb84ea4a20f4b0cfcc6d8c989a24128d7a002473e71dd75a2fa21193f85d
5
5
  SHA512:
6
- metadata.gz: d1c3a2f4c666abac42ff8da0c3d340e611cf2bbc04f343377d62fa485ce98d50ce87e2472115a07cc56066ae4eb43817286cdaf9285e860edeb3550e322a3e35
7
- data.tar.gz: 9b6a4b2953ff4f884e55b2e285d0ba788d9fb2e80fc7eda3fd41164000c44cb668b865bb0fb4dd28c189a2d7347d44c803c46766841dd5052a9aa8a7dc5f8831
6
+ metadata.gz: 6bcd76249df96c52a36ee59ff4f54b3927284d1ad75e3c482fa8526c4ed2174131436dd229004adfa9da6ec8ae9814d6b3f3366de2f615634103c010514f90b0
7
+ data.tar.gz: ff64efd3555876f898b0b1abc96182b5531bc8d468402595186f366380213feb869c1c7a40be5d26805d491d3399e5ee10709d27e219fe5f98c1c0635dbf990c
data/README.md CHANGED
@@ -130,6 +130,8 @@ Class | Method | HTTP request | Description
130
130
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_pk_get**](docs/HostVolumeConnectionApi.md#host_volume_connection_pk_get) | **GET** /host-volume-connection/{pk} |
131
131
  *AutosdeOpenapiClient::HostVolumeConnectionApi* | [**host_volume_connection_post**](docs/HostVolumeConnectionApi.md#host_volume_connection_post) | **POST** /host-volume-connection |
132
132
  *AutosdeOpenapiClient::JobApi* | [**jobs_get**](docs/JobApi.md#jobs_get) | **GET** /jobs |
133
+ *AutosdeOpenapiClient::JobApi* | [**jobs_pk_delete**](docs/JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} |
134
+ *AutosdeOpenapiClient::JobApi* | [**jobs_pk_get**](docs/JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} |
133
135
  *AutosdeOpenapiClient::JobApi* | [**jobs_post**](docs/JobApi.md#jobs_post) | **POST** /jobs |
134
136
  *AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_get**](docs/NativeCapabilityApi.md#native_capabilities_get) | **GET** /native-capabilities |
135
137
  *AutosdeOpenapiClient::NativeCapabilityApi* | [**native_capabilities_pk_delete**](docs/NativeCapabilityApi.md#native_capabilities_pk_delete) | **DELETE** /native-capabilities/{pk} |
data/docs/Job.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **date_finished** | **Time** | date_finished | [optional] |
8
8
  | **date_started** | **Time** | date_started | [optional] |
9
+ | **extra** | **String** | extra | [optional] |
9
10
  | **status** | **String** | status | [optional] |
10
11
  | **task_args** | **String** | task_args | [optional] |
11
12
  | **task_id** | **String** | task_id | [optional] |
@@ -20,6 +21,7 @@ require 'autosde_openapi_client'
20
21
  instance = AutosdeOpenapiClient::Job.new(
21
22
  date_finished: null,
22
23
  date_started: null,
24
+ extra: null,
23
25
  status: null,
24
26
  task_args: null,
25
27
  task_id: null,
data/docs/JobApi.md CHANGED
@@ -5,6 +5,8 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**jobs_get**](JobApi.md#jobs_get) | **GET** /jobs | |
8
+ | [**jobs_pk_delete**](JobApi.md#jobs_pk_delete) | **DELETE** /jobs/{pk} | |
9
+ | [**jobs_pk_get**](JobApi.md#jobs_pk_get) | **GET** /jobs/{pk} | |
8
10
  | [**jobs_post**](JobApi.md#jobs_post) | **POST** /jobs | |
9
11
 
10
12
 
@@ -72,6 +74,140 @@ This endpoint does not need any parameter.
72
74
  - **Accept**: */*
73
75
 
74
76
 
77
+ ## jobs_pk_delete
78
+
79
+ > <Array<Job>> jobs_pk_delete(pk)
80
+
81
+
82
+
83
+ ### Examples
84
+
85
+ ```ruby
86
+ require 'time'
87
+ require 'autosde_openapi_client'
88
+ # setup authorization
89
+ AutosdeOpenapiClient.configure do |config|
90
+ # Configure Bearer authorization: bearerAuth
91
+ config.access_token = 'YOUR_BEARER_TOKEN'
92
+ end
93
+
94
+ api_instance = AutosdeOpenapiClient::JobApi.new
95
+ pk = 56 # Integer |
96
+
97
+ begin
98
+
99
+ result = api_instance.jobs_pk_delete(pk)
100
+ p result
101
+ rescue AutosdeOpenapiClient::ApiError => e
102
+ puts "Error when calling JobApi->jobs_pk_delete: #{e}"
103
+ end
104
+ ```
105
+
106
+ #### Using the jobs_pk_delete_with_http_info variant
107
+
108
+ This returns an Array which contains the response data, status code and headers.
109
+
110
+ > <Array(<Array<Job>>, Integer, Hash)> jobs_pk_delete_with_http_info(pk)
111
+
112
+ ```ruby
113
+ begin
114
+
115
+ data, status_code, headers = api_instance.jobs_pk_delete_with_http_info(pk)
116
+ p status_code # => 2xx
117
+ p headers # => { ... }
118
+ p data # => <Array<Job>>
119
+ rescue AutosdeOpenapiClient::ApiError => e
120
+ puts "Error when calling JobApi->jobs_pk_delete_with_http_info: #{e}"
121
+ end
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+ | Name | Type | Description | Notes |
127
+ | ---- | ---- | ----------- | ----- |
128
+ | **pk** | **Integer** | | |
129
+
130
+ ### Return type
131
+
132
+ [**Array&lt;Job&gt;**](Job.md)
133
+
134
+ ### Authorization
135
+
136
+ [bearerAuth](../README.md#bearerAuth)
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: */*
142
+
143
+
144
+ ## jobs_pk_get
145
+
146
+ > <Array<Job>> jobs_pk_get(pk)
147
+
148
+
149
+
150
+ ### Examples
151
+
152
+ ```ruby
153
+ require 'time'
154
+ require 'autosde_openapi_client'
155
+ # setup authorization
156
+ AutosdeOpenapiClient.configure do |config|
157
+ # Configure Bearer authorization: bearerAuth
158
+ config.access_token = 'YOUR_BEARER_TOKEN'
159
+ end
160
+
161
+ api_instance = AutosdeOpenapiClient::JobApi.new
162
+ pk = 56 # Integer |
163
+
164
+ begin
165
+
166
+ result = api_instance.jobs_pk_get(pk)
167
+ p result
168
+ rescue AutosdeOpenapiClient::ApiError => e
169
+ puts "Error when calling JobApi->jobs_pk_get: #{e}"
170
+ end
171
+ ```
172
+
173
+ #### Using the jobs_pk_get_with_http_info variant
174
+
175
+ This returns an Array which contains the response data, status code and headers.
176
+
177
+ > <Array(<Array<Job>>, Integer, Hash)> jobs_pk_get_with_http_info(pk)
178
+
179
+ ```ruby
180
+ begin
181
+
182
+ data, status_code, headers = api_instance.jobs_pk_get_with_http_info(pk)
183
+ p status_code # => 2xx
184
+ p headers # => { ... }
185
+ p data # => <Array<Job>>
186
+ rescue AutosdeOpenapiClient::ApiError => e
187
+ puts "Error when calling JobApi->jobs_pk_get_with_http_info: #{e}"
188
+ end
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ | Name | Type | Description | Notes |
194
+ | ---- | ---- | ----------- | ----- |
195
+ | **pk** | **Integer** | | |
196
+
197
+ ### Return type
198
+
199
+ [**Array&lt;Job&gt;**](Job.md)
200
+
201
+ ### Authorization
202
+
203
+ [bearerAuth](../README.md#bearerAuth)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: Not defined
208
+ - **Accept**: */*
209
+
210
+
75
211
  ## jobs_post
76
212
 
77
213
  > <Job> jobs_post(job_create)
data/docs/JobCreate.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **task_args** | **String** | task_args | [optional] |
7
+ | **task_kwargs** | **String** | task_kwargs | [optional] |
8
8
  | **task_name** | **String** | task_name | [optional] |
9
9
 
10
10
  ## Example
@@ -13,7 +13,7 @@
13
13
  require 'autosde_openapi_client'
14
14
 
15
15
  instance = AutosdeOpenapiClient::JobCreate.new(
16
- task_args: null,
16
+ task_kwargs: null,
17
17
  task_name: null
18
18
  )
19
19
  ```
@@ -72,6 +72,124 @@ module AutosdeOpenapiClient
72
72
  return data, status_code, headers
73
73
  end
74
74
 
75
+ # @param pk [Integer]
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [Array<Job>]
78
+ def jobs_pk_delete(pk, opts = {})
79
+ data, _status_code, _headers = jobs_pk_delete_with_http_info(pk, opts)
80
+ data
81
+ end
82
+
83
+ # @param pk [Integer]
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
86
+ def jobs_pk_delete_with_http_info(pk, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: JobApi.jobs_pk_delete ...'
89
+ end
90
+ # verify the required parameter 'pk' is set
91
+ if @api_client.config.client_side_validation && pk.nil?
92
+ fail ArgumentError, "Missing the required parameter 'pk' when calling JobApi.jobs_pk_delete"
93
+ end
94
+ # resource path
95
+ local_var_path = '/jobs/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
104
+
105
+ # form parameters
106
+ form_params = opts[:form_params] || {}
107
+
108
+ # http body (model)
109
+ post_body = opts[:debug_body]
110
+
111
+ # return_type
112
+ return_type = opts[:debug_return_type] || 'Array<Job>'
113
+
114
+ # auth_names
115
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
116
+
117
+ new_options = opts.merge(
118
+ :operation => :"JobApi.jobs_pk_delete",
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => return_type
125
+ )
126
+
127
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: JobApi#jobs_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+
134
+ # @param pk [Integer]
135
+ # @param [Hash] opts the optional parameters
136
+ # @return [Array<Job>]
137
+ def jobs_pk_get(pk, opts = {})
138
+ data, _status_code, _headers = jobs_pk_get_with_http_info(pk, opts)
139
+ data
140
+ end
141
+
142
+ # @param pk [Integer]
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [Array<(Array<Job>, Integer, Hash)>] Array<Job> data, response status code and response headers
145
+ def jobs_pk_get_with_http_info(pk, opts = {})
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug 'Calling API: JobApi.jobs_pk_get ...'
148
+ end
149
+ # verify the required parameter 'pk' is set
150
+ if @api_client.config.client_side_validation && pk.nil?
151
+ fail ArgumentError, "Missing the required parameter 'pk' when calling JobApi.jobs_pk_get"
152
+ end
153
+ # resource path
154
+ local_var_path = '/jobs/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
163
+
164
+ # form parameters
165
+ form_params = opts[:form_params] || {}
166
+
167
+ # http body (model)
168
+ post_body = opts[:debug_body]
169
+
170
+ # return_type
171
+ return_type = opts[:debug_return_type] || 'Array<Job>'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
175
+
176
+ new_options = opts.merge(
177
+ :operation => :"JobApi.jobs_pk_get",
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => return_type
184
+ )
185
+
186
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: JobApi#jobs_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
192
+
75
193
  # @param job_create [JobCreate]
76
194
  # @param [Hash] opts the optional parameters
77
195
  # @return [Job]
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
22
22
  # date_started
23
23
  attr_accessor :date_started
24
24
 
25
+ # extra
26
+ attr_accessor :extra
27
+
25
28
  # status
26
29
  attr_accessor :status
27
30
 
@@ -42,6 +45,7 @@ module AutosdeOpenapiClient
42
45
  {
43
46
  :'date_finished' => :'date_finished',
44
47
  :'date_started' => :'date_started',
48
+ :'extra' => :'extra',
45
49
  :'status' => :'status',
46
50
  :'task_args' => :'task_args',
47
51
  :'task_id' => :'task_id',
@@ -60,6 +64,7 @@ module AutosdeOpenapiClient
60
64
  {
61
65
  :'date_finished' => :'Time',
62
66
  :'date_started' => :'Time',
67
+ :'extra' => :'String',
63
68
  :'status' => :'String',
64
69
  :'task_args' => :'String',
65
70
  :'task_id' => :'String',
@@ -97,6 +102,10 @@ module AutosdeOpenapiClient
97
102
  self.date_started = attributes[:'date_started']
98
103
  end
99
104
 
105
+ if attributes.key?(:'extra')
106
+ self.extra = attributes[:'extra']
107
+ end
108
+
100
109
  if attributes.key?(:'status')
101
110
  self.status = attributes[:'status']
102
111
  end
@@ -138,6 +147,7 @@ module AutosdeOpenapiClient
138
147
  self.class == o.class &&
139
148
  date_finished == o.date_finished &&
140
149
  date_started == o.date_started &&
150
+ extra == o.extra &&
141
151
  status == o.status &&
142
152
  task_args == o.task_args &&
143
153
  task_id == o.task_id &&
@@ -154,7 +164,7 @@ module AutosdeOpenapiClient
154
164
  # Calculates hash code according to all attributes.
155
165
  # @return [Integer] Hash code
156
166
  def hash
157
- [date_finished, date_started, status, task_args, task_id, task_kwargs, task_name].hash
167
+ [date_finished, date_started, extra, status, task_args, task_id, task_kwargs, task_name].hash
158
168
  end
159
169
 
160
170
  # Builds the object from hash
@@ -16,8 +16,8 @@ require 'time'
16
16
  module AutosdeOpenapiClient
17
17
  # JobCreate
18
18
  class JobCreate
19
- # task_args
20
- attr_accessor :task_args
19
+ # task_kwargs
20
+ attr_accessor :task_kwargs
21
21
 
22
22
  # task_name
23
23
  attr_accessor :task_name
@@ -25,7 +25,7 @@ module AutosdeOpenapiClient
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'task_args' => :'task_args',
28
+ :'task_kwargs' => :'task_kwargs',
29
29
  :'task_name' => :'task_name'
30
30
  }
31
31
  end
@@ -38,7 +38,7 @@ module AutosdeOpenapiClient
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'task_args' => :'String',
41
+ :'task_kwargs' => :'String',
42
42
  :'task_name' => :'String'
43
43
  }
44
44
  end
@@ -64,8 +64,8 @@ module AutosdeOpenapiClient
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'task_args')
68
- self.task_args = attributes[:'task_args']
67
+ if attributes.key?(:'task_kwargs')
68
+ self.task_kwargs = attributes[:'task_kwargs']
69
69
  end
70
70
 
71
71
  if attributes.key?(:'task_name')
@@ -91,7 +91,7 @@ module AutosdeOpenapiClient
91
91
  def ==(o)
92
92
  return true if self.equal?(o)
93
93
  self.class == o.class &&
94
- task_args == o.task_args &&
94
+ task_kwargs == o.task_kwargs &&
95
95
  task_name == o.task_name
96
96
  end
97
97
 
@@ -104,7 +104,7 @@ module AutosdeOpenapiClient
104
104
  # Calculates hash code according to all attributes.
105
105
  # @return [Integer] Hash code
106
106
  def hash
107
- [task_args, task_name].hash
107
+ [task_kwargs, task_name].hash
108
108
  end
109
109
 
110
110
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.1.26
6
+ The version of the OpenAPI document: 1.1.27
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
11
11
  =end
12
12
 
13
13
  module AutosdeOpenapiClient
14
- VERSION = '1.1.26'
14
+ VERSION = '1.1.27'
15
15
  end
@@ -41,6 +41,26 @@ describe 'JobApi' do
41
41
  end
42
42
  end
43
43
 
44
+ # unit tests for jobs_pk_delete
45
+ # @param pk
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<Job>]
48
+ describe 'jobs_pk_delete test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for jobs_pk_get
55
+ # @param pk
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [Array<Job>]
58
+ describe 'jobs_pk_get test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
44
64
  # unit tests for jobs_post
45
65
  # @param job_create
46
66
  # @param [Hash] opts the optional parameters
@@ -25,7 +25,7 @@ describe AutosdeOpenapiClient::JobCreate do
25
25
  expect(instance).to be_instance_of(AutosdeOpenapiClient::JobCreate)
26
26
  end
27
27
  end
28
- describe 'test attribute "task_args"' do
28
+ describe 'test attribute "task_kwargs"' do
29
29
  it 'should work' do
30
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
31
  end
@@ -37,6 +37,12 @@ describe AutosdeOpenapiClient::Job do
37
37
  end
38
38
  end
39
39
 
40
+ describe 'test attribute "extra"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
40
46
  describe 'test attribute "status"' do
41
47
  it 'should work' do
42
48
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autosde_openapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.26
4
+ version: 1.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator