anyscale 0.24.86__py3-none-any.whl → 0.24.87__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 (34) hide show
  1. anyscale/client/README.md +22 -2
  2. anyscale/client/openapi_client/__init__.py +16 -2
  3. anyscale/client/openapi_client/api/default_api.py +704 -3
  4. anyscale/client/openapi_client/models/__init__.py +16 -2
  5. anyscale/client/openapi_client/models/{aggregated_instance_usage_with_cost_model.py → aggregated_instance_usage_csv.py} +100 -100
  6. anyscale/client/openapi_client/models/aggregated_usage.py +147 -0
  7. anyscale/client/openapi_client/models/aggregated_usage_query.py +264 -0
  8. anyscale/client/openapi_client/models/{aggregatedinstanceusagewithcostmodel_list_response.py → aggregatedinstanceusagecsv_list_response.py} +15 -15
  9. anyscale/client/openapi_client/models/aggregatedusage_response.py +121 -0
  10. anyscale/client/openapi_client/models/cloud_resource.py +29 -1
  11. anyscale/client/openapi_client/models/cloud_resource_gcp.py +29 -1
  12. anyscale/client/openapi_client/models/create_cloud_resource.py +29 -1
  13. anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +29 -1
  14. anyscale/client/openapi_client/models/paging_context.py +172 -0
  15. anyscale/client/openapi_client/models/usage_by_cloud.py +201 -0
  16. anyscale/client/openapi_client/models/usage_by_cluster.py +544 -0
  17. anyscale/client/openapi_client/models/usage_by_instance_type.py +174 -0
  18. anyscale/client/openapi_client/models/usage_by_project.py +255 -0
  19. anyscale/client/openapi_client/models/usage_by_user.py +201 -0
  20. anyscale/client/openapi_client/models/usagebycloud_list_response.py +147 -0
  21. anyscale/client/openapi_client/models/usagebycluster_list_response.py +147 -0
  22. anyscale/client/openapi_client/models/usagebyinstancetype_list_response.py +147 -0
  23. anyscale/client/openapi_client/models/usagebyproject_list_response.py +147 -0
  24. anyscale/client/openapi_client/models/usagebyuser_list_response.py +147 -0
  25. anyscale/commands/cloud_commands.py +8 -0
  26. anyscale/controllers/cloud_controller.py +3 -0
  27. anyscale/version.py +1 -1
  28. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/METADATA +1 -1
  29. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/RECORD +34 -20
  30. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/LICENSE +0 -0
  31. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/NOTICE +0 -0
  32. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/WHEEL +0 -0
  33. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/entry_points.txt +0 -0
  34. {anyscale-0.24.86.dist-info → anyscale-0.24.87.dist-info}/top_level.txt +0 -0
@@ -9516,7 +9516,7 @@ class DefaultApi(object):
9516
9516
  number provided, it will be total request
9517
9517
  timeout. It can also be a pair (tuple) of
9518
9518
  (connection, read) timeouts.
9519
- :return: AggregatedinstanceusagewithcostmodelListResponse
9519
+ :return: AggregatedinstanceusagecsvListResponse
9520
9520
  If the method is called asynchronously,
9521
9521
  returns the request thread.
9522
9522
  """
@@ -9546,7 +9546,7 @@ class DefaultApi(object):
9546
9546
  number provided, it will be total request
9547
9547
  timeout. It can also be a pair (tuple) of
9548
9548
  (connection, read) timeouts.
9549
- :return: tuple(AggregatedinstanceusagewithcostmodelListResponse, status_code(int), headers(HTTPHeaderDict))
9549
+ :return: tuple(AggregatedinstanceusagecsvListResponse, status_code(int), headers(HTTPHeaderDict))
9550
9550
  If the method is called asynchronously,
9551
9551
  returns the request thread.
9552
9552
  """
@@ -9627,7 +9627,7 @@ class DefaultApi(object):
9627
9627
  body=body_params,
9628
9628
  post_params=form_params,
9629
9629
  files=local_var_files,
9630
- response_type='AggregatedinstanceusagewithcostmodelListResponse', # noqa: E501
9630
+ response_type='AggregatedinstanceusagecsvListResponse', # noqa: E501
9631
9631
  auth_settings=auth_settings,
9632
9632
  async_req=local_var_params.get('async_req'),
9633
9633
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -10248,6 +10248,586 @@ class DefaultApi(object):
10248
10248
  _request_timeout=local_var_params.get('_request_timeout'),
10249
10249
  collection_formats=collection_formats)
10250
10250
 
10251
+ def fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10252
+ """Fetch Usage Group By Cloud # noqa: E501
10253
+
10254
+ This method makes a synchronous HTTP request by default. To make an
10255
+ asynchronous HTTP request, please pass async_req=True
10256
+ >>> thread = api.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post(aggregated_usage_query, async_req=True)
10257
+ >>> result = thread.get()
10258
+
10259
+ :param async_req bool: execute request asynchronously
10260
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10261
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10262
+ be returned without reading/decoding response
10263
+ data. Default is True.
10264
+ :param _request_timeout: timeout setting for this request. If one
10265
+ number provided, it will be total request
10266
+ timeout. It can also be a pair (tuple) of
10267
+ (connection, read) timeouts.
10268
+ :return: UsagebycloudListResponse
10269
+ If the method is called asynchronously,
10270
+ returns the request thread.
10271
+ """
10272
+ kwargs['_return_http_data_only'] = True
10273
+ return self.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10274
+
10275
+ def fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10276
+ """Fetch Usage Group By Cloud # noqa: E501
10277
+
10278
+ This method makes a synchronous HTTP request by default. To make an
10279
+ asynchronous HTTP request, please pass async_req=True
10280
+ >>> thread = api.fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post_with_http_info(aggregated_usage_query, async_req=True)
10281
+ >>> result = thread.get()
10282
+
10283
+ :param async_req bool: execute request asynchronously
10284
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10285
+ :param _return_http_data_only: response data without head status code
10286
+ and headers
10287
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10288
+ be returned without reading/decoding response
10289
+ data. Default is True.
10290
+ :param _request_timeout: timeout setting for this request. If one
10291
+ number provided, it will be total request
10292
+ timeout. It can also be a pair (tuple) of
10293
+ (connection, read) timeouts.
10294
+ :return: tuple(UsagebycloudListResponse, status_code(int), headers(HTTPHeaderDict))
10295
+ If the method is called asynchronously,
10296
+ returns the request thread.
10297
+ """
10298
+
10299
+ local_var_params = locals()
10300
+
10301
+ all_params = [
10302
+ 'aggregated_usage_query'
10303
+ ]
10304
+ all_params.extend(
10305
+ [
10306
+ 'async_req',
10307
+ '_return_http_data_only',
10308
+ '_preload_content',
10309
+ '_request_timeout'
10310
+ ]
10311
+ )
10312
+
10313
+ for key, val in six.iteritems(local_var_params['kwargs']):
10314
+ if key not in all_params:
10315
+ raise ApiTypeError(
10316
+ "Got an unexpected keyword argument '%s'"
10317
+ " to method fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post" % key
10318
+ )
10319
+ local_var_params[key] = val
10320
+ del local_var_params['kwargs']
10321
+ # verify the required parameter 'aggregated_usage_query' is set
10322
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10323
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10324
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`") # noqa: E501
10325
+
10326
+ collection_formats = {}
10327
+
10328
+ path_params = {}
10329
+
10330
+ query_params = []
10331
+
10332
+ header_params = {}
10333
+
10334
+ form_params = []
10335
+ local_var_files = {}
10336
+
10337
+ body_params = None
10338
+ if 'aggregated_usage_query' in local_var_params:
10339
+ body_params = local_var_params['aggregated_usage_query']
10340
+ # HTTP header `Accept`
10341
+ header_params['Accept'] = self.api_client.select_header_accept(
10342
+ ['application/json']) # noqa: E501
10343
+
10344
+ # HTTP header `Content-Type`
10345
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10346
+ ['application/json']) # noqa: E501
10347
+
10348
+ # Authentication setting
10349
+ auth_settings = [] # noqa: E501
10350
+
10351
+ return self.api_client.call_api(
10352
+ '/api/v2/aggregated_instance_usage/cloud', 'POST',
10353
+ path_params,
10354
+ query_params,
10355
+ header_params,
10356
+ body=body_params,
10357
+ post_params=form_params,
10358
+ files=local_var_files,
10359
+ response_type='UsagebycloudListResponse', # noqa: E501
10360
+ auth_settings=auth_settings,
10361
+ async_req=local_var_params.get('async_req'),
10362
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10363
+ _preload_content=local_var_params.get('_preload_content', True),
10364
+ _request_timeout=local_var_params.get('_request_timeout'),
10365
+ collection_formats=collection_formats)
10366
+
10367
+ def fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10368
+ """Fetch Usage Group By Cluster # noqa: E501
10369
+
10370
+ This method makes a synchronous HTTP request by default. To make an
10371
+ asynchronous HTTP request, please pass async_req=True
10372
+ >>> thread = api.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post(aggregated_usage_query, async_req=True)
10373
+ >>> result = thread.get()
10374
+
10375
+ :param async_req bool: execute request asynchronously
10376
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10377
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10378
+ be returned without reading/decoding response
10379
+ data. Default is True.
10380
+ :param _request_timeout: timeout setting for this request. If one
10381
+ number provided, it will be total request
10382
+ timeout. It can also be a pair (tuple) of
10383
+ (connection, read) timeouts.
10384
+ :return: UsagebyclusterListResponse
10385
+ If the method is called asynchronously,
10386
+ returns the request thread.
10387
+ """
10388
+ kwargs['_return_http_data_only'] = True
10389
+ return self.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10390
+
10391
+ def fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10392
+ """Fetch Usage Group By Cluster # noqa: E501
10393
+
10394
+ This method makes a synchronous HTTP request by default. To make an
10395
+ asynchronous HTTP request, please pass async_req=True
10396
+ >>> thread = api.fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post_with_http_info(aggregated_usage_query, async_req=True)
10397
+ >>> result = thread.get()
10398
+
10399
+ :param async_req bool: execute request asynchronously
10400
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10401
+ :param _return_http_data_only: response data without head status code
10402
+ and headers
10403
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10404
+ be returned without reading/decoding response
10405
+ data. Default is True.
10406
+ :param _request_timeout: timeout setting for this request. If one
10407
+ number provided, it will be total request
10408
+ timeout. It can also be a pair (tuple) of
10409
+ (connection, read) timeouts.
10410
+ :return: tuple(UsagebyclusterListResponse, status_code(int), headers(HTTPHeaderDict))
10411
+ If the method is called asynchronously,
10412
+ returns the request thread.
10413
+ """
10414
+
10415
+ local_var_params = locals()
10416
+
10417
+ all_params = [
10418
+ 'aggregated_usage_query'
10419
+ ]
10420
+ all_params.extend(
10421
+ [
10422
+ 'async_req',
10423
+ '_return_http_data_only',
10424
+ '_preload_content',
10425
+ '_request_timeout'
10426
+ ]
10427
+ )
10428
+
10429
+ for key, val in six.iteritems(local_var_params['kwargs']):
10430
+ if key not in all_params:
10431
+ raise ApiTypeError(
10432
+ "Got an unexpected keyword argument '%s'"
10433
+ " to method fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post" % key
10434
+ )
10435
+ local_var_params[key] = val
10436
+ del local_var_params['kwargs']
10437
+ # verify the required parameter 'aggregated_usage_query' is set
10438
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10439
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10440
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`") # noqa: E501
10441
+
10442
+ collection_formats = {}
10443
+
10444
+ path_params = {}
10445
+
10446
+ query_params = []
10447
+
10448
+ header_params = {}
10449
+
10450
+ form_params = []
10451
+ local_var_files = {}
10452
+
10453
+ body_params = None
10454
+ if 'aggregated_usage_query' in local_var_params:
10455
+ body_params = local_var_params['aggregated_usage_query']
10456
+ # HTTP header `Accept`
10457
+ header_params['Accept'] = self.api_client.select_header_accept(
10458
+ ['application/json']) # noqa: E501
10459
+
10460
+ # HTTP header `Content-Type`
10461
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10462
+ ['application/json']) # noqa: E501
10463
+
10464
+ # Authentication setting
10465
+ auth_settings = [] # noqa: E501
10466
+
10467
+ return self.api_client.call_api(
10468
+ '/api/v2/aggregated_instance_usage/cluster', 'POST',
10469
+ path_params,
10470
+ query_params,
10471
+ header_params,
10472
+ body=body_params,
10473
+ post_params=form_params,
10474
+ files=local_var_files,
10475
+ response_type='UsagebyclusterListResponse', # noqa: E501
10476
+ auth_settings=auth_settings,
10477
+ async_req=local_var_params.get('async_req'),
10478
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10479
+ _preload_content=local_var_params.get('_preload_content', True),
10480
+ _request_timeout=local_var_params.get('_request_timeout'),
10481
+ collection_formats=collection_formats)
10482
+
10483
+ def fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10484
+ """Fetch Usage Group By Instance Type # noqa: E501
10485
+
10486
+ This method makes a synchronous HTTP request by default. To make an
10487
+ asynchronous HTTP request, please pass async_req=True
10488
+ >>> thread = api.fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post(aggregated_usage_query, async_req=True)
10489
+ >>> result = thread.get()
10490
+
10491
+ :param async_req bool: execute request asynchronously
10492
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10493
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10494
+ be returned without reading/decoding response
10495
+ data. Default is True.
10496
+ :param _request_timeout: timeout setting for this request. If one
10497
+ number provided, it will be total request
10498
+ timeout. It can also be a pair (tuple) of
10499
+ (connection, read) timeouts.
10500
+ :return: UsagebyinstancetypeListResponse
10501
+ If the method is called asynchronously,
10502
+ returns the request thread.
10503
+ """
10504
+ kwargs['_return_http_data_only'] = True
10505
+ return self.fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10506
+
10507
+ def fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10508
+ """Fetch Usage Group By Instance Type # noqa: E501
10509
+
10510
+ This method makes a synchronous HTTP request by default. To make an
10511
+ asynchronous HTTP request, please pass async_req=True
10512
+ >>> thread = api.fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post_with_http_info(aggregated_usage_query, async_req=True)
10513
+ >>> result = thread.get()
10514
+
10515
+ :param async_req bool: execute request asynchronously
10516
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10517
+ :param _return_http_data_only: response data without head status code
10518
+ and headers
10519
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10520
+ be returned without reading/decoding response
10521
+ data. Default is True.
10522
+ :param _request_timeout: timeout setting for this request. If one
10523
+ number provided, it will be total request
10524
+ timeout. It can also be a pair (tuple) of
10525
+ (connection, read) timeouts.
10526
+ :return: tuple(UsagebyinstancetypeListResponse, status_code(int), headers(HTTPHeaderDict))
10527
+ If the method is called asynchronously,
10528
+ returns the request thread.
10529
+ """
10530
+
10531
+ local_var_params = locals()
10532
+
10533
+ all_params = [
10534
+ 'aggregated_usage_query'
10535
+ ]
10536
+ all_params.extend(
10537
+ [
10538
+ 'async_req',
10539
+ '_return_http_data_only',
10540
+ '_preload_content',
10541
+ '_request_timeout'
10542
+ ]
10543
+ )
10544
+
10545
+ for key, val in six.iteritems(local_var_params['kwargs']):
10546
+ if key not in all_params:
10547
+ raise ApiTypeError(
10548
+ "Got an unexpected keyword argument '%s'"
10549
+ " to method fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post" % key
10550
+ )
10551
+ local_var_params[key] = val
10552
+ del local_var_params['kwargs']
10553
+ # verify the required parameter 'aggregated_usage_query' is set
10554
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10555
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10556
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`") # noqa: E501
10557
+
10558
+ collection_formats = {}
10559
+
10560
+ path_params = {}
10561
+
10562
+ query_params = []
10563
+
10564
+ header_params = {}
10565
+
10566
+ form_params = []
10567
+ local_var_files = {}
10568
+
10569
+ body_params = None
10570
+ if 'aggregated_usage_query' in local_var_params:
10571
+ body_params = local_var_params['aggregated_usage_query']
10572
+ # HTTP header `Accept`
10573
+ header_params['Accept'] = self.api_client.select_header_accept(
10574
+ ['application/json']) # noqa: E501
10575
+
10576
+ # HTTP header `Content-Type`
10577
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10578
+ ['application/json']) # noqa: E501
10579
+
10580
+ # Authentication setting
10581
+ auth_settings = [] # noqa: E501
10582
+
10583
+ return self.api_client.call_api(
10584
+ '/api/v2/aggregated_instance_usage/instance_type', 'POST',
10585
+ path_params,
10586
+ query_params,
10587
+ header_params,
10588
+ body=body_params,
10589
+ post_params=form_params,
10590
+ files=local_var_files,
10591
+ response_type='UsagebyinstancetypeListResponse', # noqa: E501
10592
+ auth_settings=auth_settings,
10593
+ async_req=local_var_params.get('async_req'),
10594
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10595
+ _preload_content=local_var_params.get('_preload_content', True),
10596
+ _request_timeout=local_var_params.get('_request_timeout'),
10597
+ collection_formats=collection_formats)
10598
+
10599
+ def fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10600
+ """Fetch Usage Group By Project # noqa: E501
10601
+
10602
+ This method makes a synchronous HTTP request by default. To make an
10603
+ asynchronous HTTP request, please pass async_req=True
10604
+ >>> thread = api.fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post(aggregated_usage_query, async_req=True)
10605
+ >>> result = thread.get()
10606
+
10607
+ :param async_req bool: execute request asynchronously
10608
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10609
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10610
+ be returned without reading/decoding response
10611
+ data. Default is True.
10612
+ :param _request_timeout: timeout setting for this request. If one
10613
+ number provided, it will be total request
10614
+ timeout. It can also be a pair (tuple) of
10615
+ (connection, read) timeouts.
10616
+ :return: UsagebyprojectListResponse
10617
+ If the method is called asynchronously,
10618
+ returns the request thread.
10619
+ """
10620
+ kwargs['_return_http_data_only'] = True
10621
+ return self.fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10622
+
10623
+ def fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10624
+ """Fetch Usage Group By Project # noqa: E501
10625
+
10626
+ This method makes a synchronous HTTP request by default. To make an
10627
+ asynchronous HTTP request, please pass async_req=True
10628
+ >>> thread = api.fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post_with_http_info(aggregated_usage_query, async_req=True)
10629
+ >>> result = thread.get()
10630
+
10631
+ :param async_req bool: execute request asynchronously
10632
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10633
+ :param _return_http_data_only: response data without head status code
10634
+ and headers
10635
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10636
+ be returned without reading/decoding response
10637
+ data. Default is True.
10638
+ :param _request_timeout: timeout setting for this request. If one
10639
+ number provided, it will be total request
10640
+ timeout. It can also be a pair (tuple) of
10641
+ (connection, read) timeouts.
10642
+ :return: tuple(UsagebyprojectListResponse, status_code(int), headers(HTTPHeaderDict))
10643
+ If the method is called asynchronously,
10644
+ returns the request thread.
10645
+ """
10646
+
10647
+ local_var_params = locals()
10648
+
10649
+ all_params = [
10650
+ 'aggregated_usage_query'
10651
+ ]
10652
+ all_params.extend(
10653
+ [
10654
+ 'async_req',
10655
+ '_return_http_data_only',
10656
+ '_preload_content',
10657
+ '_request_timeout'
10658
+ ]
10659
+ )
10660
+
10661
+ for key, val in six.iteritems(local_var_params['kwargs']):
10662
+ if key not in all_params:
10663
+ raise ApiTypeError(
10664
+ "Got an unexpected keyword argument '%s'"
10665
+ " to method fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post" % key
10666
+ )
10667
+ local_var_params[key] = val
10668
+ del local_var_params['kwargs']
10669
+ # verify the required parameter 'aggregated_usage_query' is set
10670
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10671
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10672
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`") # noqa: E501
10673
+
10674
+ collection_formats = {}
10675
+
10676
+ path_params = {}
10677
+
10678
+ query_params = []
10679
+
10680
+ header_params = {}
10681
+
10682
+ form_params = []
10683
+ local_var_files = {}
10684
+
10685
+ body_params = None
10686
+ if 'aggregated_usage_query' in local_var_params:
10687
+ body_params = local_var_params['aggregated_usage_query']
10688
+ # HTTP header `Accept`
10689
+ header_params['Accept'] = self.api_client.select_header_accept(
10690
+ ['application/json']) # noqa: E501
10691
+
10692
+ # HTTP header `Content-Type`
10693
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10694
+ ['application/json']) # noqa: E501
10695
+
10696
+ # Authentication setting
10697
+ auth_settings = [] # noqa: E501
10698
+
10699
+ return self.api_client.call_api(
10700
+ '/api/v2/aggregated_instance_usage/project', 'POST',
10701
+ path_params,
10702
+ query_params,
10703
+ header_params,
10704
+ body=body_params,
10705
+ post_params=form_params,
10706
+ files=local_var_files,
10707
+ response_type='UsagebyprojectListResponse', # noqa: E501
10708
+ auth_settings=auth_settings,
10709
+ async_req=local_var_params.get('async_req'),
10710
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10711
+ _preload_content=local_var_params.get('_preload_content', True),
10712
+ _request_timeout=local_var_params.get('_request_timeout'),
10713
+ collection_formats=collection_formats)
10714
+
10715
+ def fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10716
+ """Fetch Usage Group By User # noqa: E501
10717
+
10718
+ This method makes a synchronous HTTP request by default. To make an
10719
+ asynchronous HTTP request, please pass async_req=True
10720
+ >>> thread = api.fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post(aggregated_usage_query, async_req=True)
10721
+ >>> result = thread.get()
10722
+
10723
+ :param async_req bool: execute request asynchronously
10724
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10725
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10726
+ be returned without reading/decoding response
10727
+ data. Default is True.
10728
+ :param _request_timeout: timeout setting for this request. If one
10729
+ number provided, it will be total request
10730
+ timeout. It can also be a pair (tuple) of
10731
+ (connection, read) timeouts.
10732
+ :return: UsagebyuserListResponse
10733
+ If the method is called asynchronously,
10734
+ returns the request thread.
10735
+ """
10736
+ kwargs['_return_http_data_only'] = True
10737
+ return self.fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10738
+
10739
+ def fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10740
+ """Fetch Usage Group By User # noqa: E501
10741
+
10742
+ This method makes a synchronous HTTP request by default. To make an
10743
+ asynchronous HTTP request, please pass async_req=True
10744
+ >>> thread = api.fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post_with_http_info(aggregated_usage_query, async_req=True)
10745
+ >>> result = thread.get()
10746
+
10747
+ :param async_req bool: execute request asynchronously
10748
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10749
+ :param _return_http_data_only: response data without head status code
10750
+ and headers
10751
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10752
+ be returned without reading/decoding response
10753
+ data. Default is True.
10754
+ :param _request_timeout: timeout setting for this request. If one
10755
+ number provided, it will be total request
10756
+ timeout. It can also be a pair (tuple) of
10757
+ (connection, read) timeouts.
10758
+ :return: tuple(UsagebyuserListResponse, status_code(int), headers(HTTPHeaderDict))
10759
+ If the method is called asynchronously,
10760
+ returns the request thread.
10761
+ """
10762
+
10763
+ local_var_params = locals()
10764
+
10765
+ all_params = [
10766
+ 'aggregated_usage_query'
10767
+ ]
10768
+ all_params.extend(
10769
+ [
10770
+ 'async_req',
10771
+ '_return_http_data_only',
10772
+ '_preload_content',
10773
+ '_request_timeout'
10774
+ ]
10775
+ )
10776
+
10777
+ for key, val in six.iteritems(local_var_params['kwargs']):
10778
+ if key not in all_params:
10779
+ raise ApiTypeError(
10780
+ "Got an unexpected keyword argument '%s'"
10781
+ " to method fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post" % key
10782
+ )
10783
+ local_var_params[key] = val
10784
+ del local_var_params['kwargs']
10785
+ # verify the required parameter 'aggregated_usage_query' is set
10786
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10787
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10788
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`") # noqa: E501
10789
+
10790
+ collection_formats = {}
10791
+
10792
+ path_params = {}
10793
+
10794
+ query_params = []
10795
+
10796
+ header_params = {}
10797
+
10798
+ form_params = []
10799
+ local_var_files = {}
10800
+
10801
+ body_params = None
10802
+ if 'aggregated_usage_query' in local_var_params:
10803
+ body_params = local_var_params['aggregated_usage_query']
10804
+ # HTTP header `Accept`
10805
+ header_params['Accept'] = self.api_client.select_header_accept(
10806
+ ['application/json']) # noqa: E501
10807
+
10808
+ # HTTP header `Content-Type`
10809
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10810
+ ['application/json']) # noqa: E501
10811
+
10812
+ # Authentication setting
10813
+ auth_settings = [] # noqa: E501
10814
+
10815
+ return self.api_client.call_api(
10816
+ '/api/v2/aggregated_instance_usage/user', 'POST',
10817
+ path_params,
10818
+ query_params,
10819
+ header_params,
10820
+ body=body_params,
10821
+ post_params=form_params,
10822
+ files=local_var_files,
10823
+ response_type='UsagebyuserListResponse', # noqa: E501
10824
+ auth_settings=auth_settings,
10825
+ async_req=local_var_params.get('async_req'),
10826
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10827
+ _preload_content=local_var_params.get('_preload_content', True),
10828
+ _request_timeout=local_var_params.get('_request_timeout'),
10829
+ collection_formats=collection_formats)
10830
+
10251
10831
  def find_cloud_by_name_api_v2_clouds_find_by_name_post(self, cloud_name_options, **kwargs): # noqa: E501
10252
10832
  """Find Cloud By Name # noqa: E501
10253
10833
 
@@ -23657,6 +24237,127 @@ class DefaultApi(object):
23657
24237
  _request_timeout=local_var_params.get('_request_timeout'),
23658
24238
  collection_formats=collection_formats)
23659
24239
 
24240
+ def get_total_usage_api_v2_aggregated_instance_usage_get(self, start_date, end_date, **kwargs): # noqa: E501
24241
+ """Get Total Usage # noqa: E501
24242
+
24243
+ This method makes a synchronous HTTP request by default. To make an
24244
+ asynchronous HTTP request, please pass async_req=True
24245
+ >>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get(start_date, end_date, async_req=True)
24246
+ >>> result = thread.get()
24247
+
24248
+ :param async_req bool: execute request asynchronously
24249
+ :param date start_date: (required)
24250
+ :param date end_date: (required)
24251
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24252
+ be returned without reading/decoding response
24253
+ data. Default is True.
24254
+ :param _request_timeout: timeout setting for this request. If one
24255
+ number provided, it will be total request
24256
+ timeout. It can also be a pair (tuple) of
24257
+ (connection, read) timeouts.
24258
+ :return: AggregatedusageResponse
24259
+ If the method is called asynchronously,
24260
+ returns the request thread.
24261
+ """
24262
+ kwargs['_return_http_data_only'] = True
24263
+ return self.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, **kwargs) # noqa: E501
24264
+
24265
+ def get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(self, start_date, end_date, **kwargs): # noqa: E501
24266
+ """Get Total Usage # noqa: E501
24267
+
24268
+ This method makes a synchronous HTTP request by default. To make an
24269
+ asynchronous HTTP request, please pass async_req=True
24270
+ >>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, async_req=True)
24271
+ >>> result = thread.get()
24272
+
24273
+ :param async_req bool: execute request asynchronously
24274
+ :param date start_date: (required)
24275
+ :param date end_date: (required)
24276
+ :param _return_http_data_only: response data without head status code
24277
+ and headers
24278
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24279
+ be returned without reading/decoding response
24280
+ data. Default is True.
24281
+ :param _request_timeout: timeout setting for this request. If one
24282
+ number provided, it will be total request
24283
+ timeout. It can also be a pair (tuple) of
24284
+ (connection, read) timeouts.
24285
+ :return: tuple(AggregatedusageResponse, status_code(int), headers(HTTPHeaderDict))
24286
+ If the method is called asynchronously,
24287
+ returns the request thread.
24288
+ """
24289
+
24290
+ local_var_params = locals()
24291
+
24292
+ all_params = [
24293
+ 'start_date',
24294
+ 'end_date'
24295
+ ]
24296
+ all_params.extend(
24297
+ [
24298
+ 'async_req',
24299
+ '_return_http_data_only',
24300
+ '_preload_content',
24301
+ '_request_timeout'
24302
+ ]
24303
+ )
24304
+
24305
+ for key, val in six.iteritems(local_var_params['kwargs']):
24306
+ if key not in all_params:
24307
+ raise ApiTypeError(
24308
+ "Got an unexpected keyword argument '%s'"
24309
+ " to method get_total_usage_api_v2_aggregated_instance_usage_get" % key
24310
+ )
24311
+ local_var_params[key] = val
24312
+ del local_var_params['kwargs']
24313
+ # verify the required parameter 'start_date' is set
24314
+ if self.api_client.client_side_validation and ('start_date' not in local_var_params or # noqa: E501
24315
+ local_var_params['start_date'] is None): # noqa: E501
24316
+ raise ApiValueError("Missing the required parameter `start_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
24317
+ # verify the required parameter 'end_date' is set
24318
+ if self.api_client.client_side_validation and ('end_date' not in local_var_params or # noqa: E501
24319
+ local_var_params['end_date'] is None): # noqa: E501
24320
+ raise ApiValueError("Missing the required parameter `end_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
24321
+
24322
+ collection_formats = {}
24323
+
24324
+ path_params = {}
24325
+
24326
+ query_params = []
24327
+ if 'start_date' in local_var_params and local_var_params['start_date'] is not None: # noqa: E501
24328
+ query_params.append(('start_date', local_var_params['start_date'])) # noqa: E501
24329
+ if 'end_date' in local_var_params and local_var_params['end_date'] is not None: # noqa: E501
24330
+ query_params.append(('end_date', local_var_params['end_date'])) # noqa: E501
24331
+
24332
+ header_params = {}
24333
+
24334
+ form_params = []
24335
+ local_var_files = {}
24336
+
24337
+ body_params = None
24338
+ # HTTP header `Accept`
24339
+ header_params['Accept'] = self.api_client.select_header_accept(
24340
+ ['application/json']) # noqa: E501
24341
+
24342
+ # Authentication setting
24343
+ auth_settings = [] # noqa: E501
24344
+
24345
+ return self.api_client.call_api(
24346
+ '/api/v2/aggregated_instance_usage/', 'GET',
24347
+ path_params,
24348
+ query_params,
24349
+ header_params,
24350
+ body=body_params,
24351
+ post_params=form_params,
24352
+ files=local_var_files,
24353
+ response_type='AggregatedusageResponse', # noqa: E501
24354
+ auth_settings=auth_settings,
24355
+ async_req=local_var_params.get('async_req'),
24356
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
24357
+ _preload_content=local_var_params.get('_preload_content', True),
24358
+ _request_timeout=local_var_params.get('_request_timeout'),
24359
+ collection_formats=collection_formats)
24360
+
23660
24361
  def get_user_info_api_v2_userinfo_get(self, **kwargs): # noqa: E501
23661
24362
  """Get User Info # noqa: E501
23662
24363