Skip to content

Commit

Permalink
Version 2.0.73
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmilano committed Oct 13, 2024
1 parent da2c9c4 commit b249b12
Show file tree
Hide file tree
Showing 73 changed files with 255 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.51
3.0.57
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 2.0.71
- Package version: 2.0.71
- API version: 2.0.73
- Package version: 2.0.73
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -910,6 +910,18 @@ try:
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_content_description_get: %s\n" % e)

# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
ui_selector = 'ui_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - clazz or className - clickable - depth - desc - index - instance - package - parentIndex - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)

try:
# Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject.
api_response = api_instance.ui_object_oid_get_from_parent_get(oid, ui_selector=ui_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_from_parent_get: %s\n" % e)

# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
Expand Down Expand Up @@ -1107,6 +1119,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**ui_object_oid_get_child_get**](docs/DefaultApi.md#ui_object_oid_get_child_get) | **GET** /uiObject/{oid}/getChild | The child
*DefaultApi* | [**ui_object_oid_get_class_name_get**](docs/DefaultApi.md#ui_object_oid_get_class_name_get) | **GET** /uiObject/{oid}/getClassName | Retrieves the className property of the UI element.
*DefaultApi* | [**ui_object_oid_get_content_description_get**](docs/DefaultApi.md#ui_object_oid_get_content_description_get) | **GET** /uiObject/{oid}/getContentDescription | Reads the content_desc property of the UI element.
*DefaultApi* | [**ui_object_oid_get_from_parent_get**](docs/DefaultApi.md#ui_object_oid_get_from_parent_get) | **GET** /uiObject/{oid}/getFromParent | Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject.
*DefaultApi* | [**ui_object_oid_perform_two_pointer_gesture_post**](docs/DefaultApi.md#ui_object_oid_perform_two_pointer_gesture_post) | **POST** /uiObject/{oid}/performTwoPointerGesture |
*DefaultApi* | [**ui_object_oid_pinch_in_get**](docs/DefaultApi.md#ui_object_oid_pinch_in_get) | **GET** /uiObject/{oid}/pinchIn |
*DefaultApi* | [**ui_object_oid_pinch_out_get**](docs/DefaultApi.md#ui_object_oid_pinch_out_get) | **GET** /uiObject/{oid}/pinchOut |
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
101 changes: 100 additions & 1 deletion culebratester_client/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -7394,6 +7394,105 @@ def ui_object_oid_get_content_description_get_with_http_info(self, oid, **kwargs
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def ui_object_oid_get_from_parent_get(self, oid, **kwargs): # noqa: E501
"""Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject. # noqa: E501
Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.ui_object_oid_get_from_parent_get(oid, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int oid: The object ID (required)
:param str ui_selector: the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - clazz or className - clickable - depth - desc - index - instance - package - parentIndex - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created.
:return: ObjectRef
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.ui_object_oid_get_from_parent_get_with_http_info(oid, **kwargs) # noqa: E501
else:
(data) = self.ui_object_oid_get_from_parent_get_with_http_info(oid, **kwargs) # noqa: E501
return data

def ui_object_oid_get_from_parent_get_with_http_info(self, oid, **kwargs): # noqa: E501
"""Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject. # noqa: E501
Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.ui_object_oid_get_from_parent_get_with_http_info(oid, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int oid: The object ID (required)
:param str ui_selector: the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - clazz or className - clickable - depth - desc - index - instance - package - parentIndex - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created.
:return: ObjectRef
If the method is called asynchronously,
returns the request thread.
"""

all_params = ['oid', 'ui_selector'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')

params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method ui_object_oid_get_from_parent_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'oid' is set
if ('oid' not in params or
params['oid'] is None):
raise ValueError("Missing the required parameter `oid` when calling `ui_object_oid_get_from_parent_get`") # noqa: E501

collection_formats = {}

path_params = {}
if 'oid' in params:
path_params['oid'] = params['oid'] # noqa: E501

query_params = []
if 'ui_selector' in params:
query_params.append(('uiSelector', params['ui_selector'])) # noqa: E501

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# Authentication setting
auth_settings = [] # noqa: E501

return self.api_client.call_api(
'/uiObject/{oid}/getFromParent', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ObjectRef', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

def ui_object_oid_perform_two_pointer_gesture_post(self, oid, **kwargs): # noqa: E501
"""ui_object_oid_perform_two_pointer_gesture_post # noqa: E501
Expand Down
4 changes: 2 additions & 2 deletions culebratester_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -72,7 +72,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/2.0.71/python'
self.user_agent = 'Swagger-Codegen/2.0.73/python'

def __del__(self):
self.pool.close()
Expand Down
15 changes: 9 additions & 6 deletions culebratester_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -219,9 +219,12 @@ def get_basic_auth_token(self):
:return: The token for basic HTTP authentication.
"""
return urllib3.util.make_headers(
basic_auth=self.username + ':' + self.password
).get('authorization')
token = ""
if self.username or self.password:
token = urllib3.util.make_headers(
basic_auth=self.username + ':' + self.password
).get('authorization')
return token

def auth_settings(self):
"""Gets Auth Settings dict for api client.
Expand All @@ -239,6 +242,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.0.71\n"\
"SDK Package Version: 2.0.71".\
"Version of the API: 2.0.73\n"\
"SDK Package Version: 2.0.73".\
format(env=sys.platform, pyversion=sys.version)
2 changes: 1 addition & 1 deletion culebratester_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/any_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/boolean_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/click_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/culebra_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/current_package_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/display_height.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/display_real_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/display_rotation_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/display_rotation_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/display_size_dp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/display_width.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/inline_response200.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
2 changes: 1 addition & 1 deletion culebratester_client/models/last_traversed_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to invoke the API and see the responses. # noqa: E501
OpenAPI spec version: 2.0.71
OpenAPI spec version: 2.0.73
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down
Loading

0 comments on commit b249b12

Please sign in to comment.