lightning-sdk 0.2.18__py3-none-any.whl → 0.2.20__py3-none-any.whl

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.
Files changed (68) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +2 -0
  3. lightning_sdk/api/license_api.py +28 -6
  4. lightning_sdk/cli/deploy/_auth.py +11 -19
  5. lightning_sdk/cli/entrypoint.py +20 -2
  6. lightning_sdk/deployment/deployment.py +2 -0
  7. lightning_sdk/lightning_cloud/login.py +2 -2
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +10 -2
  9. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  10. lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
  12. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +121 -0
  13. lightning_sdk/lightning_cloud/openapi/models/__init__.py +9 -2
  14. lightning_sdk/lightning_cloud/openapi/models/alertingevents_id_body.py +409 -0
  15. lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +253 -0
  16. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/id_codeconfig_body.py +29 -3
  18. lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +123 -0
  19. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -157
  20. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  21. lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_author.py +201 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +383 -0
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +253 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_alerting_policy_type.py +1 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +157 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +237 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +53 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_list_blog_posts_response.py +175 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_notification_type.py +1 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +261 -157
  44. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +53 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +199 -17
  49. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +4 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +105 -27
  55. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +249 -145
  56. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +499 -31
  57. lightning_sdk/lightning_cloud/rest_client.py +13 -11
  58. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +8 -3
  59. lightning_sdk/serve.py +1 -0
  60. lightning_sdk/services/license.py +148 -27
  61. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/METADATA +1 -1
  62. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/RECORD +66 -58
  63. lightning_sdk/lightning_cloud/openapi/models/v1_ebs.py +0 -279
  64. lightning_sdk/lightning_cloud/openapi/models/v1_reservation_billing_session.py +0 -279
  65. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/LICENSE +0 -0
  66. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/WHEEL +0 -0
  67. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/entry_points.txt +0 -0
  68. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.20.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,533 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ from __future__ import absolute_import
21
+
22
+ import re # noqa: F401
23
+ from typing import TYPE_CHECKING, Any
24
+
25
+ # python 2 and python 3 compatibility library
26
+ import six
27
+
28
+ from lightning_sdk.lightning_cloud.openapi.api_client import ApiClient
29
+
30
+ if TYPE_CHECKING:
31
+ from datetime import datetime
32
+ from lightning_sdk.lightning_cloud.openapi.models import *
33
+
34
+ class BlogPostsServiceApi(object):
35
+ """NOTE: This class is auto generated by the swagger code generator program.
36
+
37
+ Do not edit the class manually.
38
+ Ref: https://github.com/swagger-api/swagger-codegen
39
+ """
40
+
41
+ def __init__(self, api_client=None):
42
+ if api_client is None:
43
+ api_client = ApiClient()
44
+ self.api_client = api_client
45
+
46
+ def blog_posts_service_create_blog_post(self, body: 'V1CreateBlogPostRequest', **kwargs) -> 'V1BlogPost': # noqa: E501
47
+ """blog_posts_service_create_blog_post # noqa: E501
48
+
49
+ This method makes a synchronous HTTP request by default. To make an
50
+ asynchronous HTTP request, please pass async_req=True
51
+ >>> thread = api.blog_posts_service_create_blog_post(body, async_req=True)
52
+ >>> result = thread.get()
53
+
54
+ :param async_req bool
55
+ :param V1CreateBlogPostRequest body: (required)
56
+ :return: V1BlogPost
57
+ If the method is called asynchronously,
58
+ returns the request thread.
59
+ """
60
+ kwargs['_return_http_data_only'] = True
61
+ if kwargs.get('async_req'):
62
+ return self.blog_posts_service_create_blog_post_with_http_info(body, **kwargs) # noqa: E501
63
+ else:
64
+ (data) = self.blog_posts_service_create_blog_post_with_http_info(body, **kwargs) # noqa: E501
65
+ return data
66
+
67
+ def blog_posts_service_create_blog_post_with_http_info(self, body: 'V1CreateBlogPostRequest', **kwargs) -> 'V1BlogPost': # noqa: E501
68
+ """blog_posts_service_create_blog_post # noqa: E501
69
+
70
+ This method makes a synchronous HTTP request by default. To make an
71
+ asynchronous HTTP request, please pass async_req=True
72
+ >>> thread = api.blog_posts_service_create_blog_post_with_http_info(body, async_req=True)
73
+ >>> result = thread.get()
74
+
75
+ :param async_req bool
76
+ :param V1CreateBlogPostRequest body: (required)
77
+ :return: V1BlogPost
78
+ If the method is called asynchronously,
79
+ returns the request thread.
80
+ """
81
+
82
+ all_params = ['body'] # noqa: E501
83
+ all_params.append('async_req')
84
+ all_params.append('_return_http_data_only')
85
+ all_params.append('_preload_content')
86
+ all_params.append('_request_timeout')
87
+
88
+ params = locals()
89
+ for key, val in six.iteritems(params['kwargs']):
90
+ if key not in all_params:
91
+ raise TypeError(
92
+ "Got an unexpected keyword argument '%s'"
93
+ " to method blog_posts_service_create_blog_post" % key
94
+ )
95
+ params[key] = val
96
+ del params['kwargs']
97
+ # verify the required parameter 'body' is set
98
+ if ('body' not in params or
99
+ params['body'] is None):
100
+ raise ValueError("Missing the required parameter `body` when calling `blog_posts_service_create_blog_post`") # noqa: E501
101
+
102
+ collection_formats = {}
103
+
104
+ path_params = {}
105
+
106
+ query_params = []
107
+
108
+ header_params = {}
109
+
110
+ form_params = []
111
+ local_var_files = {}
112
+
113
+ body_params = None
114
+ if 'body' in params:
115
+ body_params = params['body']
116
+ # HTTP header `Accept`
117
+ header_params['Accept'] = self.api_client.select_header_accept(
118
+ ['application/json']) # noqa: E501
119
+
120
+ # HTTP header `Content-Type`
121
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
122
+ ['application/json']) # noqa: E501
123
+
124
+ # Authentication setting
125
+ auth_settings = [] # noqa: E501
126
+
127
+ return self.api_client.call_api(
128
+ '/v1/blog-posts', 'POST',
129
+ path_params,
130
+ query_params,
131
+ header_params,
132
+ body=body_params,
133
+ post_params=form_params,
134
+ files=local_var_files,
135
+ response_type='V1BlogPost', # noqa: E501
136
+ auth_settings=auth_settings,
137
+ async_req=params.get('async_req'),
138
+ _return_http_data_only=params.get('_return_http_data_only'),
139
+ _preload_content=params.get('_preload_content', True),
140
+ _request_timeout=params.get('_request_timeout'),
141
+ collection_formats=collection_formats)
142
+
143
+ def blog_posts_service_delete_blog_post(self, id: 'str', **kwargs) -> 'V1DeleteBlogPostResponse': # noqa: E501
144
+ """blog_posts_service_delete_blog_post # noqa: E501
145
+
146
+ This method makes a synchronous HTTP request by default. To make an
147
+ asynchronous HTTP request, please pass async_req=True
148
+ >>> thread = api.blog_posts_service_delete_blog_post(id, async_req=True)
149
+ >>> result = thread.get()
150
+
151
+ :param async_req bool
152
+ :param str id: (required)
153
+ :return: V1DeleteBlogPostResponse
154
+ If the method is called asynchronously,
155
+ returns the request thread.
156
+ """
157
+ kwargs['_return_http_data_only'] = True
158
+ if kwargs.get('async_req'):
159
+ return self.blog_posts_service_delete_blog_post_with_http_info(id, **kwargs) # noqa: E501
160
+ else:
161
+ (data) = self.blog_posts_service_delete_blog_post_with_http_info(id, **kwargs) # noqa: E501
162
+ return data
163
+
164
+ def blog_posts_service_delete_blog_post_with_http_info(self, id: 'str', **kwargs) -> 'V1DeleteBlogPostResponse': # noqa: E501
165
+ """blog_posts_service_delete_blog_post # noqa: E501
166
+
167
+ This method makes a synchronous HTTP request by default. To make an
168
+ asynchronous HTTP request, please pass async_req=True
169
+ >>> thread = api.blog_posts_service_delete_blog_post_with_http_info(id, async_req=True)
170
+ >>> result = thread.get()
171
+
172
+ :param async_req bool
173
+ :param str id: (required)
174
+ :return: V1DeleteBlogPostResponse
175
+ If the method is called asynchronously,
176
+ returns the request thread.
177
+ """
178
+
179
+ all_params = ['id'] # noqa: E501
180
+ all_params.append('async_req')
181
+ all_params.append('_return_http_data_only')
182
+ all_params.append('_preload_content')
183
+ all_params.append('_request_timeout')
184
+
185
+ params = locals()
186
+ for key, val in six.iteritems(params['kwargs']):
187
+ if key not in all_params:
188
+ raise TypeError(
189
+ "Got an unexpected keyword argument '%s'"
190
+ " to method blog_posts_service_delete_blog_post" % key
191
+ )
192
+ params[key] = val
193
+ del params['kwargs']
194
+ # verify the required parameter 'id' is set
195
+ if ('id' not in params or
196
+ params['id'] is None):
197
+ raise ValueError("Missing the required parameter `id` when calling `blog_posts_service_delete_blog_post`") # noqa: E501
198
+
199
+ collection_formats = {}
200
+
201
+ path_params = {}
202
+ if 'id' in params:
203
+ path_params['id'] = params['id'] # noqa: E501
204
+
205
+ query_params = []
206
+
207
+ header_params = {}
208
+
209
+ form_params = []
210
+ local_var_files = {}
211
+
212
+ body_params = None
213
+ # HTTP header `Accept`
214
+ header_params['Accept'] = self.api_client.select_header_accept(
215
+ ['application/json']) # noqa: E501
216
+
217
+ # Authentication setting
218
+ auth_settings = [] # noqa: E501
219
+
220
+ return self.api_client.call_api(
221
+ '/v1/blog-posts/{id}', 'DELETE',
222
+ path_params,
223
+ query_params,
224
+ header_params,
225
+ body=body_params,
226
+ post_params=form_params,
227
+ files=local_var_files,
228
+ response_type='V1DeleteBlogPostResponse', # noqa: E501
229
+ auth_settings=auth_settings,
230
+ async_req=params.get('async_req'),
231
+ _return_http_data_only=params.get('_return_http_data_only'),
232
+ _preload_content=params.get('_preload_content', True),
233
+ _request_timeout=params.get('_request_timeout'),
234
+ collection_formats=collection_formats)
235
+
236
+ def blog_posts_service_get_blog_post(self, id: 'str', **kwargs) -> 'V1BlogPost': # noqa: E501
237
+ """blog_posts_service_get_blog_post # noqa: E501
238
+
239
+ This method makes a synchronous HTTP request by default. To make an
240
+ asynchronous HTTP request, please pass async_req=True
241
+ >>> thread = api.blog_posts_service_get_blog_post(id, async_req=True)
242
+ >>> result = thread.get()
243
+
244
+ :param async_req bool
245
+ :param str id: (required)
246
+ :return: V1BlogPost
247
+ If the method is called asynchronously,
248
+ returns the request thread.
249
+ """
250
+ kwargs['_return_http_data_only'] = True
251
+ if kwargs.get('async_req'):
252
+ return self.blog_posts_service_get_blog_post_with_http_info(id, **kwargs) # noqa: E501
253
+ else:
254
+ (data) = self.blog_posts_service_get_blog_post_with_http_info(id, **kwargs) # noqa: E501
255
+ return data
256
+
257
+ def blog_posts_service_get_blog_post_with_http_info(self, id: 'str', **kwargs) -> 'V1BlogPost': # noqa: E501
258
+ """blog_posts_service_get_blog_post # noqa: E501
259
+
260
+ This method makes a synchronous HTTP request by default. To make an
261
+ asynchronous HTTP request, please pass async_req=True
262
+ >>> thread = api.blog_posts_service_get_blog_post_with_http_info(id, async_req=True)
263
+ >>> result = thread.get()
264
+
265
+ :param async_req bool
266
+ :param str id: (required)
267
+ :return: V1BlogPost
268
+ If the method is called asynchronously,
269
+ returns the request thread.
270
+ """
271
+
272
+ all_params = ['id'] # noqa: E501
273
+ all_params.append('async_req')
274
+ all_params.append('_return_http_data_only')
275
+ all_params.append('_preload_content')
276
+ all_params.append('_request_timeout')
277
+
278
+ params = locals()
279
+ for key, val in six.iteritems(params['kwargs']):
280
+ if key not in all_params:
281
+ raise TypeError(
282
+ "Got an unexpected keyword argument '%s'"
283
+ " to method blog_posts_service_get_blog_post" % key
284
+ )
285
+ params[key] = val
286
+ del params['kwargs']
287
+ # verify the required parameter 'id' is set
288
+ if ('id' not in params or
289
+ params['id'] is None):
290
+ raise ValueError("Missing the required parameter `id` when calling `blog_posts_service_get_blog_post`") # noqa: E501
291
+
292
+ collection_formats = {}
293
+
294
+ path_params = {}
295
+ if 'id' in params:
296
+ path_params['id'] = params['id'] # noqa: E501
297
+
298
+ query_params = []
299
+
300
+ header_params = {}
301
+
302
+ form_params = []
303
+ local_var_files = {}
304
+
305
+ body_params = None
306
+ # HTTP header `Accept`
307
+ header_params['Accept'] = self.api_client.select_header_accept(
308
+ ['application/json']) # noqa: E501
309
+
310
+ # Authentication setting
311
+ auth_settings = [] # noqa: E501
312
+
313
+ return self.api_client.call_api(
314
+ '/v1/blog-posts/{id}', 'GET',
315
+ path_params,
316
+ query_params,
317
+ header_params,
318
+ body=body_params,
319
+ post_params=form_params,
320
+ files=local_var_files,
321
+ response_type='V1BlogPost', # noqa: E501
322
+ auth_settings=auth_settings,
323
+ async_req=params.get('async_req'),
324
+ _return_http_data_only=params.get('_return_http_data_only'),
325
+ _preload_content=params.get('_preload_content', True),
326
+ _request_timeout=params.get('_request_timeout'),
327
+ collection_formats=collection_formats)
328
+
329
+ def blog_posts_service_list_blog_posts(self, **kwargs) -> 'V1ListBlogPostsResponse': # noqa: E501
330
+ """blog_posts_service_list_blog_posts # noqa: E501
331
+
332
+ This method makes a synchronous HTTP request by default. To make an
333
+ asynchronous HTTP request, please pass async_req=True
334
+ >>> thread = api.blog_posts_service_list_blog_posts(async_req=True)
335
+ >>> result = thread.get()
336
+
337
+ :param async_req bool
338
+ :param str category:
339
+ :param str page_token:
340
+ :param str limit:
341
+ :param bool include_unpublished:
342
+ :return: V1ListBlogPostsResponse
343
+ If the method is called asynchronously,
344
+ returns the request thread.
345
+ """
346
+ kwargs['_return_http_data_only'] = True
347
+ if kwargs.get('async_req'):
348
+ return self.blog_posts_service_list_blog_posts_with_http_info(**kwargs) # noqa: E501
349
+ else:
350
+ (data) = self.blog_posts_service_list_blog_posts_with_http_info(**kwargs) # noqa: E501
351
+ return data
352
+
353
+ def blog_posts_service_list_blog_posts_with_http_info(self, **kwargs) -> 'V1ListBlogPostsResponse': # noqa: E501
354
+ """blog_posts_service_list_blog_posts # noqa: E501
355
+
356
+ This method makes a synchronous HTTP request by default. To make an
357
+ asynchronous HTTP request, please pass async_req=True
358
+ >>> thread = api.blog_posts_service_list_blog_posts_with_http_info(async_req=True)
359
+ >>> result = thread.get()
360
+
361
+ :param async_req bool
362
+ :param str category:
363
+ :param str page_token:
364
+ :param str limit:
365
+ :param bool include_unpublished:
366
+ :return: V1ListBlogPostsResponse
367
+ If the method is called asynchronously,
368
+ returns the request thread.
369
+ """
370
+
371
+ all_params = ['category', 'page_token', 'limit', 'include_unpublished'] # noqa: E501
372
+ all_params.append('async_req')
373
+ all_params.append('_return_http_data_only')
374
+ all_params.append('_preload_content')
375
+ all_params.append('_request_timeout')
376
+
377
+ params = locals()
378
+ for key, val in six.iteritems(params['kwargs']):
379
+ if key not in all_params:
380
+ raise TypeError(
381
+ "Got an unexpected keyword argument '%s'"
382
+ " to method blog_posts_service_list_blog_posts" % key
383
+ )
384
+ params[key] = val
385
+ del params['kwargs']
386
+
387
+ collection_formats = {}
388
+
389
+ path_params = {}
390
+
391
+ query_params = []
392
+ if 'category' in params:
393
+ query_params.append(('category', params['category'])) # noqa: E501
394
+ if 'page_token' in params:
395
+ query_params.append(('pageToken', params['page_token'])) # noqa: E501
396
+ if 'limit' in params:
397
+ query_params.append(('limit', params['limit'])) # noqa: E501
398
+ if 'include_unpublished' in params:
399
+ query_params.append(('includeUnpublished', params['include_unpublished'])) # noqa: E501
400
+
401
+ header_params = {}
402
+
403
+ form_params = []
404
+ local_var_files = {}
405
+
406
+ body_params = None
407
+ # HTTP header `Accept`
408
+ header_params['Accept'] = self.api_client.select_header_accept(
409
+ ['application/json']) # noqa: E501
410
+
411
+ # Authentication setting
412
+ auth_settings = [] # noqa: E501
413
+
414
+ return self.api_client.call_api(
415
+ '/v1/blog-posts', 'GET',
416
+ path_params,
417
+ query_params,
418
+ header_params,
419
+ body=body_params,
420
+ post_params=form_params,
421
+ files=local_var_files,
422
+ response_type='V1ListBlogPostsResponse', # noqa: E501
423
+ auth_settings=auth_settings,
424
+ async_req=params.get('async_req'),
425
+ _return_http_data_only=params.get('_return_http_data_only'),
426
+ _preload_content=params.get('_preload_content', True),
427
+ _request_timeout=params.get('_request_timeout'),
428
+ collection_formats=collection_formats)
429
+
430
+ def blog_posts_service_update_blog_post(self, body: 'BlogpostsIdBody', id: 'str', **kwargs) -> 'V1BlogPost': # noqa: E501
431
+ """blog_posts_service_update_blog_post # noqa: E501
432
+
433
+ This method makes a synchronous HTTP request by default. To make an
434
+ asynchronous HTTP request, please pass async_req=True
435
+ >>> thread = api.blog_posts_service_update_blog_post(body, id, async_req=True)
436
+ >>> result = thread.get()
437
+
438
+ :param async_req bool
439
+ :param BlogpostsIdBody body: (required)
440
+ :param str id: (required)
441
+ :return: V1BlogPost
442
+ If the method is called asynchronously,
443
+ returns the request thread.
444
+ """
445
+ kwargs['_return_http_data_only'] = True
446
+ if kwargs.get('async_req'):
447
+ return self.blog_posts_service_update_blog_post_with_http_info(body, id, **kwargs) # noqa: E501
448
+ else:
449
+ (data) = self.blog_posts_service_update_blog_post_with_http_info(body, id, **kwargs) # noqa: E501
450
+ return data
451
+
452
+ def blog_posts_service_update_blog_post_with_http_info(self, body: 'BlogpostsIdBody', id: 'str', **kwargs) -> 'V1BlogPost': # noqa: E501
453
+ """blog_posts_service_update_blog_post # noqa: E501
454
+
455
+ This method makes a synchronous HTTP request by default. To make an
456
+ asynchronous HTTP request, please pass async_req=True
457
+ >>> thread = api.blog_posts_service_update_blog_post_with_http_info(body, id, async_req=True)
458
+ >>> result = thread.get()
459
+
460
+ :param async_req bool
461
+ :param BlogpostsIdBody body: (required)
462
+ :param str id: (required)
463
+ :return: V1BlogPost
464
+ If the method is called asynchronously,
465
+ returns the request thread.
466
+ """
467
+
468
+ all_params = ['body', 'id'] # noqa: E501
469
+ all_params.append('async_req')
470
+ all_params.append('_return_http_data_only')
471
+ all_params.append('_preload_content')
472
+ all_params.append('_request_timeout')
473
+
474
+ params = locals()
475
+ for key, val in six.iteritems(params['kwargs']):
476
+ if key not in all_params:
477
+ raise TypeError(
478
+ "Got an unexpected keyword argument '%s'"
479
+ " to method blog_posts_service_update_blog_post" % key
480
+ )
481
+ params[key] = val
482
+ del params['kwargs']
483
+ # verify the required parameter 'body' is set
484
+ if ('body' not in params or
485
+ params['body'] is None):
486
+ raise ValueError("Missing the required parameter `body` when calling `blog_posts_service_update_blog_post`") # noqa: E501
487
+ # verify the required parameter 'id' is set
488
+ if ('id' not in params or
489
+ params['id'] is None):
490
+ raise ValueError("Missing the required parameter `id` when calling `blog_posts_service_update_blog_post`") # noqa: E501
491
+
492
+ collection_formats = {}
493
+
494
+ path_params = {}
495
+ if 'id' in params:
496
+ path_params['id'] = params['id'] # noqa: E501
497
+
498
+ query_params = []
499
+
500
+ header_params = {}
501
+
502
+ form_params = []
503
+ local_var_files = {}
504
+
505
+ body_params = None
506
+ if 'body' in params:
507
+ body_params = params['body']
508
+ # HTTP header `Accept`
509
+ header_params['Accept'] = self.api_client.select_header_accept(
510
+ ['application/json']) # noqa: E501
511
+
512
+ # HTTP header `Content-Type`
513
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
514
+ ['application/json']) # noqa: E501
515
+
516
+ # Authentication setting
517
+ auth_settings = [] # noqa: E501
518
+
519
+ return self.api_client.call_api(
520
+ '/v1/blog-posts/{id}', 'PUT',
521
+ path_params,
522
+ query_params,
523
+ header_params,
524
+ body=body_params,
525
+ post_params=form_params,
526
+ files=local_var_files,
527
+ response_type='V1BlogPost', # noqa: E501
528
+ auth_settings=auth_settings,
529
+ async_req=params.get('async_req'),
530
+ _return_http_data_only=params.get('_return_http_data_only'),
531
+ _preload_content=params.get('_preload_content', True),
532
+ _request_timeout=params.get('_request_timeout'),
533
+ collection_formats=collection_formats)
@@ -7737,6 +7737,119 @@ class CloudSpaceServiceApi(object):
7737
7737
  _request_timeout=params.get('_request_timeout'),
7738
7738
  collection_formats=collection_formats)
7739
7739
 
7740
+ def cloud_space_service_transfer_cloud_space(self, body: 'IdTransferBody', project_id: 'str', id: 'str', **kwargs) -> 'V1TransferCloudSpaceResponse': # noqa: E501
7741
+ """cloud_space_service_transfer_cloud_space # noqa: E501
7742
+
7743
+ This method makes a synchronous HTTP request by default. To make an
7744
+ asynchronous HTTP request, please pass async_req=True
7745
+ >>> thread = api.cloud_space_service_transfer_cloud_space(body, project_id, id, async_req=True)
7746
+ >>> result = thread.get()
7747
+
7748
+ :param async_req bool
7749
+ :param IdTransferBody body: (required)
7750
+ :param str project_id: (required)
7751
+ :param str id: (required)
7752
+ :return: V1TransferCloudSpaceResponse
7753
+ If the method is called asynchronously,
7754
+ returns the request thread.
7755
+ """
7756
+ kwargs['_return_http_data_only'] = True
7757
+ if kwargs.get('async_req'):
7758
+ return self.cloud_space_service_transfer_cloud_space_with_http_info(body, project_id, id, **kwargs) # noqa: E501
7759
+ else:
7760
+ (data) = self.cloud_space_service_transfer_cloud_space_with_http_info(body, project_id, id, **kwargs) # noqa: E501
7761
+ return data
7762
+
7763
+ def cloud_space_service_transfer_cloud_space_with_http_info(self, body: 'IdTransferBody', project_id: 'str', id: 'str', **kwargs) -> 'V1TransferCloudSpaceResponse': # noqa: E501
7764
+ """cloud_space_service_transfer_cloud_space # noqa: E501
7765
+
7766
+ This method makes a synchronous HTTP request by default. To make an
7767
+ asynchronous HTTP request, please pass async_req=True
7768
+ >>> thread = api.cloud_space_service_transfer_cloud_space_with_http_info(body, project_id, id, async_req=True)
7769
+ >>> result = thread.get()
7770
+
7771
+ :param async_req bool
7772
+ :param IdTransferBody body: (required)
7773
+ :param str project_id: (required)
7774
+ :param str id: (required)
7775
+ :return: V1TransferCloudSpaceResponse
7776
+ If the method is called asynchronously,
7777
+ returns the request thread.
7778
+ """
7779
+
7780
+ all_params = ['body', 'project_id', 'id'] # noqa: E501
7781
+ all_params.append('async_req')
7782
+ all_params.append('_return_http_data_only')
7783
+ all_params.append('_preload_content')
7784
+ all_params.append('_request_timeout')
7785
+
7786
+ params = locals()
7787
+ for key, val in six.iteritems(params['kwargs']):
7788
+ if key not in all_params:
7789
+ raise TypeError(
7790
+ "Got an unexpected keyword argument '%s'"
7791
+ " to method cloud_space_service_transfer_cloud_space" % key
7792
+ )
7793
+ params[key] = val
7794
+ del params['kwargs']
7795
+ # verify the required parameter 'body' is set
7796
+ if ('body' not in params or
7797
+ params['body'] is None):
7798
+ raise ValueError("Missing the required parameter `body` when calling `cloud_space_service_transfer_cloud_space`") # noqa: E501
7799
+ # verify the required parameter 'project_id' is set
7800
+ if ('project_id' not in params or
7801
+ params['project_id'] is None):
7802
+ raise ValueError("Missing the required parameter `project_id` when calling `cloud_space_service_transfer_cloud_space`") # noqa: E501
7803
+ # verify the required parameter 'id' is set
7804
+ if ('id' not in params or
7805
+ params['id'] is None):
7806
+ raise ValueError("Missing the required parameter `id` when calling `cloud_space_service_transfer_cloud_space`") # noqa: E501
7807
+
7808
+ collection_formats = {}
7809
+
7810
+ path_params = {}
7811
+ if 'project_id' in params:
7812
+ path_params['projectId'] = params['project_id'] # noqa: E501
7813
+ if 'id' in params:
7814
+ path_params['id'] = params['id'] # noqa: E501
7815
+
7816
+ query_params = []
7817
+
7818
+ header_params = {}
7819
+
7820
+ form_params = []
7821
+ local_var_files = {}
7822
+
7823
+ body_params = None
7824
+ if 'body' in params:
7825
+ body_params = params['body']
7826
+ # HTTP header `Accept`
7827
+ header_params['Accept'] = self.api_client.select_header_accept(
7828
+ ['application/json']) # noqa: E501
7829
+
7830
+ # HTTP header `Content-Type`
7831
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
7832
+ ['application/json']) # noqa: E501
7833
+
7834
+ # Authentication setting
7835
+ auth_settings = [] # noqa: E501
7836
+
7837
+ return self.api_client.call_api(
7838
+ '/v1/projects/{projectId}/cloudspaces/{id}/transfer', 'PUT',
7839
+ path_params,
7840
+ query_params,
7841
+ header_params,
7842
+ body=body_params,
7843
+ post_params=form_params,
7844
+ files=local_var_files,
7845
+ response_type='V1TransferCloudSpaceResponse', # noqa: E501
7846
+ auth_settings=auth_settings,
7847
+ async_req=params.get('async_req'),
7848
+ _return_http_data_only=params.get('_return_http_data_only'),
7849
+ _preload_content=params.get('_preload_content', True),
7850
+ _request_timeout=params.get('_request_timeout'),
7851
+ collection_formats=collection_formats)
7852
+
7740
7853
  def cloud_space_service_uninstall_plugin(self, project_id: 'str', id: 'str', plugin_id: 'str', **kwargs) -> 'V1Plugin': # noqa: E501
7741
7854
  """cloud_space_service_uninstall_plugin # noqa: E501
7742
7855