|
1 | 1 | """ |
2 | | - Cosmo Tech Plaform API |
| 2 | + Cosmo Tech Platform API |
3 | 3 |
|
4 | 4 | Cosmo Tech Platform API # noqa: E501 |
5 | 5 |
|
6 | | - The version of the OpenAPI document: 2.2.1 |
| 6 | + The version of the OpenAPI document: 2.3.6-SNAPSHOT |
7 | 7 | Contact: platform@cosmotech.com |
8 | 8 | Generated by: https://openapi-generator.tech |
9 | 9 | """ |
@@ -93,6 +93,114 @@ def __init__(self, api_client=None): |
93 | 93 | }, |
94 | 94 | api_client=api_client |
95 | 95 | ) |
| 96 | + self.find_all_twingraphs_endpoint = _Endpoint( |
| 97 | + settings={ |
| 98 | + 'response_type': ([str],), |
| 99 | + 'auth': [ |
| 100 | + 'oAuth2AuthCode' |
| 101 | + ], |
| 102 | + 'endpoint_path': '/organizations/{organization_id}/twingraphs', |
| 103 | + 'operation_id': 'find_all_twingraphs', |
| 104 | + 'http_method': 'GET', |
| 105 | + 'servers': None, |
| 106 | + }, |
| 107 | + params_map={ |
| 108 | + 'all': [ |
| 109 | + 'organization_id', |
| 110 | + ], |
| 111 | + 'required': [ |
| 112 | + 'organization_id', |
| 113 | + ], |
| 114 | + 'nullable': [ |
| 115 | + ], |
| 116 | + 'enum': [ |
| 117 | + ], |
| 118 | + 'validation': [ |
| 119 | + ] |
| 120 | + }, |
| 121 | + root_map={ |
| 122 | + 'validations': { |
| 123 | + }, |
| 124 | + 'allowed_values': { |
| 125 | + }, |
| 126 | + 'openapi_types': { |
| 127 | + 'organization_id': |
| 128 | + (str,), |
| 129 | + }, |
| 130 | + 'attribute_map': { |
| 131 | + 'organization_id': 'organization_id', |
| 132 | + }, |
| 133 | + 'location_map': { |
| 134 | + 'organization_id': 'path', |
| 135 | + }, |
| 136 | + 'collection_format_map': { |
| 137 | + } |
| 138 | + }, |
| 139 | + headers_map={ |
| 140 | + 'accept': [ |
| 141 | + 'application/json' |
| 142 | + ], |
| 143 | + 'content_type': [], |
| 144 | + }, |
| 145 | + api_client=api_client |
| 146 | + ) |
| 147 | + self.get_graph_meta_data_endpoint = _Endpoint( |
| 148 | + settings={ |
| 149 | + 'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), |
| 150 | + 'auth': [ |
| 151 | + 'oAuth2AuthCode' |
| 152 | + ], |
| 153 | + 'endpoint_path': '/organizations/{organization_id}/twingraph/{graph_id}/metadata', |
| 154 | + 'operation_id': 'get_graph_meta_data', |
| 155 | + 'http_method': 'GET', |
| 156 | + 'servers': None, |
| 157 | + }, |
| 158 | + params_map={ |
| 159 | + 'all': [ |
| 160 | + 'organization_id', |
| 161 | + 'graph_id', |
| 162 | + ], |
| 163 | + 'required': [ |
| 164 | + 'organization_id', |
| 165 | + 'graph_id', |
| 166 | + ], |
| 167 | + 'nullable': [ |
| 168 | + ], |
| 169 | + 'enum': [ |
| 170 | + ], |
| 171 | + 'validation': [ |
| 172 | + ] |
| 173 | + }, |
| 174 | + root_map={ |
| 175 | + 'validations': { |
| 176 | + }, |
| 177 | + 'allowed_values': { |
| 178 | + }, |
| 179 | + 'openapi_types': { |
| 180 | + 'organization_id': |
| 181 | + (str,), |
| 182 | + 'graph_id': |
| 183 | + (str,), |
| 184 | + }, |
| 185 | + 'attribute_map': { |
| 186 | + 'organization_id': 'organization_id', |
| 187 | + 'graph_id': 'graph_id', |
| 188 | + }, |
| 189 | + 'location_map': { |
| 190 | + 'organization_id': 'path', |
| 191 | + 'graph_id': 'path', |
| 192 | + }, |
| 193 | + 'collection_format_map': { |
| 194 | + } |
| 195 | + }, |
| 196 | + headers_map={ |
| 197 | + 'accept': [ |
| 198 | + 'application/json' |
| 199 | + ], |
| 200 | + 'content_type': [], |
| 201 | + }, |
| 202 | + api_client=api_client |
| 203 | + ) |
96 | 204 | self.import_graph_endpoint = _Endpoint( |
97 | 205 | settings={ |
98 | 206 | 'response_type': (TwinGraphImportInfo,), |
@@ -358,6 +466,166 @@ def delete( |
358 | 466 | graph_id |
359 | 467 | return self.delete_endpoint.call_with_http_info(**kwargs) |
360 | 468 |
|
| 469 | + def find_all_twingraphs( |
| 470 | + self, |
| 471 | + organization_id, |
| 472 | + **kwargs |
| 473 | + ): |
| 474 | + """find_all_twingraphs # noqa: E501 |
| 475 | +
|
| 476 | + Return the list of all graphs stored in the organization # noqa: E501 |
| 477 | + This method makes a synchronous HTTP request by default. To make an |
| 478 | + asynchronous HTTP request, please pass async_req=True |
| 479 | +
|
| 480 | + >>> thread = api.find_all_twingraphs(organization_id, async_req=True) |
| 481 | + >>> result = thread.get() |
| 482 | +
|
| 483 | + Args: |
| 484 | + organization_id (str): the Organization identifier |
| 485 | +
|
| 486 | + Keyword Args: |
| 487 | + _return_http_data_only (bool): response data without head status |
| 488 | + code and headers. Default is True. |
| 489 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 490 | + will be returned without reading/decoding response data. |
| 491 | + Default is True. |
| 492 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 493 | + one number provided, it will be total request timeout. It can also |
| 494 | + be a pair (tuple) of (connection, read) timeouts. |
| 495 | + Default is None. |
| 496 | + _check_input_type (bool): specifies if type checking |
| 497 | + should be done one the data sent to the server. |
| 498 | + Default is True. |
| 499 | + _check_return_type (bool): specifies if type checking |
| 500 | + should be done one the data received from the server. |
| 501 | + Default is True. |
| 502 | + _spec_property_naming (bool): True if the variable names in the input data |
| 503 | + are serialized names, as specified in the OpenAPI document. |
| 504 | + False if the variable names in the input data |
| 505 | + are pythonic names, e.g. snake case (default) |
| 506 | + _content_type (str/None): force body content-type. |
| 507 | + Default is None and content-type will be predicted by allowed |
| 508 | + content-types and body. |
| 509 | + _host_index (int/None): specifies the index of the server |
| 510 | + that we want to use. |
| 511 | + Default is read from the configuration. |
| 512 | + async_req (bool): execute request asynchronously |
| 513 | +
|
| 514 | + Returns: |
| 515 | + [str] |
| 516 | + If the method is called asynchronously, returns the request |
| 517 | + thread. |
| 518 | + """ |
| 519 | + kwargs['async_req'] = kwargs.get( |
| 520 | + 'async_req', False |
| 521 | + ) |
| 522 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 523 | + '_return_http_data_only', True |
| 524 | + ) |
| 525 | + kwargs['_preload_content'] = kwargs.get( |
| 526 | + '_preload_content', True |
| 527 | + ) |
| 528 | + kwargs['_request_timeout'] = kwargs.get( |
| 529 | + '_request_timeout', None |
| 530 | + ) |
| 531 | + kwargs['_check_input_type'] = kwargs.get( |
| 532 | + '_check_input_type', True |
| 533 | + ) |
| 534 | + kwargs['_check_return_type'] = kwargs.get( |
| 535 | + '_check_return_type', True |
| 536 | + ) |
| 537 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 538 | + '_spec_property_naming', False |
| 539 | + ) |
| 540 | + kwargs['_content_type'] = kwargs.get( |
| 541 | + '_content_type') |
| 542 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 543 | + kwargs['organization_id'] = \ |
| 544 | + organization_id |
| 545 | + return self.find_all_twingraphs_endpoint.call_with_http_info(**kwargs) |
| 546 | + |
| 547 | + def get_graph_meta_data( |
| 548 | + self, |
| 549 | + organization_id, |
| 550 | + graph_id, |
| 551 | + **kwargs |
| 552 | + ): |
| 553 | + """get_graph_meta_data # noqa: E501 |
| 554 | +
|
| 555 | + Return the metaData of the specified graph # noqa: E501 |
| 556 | + This method makes a synchronous HTTP request by default. To make an |
| 557 | + asynchronous HTTP request, please pass async_req=True |
| 558 | +
|
| 559 | + >>> thread = api.get_graph_meta_data(organization_id, graph_id, async_req=True) |
| 560 | + >>> result = thread.get() |
| 561 | +
|
| 562 | + Args: |
| 563 | + organization_id (str): the Organization identifier |
| 564 | + graph_id (str): the Graph Identifier |
| 565 | +
|
| 566 | + Keyword Args: |
| 567 | + _return_http_data_only (bool): response data without head status |
| 568 | + code and headers. Default is True. |
| 569 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 570 | + will be returned without reading/decoding response data. |
| 571 | + Default is True. |
| 572 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 573 | + one number provided, it will be total request timeout. It can also |
| 574 | + be a pair (tuple) of (connection, read) timeouts. |
| 575 | + Default is None. |
| 576 | + _check_input_type (bool): specifies if type checking |
| 577 | + should be done one the data sent to the server. |
| 578 | + Default is True. |
| 579 | + _check_return_type (bool): specifies if type checking |
| 580 | + should be done one the data received from the server. |
| 581 | + Default is True. |
| 582 | + _spec_property_naming (bool): True if the variable names in the input data |
| 583 | + are serialized names, as specified in the OpenAPI document. |
| 584 | + False if the variable names in the input data |
| 585 | + are pythonic names, e.g. snake case (default) |
| 586 | + _content_type (str/None): force body content-type. |
| 587 | + Default is None and content-type will be predicted by allowed |
| 588 | + content-types and body. |
| 589 | + _host_index (int/None): specifies the index of the server |
| 590 | + that we want to use. |
| 591 | + Default is read from the configuration. |
| 592 | + async_req (bool): execute request asynchronously |
| 593 | +
|
| 594 | + Returns: |
| 595 | + {str: (bool, date, datetime, dict, float, int, list, str, none_type)} |
| 596 | + If the method is called asynchronously, returns the request |
| 597 | + thread. |
| 598 | + """ |
| 599 | + kwargs['async_req'] = kwargs.get( |
| 600 | + 'async_req', False |
| 601 | + ) |
| 602 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 603 | + '_return_http_data_only', True |
| 604 | + ) |
| 605 | + kwargs['_preload_content'] = kwargs.get( |
| 606 | + '_preload_content', True |
| 607 | + ) |
| 608 | + kwargs['_request_timeout'] = kwargs.get( |
| 609 | + '_request_timeout', None |
| 610 | + ) |
| 611 | + kwargs['_check_input_type'] = kwargs.get( |
| 612 | + '_check_input_type', True |
| 613 | + ) |
| 614 | + kwargs['_check_return_type'] = kwargs.get( |
| 615 | + '_check_return_type', True |
| 616 | + ) |
| 617 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 618 | + '_spec_property_naming', False |
| 619 | + ) |
| 620 | + kwargs['_content_type'] = kwargs.get( |
| 621 | + '_content_type') |
| 622 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 623 | + kwargs['organization_id'] = \ |
| 624 | + organization_id |
| 625 | + kwargs['graph_id'] = \ |
| 626 | + graph_id |
| 627 | + return self.get_graph_meta_data_endpoint.call_with_http_info(**kwargs) |
| 628 | + |
361 | 629 | def import_graph( |
362 | 630 | self, |
363 | 631 | organization_id, |
|
0 commit comments