|
| 1 | +""" |
| 2 | + Groundlight API |
| 3 | +
|
| 4 | + Groundlight makes it simple to understand images. You can easily create computer vision detectors just by describing what you want to know using natural language. # noqa: E501 |
| 5 | +
|
| 6 | + The version of the OpenAPI document: 0.18.2 |
| 7 | + |
| 8 | + Generated by: https://openapi-generator.tech |
| 9 | +""" |
| 10 | + |
| 11 | +import re # noqa: F401 |
| 12 | +import sys # noqa: F401 |
| 13 | + |
| 14 | +from groundlight_openapi_client.api_client import ApiClient, Endpoint as _Endpoint |
| 15 | +from groundlight_openapi_client.model_utils import ( # noqa: F401 |
| 16 | + check_allowed_values, |
| 17 | + check_validations, |
| 18 | + date, |
| 19 | + datetime, |
| 20 | + file_type, |
| 21 | + none_type, |
| 22 | + validate_and_convert_types, |
| 23 | +) |
| 24 | +from groundlight_openapi_client.model.account_month_to_date_info import AccountMonthToDateInfo |
| 25 | + |
| 26 | + |
| 27 | +class MonthToDateAccountInfoApi(object): |
| 28 | + """NOTE: This class is auto generated by OpenAPI Generator |
| 29 | + Ref: https://openapi-generator.tech |
| 30 | +
|
| 31 | + Do not edit the class manually. |
| 32 | + """ |
| 33 | + |
| 34 | + def __init__(self, api_client=None): |
| 35 | + if api_client is None: |
| 36 | + api_client = ApiClient() |
| 37 | + self.api_client = api_client |
| 38 | + self.month_to_date_account_info_endpoint = _Endpoint( |
| 39 | + settings={ |
| 40 | + "response_type": (AccountMonthToDateInfo,), |
| 41 | + "auth": ["ApiToken"], |
| 42 | + "endpoint_path": "/v1/month-to-date-account-info", |
| 43 | + "operation_id": "month_to_date_account_info", |
| 44 | + "http_method": "GET", |
| 45 | + "servers": None, |
| 46 | + }, |
| 47 | + params_map={"all": [], "required": [], "nullable": [], "enum": [], "validation": []}, |
| 48 | + root_map={ |
| 49 | + "validations": {}, |
| 50 | + "allowed_values": {}, |
| 51 | + "openapi_types": {}, |
| 52 | + "attribute_map": {}, |
| 53 | + "location_map": {}, |
| 54 | + "collection_format_map": {}, |
| 55 | + }, |
| 56 | + headers_map={ |
| 57 | + "accept": ["application/json"], |
| 58 | + "content_type": [], |
| 59 | + }, |
| 60 | + api_client=api_client, |
| 61 | + ) |
| 62 | + |
| 63 | + def month_to_date_account_info(self, **kwargs): |
| 64 | + """month_to_date_account_info # noqa: E501 |
| 65 | +
|
| 66 | + Fetches and returns the account-specific metrics based on the current user's group. # noqa: E501 |
| 67 | + This method makes a synchronous HTTP request by default. To make an |
| 68 | + asynchronous HTTP request, please pass async_req=True |
| 69 | +
|
| 70 | + >>> thread = api.month_to_date_account_info(async_req=True) |
| 71 | + >>> result = thread.get() |
| 72 | +
|
| 73 | +
|
| 74 | + Keyword Args: |
| 75 | + _return_http_data_only (bool): response data without head status |
| 76 | + code and headers. Default is True. |
| 77 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 78 | + will be returned without reading/decoding response data. |
| 79 | + Default is True. |
| 80 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 81 | + one number provided, it will be total request timeout. It can also |
| 82 | + be a pair (tuple) of (connection, read) timeouts. |
| 83 | + Default is None. |
| 84 | + _check_input_type (bool): specifies if type checking |
| 85 | + should be done one the data sent to the server. |
| 86 | + Default is True. |
| 87 | + _check_return_type (bool): specifies if type checking |
| 88 | + should be done one the data received from the server. |
| 89 | + Default is True. |
| 90 | + _spec_property_naming (bool): True if the variable names in the input data |
| 91 | + are serialized names, as specified in the OpenAPI document. |
| 92 | + False if the variable names in the input data |
| 93 | + are pythonic names, e.g. snake case (default) |
| 94 | + _content_type (str/None): force body content-type. |
| 95 | + Default is None and content-type will be predicted by allowed |
| 96 | + content-types and body. |
| 97 | + _host_index (int/None): specifies the index of the server |
| 98 | + that we want to use. |
| 99 | + Default is read from the configuration. |
| 100 | + async_req (bool): execute request asynchronously |
| 101 | +
|
| 102 | + Returns: |
| 103 | + AccountMonthToDateInfo |
| 104 | + If the method is called asynchronously, returns the request |
| 105 | + thread. |
| 106 | + """ |
| 107 | + kwargs["async_req"] = kwargs.get("async_req", False) |
| 108 | + kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) |
| 109 | + kwargs["_preload_content"] = kwargs.get("_preload_content", True) |
| 110 | + kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) |
| 111 | + kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) |
| 112 | + kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) |
| 113 | + kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) |
| 114 | + kwargs["_content_type"] = kwargs.get("_content_type") |
| 115 | + kwargs["_host_index"] = kwargs.get("_host_index") |
| 116 | + return self.month_to_date_account_info_endpoint.call_with_http_info(**kwargs) |
0 commit comments