diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index fff4b24..d40e627 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -12,16 +12,21 @@ docs/BatchOperationEnqueued.md
docs/BatchOperationResult.md
docs/BatchOperationStatusResponse.md
docs/BatchOperationsApi.md
+docs/BatchResourceDeleteOperation.md
+docs/BatchResourceDeleteOperationAction.md
+docs/BatchResourceDeleteOperationActionParameters.md
+docs/BatchResourceDeleteOperationEntity.md
+docs/BatchResourceDeleteOperationQuery.md
docs/BatchResourceOperation.md
-docs/BatchResourceOperationAction.md
-docs/BatchResourceOperationEntity.md
-docs/BatchResourceOperationQuery.md
-docs/BatchResourceOperationQueryIdsInner.md
+docs/BatchResourceTypeDeleteOperation.md
+docs/BatchResourceTypeDeleteOperationEntity.md
+docs/BatchResourceTypeDeleteOperationQuery.md
docs/BatchRunningResourceOperation.md
docs/BatchRunningResourceOperationOperation.md
docs/BatchRunningResourceOperationOperationEntity.md
docs/BooleanValueConstraint.md
docs/BooleanValueConstraintType.md
+docs/CascadeDeleteValuesInner.md
docs/ChangedEvent.md
docs/ChangedEventType.md
docs/CloudMetadataEvent.md
@@ -32,8 +37,10 @@ docs/Constraint.md
docs/ConstraintError.md
docs/ConstraintStatus.md
docs/ConstraintStatusStatus.md
-docs/CreateDeleteEvent.md
-docs/CreateDeleteEventType.md
+docs/CreateEvent.md
+docs/CreateEventType.md
+docs/DeletedEvent.md
+docs/DeletedResourceEvent.md
docs/DiscoveredEvent.md
docs/DiscoveredEventType.md
docs/ErrorResponse.md
@@ -57,9 +64,9 @@ docs/HALSelfLinksLinks.md
docs/HALSelfLinksLinksSelf.md
docs/HALSelfLinksLinksValue.md
docs/ListConstraints200Response.md
+docs/ListResourcesOrderParameter.md
docs/MetadataEntity.md
docs/MetadataEntityLocation.md
-docs/MetadataEntityValue.md
docs/MetadataEvent.md
docs/MetadataEventsApi.md
docs/NdJsonResponseStream.md
@@ -126,6 +133,7 @@ docs/StringValueConstraintType.md
docs/SuccessOperationResultValue.md
docs/TaskConfiguration.md
docs/TaskConfigurationType.md
+docs/UserResourceProperties.md
docs/ValidationFailure.md
docs/VersionResponse.md
docs/WithIdRequired.md
@@ -149,16 +157,21 @@ test/types/attribute_item_stub.py
test/types/batch_operation_enqueued_stub.py
test/types/batch_operation_result_stub.py
test/types/batch_operation_status_response_stub.py
-test/types/batch_resource_operation_action_stub.py
-test/types/batch_resource_operation_entity_stub.py
-test/types/batch_resource_operation_query_ids_inner_stub.py
-test/types/batch_resource_operation_query_stub.py
+test/types/batch_resource_delete_operation_action_parameters_stub.py
+test/types/batch_resource_delete_operation_action_stub.py
+test/types/batch_resource_delete_operation_entity_stub.py
+test/types/batch_resource_delete_operation_query_stub.py
+test/types/batch_resource_delete_operation_stub.py
test/types/batch_resource_operation_stub.py
+test/types/batch_resource_type_delete_operation_entity_stub.py
+test/types/batch_resource_type_delete_operation_query_stub.py
+test/types/batch_resource_type_delete_operation_stub.py
test/types/batch_running_resource_operation_operation_entity_stub.py
test/types/batch_running_resource_operation_operation_stub.py
test/types/batch_running_resource_operation_stub.py
test/types/boolean_value_constraint_stub.py
test/types/boolean_value_constraint_type_stub.py
+test/types/cascade_delete_values_inner_stub.py
test/types/changed_event_stub.py
test/types/changed_event_type_stub.py
test/types/cloud_metadata_event_data_source_stub.py
@@ -169,8 +182,10 @@ test/types/constraint_error_stub.py
test/types/constraint_status_status_stub.py
test/types/constraint_status_stub.py
test/types/constraint_stub.py
-test/types/create_delete_event_stub.py
-test/types/create_delete_event_type_stub.py
+test/types/create_event_stub.py
+test/types/create_event_type_stub.py
+test/types/deleted_event_stub.py
+test/types/deleted_resource_event_stub.py
test/types/discovered_event_stub.py
test/types/discovered_event_type_stub.py
test/types/error_response_stub.py
@@ -194,9 +209,9 @@ test/types/hal_self_links_links_value_stub.py
test/types/hal_self_links_stub.py
test/types/halid_link_stub.py
test/types/list_constraints200_response_stub.py
+test/types/list_resources_order_parameter_stub.py
test/types/metadata_entity_location_stub.py
test/types/metadata_entity_stub.py
-test/types/metadata_entity_value_stub.py
test/types/metadata_event_stub.py
test/types/nd_json_response_stream_stub.py
test/types/numeric_enum_value_constraint_stub.py
@@ -258,6 +273,7 @@ test/types/string_value_constraint_type_stub.py
test/types/success_operation_result_value_stub.py
test/types/task_configuration_stub.py
test/types/task_configuration_type_stub.py
+test/types/user_resource_properties_stub.py
test/types/validation_failure_stub.py
test/types/version_response_stub.py
test/types/with_id_required_stub.py
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 1985849..09a6d30 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.7.0
+7.8.0
diff --git a/README.md b/README.md
index 21e06ff..b942d86 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ You'll interact with the _Waylay Resources_ API to create this _Digital Twin_ mo
a process that's also called _resource provisioning_.
This Python package is automatically generated based on the
-Waylay Resources OpenAPI specification (API version: 8.1.0)
+Waylay Resources OpenAPI specification (API version: 8.5.0)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/resources.html).
It consists of two sub-packages that are both plugins for the waylay-sdk-core package.
@@ -103,16 +103,21 @@ Class | Method | HTTP request | Description
- [BatchOperationEnqueued](docs/BatchOperationEnqueued.md)
- [BatchOperationResult](docs/BatchOperationResult.md)
- [BatchOperationStatusResponse](docs/BatchOperationStatusResponse.md)
+ - [BatchResourceDeleteOperation](docs/BatchResourceDeleteOperation.md)
+ - [BatchResourceDeleteOperationAction](docs/BatchResourceDeleteOperationAction.md)
+ - [BatchResourceDeleteOperationActionParameters](docs/BatchResourceDeleteOperationActionParameters.md)
+ - [BatchResourceDeleteOperationEntity](docs/BatchResourceDeleteOperationEntity.md)
+ - [BatchResourceDeleteOperationQuery](docs/BatchResourceDeleteOperationQuery.md)
- [BatchResourceOperation](docs/BatchResourceOperation.md)
- - [BatchResourceOperationAction](docs/BatchResourceOperationAction.md)
- - [BatchResourceOperationEntity](docs/BatchResourceOperationEntity.md)
- - [BatchResourceOperationQuery](docs/BatchResourceOperationQuery.md)
- - [BatchResourceOperationQueryIdsInner](docs/BatchResourceOperationQueryIdsInner.md)
+ - [BatchResourceTypeDeleteOperation](docs/BatchResourceTypeDeleteOperation.md)
+ - [BatchResourceTypeDeleteOperationEntity](docs/BatchResourceTypeDeleteOperationEntity.md)
+ - [BatchResourceTypeDeleteOperationQuery](docs/BatchResourceTypeDeleteOperationQuery.md)
- [BatchRunningResourceOperation](docs/BatchRunningResourceOperation.md)
- [BatchRunningResourceOperationOperation](docs/BatchRunningResourceOperationOperation.md)
- [BatchRunningResourceOperationOperationEntity](docs/BatchRunningResourceOperationOperationEntity.md)
- [BooleanValueConstraint](docs/BooleanValueConstraint.md)
- [BooleanValueConstraintType](docs/BooleanValueConstraintType.md)
+ - [CascadeDeleteValuesInner](docs/CascadeDeleteValuesInner.md)
- [ChangedEvent](docs/ChangedEvent.md)
- [ChangedEventType](docs/ChangedEventType.md)
- [CloudMetadataEvent](docs/CloudMetadataEvent.md)
@@ -123,8 +128,10 @@ Class | Method | HTTP request | Description
- [ConstraintError](docs/ConstraintError.md)
- [ConstraintStatus](docs/ConstraintStatus.md)
- [ConstraintStatusStatus](docs/ConstraintStatusStatus.md)
- - [CreateDeleteEvent](docs/CreateDeleteEvent.md)
- - [CreateDeleteEventType](docs/CreateDeleteEventType.md)
+ - [CreateEvent](docs/CreateEvent.md)
+ - [CreateEventType](docs/CreateEventType.md)
+ - [DeletedEvent](docs/DeletedEvent.md)
+ - [DeletedResourceEvent](docs/DeletedResourceEvent.md)
- [DiscoveredEvent](docs/DiscoveredEvent.md)
- [DiscoveredEventType](docs/DiscoveredEventType.md)
- [ErrorResponse](docs/ErrorResponse.md)
@@ -148,9 +155,9 @@ Class | Method | HTTP request | Description
- [HALSelfLinksLinksSelf](docs/HALSelfLinksLinksSelf.md)
- [HALSelfLinksLinksValue](docs/HALSelfLinksLinksValue.md)
- [ListConstraints200Response](docs/ListConstraints200Response.md)
+ - [ListResourcesOrderParameter](docs/ListResourcesOrderParameter.md)
- [MetadataEntity](docs/MetadataEntity.md)
- [MetadataEntityLocation](docs/MetadataEntityLocation.md)
- - [MetadataEntityValue](docs/MetadataEntityValue.md)
- [MetadataEvent](docs/MetadataEvent.md)
- [NdJsonResponseStream](docs/NdJsonResponseStream.md)
- [NumericEnumValueConstraint](docs/NumericEnumValueConstraint.md)
@@ -212,6 +219,7 @@ Class | Method | HTTP request | Description
- [SuccessOperationResultValue](docs/SuccessOperationResultValue.md)
- [TaskConfiguration](docs/TaskConfiguration.md)
- [TaskConfigurationType](docs/TaskConfigurationType.md)
+ - [UserResourceProperties](docs/UserResourceProperties.md)
- [ValidationFailure](docs/ValidationFailure.md)
- [VersionResponse](docs/VersionResponse.md)
- [WithIdRequired](docs/WithIdRequired.md)
diff --git a/docs/BatchResourceDeleteOperation.md b/docs/BatchResourceDeleteOperation.md
new file mode 100644
index 0000000..a4b3a6c
--- /dev/null
+++ b/docs/BatchResourceDeleteOperation.md
@@ -0,0 +1,32 @@
+# BatchResourceDeleteOperation
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**entity** | [**BatchResourceDeleteOperationEntity**](BatchResourceDeleteOperationEntity.md) | |
+**action** | [**BatchResourceDeleteOperationAction**](BatchResourceDeleteOperationAction.md) | |
+**query** | [**BatchResourceDeleteOperationQuery**](BatchResourceDeleteOperationQuery.md) | |
+**action_parameters** | [**BatchResourceDeleteOperationActionParameters**](BatchResourceDeleteOperationActionParameters.md) | | [optional]
+
+## Example
+
+```python
+from waylay.services.resources.models.batch_resource_delete_operation import BatchResourceDeleteOperation
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BatchResourceDeleteOperation from a JSON string
+batch_resource_delete_operation_instance = BatchResourceDeleteOperation.from_json(json)
+# print the JSON string representation of the object
+print BatchResourceDeleteOperation.to_json()
+
+# convert the object into a dict
+batch_resource_delete_operation_dict = batch_resource_delete_operation_instance.to_dict()
+# create an instance of BatchResourceDeleteOperation from a dict
+batch_resource_delete_operation_form_dict = batch_resource_delete_operation.from_dict(batch_resource_delete_operation_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchResourceDeleteOperationAction.md b/docs/BatchResourceDeleteOperationAction.md
new file mode 100644
index 0000000..675ea8b
--- /dev/null
+++ b/docs/BatchResourceDeleteOperationAction.md
@@ -0,0 +1,11 @@
+# BatchResourceDeleteOperationAction
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchResourceDeleteOperationActionParameters.md b/docs/BatchResourceDeleteOperationActionParameters.md
new file mode 100644
index 0000000..9e1f219
--- /dev/null
+++ b/docs/BatchResourceDeleteOperationActionParameters.md
@@ -0,0 +1,29 @@
+# BatchResourceDeleteOperationActionParameters
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**cascade** | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | |
+
+## Example
+
+```python
+from waylay.services.resources.models.batch_resource_delete_operation_action_parameters import BatchResourceDeleteOperationActionParameters
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BatchResourceDeleteOperationActionParameters from a JSON string
+batch_resource_delete_operation_action_parameters_instance = BatchResourceDeleteOperationActionParameters.from_json(json)
+# print the JSON string representation of the object
+print BatchResourceDeleteOperationActionParameters.to_json()
+
+# convert the object into a dict
+batch_resource_delete_operation_action_parameters_dict = batch_resource_delete_operation_action_parameters_instance.to_dict()
+# create an instance of BatchResourceDeleteOperationActionParameters from a dict
+batch_resource_delete_operation_action_parameters_form_dict = batch_resource_delete_operation_action_parameters.from_dict(batch_resource_delete_operation_action_parameters_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchResourceOperationEntity.md b/docs/BatchResourceDeleteOperationEntity.md
similarity index 89%
rename from docs/BatchResourceOperationEntity.md
rename to docs/BatchResourceDeleteOperationEntity.md
index 2590dfb..740829e 100644
--- a/docs/BatchResourceOperationEntity.md
+++ b/docs/BatchResourceDeleteOperationEntity.md
@@ -1,4 +1,4 @@
-# BatchResourceOperationEntity
+# BatchResourceDeleteOperationEntity
Type of entities to remove
diff --git a/docs/BatchResourceDeleteOperationQuery.md b/docs/BatchResourceDeleteOperationQuery.md
new file mode 100644
index 0000000..5e4131a
--- /dev/null
+++ b/docs/BatchResourceDeleteOperationQuery.md
@@ -0,0 +1,29 @@
+# BatchResourceDeleteOperationQuery
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ids** | [**List[ResourceId]**](ResourceId.md) | |
+
+## Example
+
+```python
+from waylay.services.resources.models.batch_resource_delete_operation_query import BatchResourceDeleteOperationQuery
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BatchResourceDeleteOperationQuery from a JSON string
+batch_resource_delete_operation_query_instance = BatchResourceDeleteOperationQuery.from_json(json)
+# print the JSON string representation of the object
+print BatchResourceDeleteOperationQuery.to_json()
+
+# convert the object into a dict
+batch_resource_delete_operation_query_dict = batch_resource_delete_operation_query_instance.to_dict()
+# create an instance of BatchResourceDeleteOperationQuery from a dict
+batch_resource_delete_operation_query_form_dict = batch_resource_delete_operation_query.from_dict(batch_resource_delete_operation_query_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchResourceOperation.md b/docs/BatchResourceOperation.md
index 1527b92..068abd2 100644
--- a/docs/BatchResourceOperation.md
+++ b/docs/BatchResourceOperation.md
@@ -5,9 +5,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**entity** | [**BatchResourceOperationEntity**](BatchResourceOperationEntity.md) | |
-**action** | [**BatchResourceOperationAction**](BatchResourceOperationAction.md) | |
-**query** | [**BatchResourceOperationQuery**](BatchResourceOperationQuery.md) | |
+**entity** | [**BatchResourceTypeDeleteOperationEntity**](BatchResourceTypeDeleteOperationEntity.md) | |
+**action** | [**BatchResourceDeleteOperationAction**](BatchResourceDeleteOperationAction.md) | |
+**query** | [**BatchResourceTypeDeleteOperationQuery**](BatchResourceTypeDeleteOperationQuery.md) | |
+**action_parameters** | [**BatchResourceDeleteOperationActionParameters**](BatchResourceDeleteOperationActionParameters.md) | | [optional]
## Example
diff --git a/docs/BatchResourceOperationQuery.md b/docs/BatchResourceOperationQuery.md
deleted file mode 100644
index 9fc4135..0000000
--- a/docs/BatchResourceOperationQuery.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# BatchResourceOperationQuery
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ids** | [**List[BatchResourceOperationQueryIdsInner]**](BatchResourceOperationQueryIdsInner.md) | |
-
-## Example
-
-```python
-from waylay.services.resources.models.batch_resource_operation_query import BatchResourceOperationQuery
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of BatchResourceOperationQuery from a JSON string
-batch_resource_operation_query_instance = BatchResourceOperationQuery.from_json(json)
-# print the JSON string representation of the object
-print BatchResourceOperationQuery.to_json()
-
-# convert the object into a dict
-batch_resource_operation_query_dict = batch_resource_operation_query_instance.to_dict()
-# create an instance of BatchResourceOperationQuery from a dict
-batch_resource_operation_query_form_dict = batch_resource_operation_query.from_dict(batch_resource_operation_query_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/BatchResourceOperationQueryIdsInner.md b/docs/BatchResourceOperationQueryIdsInner.md
deleted file mode 100644
index a3282e1..0000000
--- a/docs/BatchResourceOperationQueryIdsInner.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# BatchResourceOperationQueryIdsInner
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-## Example
-
-```python
-from waylay.services.resources.models.batch_resource_operation_query_ids_inner import BatchResourceOperationQueryIdsInner
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of BatchResourceOperationQueryIdsInner from a JSON string
-batch_resource_operation_query_ids_inner_instance = BatchResourceOperationQueryIdsInner.from_json(json)
-# print the JSON string representation of the object
-print BatchResourceOperationQueryIdsInner.to_json()
-
-# convert the object into a dict
-batch_resource_operation_query_ids_inner_dict = batch_resource_operation_query_ids_inner_instance.to_dict()
-# create an instance of BatchResourceOperationQueryIdsInner from a dict
-batch_resource_operation_query_ids_inner_form_dict = batch_resource_operation_query_ids_inner.from_dict(batch_resource_operation_query_ids_inner_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/BatchResourceTypeDeleteOperation.md b/docs/BatchResourceTypeDeleteOperation.md
new file mode 100644
index 0000000..47a53bc
--- /dev/null
+++ b/docs/BatchResourceTypeDeleteOperation.md
@@ -0,0 +1,31 @@
+# BatchResourceTypeDeleteOperation
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**entity** | [**BatchResourceTypeDeleteOperationEntity**](BatchResourceTypeDeleteOperationEntity.md) | |
+**action** | [**BatchResourceDeleteOperationAction**](BatchResourceDeleteOperationAction.md) | |
+**query** | [**BatchResourceTypeDeleteOperationQuery**](BatchResourceTypeDeleteOperationQuery.md) | |
+
+## Example
+
+```python
+from waylay.services.resources.models.batch_resource_type_delete_operation import BatchResourceTypeDeleteOperation
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BatchResourceTypeDeleteOperation from a JSON string
+batch_resource_type_delete_operation_instance = BatchResourceTypeDeleteOperation.from_json(json)
+# print the JSON string representation of the object
+print BatchResourceTypeDeleteOperation.to_json()
+
+# convert the object into a dict
+batch_resource_type_delete_operation_dict = batch_resource_type_delete_operation_instance.to_dict()
+# create an instance of BatchResourceTypeDeleteOperation from a dict
+batch_resource_type_delete_operation_form_dict = batch_resource_type_delete_operation.from_dict(batch_resource_type_delete_operation_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchResourceTypeDeleteOperationEntity.md b/docs/BatchResourceTypeDeleteOperationEntity.md
new file mode 100644
index 0000000..de7d5af
--- /dev/null
+++ b/docs/BatchResourceTypeDeleteOperationEntity.md
@@ -0,0 +1,12 @@
+# BatchResourceTypeDeleteOperationEntity
+
+Type of entities to remove
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchResourceTypeDeleteOperationQuery.md b/docs/BatchResourceTypeDeleteOperationQuery.md
new file mode 100644
index 0000000..43a5c68
--- /dev/null
+++ b/docs/BatchResourceTypeDeleteOperationQuery.md
@@ -0,0 +1,29 @@
+# BatchResourceTypeDeleteOperationQuery
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ids** | [**List[ResourceTypeId]**](ResourceTypeId.md) | |
+
+## Example
+
+```python
+from waylay.services.resources.models.batch_resource_type_delete_operation_query import BatchResourceTypeDeleteOperationQuery
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BatchResourceTypeDeleteOperationQuery from a JSON string
+batch_resource_type_delete_operation_query_instance = BatchResourceTypeDeleteOperationQuery.from_json(json)
+# print the JSON string representation of the object
+print BatchResourceTypeDeleteOperationQuery.to_json()
+
+# convert the object into a dict
+batch_resource_type_delete_operation_query_dict = batch_resource_type_delete_operation_query_instance.to_dict()
+# create an instance of BatchResourceTypeDeleteOperationQuery from a dict
+batch_resource_type_delete_operation_query_form_dict = batch_resource_type_delete_operation_query.from_dict(batch_resource_type_delete_operation_query_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BatchRunningResourceOperationOperation.md b/docs/BatchRunningResourceOperationOperation.md
index e43d748..e33b979 100644
--- a/docs/BatchRunningResourceOperationOperation.md
+++ b/docs/BatchRunningResourceOperationOperation.md
@@ -7,7 +7,7 @@ Queued operation summary
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**entity** | [**BatchRunningResourceOperationOperationEntity**](BatchRunningResourceOperationOperationEntity.md) | |
-**action** | [**BatchResourceOperationAction**](BatchResourceOperationAction.md) | |
+**action** | [**BatchResourceDeleteOperationAction**](BatchResourceDeleteOperationAction.md) | |
**description** | **str** | |
## Example
diff --git a/docs/BatchResourceOperationAction.md b/docs/CascadeDeleteValuesInner.md
similarity index 89%
rename from docs/BatchResourceOperationAction.md
rename to docs/CascadeDeleteValuesInner.md
index 6d9915b..88e2179 100644
--- a/docs/BatchResourceOperationAction.md
+++ b/docs/CascadeDeleteValuesInner.md
@@ -1,4 +1,4 @@
-# BatchResourceOperationAction
+# CascadeDeleteValuesInner
## Properties
diff --git a/docs/Constraint.md b/docs/Constraint.md
index be235c6..78a224c 100644
--- a/docs/Constraint.md
+++ b/docs/Constraint.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | Name for the _Resource Constraint_ |
**description** | **str** | A description for the _Resource Constraint_ | [optional]
+**tags** | **List[str]** | | [optional]
**attributes** | [**List[AttributeItem]**](AttributeItem.md) | List of attribute descriptions |
## Example
diff --git a/docs/CreateDeleteEvent.md b/docs/CreateDeleteEvent.md
deleted file mode 100644
index f44f258..0000000
--- a/docs/CreateDeleteEvent.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# CreateDeleteEvent
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**type** | [**CreateDeleteEventType**](CreateDeleteEventType.md) | | [optional]
-
-## Example
-
-```python
-from waylay.services.resources.models.create_delete_event import CreateDeleteEvent
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateDeleteEvent from a JSON string
-create_delete_event_instance = CreateDeleteEvent.from_json(json)
-# print the JSON string representation of the object
-print CreateDeleteEvent.to_json()
-
-# convert the object into a dict
-create_delete_event_dict = create_delete_event_instance.to_dict()
-# create an instance of CreateDeleteEvent from a dict
-create_delete_event_form_dict = create_delete_event.from_dict(create_delete_event_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateEvent.md b/docs/CreateEvent.md
new file mode 100644
index 0000000..6d06555
--- /dev/null
+++ b/docs/CreateEvent.md
@@ -0,0 +1,29 @@
+# CreateEvent
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | [**CreateEventType**](CreateEventType.md) | | [optional]
+
+## Example
+
+```python
+from waylay.services.resources.models.create_event import CreateEvent
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateEvent from a JSON string
+create_event_instance = CreateEvent.from_json(json)
+# print the JSON string representation of the object
+print CreateEvent.to_json()
+
+# convert the object into a dict
+create_event_dict = create_event_instance.to_dict()
+# create an instance of CreateEvent from a dict
+create_event_form_dict = create_event.from_dict(create_event_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateDeleteEventType.md b/docs/CreateEventType.md
similarity index 92%
rename from docs/CreateDeleteEventType.md
rename to docs/CreateEventType.md
index 198976d..c73b2b2 100644
--- a/docs/CreateDeleteEventType.md
+++ b/docs/CreateEventType.md
@@ -1,4 +1,4 @@
-# CreateDeleteEventType
+# CreateEventType
## Properties
diff --git a/docs/DeletedEvent.md b/docs/DeletedEvent.md
new file mode 100644
index 0000000..01fc073
--- /dev/null
+++ b/docs/DeletedEvent.md
@@ -0,0 +1,29 @@
+# DeletedEvent
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | [**BatchResourceDeleteOperationAction**](BatchResourceDeleteOperationAction.md) | | [optional]
+
+## Example
+
+```python
+from waylay.services.resources.models.deleted_event import DeletedEvent
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DeletedEvent from a JSON string
+deleted_event_instance = DeletedEvent.from_json(json)
+# print the JSON string representation of the object
+print DeletedEvent.to_json()
+
+# convert the object into a dict
+deleted_event_dict = deleted_event_instance.to_dict()
+# create an instance of DeletedEvent from a dict
+deleted_event_form_dict = deleted_event.from_dict(deleted_event_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeletedResourceEvent.md b/docs/DeletedResourceEvent.md
new file mode 100644
index 0000000..986f5d5
--- /dev/null
+++ b/docs/DeletedResourceEvent.md
@@ -0,0 +1,30 @@
+# DeletedResourceEvent
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | [**BatchResourceDeleteOperationAction**](BatchResourceDeleteOperationAction.md) | | [optional]
+**cascade_delete** | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | | [optional]
+
+## Example
+
+```python
+from waylay.services.resources.models.deleted_resource_event import DeletedResourceEvent
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DeletedResourceEvent from a JSON string
+deleted_resource_event_instance = DeletedResourceEvent.from_json(json)
+# print the JSON string representation of the object
+print DeletedResourceEvent.to_json()
+
+# convert the object into a dict
+deleted_resource_event_dict = deleted_resource_event_instance.to_dict()
+# create an instance of DeletedResourceEvent from a dict
+deleted_resource_event_form_dict = deleted_resource_event.from_dict(deleted_resource_event_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ListResourcesOrderParameter.md b/docs/ListResourcesOrderParameter.md
new file mode 100644
index 0000000..3b010db
--- /dev/null
+++ b/docs/ListResourcesOrderParameter.md
@@ -0,0 +1,11 @@
+# ListResourcesOrderParameter
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/MetadataEvent.md b/docs/MetadataEvent.md
index 3799e98..afa4acb 100644
--- a/docs/MetadataEvent.md
+++ b/docs/MetadataEvent.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**object_type** | [**ResourcetypeMetadataEventAllOfObjectType**](ResourcetypeMetadataEventAllOfObjectType.md) | |
**timestamp** | **datetime** | |
**resource** | [**ResourceEntity**](ResourceEntity.md) | |
+**cascade_delete** | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | | [optional]
**old_values** | **object** | old values of all attributes that have changed | [optional]
**message** | **object** | The broker message that triggered the discovery | [optional]
**resourcetype** | [**ResourceTypeEntity**](ResourceTypeEntity.md) | |
diff --git a/docs/NdJsonResponseStream.md b/docs/NdJsonResponseStream.md
index 2400731..40d8ce7 100644
--- a/docs/NdJsonResponseStream.md
+++ b/docs/NdJsonResponseStream.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**object_type** | [**ResourcetypeMetadataEventAllOfObjectType**](ResourcetypeMetadataEventAllOfObjectType.md) | |
**timestamp** | **datetime** | |
**resource** | [**ResourceEntity**](ResourceEntity.md) | |
+**cascade_delete** | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | | [optional]
**old_values** | **object** | old values of all attributes that have changed | [optional]
**message** | **object** | The broker message that triggered the discovery | [optional]
**resourcetype** | [**ResourceTypeEntity**](ResourceTypeEntity.md) | |
diff --git a/docs/ResourceApi.md b/docs/ResourceApi.md
index fea9850..34bb991 100644
--- a/docs/ResourceApi.md
+++ b/docs/ResourceApi.md
@@ -88,6 +88,7 @@ str | False _(default)_ | **`Any`** | If any other string value for the selected
# **delete**
> delete(
> resource_id: ResourceId,
+> query: DeleteQuery,
> headers
> ) -> void (empty response body)
@@ -108,11 +109,15 @@ from waylay.sdk.api.api_exceptions import ApiError
waylay_client = WaylayClient.from_profile()
# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-resources-types` is installed
+from waylay.services.resources.models.cascade_delete_values_inner import CascadeDeleteValuesInner
try:
# Remove Resource
# calls `DELETE /resources/v1/resources/{resourceId}`
await waylay_client.resources.resource.delete(
waylay.services.resources.ResourceId(), # resource_id | path param "resourceId"
+ # query parameters:
+ query = {
+ },
)
except ApiError as e:
print("Exception when calling resources.resource.delete: %s\n" % e)
@@ -127,6 +132,8 @@ DELETE /resources/v1/resources/{resourceId}
Name | Type | API binding | Description | Notes
-------- | ----- | ------------- | ------------- | -------------
**resource_id** | **ResourceId** | path parameter `"resourceId"` | _Resource_ id |
+**query** | [QueryParamTypes](Operation.md#req_arg_query) \| **None** | URL query parameter | |
+**query['cascade']** (dict)
**query.cascade** (Query) | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | query parameter `"cascade"` | List of related data that needs to be deleted | [optional]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
### Return type
@@ -148,6 +155,7 @@ str | False _(default)_ | **`Any`** | If any other string value for the selected
|-------------|-------------|------------------|
**204** | Resource Removed | - |
**400** | Resource Still Referenced | - |
+**403** | Forbidden | - |
**404** | Resource Not Found | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -485,6 +493,7 @@ from waylay.sdk.api.api_exceptions import ApiError
waylay_client = WaylayClient.from_profile()
# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-resources-types` is installed
+from waylay.services.resources.models.list_resources_order_parameter import ListResourcesOrderParameter
from waylay.services.resources.models.resource_id import ResourceId
from waylay.services.resources.models.resource_listing import ResourceListing
try:
@@ -501,6 +510,8 @@ try:
'lon': 3.4
'distance': 'distance_example'
'toplevelOnly': true
+ 'sort': 'id'
+ 'order': ascending
},
)
print("The response of resources.resource.list:\n")
@@ -533,6 +544,8 @@ Name | Type | API binding | Description | Notes
**query['lon']** (dict)
**query.lon** (Query) | **float** | query parameter `"lon"` | | [optional]
**query['distance']** (dict)
**query.distance** (Query) | **str** | query parameter `"distance"` | | [optional]
**query['toplevelOnly']** (dict)
**query.toplevel_only** (Query) | **bool** | query parameter `"toplevelOnly"` | If true, search only for _Resources_ without parent. | [optional]
+**query['sort']** (dict)
**query.sort** (Query) | **str** | query parameter `"sort"` | The field to sort on. | [optional] [default 'id']
+**query['order']** (dict)
**query.order** (Query) | [**ListResourcesOrderParameter**](.md) | query parameter `"order"` | The order in which to sort | [optional] [default ascending]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
### Return type
diff --git a/docs/ResourceConstraintApi.md b/docs/ResourceConstraintApi.md
index 896fc78..b449073 100644
--- a/docs/ResourceConstraintApi.md
+++ b/docs/ResourceConstraintApi.md
@@ -266,6 +266,7 @@ Name | Type | API binding | Description | Notes
**query['skip']** (dict)
**query.skip** (Query) | **int** | query parameter `"skip"` | (Paging) items to skip in the listing | [optional] [default 0]
**query['limit']** (dict)
**query.limit** (Query) | **int** | query parameter `"limit"` | (Paging) maximal number of items returned | [optional] [default 100]
**query['filter']** (dict)
**query.filter** (Query) | **str** | query parameter `"filter"` | (Filter) fuzzy search on multiple fields. | [optional]
+**query['query']** (dict)
**query.query** (Query) | **str** | query parameter `"query"` | Search string using following query language > `tags:<operation>(<arguments>)` Supported operations are * `eq`: equals - exact match * `in`: in - exact match - arguments are a (comma-separated) list of values * `exists`: check if tags are specified on the Constraint * `like`: wildcard search - argument should contain * and/or ? For more info see [Waylay Docs](/#/api/resources/?id=metadata-query-language) | [optional]
**headers** | [HeaderTypes](Operation.md#req_headers) | request headers | |
### Return type
diff --git a/docs/ResourceConstraintEntity.md b/docs/ResourceConstraintEntity.md
index 4de1e39..e4a1ec4 100644
--- a/docs/ResourceConstraintEntity.md
+++ b/docs/ResourceConstraintEntity.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | Name for the _Resource Constraint_ |
**description** | **str** | A description for the _Resource Constraint_ | [optional]
+**tags** | **List[str]** | | [optional]
**attributes** | [**List[AttributeItem]**](AttributeItem.md) | List of attribute descriptions |
**id** | **str** | A unique _Resource Constraint_ id generated by the Waylay System | [optional]
diff --git a/docs/ResourceConstraintWithIdEntity.md b/docs/ResourceConstraintWithIdEntity.md
index 7600a41..6110bba 100644
--- a/docs/ResourceConstraintWithIdEntity.md
+++ b/docs/ResourceConstraintWithIdEntity.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**id** | **str** | A unique _Resource Constraint_ id generated by the Waylay System |
**name** | **str** | Name for the _Resource Constraint_ |
**description** | **str** | A description for the _Resource Constraint_ | [optional]
+**tags** | **List[str]** | | [optional]
**attributes** | [**List[AttributeItem]**](AttributeItem.md) | List of attribute descriptions |
## Example
diff --git a/docs/ResourceMetadataEvent.md b/docs/ResourceMetadataEvent.md
index fb87992..5367228 100644
--- a/docs/ResourceMetadataEvent.md
+++ b/docs/ResourceMetadataEvent.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**object_type** | [**ResourceMetadataEventAllOfObjectType**](ResourceMetadataEventAllOfObjectType.md) | |
**timestamp** | **datetime** | |
**resource** | [**ResourceEntity**](ResourceEntity.md) | |
+**cascade_delete** | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | | [optional]
**old_values** | **object** | old values of all attributes that have changed | [optional]
**message** | **object** | The broker message that triggered the discovery | [optional]
diff --git a/docs/SSEventStream.md b/docs/SSEventStream.md
index aeae7d4..444e203 100644
--- a/docs/SSEventStream.md
+++ b/docs/SSEventStream.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**object_type** | [**ResourcetypeMetadataEventAllOfObjectType**](ResourcetypeMetadataEventAllOfObjectType.md) | |
**timestamp** | **datetime** | |
**resource** | [**ResourceEntity**](ResourceEntity.md) | |
+**cascade_delete** | [**List[CascadeDeleteValuesInner]**](CascadeDeleteValuesInner.md) | | [optional]
**old_values** | **object** | old values of all attributes that have changed | [optional]
**message** | **object** | The broker message that triggered the discovery | [optional]
**resourcetype** | [**ResourceTypeEntity**](ResourceTypeEntity.md) | |
diff --git a/docs/MetadataEntityValue.md b/docs/UserResourceProperties.md
similarity index 52%
rename from docs/MetadataEntityValue.md
rename to docs/UserResourceProperties.md
index 091e145..3786606 100644
--- a/docs/MetadataEntityValue.md
+++ b/docs/UserResourceProperties.md
@@ -1,4 +1,4 @@
-# MetadataEntityValue
+# UserResourceProperties
Other key-value properties provisioned by the user.
@@ -11,19 +11,19 @@ Name | Type | Description | Notes
## Example
```python
-from waylay.services.resources.models.metadata_entity_value import MetadataEntityValue
+from waylay.services.resources.models.user_resource_properties import UserResourceProperties
# TODO update the JSON string below
json = "{}"
-# create an instance of MetadataEntityValue from a JSON string
-metadata_entity_value_instance = MetadataEntityValue.from_json(json)
+# create an instance of UserResourceProperties from a JSON string
+user_resource_properties_instance = UserResourceProperties.from_json(json)
# print the JSON string representation of the object
-print MetadataEntityValue.to_json()
+print UserResourceProperties.to_json()
# convert the object into a dict
-metadata_entity_value_dict = metadata_entity_value_instance.to_dict()
-# create an instance of MetadataEntityValue from a dict
-metadata_entity_value_form_dict = metadata_entity_value.from_dict(metadata_entity_value_dict)
+user_resource_properties_dict = user_resource_properties_instance.to_dict()
+# create an instance of UserResourceProperties from a dict
+user_resource_properties_form_dict = user_resource_properties.from_dict(user_resource_properties_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/openapi/resources.openapi.yaml b/openapi/resources.openapi.yaml
index a2a1b46..01ef118 100644
--- a/openapi/resources.openapi.yaml
+++ b/openapi/resources.openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Waylay Resources
- version: 8.1.0
+ version: 8.5.0
description: "This service manages \n[Waylay Resources](/#/features/resources/?id=resource)\
\ and related entities.\n\nA _Waylay Resource_ models a real-world device or abstract\
\ entity of your IoT solution,\nand provides a context when processing data in\
@@ -163,6 +163,28 @@ paths:
schema:
type: boolean
example: true
+ - name: sort
+ description: The field to sort on.
+ in: query
+ schema:
+ type: string
+ default: id
+ examples:
+ name:
+ value: name
+ summary: Sort by name
+ custom:
+ value: limits.minimum
+ summary: Sorting on a custom field
+ - name: order
+ description: The order in which to sort
+ in: query
+ schema:
+ type: string
+ enum:
+ - ascending
+ - descending
+ default: ascending
responses:
'200':
description: Resource Listing
@@ -306,6 +328,14 @@ paths:
url: https://docs.waylay.io/#/api/resources/?id=delete-resource
parameters:
- $ref: '#/components/parameters/ResourceId'
+ - name: cascade
+ in: query
+ required: false
+ description: List of related data that needs to be deleted
+ style: form
+ explode: true
+ schema:
+ $ref: '#/components/schemas/CascadeDeleteValues'
responses:
'204':
description: Resource Removed
@@ -318,6 +348,15 @@ paths:
example:
statusCode: 400
error: Resource is still parent of or referenced by 2 resource(s)
+ '403':
+ description: Forbidden
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ example:
+ statusCode: 403
+ error: You are not authorized to perform this action
'404':
$ref: '#/components/responses/ResourceNotFoundResponse'
security: *id001
@@ -841,6 +880,25 @@ paths:
- $ref: '#/components/parameters/PagingSkip'
- $ref: '#/components/parameters/PagingLimit'
- $ref: '#/components/parameters/Filter'
+ - name: query
+ in: query
+ description: "Search string using following query language \n> `tags:()`\n\
+ \nSupported operations are\n* `eq`: equals - exact match\n* `in`: in - exact\
+ \ match - arguments are a (comma-separated) list of values\n* `exists`:\
+ \ check if tags are specified on the Constraint\n* `like`: wildcard search\
+ \ - argument should contain * and/or ?\n\nFor more info see [Waylay Docs](/#/api/resources/?id=metadata-query-language)"
+ schema:
+ type: string
+ examples:
+ simple:
+ value: tags:technology
+ summary: Find with constraints with tag technology
+ multiple:
+ value: tags:in(technology,demo)
+ summary: Find constraints with tag technology AND tag demo
+ or-condition:
+ value: tags:eq(technology) OR tags:eq(demo)
+ summary: Find constraints with tag technology OR tag demo
responses:
'200':
$ref: '#/components/responses/ResourceConstraintsListResponse'
@@ -1089,6 +1147,15 @@ components:
description: List of SchemaValidationErrors
items:
$ref: '#/components/schemas/SchemaValidationError'
+ CascadeDeleteValues:
+ type: array
+ title: Cascade delete values
+ items:
+ type: string
+ enum:
+ - alarms
+ - measurements
+ - tasks
ResourceCreationResponse:
type: object
title: Resource Creation Result
@@ -1196,6 +1263,7 @@ components:
$ref:
type: string
title: Resource URI
+ format: uri-reference
description: A URI for the _Resource_, formatted as `/resources/{resourceId}`
pattern: ^/resources/.*
example: /resources/04592b9a-e0c2-4e64-8c9a-202e50cd9275
@@ -1931,6 +1999,13 @@ components:
type: string
description: A description for the _Resource Constraint_
example: Makes the name attribute mandatory
+ tags:
+ type: array
+ items:
+ type: string
+ example:
+ - technology
+ - myTag
attributes:
type: array
description: List of attribute descriptions
@@ -2153,6 +2228,11 @@ components:
example: afcea5a1-81df-44f6-bd34-e0b602a2cf3d
BatchResourceOperation:
title: a batch operation
+ oneOf:
+ - $ref: '#/components/schemas/BatchResourceDeleteOperation'
+ - $ref: '#/components/schemas/BatchResourceTypeDeleteOperation'
+ BatchResourceDeleteOperation:
+ title: Delete multiple resources in batch
type: object
properties:
entity:
@@ -2160,6 +2240,39 @@ components:
description: Type of entities to remove
enum:
- resource
+ action:
+ type: string
+ enum:
+ - delete
+ query:
+ type: object
+ properties:
+ ids:
+ type: array
+ minItems: 1
+ items:
+ $ref: '#/components/schemas/ResourceId'
+ required:
+ - ids
+ actionParameters:
+ type: object
+ properties:
+ cascade:
+ $ref: '#/components/schemas/CascadeDeleteValues'
+ required:
+ - cascade
+ required:
+ - entity
+ - action
+ - query
+ BatchResourceTypeDeleteOperation:
+ title: Delete multiple resourcetypes in batch
+ type: object
+ properties:
+ entity:
+ type: string
+ description: Type of entities to remove
+ enum:
- resourcetype
action:
type: string
@@ -2172,9 +2285,7 @@ components:
type: array
minItems: 1
items:
- anyOf:
- - $ref: '#/components/schemas/ResourceId'
- - $ref: '#/components/schemas/ResourceTypeId'
+ $ref: '#/components/schemas/ResourceTypeId'
required:
- ids
required:
@@ -2314,14 +2425,27 @@ components:
oldValues:
type: object
description: old values of all attributes that have changed
- CreateDeleteEvent:
- title: Creation or Deletion
+ CreateEvent:
+ title: Creation
properties:
type:
type: string
enum:
- create
+ DeletedEvent:
+ title: Deletion
+ properties:
+ type:
+ type: string
+ enum:
- delete
+ DeletedResourceEvent:
+ title: Deletion
+ allOf:
+ - $ref: '#/components/schemas/DeletedEvent'
+ - properties:
+ cascadeDelete:
+ $ref: '#/components/schemas/CascadeDeleteValues'
DiscoveredEvent:
title: Discovered
properties:
@@ -2344,14 +2468,16 @@ components:
required:
- resource
- oneOf:
- - $ref: '#/components/schemas/CreateDeleteEvent'
+ - $ref: '#/components/schemas/CreateEvent'
+ - $ref: '#/components/schemas/DeletedResourceEvent'
- $ref: '#/components/schemas/ChangedEvent'
- $ref: '#/components/schemas/DiscoveredEvent'
ResourcetypeMetadataEvent:
allOf:
- $ref: '#/components/schemas/GenericMetadataEvent'
- oneOf:
- - $ref: '#/components/schemas/CreateDeleteEvent'
+ - $ref: '#/components/schemas/CreateEvent'
+ - $ref: '#/components/schemas/DeletedEvent'
- $ref: '#/components/schemas/ChangedEvent'
- properties:
objectType:
diff --git a/openapi/resources.transformed.openapi.yaml b/openapi/resources.transformed.openapi.yaml
index 39e470e..7a7a8e4 100644
--- a/openapi/resources.transformed.openapi.yaml
+++ b/openapi/resources.transformed.openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Waylay Resources
- version: 8.1.0
+ version: 8.5.0
description: >-
This service manages
@@ -235,6 +235,30 @@ paths:
example: true
x-example: true
x-showExample: true
+ - name: sort
+ description: The field to sort on.
+ in: query
+ schema:
+ type: string
+ default: id
+ examples:
+ name:
+ value: name
+ summary: Sort by name
+ custom:
+ value: limits.minimum
+ summary: Sorting on a custom field
+ x-showExample: true
+ - name: order
+ description: The order in which to sort
+ in: query
+ schema:
+ type: string
+ enum:
+ - ascending
+ - descending
+ default: ascending
+ x-showExample: true
responses:
'200':
description: Resource Listing
@@ -411,6 +435,15 @@ paths:
parameters:
- $ref: '#/components/parameters/ResourceId'
x-showExample: false
+ - name: cascade
+ in: query
+ required: false
+ description: List of related data that needs to be deleted
+ style: form
+ explode: true
+ schema:
+ $ref: '#/components/schemas/CascadeDeleteValues'
+ x-showExample: false
responses:
'204':
description: Resource Removed
@@ -423,6 +456,15 @@ paths:
example:
statusCode: 400
error: Resource is still parent of or referenced by 2 resource(s)
+ '403':
+ description: Forbidden
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ example:
+ statusCode: 403
+ error: You are not authorized to perform this action
'404':
$ref: '#/components/responses/ResourceNotFoundResponse'
security:
@@ -1091,6 +1133,41 @@ paths:
x-showExample: false
- $ref: '#/components/parameters/Filter'
x-showExample: false
+ - name: query
+ in: query
+ description: >-
+ Search string using following query language
+
+ > `tags:()`
+
+
+ Supported operations are
+
+ * `eq`: equals - exact match
+
+ * `in`: in - exact match - arguments are a (comma-separated) list of
+ values
+
+ * `exists`: check if tags are specified on the Constraint
+
+ * `like`: wildcard search - argument should contain * and/or ?
+
+
+ For more info see [Waylay
+ Docs](/#/api/resources/?id=metadata-query-language)
+ schema:
+ type: string
+ examples:
+ simple:
+ value: tags:technology
+ summary: Find with constraints with tag technology
+ multiple:
+ value: tags:in(technology,demo)
+ summary: Find constraints with tag technology AND tag demo
+ or-condition:
+ value: tags:eq(technology) OR tags:eq(demo)
+ summary: Find constraints with tag technology OR tag demo
+ x-showExample: false
responses:
'200':
$ref: '#/components/responses/ResourceConstraintsListResponse'
@@ -1398,6 +1475,14 @@ components:
description: List of SchemaValidationErrors
items:
$ref: '#/components/schemas/SchemaValidationError'
+ CascadeDeleteValues:
+ type: array
+ items:
+ type: string
+ enum:
+ - alarms
+ - measurements
+ - tasks
ResourceCreationResponse:
type: object
properties:
@@ -1498,6 +1583,7 @@ components:
$ref:
type: string
title: Resource URI
+ format: uri-reference
description: A URI for the _Resource_, formatted as `/resources/{resourceId}`
pattern: ^/resources/.*
example: /resources/04592b9a-e0c2-4e64-8c9a-202e50cd9275
@@ -2223,6 +2309,13 @@ components:
type: string
description: A description for the _Resource Constraint_
example: Makes the name attribute mandatory
+ tags:
+ type: array
+ items:
+ type: string
+ example:
+ - technology
+ - myTag
attributes:
type: array
description: List of attribute descriptions
@@ -2436,6 +2529,10 @@ components:
type: string
example: afcea5a1-81df-44f6-bd34-e0b602a2cf3d
BatchResourceOperation:
+ oneOf:
+ - $ref: '#/components/schemas/BatchResourceDeleteOperation'
+ - $ref: '#/components/schemas/BatchResourceTypeDeleteOperation'
+ BatchResourceDeleteOperation:
type: object
properties:
entity:
@@ -2443,6 +2540,38 @@ components:
description: Type of entities to remove
enum:
- resource
+ action:
+ type: string
+ enum:
+ - delete
+ query:
+ type: object
+ properties:
+ ids:
+ type: array
+ minItems: 1
+ items:
+ $ref: '#/components/schemas/ResourceId'
+ required:
+ - ids
+ actionParameters:
+ type: object
+ properties:
+ cascade:
+ $ref: '#/components/schemas/CascadeDeleteValues'
+ required:
+ - cascade
+ required:
+ - entity
+ - action
+ - query
+ BatchResourceTypeDeleteOperation:
+ type: object
+ properties:
+ entity:
+ type: string
+ description: Type of entities to remove
+ enum:
- resourcetype
action:
type: string
@@ -2455,9 +2584,7 @@ components:
type: array
minItems: 1
items:
- anyOf:
- - $ref: '#/components/schemas/ResourceId'
- - $ref: '#/components/schemas/ResourceTypeId'
+ $ref: '#/components/schemas/ResourceTypeId'
required:
- ids
required:
@@ -2596,13 +2723,24 @@ components:
oldValues:
type: object
description: old values of all attributes that have changed
- CreateDeleteEvent:
+ CreateEvent:
properties:
type:
type: string
enum:
- create
+ DeletedEvent:
+ properties:
+ type:
+ type: string
+ enum:
- delete
+ DeletedResourceEvent:
+ allOf:
+ - $ref: '#/components/schemas/DeletedEvent'
+ - properties:
+ cascadeDelete:
+ $ref: '#/components/schemas/CascadeDeleteValues'
DiscoveredEvent:
properties:
type:
@@ -2624,14 +2762,16 @@ components:
required:
- resource
- oneOf:
- - $ref: '#/components/schemas/CreateDeleteEvent'
+ - $ref: '#/components/schemas/CreateEvent'
+ - $ref: '#/components/schemas/DeletedResourceEvent'
- $ref: '#/components/schemas/ChangedEvent'
- $ref: '#/components/schemas/DiscoveredEvent'
ResourcetypeMetadataEvent:
allOf:
- $ref: '#/components/schemas/GenericMetadataEvent'
- oneOf:
- - $ref: '#/components/schemas/CreateDeleteEvent'
+ - $ref: '#/components/schemas/CreateEvent'
+ - $ref: '#/components/schemas/DeletedEvent'
- $ref: '#/components/schemas/ChangedEvent'
- properties:
objectType:
diff --git a/requirements.txt b/requirements.txt
index 85733e4..fb9ec43 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
pydantic ~= 2.6
typing-extensions ~= 4.9
-waylay-sdk-core ~= 0.2.3
+waylay-sdk-core ~= 0.2.4
diff --git a/test/api/resource_api_test.py b/test/api/resource_api_test.py
index 6f99dde..73e4bdc 100644
--- a/test/api/resource_api_test.py
+++ b/test/api/resource_api_test.py
@@ -43,6 +43,7 @@
ResourceWithIdEntity,
)
from waylay.services.resources.queries.resource_api import (
+ DeleteQuery,
GetQuery,
ListChangesQuery,
ListChildrenQuery,
@@ -134,7 +135,12 @@ async def test_delete(
# set path params
resourceId = ResourceIdStub.create_json()
- kwargs = {}
+ kwargs = {
+ # optionally use DeleteQuery to validate and reuse parameters
+ "query": DeleteQuery(
+ cascade=["alarms"],
+ ),
+ }
_delete_set_mock_response(httpx_mock, gateway_url, quote(str(resourceId)))
resp = await service.resource.delete(resourceId, **kwargs)
assert not resp
@@ -151,7 +157,11 @@ async def test_delete_without_types(
# set path params
resourceId = ResourceIdStub.create_json()
- kwargs = {}
+ kwargs = {
+ "query": {
+ "cascade": ["alarms"],
+ },
+ }
_delete_set_mock_response(httpx_mock, gateway_url, quote(str(resourceId)))
resp = await service.resource.delete(resourceId, **kwargs)
assert not resp
@@ -441,6 +451,8 @@ async def test_list(service: ResourcesService, gateway_url: str, httpx_mock: HTT
lon=3.4,
distance="distance_example",
toplevel_only=true,
+ sort="id",
+ order="ascending",
),
}
_list_set_mock_response(httpx_mock, gateway_url)
@@ -474,6 +486,8 @@ async def test_list_without_types(
"lon": 3.4,
"distance": "distance_example",
"toplevelOnly": true,
+ "sort": "id",
+ "order": "ascending",
},
}
_list_set_mock_response(httpx_mock, gateway_url)
diff --git a/test/api/resource_constraint_api_test.py b/test/api/resource_constraint_api_test.py
index 7c5ac08..3f5cde8 100644
--- a/test/api/resource_constraint_api_test.py
+++ b/test/api/resource_constraint_api_test.py
@@ -223,6 +223,7 @@ async def test_list(service: ResourcesService, gateway_url: str, httpx_mock: HTT
skip=0,
limit=100,
filter="needle",
+ query="tags:technology",
),
}
_list_set_mock_response(httpx_mock, gateway_url)
@@ -244,6 +245,7 @@ async def test_list_without_types(
"skip": 0,
"limit": 100,
"filter": "needle",
+ "query": "tags:technology",
},
}
_list_set_mock_response(httpx_mock, gateway_url)
diff --git a/test/openapi.py b/test/openapi.py
index f3b3ed0..0f71144 100644
--- a/test/openapi.py
+++ b/test/openapi.py
@@ -214,19 +214,23 @@ def with_example_provider(dct):
"BatchOperationStatusResponse": _batch_operation_status_response_model_schema
})
-_batch_resource_operation_model_schema = json.loads(
+_batch_resource_delete_operation_model_schema = json.loads(
r"""{
+ "title" : "BatchResourceDeleteOperation",
"required" : [ "action", "entity", "query" ],
"type" : "object",
"properties" : {
"entity" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_entity"
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_entity"
},
"action" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_action"
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
},
"query" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_query"
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_query"
+ },
+ "actionParameters" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_actionParameters"
}
}
}
@@ -234,12 +238,12 @@ def with_example_provider(dct):
object_hook=with_example_provider,
)
MODEL_DEFINITIONS.update({
- "BatchResourceOperation": _batch_resource_operation_model_schema
+ "BatchResourceDeleteOperation": _batch_resource_delete_operation_model_schema
})
-_batch_resource_operation_action_model_schema = json.loads(
+_batch_resource_delete_operation_action_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_action",
+ "title" : "BatchResourceDeleteOperation_action",
"type" : "string",
"enum" : [ "delete" ]
}
@@ -247,26 +251,44 @@ def with_example_provider(dct):
object_hook=with_example_provider,
)
MODEL_DEFINITIONS.update({
- "BatchResourceOperation_action": _batch_resource_operation_action_model_schema
+ "BatchResourceDeleteOperation_action": _batch_resource_delete_operation_action_model_schema
})
-_batch_resource_operation_entity_model_schema = json.loads(
+_batch_resource_delete_operation_action_parameters_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_entity",
+ "title" : "BatchResourceDeleteOperation_actionParameters",
+ "required" : [ "cascade" ],
+ "type" : "object",
+ "properties" : {
+ "cascade" : {
+ "$ref" : "#/components/schemas/CascadeDeleteValues"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "BatchResourceDeleteOperation_actionParameters": _batch_resource_delete_operation_action_parameters_model_schema
+})
+
+_batch_resource_delete_operation_entity_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceDeleteOperation_entity",
"type" : "string",
"description" : "Type of entities to remove",
- "enum" : [ "resource", "resourcetype" ]
+ "enum" : [ "resource" ]
}
""",
object_hook=with_example_provider,
)
MODEL_DEFINITIONS.update({
- "BatchResourceOperation_entity": _batch_resource_operation_entity_model_schema
+ "BatchResourceDeleteOperation_entity": _batch_resource_delete_operation_entity_model_schema
})
-_batch_resource_operation_query_model_schema = json.loads(
+_batch_resource_delete_operation_query_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_query",
+ "title" : "BatchResourceDeleteOperation_query",
"required" : [ "ids" ],
"type" : "object",
"properties" : {
@@ -275,7 +297,7 @@ def with_example_provider(dct):
"minItems" : 1,
"type" : "array",
"items" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_query_ids_inner"
+ "$ref" : "#/components/schemas/ResourceId"
}
}
}
@@ -284,23 +306,83 @@ def with_example_provider(dct):
object_hook=with_example_provider,
)
MODEL_DEFINITIONS.update({
- "BatchResourceOperation_query": _batch_resource_operation_query_model_schema
+ "BatchResourceDeleteOperation_query": _batch_resource_delete_operation_query_model_schema
})
-_batch_resource_operation_query_ids_inner_model_schema = json.loads(
+_batch_resource_operation_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_query_ids_inner",
- "anyOf" : [ {
- "$ref" : "#/components/schemas/ResourceId"
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation"
}, {
- "$ref" : "#/components/schemas/ResourceTypeId"
+ "$ref" : "#/components/schemas/BatchResourceTypeDeleteOperation"
} ]
}
""",
object_hook=with_example_provider,
)
MODEL_DEFINITIONS.update({
- "BatchResourceOperation_query_ids_inner": _batch_resource_operation_query_ids_inner_model_schema
+ "BatchResourceOperation": _batch_resource_operation_model_schema
+})
+
+_batch_resource_type_delete_operation_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceTypeDeleteOperation",
+ "required" : [ "action", "entity", "query" ],
+ "type" : "object",
+ "properties" : {
+ "entity" : {
+ "$ref" : "#/components/schemas/BatchResourceTypeDeleteOperation_entity"
+ },
+ "action" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
+ },
+ "query" : {
+ "$ref" : "#/components/schemas/BatchResourceTypeDeleteOperation_query"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "BatchResourceTypeDeleteOperation": _batch_resource_type_delete_operation_model_schema
+})
+
+_batch_resource_type_delete_operation_entity_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceTypeDeleteOperation_entity",
+ "type" : "string",
+ "description" : "Type of entities to remove",
+ "enum" : [ "resourcetype" ]
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "BatchResourceTypeDeleteOperation_entity": _batch_resource_type_delete_operation_entity_model_schema
+})
+
+_batch_resource_type_delete_operation_query_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceTypeDeleteOperation_query",
+ "required" : [ "ids" ],
+ "type" : "object",
+ "properties" : {
+ "ids" : {
+ "title" : "ids",
+ "minItems" : 1,
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/ResourceTypeId"
+ }
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "BatchResourceTypeDeleteOperation_query": _batch_resource_type_delete_operation_query_model_schema
})
_batch_running_resource_operation_model_schema = json.loads(
@@ -339,7 +421,7 @@ def with_example_provider(dct):
"$ref" : "#/components/schemas/BatchRunningResourceOperation_operation_entity"
},
"action" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_action"
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
},
"description" : {
"title" : "description",
@@ -399,6 +481,19 @@ def with_example_provider(dct):
"BooleanValueConstraint_type": _boolean_value_constraint_type_model_schema
})
+_cascade_delete_values_inner_model_schema = json.loads(
+ r"""{
+ "title" : "CascadeDeleteValues_inner",
+ "type" : "string",
+ "enum" : [ "alarms", "measurements", "tasks" ]
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "CascadeDeleteValues_inner": _cascade_delete_values_inner_model_schema
+})
+
_changed_event_model_schema = json.loads(
r"""{
"properties" : {
@@ -519,6 +614,14 @@ def with_example_provider(dct):
"description" : "A description for the _Resource Constraint_",
"example" : "Makes the name attribute mandatory"
},
+ "tags" : {
+ "title" : "tags",
+ "type" : "array",
+ "example" : [ "technology", "myTag" ],
+ "items" : {
+ "type" : "string"
+ }
+ },
"attributes" : {
"title" : "attributes",
"type" : "array",
@@ -611,31 +714,59 @@ def with_example_provider(dct):
"ConstraintStatus_status": _constraint_status_status_model_schema
})
-_create_delete_event_model_schema = json.loads(
+_create_event_model_schema = json.loads(
r"""{
"properties" : {
"type" : {
- "$ref" : "#/components/schemas/CreateDeleteEvent_type"
+ "$ref" : "#/components/schemas/CreateEvent_type"
}
}
}
""",
object_hook=with_example_provider,
)
-MODEL_DEFINITIONS.update({"CreateDeleteEvent": _create_delete_event_model_schema})
+MODEL_DEFINITIONS.update({"CreateEvent": _create_event_model_schema})
-_create_delete_event_type_model_schema = json.loads(
+_create_event_type_model_schema = json.loads(
r"""{
- "title" : "CreateDeleteEvent_type",
+ "title" : "CreateEvent_type",
"type" : "string",
- "enum" : [ "create", "delete" ]
+ "enum" : [ "create" ]
}
""",
object_hook=with_example_provider,
)
-MODEL_DEFINITIONS.update({
- "CreateDeleteEvent_type": _create_delete_event_type_model_schema
-})
+MODEL_DEFINITIONS.update({"CreateEvent_type": _create_event_type_model_schema})
+
+_deleted_event_model_schema = json.loads(
+ r"""{
+ "properties" : {
+ "type" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({"DeletedEvent": _deleted_event_model_schema})
+
+_deleted_resource_event_model_schema = json.loads(
+ r"""{
+ "allOf" : [ {
+ "$ref" : "#/components/schemas/DeletedEvent"
+ }, {
+ "properties" : {
+ "cascadeDelete" : {
+ "$ref" : "#/components/schemas/CascadeDeleteValues"
+ }
+ }
+ } ]
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({"DeletedResourceEvent": _deleted_resource_event_model_schema})
_discovered_event_model_schema = json.loads(
r"""{
@@ -1075,6 +1206,19 @@ def with_example_provider(dct):
"listConstraints_200_response": _list_constraints_200_response_model_schema
})
+_list_resources_order_parameter_model_schema = json.loads(
+ r"""{
+ "type" : "string",
+ "default" : "ascending",
+ "enum" : [ "ascending", "descending" ]
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "list_resources_order_parameter": _list_resources_order_parameter_model_schema
+})
+
_metadata_entity_model_schema = json.loads(
r"""{
"type" : "object",
@@ -1112,7 +1256,7 @@ def with_example_provider(dct):
}
},
"additionalProperties" : {
- "$ref" : "#/components/schemas/MetadataEntity_value"
+ "$ref" : "#/components/schemas/User_Resource_properties"
},
"description" : "Common attributes for _Resource_ or _Resource Type_"
}
@@ -1143,20 +1287,6 @@ def with_example_provider(dct):
"MetadataEntity_location": _metadata_entity_location_model_schema
})
-_metadata_entity_value_model_schema = json.loads(
- r"""{
- "title" : "User Resource properties",
- "description" : "Other key-value properties provisioned by the user.",
- "nullable" : true,
- "anyOf" : [ {
- "$ref" : "#/components/schemas/ResourceReference"
- } ]
-}
-""",
- object_hook=with_example_provider,
-)
-MODEL_DEFINITIONS.update({"MetadataEntity_value": _metadata_entity_value_model_schema})
-
_metadata_event_model_schema = json.loads(
r"""{
"oneOf" : [ {
@@ -1839,7 +1969,9 @@ def with_example_provider(dct):
}
}, {
"oneOf" : [ {
- "$ref" : "#/components/schemas/CreateDeleteEvent"
+ "$ref" : "#/components/schemas/CreateEvent"
+ }, {
+ "$ref" : "#/components/schemas/DeletedResourceEvent"
}, {
"$ref" : "#/components/schemas/ChangedEvent"
}, {
@@ -2072,6 +2204,7 @@ def with_example_provider(dct):
"pattern" : "^/resources/.*",
"type" : "string",
"description" : "A URI for the _Resource_, formatted as `/resources/{resourceId}`",
+ "format" : "uri-reference",
"example" : "/resources/04592b9a-e0c2-4e64-8c9a-202e50cd9275"
}
},
@@ -2383,7 +2516,9 @@ def with_example_provider(dct):
"$ref" : "#/components/schemas/GenericMetadataEvent"
}, {
"oneOf" : [ {
- "$ref" : "#/components/schemas/CreateDeleteEvent"
+ "$ref" : "#/components/schemas/CreateEvent"
+ }, {
+ "$ref" : "#/components/schemas/DeletedEvent"
}, {
"$ref" : "#/components/schemas/ChangedEvent"
} ]
@@ -2618,6 +2753,22 @@ def with_example_provider(dct):
"TaskConfiguration_type": _task_configuration_type_model_schema
})
+_user_resource_properties_model_schema = json.loads(
+ r"""{
+ "title" : "User Resource properties",
+ "description" : "Other key-value properties provisioned by the user.",
+ "nullable" : true,
+ "anyOf" : [ {
+ "$ref" : "#/components/schemas/ResourceReference"
+ } ]
+}
+""",
+ object_hook=with_example_provider,
+)
+MODEL_DEFINITIONS.update({
+ "User_Resource_properties": _user_resource_properties_model_schema
+})
+
_validation_failure_model_schema = json.loads(
r"""{
"title" : "Validation Failure",
diff --git a/test/types/array_must_contain_inner_stub.py b/test/types/array_must_contain_inner_stub.py
index 65af329..b99126d 100644
--- a/test/types/array_must_contain_inner_stub.py
+++ b/test/types/array_must_contain_inner_stub.py
@@ -62,7 +62,7 @@ def create_instance(cls) -> "ArrayMustContainInner":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ArrayMustContainInnerAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/array_value_constraint_stub.py b/test/types/array_value_constraint_stub.py
index 2954e5c..f265cf8 100644
--- a/test/types/array_value_constraint_stub.py
+++ b/test/types/array_value_constraint_stub.py
@@ -86,7 +86,7 @@ def create_instance(cls) -> "ArrayValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ArrayValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/array_value_constraint_type_stub.py b/test/types/array_value_constraint_type_stub.py
index 6448b0f..d9d6d8a 100644
--- a/test/types/array_value_constraint_type_stub.py
+++ b/test/types/array_value_constraint_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "ArrayValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ArrayValueConstraintTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/attribute_item_stub.py b/test/types/attribute_item_stub.py
index adbcc73..fb22c7b 100644
--- a/test/types/attribute_item_stub.py
+++ b/test/types/attribute_item_stub.py
@@ -69,7 +69,7 @@ def create_instance(cls) -> "AttributeItem":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
AttributeItemAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/batch_operation_enqueued_stub.py b/test/types/batch_operation_enqueued_stub.py
index 41fa365..d2dd61e 100644
--- a/test/types/batch_operation_enqueued_stub.py
+++ b/test/types/batch_operation_enqueued_stub.py
@@ -72,7 +72,7 @@ def create_instance(cls) -> "BatchOperationEnqueued":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchOperationEnqueuedAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/batch_operation_result_stub.py b/test/types/batch_operation_result_stub.py
index 76d188f..2f4b645 100644
--- a/test/types/batch_operation_result_stub.py
+++ b/test/types/batch_operation_result_stub.py
@@ -87,7 +87,7 @@ def create_instance(cls) -> "BatchOperationResult":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchOperationResultAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/batch_operation_status_response_stub.py b/test/types/batch_operation_status_response_stub.py
index 25ea6f4..4c80257 100644
--- a/test/types/batch_operation_status_response_stub.py
+++ b/test/types/batch_operation_status_response_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "BatchOperationStatusResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchOperationStatusResponseAdapter.json_schema(),
diff --git a/test/types/batch_resource_delete_operation_action_parameters_stub.py b/test/types/batch_resource_delete_operation_action_parameters_stub.py
new file mode 100644
index 0000000..0a24c28
--- /dev/null
+++ b/test/types/batch_resource_delete_operation_action_parameters_stub.py
@@ -0,0 +1,79 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.batch_resource_delete_operation_action_parameters import (
+ BatchResourceDeleteOperationActionParameters,
+ )
+
+ BatchResourceDeleteOperationActionParametersAdapter = TypeAdapter(
+ BatchResourceDeleteOperationActionParameters
+ )
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+batch_resource_delete_operation_action_parameters_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceDeleteOperation_actionParameters",
+ "required" : [ "cascade" ],
+ "type" : "object",
+ "properties" : {
+ "cascade" : {
+ "$ref" : "#/components/schemas/CascadeDeleteValues"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+batch_resource_delete_operation_action_parameters_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
+
+batch_resource_delete_operation_action_parameters_faker = JSF(
+ batch_resource_delete_operation_action_parameters_model_schema,
+ allow_none_optionals=1,
+)
+
+
+class BatchResourceDeleteOperationActionParametersStub:
+ """BatchResourceDeleteOperationActionParameters unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return batch_resource_delete_operation_action_parameters_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "BatchResourceDeleteOperationActionParameters":
+ """Create BatchResourceDeleteOperationActionParameters stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ BatchResourceDeleteOperationActionParametersAdapter.json_schema(),
+ allow_none_optionals=1,
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return BatchResourceDeleteOperationActionParametersAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/batch_resource_delete_operation_action_stub.py b/test/types/batch_resource_delete_operation_action_stub.py
new file mode 100644
index 0000000..5af8841
--- /dev/null
+++ b/test/types/batch_resource_delete_operation_action_stub.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.batch_resource_delete_operation_action import (
+ BatchResourceDeleteOperationAction,
+ )
+
+ BatchResourceDeleteOperationActionAdapter = TypeAdapter(
+ BatchResourceDeleteOperationAction
+ )
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+batch_resource_delete_operation_action_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceDeleteOperation_action",
+ "type" : "string",
+ "enum" : [ "delete" ]
+}
+""",
+ object_hook=with_example_provider,
+)
+batch_resource_delete_operation_action_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
+
+batch_resource_delete_operation_action_faker = JSF(
+ batch_resource_delete_operation_action_model_schema, allow_none_optionals=1
+)
+
+
+class BatchResourceDeleteOperationActionStub:
+ """BatchResourceDeleteOperationAction unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return batch_resource_delete_operation_action_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "BatchResourceDeleteOperationAction":
+ """Create BatchResourceDeleteOperationAction stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ BatchResourceDeleteOperationActionAdapter.json_schema(),
+ allow_none_optionals=1,
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return BatchResourceDeleteOperationActionAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/batch_resource_operation_entity_stub.py b/test/types/batch_resource_delete_operation_entity_stub.py
similarity index 51%
rename from test/types/batch_resource_operation_entity_stub.py
rename to test/types/batch_resource_delete_operation_entity_stub.py
index d5fac56..61154ea 100644
--- a/test/types/batch_resource_operation_entity_stub.py
+++ b/test/types/batch_resource_delete_operation_entity_stub.py
@@ -16,55 +16,59 @@
from ..openapi import MODEL_DEFINITIONS, with_example_provider
try:
- from waylay.services.resources.models.batch_resource_operation_entity import (
- BatchResourceOperationEntity,
+ from waylay.services.resources.models.batch_resource_delete_operation_entity import (
+ BatchResourceDeleteOperationEntity,
)
- BatchResourceOperationEntityAdapter = TypeAdapter(BatchResourceOperationEntity)
+ BatchResourceDeleteOperationEntityAdapter = TypeAdapter(
+ BatchResourceDeleteOperationEntity
+ )
MODELS_AVAILABLE = True
except ImportError as exc:
MODELS_AVAILABLE = False
-batch_resource_operation_entity_model_schema = json.loads(
+batch_resource_delete_operation_entity_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_entity",
+ "title" : "BatchResourceDeleteOperation_entity",
"type" : "string",
"description" : "Type of entities to remove",
- "enum" : [ "resource", "resourcetype" ]
+ "enum" : [ "resource" ]
}
""",
object_hook=with_example_provider,
)
-batch_resource_operation_entity_model_schema.update({"definitions": MODEL_DEFINITIONS})
+batch_resource_delete_operation_entity_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
-batch_resource_operation_entity_faker = JSF(
- batch_resource_operation_entity_model_schema, allow_none_optionals=1
+batch_resource_delete_operation_entity_faker = JSF(
+ batch_resource_delete_operation_entity_model_schema, allow_none_optionals=1
)
-class BatchResourceOperationEntityStub:
- """BatchResourceOperationEntity unit test stubs."""
+class BatchResourceDeleteOperationEntityStub:
+ """BatchResourceDeleteOperationEntity unit test stubs."""
@classmethod
def create_json(cls):
"""Create a dict stub instance."""
- return batch_resource_operation_entity_faker.generate(
+ return batch_resource_delete_operation_entity_faker.generate(
use_defaults=True, use_examples=True
)
@classmethod
- def create_instance(cls) -> "BatchResourceOperationEntity":
- """Create BatchResourceOperationEntity stub instance."""
+ def create_instance(cls) -> "BatchResourceDeleteOperationEntity":
+ """Create BatchResourceDeleteOperationEntity stub instance."""
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
- BatchResourceOperationEntityAdapter.json_schema(),
+ BatchResourceDeleteOperationEntityAdapter.json_schema(),
allow_none_optionals=1,
)
json = backup_faker.generate(use_defaults=True, use_examples=True)
- return BatchResourceOperationEntityAdapter.validate_python(
+ return BatchResourceDeleteOperationEntityAdapter.validate_python(
json, context={"skip_validation": True}
)
diff --git a/test/types/batch_resource_operation_query_stub.py b/test/types/batch_resource_delete_operation_query_stub.py
similarity index 52%
rename from test/types/batch_resource_operation_query_stub.py
rename to test/types/batch_resource_delete_operation_query_stub.py
index 4046680..3882da8 100644
--- a/test/types/batch_resource_operation_query_stub.py
+++ b/test/types/batch_resource_delete_operation_query_stub.py
@@ -16,18 +16,20 @@
from ..openapi import MODEL_DEFINITIONS, with_example_provider
try:
- from waylay.services.resources.models.batch_resource_operation_query import (
- BatchResourceOperationQuery,
+ from waylay.services.resources.models.batch_resource_delete_operation_query import (
+ BatchResourceDeleteOperationQuery,
)
- BatchResourceOperationQueryAdapter = TypeAdapter(BatchResourceOperationQuery)
+ BatchResourceDeleteOperationQueryAdapter = TypeAdapter(
+ BatchResourceDeleteOperationQuery
+ )
MODELS_AVAILABLE = True
except ImportError as exc:
MODELS_AVAILABLE = False
-batch_resource_operation_query_model_schema = json.loads(
+batch_resource_delete_operation_query_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_query",
+ "title" : "BatchResourceDeleteOperation_query",
"required" : [ "ids" ],
"type" : "object",
"properties" : {
@@ -36,7 +38,7 @@
"minItems" : 1,
"type" : "array",
"items" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_query_ids_inner"
+ "$ref" : "#/components/schemas/ResourceId"
}
}
}
@@ -44,35 +46,38 @@
""",
object_hook=with_example_provider,
)
-batch_resource_operation_query_model_schema.update({"definitions": MODEL_DEFINITIONS})
+batch_resource_delete_operation_query_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
-batch_resource_operation_query_faker = JSF(
- batch_resource_operation_query_model_schema, allow_none_optionals=1
+batch_resource_delete_operation_query_faker = JSF(
+ batch_resource_delete_operation_query_model_schema, allow_none_optionals=1
)
-class BatchResourceOperationQueryStub:
- """BatchResourceOperationQuery unit test stubs."""
+class BatchResourceDeleteOperationQueryStub:
+ """BatchResourceDeleteOperationQuery unit test stubs."""
@classmethod
def create_json(cls):
"""Create a dict stub instance."""
- return batch_resource_operation_query_faker.generate(
+ return batch_resource_delete_operation_query_faker.generate(
use_defaults=True, use_examples=True
)
@classmethod
- def create_instance(cls) -> "BatchResourceOperationQuery":
- """Create BatchResourceOperationQuery stub instance."""
+ def create_instance(cls) -> "BatchResourceDeleteOperationQuery":
+ """Create BatchResourceDeleteOperationQuery stub instance."""
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
- BatchResourceOperationQueryAdapter.json_schema(), allow_none_optionals=1
+ BatchResourceDeleteOperationQueryAdapter.json_schema(),
+ allow_none_optionals=1,
)
json = backup_faker.generate(use_defaults=True, use_examples=True)
- return BatchResourceOperationQueryAdapter.validate_python(
+ return BatchResourceDeleteOperationQueryAdapter.validate_python(
json, context={"skip_validation": True}
)
diff --git a/test/types/batch_resource_delete_operation_stub.py b/test/types/batch_resource_delete_operation_stub.py
new file mode 100644
index 0000000..9dde3a7
--- /dev/null
+++ b/test/types/batch_resource_delete_operation_stub.py
@@ -0,0 +1,83 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.batch_resource_delete_operation import (
+ BatchResourceDeleteOperation,
+ )
+
+ BatchResourceDeleteOperationAdapter = TypeAdapter(BatchResourceDeleteOperation)
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+batch_resource_delete_operation_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceDeleteOperation",
+ "required" : [ "action", "entity", "query" ],
+ "type" : "object",
+ "properties" : {
+ "entity" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_entity"
+ },
+ "action" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
+ },
+ "query" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_query"
+ },
+ "actionParameters" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_actionParameters"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+batch_resource_delete_operation_model_schema.update({"definitions": MODEL_DEFINITIONS})
+
+batch_resource_delete_operation_faker = JSF(
+ batch_resource_delete_operation_model_schema, allow_none_optionals=1
+)
+
+
+class BatchResourceDeleteOperationStub:
+ """BatchResourceDeleteOperation unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return batch_resource_delete_operation_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "BatchResourceDeleteOperation":
+ """Create BatchResourceDeleteOperation stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ BatchResourceDeleteOperationAdapter.json_schema(),
+ allow_none_optionals=1,
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return BatchResourceDeleteOperationAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/batch_resource_operation_query_ids_inner_stub.py b/test/types/batch_resource_operation_query_ids_inner_stub.py
deleted file mode 100644
index aecb064..0000000
--- a/test/types/batch_resource_operation_query_ids_inner_stub.py
+++ /dev/null
@@ -1,76 +0,0 @@
-# coding: utf-8
-"""Waylay Resources model tests.
-
-This code was generated from the OpenAPI documentation of 'Waylay Resources'
-
-Generated by OpenAPI Generator (https://openapi-generator.tech)
-
-Do not edit the class manually.
-"""
-
-import json
-
-from jsf import JSF
-from pydantic import TypeAdapter
-
-from ..openapi import MODEL_DEFINITIONS, with_example_provider
-
-try:
- from waylay.services.resources.models.batch_resource_operation_query_ids_inner import (
- BatchResourceOperationQueryIdsInner,
- )
-
- BatchResourceOperationQueryIdsInnerAdapter = TypeAdapter(
- BatchResourceOperationQueryIdsInner
- )
- MODELS_AVAILABLE = True
-except ImportError as exc:
- MODELS_AVAILABLE = False
-
-batch_resource_operation_query_ids_inner_model_schema = json.loads(
- r"""{
- "title" : "BatchResourceOperation_query_ids_inner",
- "anyOf" : [ {
- "$ref" : "#/components/schemas/ResourceId"
- }, {
- "$ref" : "#/components/schemas/ResourceTypeId"
- } ]
-}
-""",
- object_hook=with_example_provider,
-)
-batch_resource_operation_query_ids_inner_model_schema.update({
- "definitions": MODEL_DEFINITIONS
-})
-
-batch_resource_operation_query_ids_inner_faker = JSF(
- batch_resource_operation_query_ids_inner_model_schema, allow_none_optionals=1
-)
-
-
-class BatchResourceOperationQueryIdsInnerStub:
- """BatchResourceOperationQueryIdsInner unit test stubs."""
-
- @classmethod
- def create_json(cls):
- """Create a dict stub instance."""
- return batch_resource_operation_query_ids_inner_faker.generate(
- use_defaults=True, use_examples=True
- )
-
- @classmethod
- def create_instance(cls) -> "BatchResourceOperationQueryIdsInner":
- """Create BatchResourceOperationQueryIdsInner stub instance."""
- if not MODELS_AVAILABLE:
- raise ImportError("Models must be installed to create class stubs")
- json = cls.create_json()
- if not json:
- # use backup example based on the pydantic model schema
- backup_faker = JSF(
- BatchResourceOperationQueryIdsInnerAdapter.json_schema(),
- allow_none_optionals=1,
- )
- json = backup_faker.generate(use_defaults=True, use_examples=True)
- return BatchResourceOperationQueryIdsInnerAdapter.validate_python(
- json, context={"skip_validation": True}
- )
diff --git a/test/types/batch_resource_operation_stub.py b/test/types/batch_resource_operation_stub.py
index 20e0208..b34d84f 100644
--- a/test/types/batch_resource_operation_stub.py
+++ b/test/types/batch_resource_operation_stub.py
@@ -27,19 +27,11 @@
batch_resource_operation_model_schema = json.loads(
r"""{
- "required" : [ "action", "entity", "query" ],
- "type" : "object",
- "properties" : {
- "entity" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_entity"
- },
- "action" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_action"
- },
- "query" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_query"
- }
- }
+ "oneOf" : [ {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation"
+ }, {
+ "$ref" : "#/components/schemas/BatchResourceTypeDeleteOperation"
+ } ]
}
""",
object_hook=with_example_provider,
@@ -67,7 +59,7 @@ def create_instance(cls) -> "BatchResourceOperation":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchResourceOperationAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/batch_resource_type_delete_operation_entity_stub.py b/test/types/batch_resource_type_delete_operation_entity_stub.py
new file mode 100644
index 0000000..8737383
--- /dev/null
+++ b/test/types/batch_resource_type_delete_operation_entity_stub.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.batch_resource_type_delete_operation_entity import (
+ BatchResourceTypeDeleteOperationEntity,
+ )
+
+ BatchResourceTypeDeleteOperationEntityAdapter = TypeAdapter(
+ BatchResourceTypeDeleteOperationEntity
+ )
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+batch_resource_type_delete_operation_entity_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceTypeDeleteOperation_entity",
+ "type" : "string",
+ "description" : "Type of entities to remove",
+ "enum" : [ "resourcetype" ]
+}
+""",
+ object_hook=with_example_provider,
+)
+batch_resource_type_delete_operation_entity_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
+
+batch_resource_type_delete_operation_entity_faker = JSF(
+ batch_resource_type_delete_operation_entity_model_schema, allow_none_optionals=1
+)
+
+
+class BatchResourceTypeDeleteOperationEntityStub:
+ """BatchResourceTypeDeleteOperationEntity unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return batch_resource_type_delete_operation_entity_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "BatchResourceTypeDeleteOperationEntity":
+ """Create BatchResourceTypeDeleteOperationEntity stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ BatchResourceTypeDeleteOperationEntityAdapter.json_schema(),
+ allow_none_optionals=1,
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return BatchResourceTypeDeleteOperationEntityAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/batch_resource_type_delete_operation_query_stub.py b/test/types/batch_resource_type_delete_operation_query_stub.py
new file mode 100644
index 0000000..daf975f
--- /dev/null
+++ b/test/types/batch_resource_type_delete_operation_query_stub.py
@@ -0,0 +1,83 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.batch_resource_type_delete_operation_query import (
+ BatchResourceTypeDeleteOperationQuery,
+ )
+
+ BatchResourceTypeDeleteOperationQueryAdapter = TypeAdapter(
+ BatchResourceTypeDeleteOperationQuery
+ )
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+batch_resource_type_delete_operation_query_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceTypeDeleteOperation_query",
+ "required" : [ "ids" ],
+ "type" : "object",
+ "properties" : {
+ "ids" : {
+ "title" : "ids",
+ "minItems" : 1,
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/ResourceTypeId"
+ }
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+batch_resource_type_delete_operation_query_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
+
+batch_resource_type_delete_operation_query_faker = JSF(
+ batch_resource_type_delete_operation_query_model_schema, allow_none_optionals=1
+)
+
+
+class BatchResourceTypeDeleteOperationQueryStub:
+ """BatchResourceTypeDeleteOperationQuery unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return batch_resource_type_delete_operation_query_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "BatchResourceTypeDeleteOperationQuery":
+ """Create BatchResourceTypeDeleteOperationQuery stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ BatchResourceTypeDeleteOperationQueryAdapter.json_schema(),
+ allow_none_optionals=1,
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return BatchResourceTypeDeleteOperationQueryAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/batch_resource_type_delete_operation_stub.py b/test/types/batch_resource_type_delete_operation_stub.py
new file mode 100644
index 0000000..177b7be
--- /dev/null
+++ b/test/types/batch_resource_type_delete_operation_stub.py
@@ -0,0 +1,84 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.batch_resource_type_delete_operation import (
+ BatchResourceTypeDeleteOperation,
+ )
+
+ BatchResourceTypeDeleteOperationAdapter = TypeAdapter(
+ BatchResourceTypeDeleteOperation
+ )
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+batch_resource_type_delete_operation_model_schema = json.loads(
+ r"""{
+ "title" : "BatchResourceTypeDeleteOperation",
+ "required" : [ "action", "entity", "query" ],
+ "type" : "object",
+ "properties" : {
+ "entity" : {
+ "$ref" : "#/components/schemas/BatchResourceTypeDeleteOperation_entity"
+ },
+ "action" : {
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
+ },
+ "query" : {
+ "$ref" : "#/components/schemas/BatchResourceTypeDeleteOperation_query"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+batch_resource_type_delete_operation_model_schema.update({
+ "definitions": MODEL_DEFINITIONS
+})
+
+batch_resource_type_delete_operation_faker = JSF(
+ batch_resource_type_delete_operation_model_schema, allow_none_optionals=1
+)
+
+
+class BatchResourceTypeDeleteOperationStub:
+ """BatchResourceTypeDeleteOperation unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return batch_resource_type_delete_operation_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "BatchResourceTypeDeleteOperation":
+ """Create BatchResourceTypeDeleteOperation stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ BatchResourceTypeDeleteOperationAdapter.json_schema(),
+ allow_none_optionals=1,
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return BatchResourceTypeDeleteOperationAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/batch_running_resource_operation_operation_entity_stub.py b/test/types/batch_running_resource_operation_operation_entity_stub.py
index 783cc75..9f8f58d 100644
--- a/test/types/batch_running_resource_operation_operation_entity_stub.py
+++ b/test/types/batch_running_resource_operation_operation_entity_stub.py
@@ -62,7 +62,7 @@ def create_instance(cls) -> "BatchRunningResourceOperationOperationEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchRunningResourceOperationOperationEntityAdapter.json_schema(),
diff --git a/test/types/batch_running_resource_operation_operation_stub.py b/test/types/batch_running_resource_operation_operation_stub.py
index 63a6170..7d32ccf 100644
--- a/test/types/batch_running_resource_operation_operation_stub.py
+++ b/test/types/batch_running_resource_operation_operation_stub.py
@@ -37,7 +37,7 @@
"$ref" : "#/components/schemas/BatchRunningResourceOperation_operation_entity"
},
"action" : {
- "$ref" : "#/components/schemas/BatchResourceOperation_action"
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
},
"description" : {
"title" : "description",
@@ -75,7 +75,7 @@ def create_instance(cls) -> "BatchRunningResourceOperationOperation":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchRunningResourceOperationOperationAdapter.json_schema(),
diff --git a/test/types/batch_running_resource_operation_stub.py b/test/types/batch_running_resource_operation_stub.py
index 5bf3f1d..edcc79e 100644
--- a/test/types/batch_running_resource_operation_stub.py
+++ b/test/types/batch_running_resource_operation_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "BatchRunningResourceOperation":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BatchRunningResourceOperationAdapter.json_schema(),
diff --git a/test/types/boolean_value_constraint_stub.py b/test/types/boolean_value_constraint_stub.py
index 017cc85..29ef80a 100644
--- a/test/types/boolean_value_constraint_stub.py
+++ b/test/types/boolean_value_constraint_stub.py
@@ -61,7 +61,7 @@ def create_instance(cls) -> "BooleanValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BooleanValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/boolean_value_constraint_type_stub.py b/test/types/boolean_value_constraint_type_stub.py
index b0272b5..4165429 100644
--- a/test/types/boolean_value_constraint_type_stub.py
+++ b/test/types/boolean_value_constraint_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "BooleanValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
BooleanValueConstraintTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/create_delete_event_type_stub.py b/test/types/cascade_delete_values_inner_stub.py
similarity index 53%
rename from test/types/create_delete_event_type_stub.py
rename to test/types/cascade_delete_values_inner_stub.py
index b5a8b57..9fc0e38 100644
--- a/test/types/create_delete_event_type_stub.py
+++ b/test/types/cascade_delete_values_inner_stub.py
@@ -16,53 +16,53 @@
from ..openapi import MODEL_DEFINITIONS, with_example_provider
try:
- from waylay.services.resources.models.create_delete_event_type import (
- CreateDeleteEventType,
+ from waylay.services.resources.models.cascade_delete_values_inner import (
+ CascadeDeleteValuesInner,
)
- CreateDeleteEventTypeAdapter = TypeAdapter(CreateDeleteEventType)
+ CascadeDeleteValuesInnerAdapter = TypeAdapter(CascadeDeleteValuesInner)
MODELS_AVAILABLE = True
except ImportError as exc:
MODELS_AVAILABLE = False
-create_delete_event_type_model_schema = json.loads(
+cascade_delete_values_inner_model_schema = json.loads(
r"""{
- "title" : "CreateDeleteEvent_type",
+ "title" : "CascadeDeleteValues_inner",
"type" : "string",
- "enum" : [ "create", "delete" ]
+ "enum" : [ "alarms", "measurements", "tasks" ]
}
""",
object_hook=with_example_provider,
)
-create_delete_event_type_model_schema.update({"definitions": MODEL_DEFINITIONS})
+cascade_delete_values_inner_model_schema.update({"definitions": MODEL_DEFINITIONS})
-create_delete_event_type_faker = JSF(
- create_delete_event_type_model_schema, allow_none_optionals=1
+cascade_delete_values_inner_faker = JSF(
+ cascade_delete_values_inner_model_schema, allow_none_optionals=1
)
-class CreateDeleteEventTypeStub:
- """CreateDeleteEventType unit test stubs."""
+class CascadeDeleteValuesInnerStub:
+ """CascadeDeleteValuesInner unit test stubs."""
@classmethod
def create_json(cls):
"""Create a dict stub instance."""
- return create_delete_event_type_faker.generate(
+ return cascade_delete_values_inner_faker.generate(
use_defaults=True, use_examples=True
)
@classmethod
- def create_instance(cls) -> "CreateDeleteEventType":
- """Create CreateDeleteEventType stub instance."""
+ def create_instance(cls) -> "CascadeDeleteValuesInner":
+ """Create CascadeDeleteValuesInner stub instance."""
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
- CreateDeleteEventTypeAdapter.json_schema(), allow_none_optionals=1
+ CascadeDeleteValuesInnerAdapter.json_schema(), allow_none_optionals=1
)
json = backup_faker.generate(use_defaults=True, use_examples=True)
- return CreateDeleteEventTypeAdapter.validate_python(
+ return CascadeDeleteValuesInnerAdapter.validate_python(
json, context={"skip_validation": True}
)
diff --git a/test/types/changed_event_stub.py b/test/types/changed_event_stub.py
index 22ea7ae..b8a131d 100644
--- a/test/types/changed_event_stub.py
+++ b/test/types/changed_event_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "ChangedEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ChangedEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/changed_event_type_stub.py b/test/types/changed_event_type_stub.py
index c9425c6..1cb17da 100644
--- a/test/types/changed_event_type_stub.py
+++ b/test/types/changed_event_type_stub.py
@@ -51,7 +51,7 @@ def create_instance(cls) -> "ChangedEventType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ChangedEventTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/cloud_metadata_event_data_source_stub.py b/test/types/cloud_metadata_event_data_source_stub.py
index a6a0103..4d04b4e 100644
--- a/test/types/cloud_metadata_event_data_source_stub.py
+++ b/test/types/cloud_metadata_event_data_source_stub.py
@@ -58,7 +58,7 @@ def create_instance(cls) -> "CloudMetadataEventDataSource":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
CloudMetadataEventDataSourceAdapter.json_schema(),
diff --git a/test/types/cloud_metadata_event_data_stub.py b/test/types/cloud_metadata_event_data_stub.py
index 55f943b..389286e 100644
--- a/test/types/cloud_metadata_event_data_stub.py
+++ b/test/types/cloud_metadata_event_data_stub.py
@@ -75,7 +75,7 @@ def create_instance(cls) -> "CloudMetadataEventData":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
CloudMetadataEventDataAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/cloud_metadata_event_data_type_stub.py b/test/types/cloud_metadata_event_data_type_stub.py
index 8e93958..05b7742 100644
--- a/test/types/cloud_metadata_event_data_type_stub.py
+++ b/test/types/cloud_metadata_event_data_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "CloudMetadataEventDataType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
CloudMetadataEventDataTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/cloud_metadata_event_stub.py b/test/types/cloud_metadata_event_stub.py
index c123c3d..aa17144 100644
--- a/test/types/cloud_metadata_event_stub.py
+++ b/test/types/cloud_metadata_event_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "CloudMetadataEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
CloudMetadataEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/constraint_error_stub.py b/test/types/constraint_error_stub.py
index e85a799..f4260cc 100644
--- a/test/types/constraint_error_stub.py
+++ b/test/types/constraint_error_stub.py
@@ -75,7 +75,7 @@ def create_instance(cls) -> "ConstraintError":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ConstraintErrorAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/constraint_status_status_stub.py b/test/types/constraint_status_status_stub.py
index 006ac9b..c4fda62 100644
--- a/test/types/constraint_status_status_stub.py
+++ b/test/types/constraint_status_status_stub.py
@@ -58,7 +58,7 @@ def create_instance(cls) -> "ConstraintStatusStatus":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ConstraintStatusStatusAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/constraint_status_stub.py b/test/types/constraint_status_stub.py
index 36f8041..daf852e 100644
--- a/test/types/constraint_status_stub.py
+++ b/test/types/constraint_status_stub.py
@@ -67,7 +67,7 @@ def create_instance(cls) -> "ConstraintStatus":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ConstraintStatusAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/constraint_stub.py b/test/types/constraint_stub.py
index 4368684..15dadf0 100644
--- a/test/types/constraint_stub.py
+++ b/test/types/constraint_stub.py
@@ -42,6 +42,14 @@
"description" : "A description for the _Resource Constraint_",
"example" : "Makes the name attribute mandatory"
},
+ "tags" : {
+ "title" : "tags",
+ "type" : "array",
+ "example" : [ "technology", "myTag" ],
+ "items" : {
+ "type" : "string"
+ }
+ },
"attributes" : {
"title" : "attributes",
"type" : "array",
@@ -75,7 +83,7 @@ def create_instance(cls) -> "Constraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(ConstraintAdapter.json_schema(), allow_none_optionals=1)
json = backup_faker.generate(use_defaults=True, use_examples=True)
diff --git a/test/types/create_event_stub.py b/test/types/create_event_stub.py
new file mode 100644
index 0000000..6abe93a
--- /dev/null
+++ b/test/types/create_event_stub.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.create_event import CreateEvent
+
+ CreateEventAdapter = TypeAdapter(CreateEvent)
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+create_event_model_schema = json.loads(
+ r"""{
+ "properties" : {
+ "type" : {
+ "$ref" : "#/components/schemas/CreateEvent_type"
+ }
+ }
+}
+""",
+ object_hook=with_example_provider,
+)
+create_event_model_schema.update({"definitions": MODEL_DEFINITIONS})
+
+create_event_faker = JSF(create_event_model_schema, allow_none_optionals=1)
+
+
+class CreateEventStub:
+ """CreateEvent unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return create_event_faker.generate(use_defaults=True, use_examples=True)
+
+ @classmethod
+ def create_instance(cls) -> "CreateEvent":
+ """Create CreateEvent stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(CreateEventAdapter.json_schema(), allow_none_optionals=1)
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return CreateEventAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/create_event_type_stub.py b/test/types/create_event_type_stub.py
new file mode 100644
index 0000000..f4ef556
--- /dev/null
+++ b/test/types/create_event_type_stub.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.create_event_type import CreateEventType
+
+ CreateEventTypeAdapter = TypeAdapter(CreateEventType)
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+create_event_type_model_schema = json.loads(
+ r"""{
+ "title" : "CreateEvent_type",
+ "type" : "string",
+ "enum" : [ "create" ]
+}
+""",
+ object_hook=with_example_provider,
+)
+create_event_type_model_schema.update({"definitions": MODEL_DEFINITIONS})
+
+create_event_type_faker = JSF(create_event_type_model_schema, allow_none_optionals=1)
+
+
+class CreateEventTypeStub:
+ """CreateEventType unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return create_event_type_faker.generate(use_defaults=True, use_examples=True)
+
+ @classmethod
+ def create_instance(cls) -> "CreateEventType":
+ """Create CreateEventType stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ CreateEventTypeAdapter.json_schema(), allow_none_optionals=1
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return CreateEventTypeAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/create_delete_event_stub.py b/test/types/deleted_event_stub.py
similarity index 55%
rename from test/types/create_delete_event_stub.py
rename to test/types/deleted_event_stub.py
index 423a447..4820c80 100644
--- a/test/types/create_delete_event_stub.py
+++ b/test/types/deleted_event_stub.py
@@ -16,51 +16,49 @@
from ..openapi import MODEL_DEFINITIONS, with_example_provider
try:
- from waylay.services.resources.models.create_delete_event import CreateDeleteEvent
+ from waylay.services.resources.models.deleted_event import DeletedEvent
- CreateDeleteEventAdapter = TypeAdapter(CreateDeleteEvent)
+ DeletedEventAdapter = TypeAdapter(DeletedEvent)
MODELS_AVAILABLE = True
except ImportError as exc:
MODELS_AVAILABLE = False
-create_delete_event_model_schema = json.loads(
+deleted_event_model_schema = json.loads(
r"""{
"properties" : {
"type" : {
- "$ref" : "#/components/schemas/CreateDeleteEvent_type"
+ "$ref" : "#/components/schemas/BatchResourceDeleteOperation_action"
}
}
}
""",
object_hook=with_example_provider,
)
-create_delete_event_model_schema.update({"definitions": MODEL_DEFINITIONS})
+deleted_event_model_schema.update({"definitions": MODEL_DEFINITIONS})
-create_delete_event_faker = JSF(
- create_delete_event_model_schema, allow_none_optionals=1
-)
+deleted_event_faker = JSF(deleted_event_model_schema, allow_none_optionals=1)
-class CreateDeleteEventStub:
- """CreateDeleteEvent unit test stubs."""
+class DeletedEventStub:
+ """DeletedEvent unit test stubs."""
@classmethod
def create_json(cls):
"""Create a dict stub instance."""
- return create_delete_event_faker.generate(use_defaults=True, use_examples=True)
+ return deleted_event_faker.generate(use_defaults=True, use_examples=True)
@classmethod
- def create_instance(cls) -> "CreateDeleteEvent":
- """Create CreateDeleteEvent stub instance."""
+ def create_instance(cls) -> "DeletedEvent":
+ """Create DeletedEvent stub instance."""
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
- CreateDeleteEventAdapter.json_schema(), allow_none_optionals=1
+ DeletedEventAdapter.json_schema(), allow_none_optionals=1
)
json = backup_faker.generate(use_defaults=True, use_examples=True)
- return CreateDeleteEventAdapter.validate_python(
+ return DeletedEventAdapter.validate_python(
json, context={"skip_validation": True}
)
diff --git a/test/types/deleted_resource_event_stub.py b/test/types/deleted_resource_event_stub.py
new file mode 100644
index 0000000..4582a8d
--- /dev/null
+++ b/test/types/deleted_resource_event_stub.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+"""Waylay Resources model tests.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+"""
+
+import json
+
+from jsf import JSF
+from pydantic import TypeAdapter
+
+from ..openapi import MODEL_DEFINITIONS, with_example_provider
+
+try:
+ from waylay.services.resources.models.deleted_resource_event import (
+ DeletedResourceEvent,
+ )
+
+ DeletedResourceEventAdapter = TypeAdapter(DeletedResourceEvent)
+ MODELS_AVAILABLE = True
+except ImportError as exc:
+ MODELS_AVAILABLE = False
+
+deleted_resource_event_model_schema = json.loads(
+ r"""{
+ "allOf" : [ {
+ "$ref" : "#/components/schemas/DeletedEvent"
+ }, {
+ "properties" : {
+ "cascadeDelete" : {
+ "$ref" : "#/components/schemas/CascadeDeleteValues"
+ }
+ }
+ } ]
+}
+""",
+ object_hook=with_example_provider,
+)
+deleted_resource_event_model_schema.update({"definitions": MODEL_DEFINITIONS})
+
+deleted_resource_event_faker = JSF(
+ deleted_resource_event_model_schema, allow_none_optionals=1
+)
+
+
+class DeletedResourceEventStub:
+ """DeletedResourceEvent unit test stubs."""
+
+ @classmethod
+ def create_json(cls):
+ """Create a dict stub instance."""
+ return deleted_resource_event_faker.generate(
+ use_defaults=True, use_examples=True
+ )
+
+ @classmethod
+ def create_instance(cls) -> "DeletedResourceEvent":
+ """Create DeletedResourceEvent stub instance."""
+ if not MODELS_AVAILABLE:
+ raise ImportError("Models must be installed to create class stubs")
+ json = cls.create_json()
+ if json is None:
+ # use backup example based on the pydantic model schema
+ backup_faker = JSF(
+ DeletedResourceEventAdapter.json_schema(), allow_none_optionals=1
+ )
+ json = backup_faker.generate(use_defaults=True, use_examples=True)
+ return DeletedResourceEventAdapter.validate_python(
+ json, context={"skip_validation": True}
+ )
diff --git a/test/types/discovered_event_stub.py b/test/types/discovered_event_stub.py
index 397072e..c57f869 100644
--- a/test/types/discovered_event_stub.py
+++ b/test/types/discovered_event_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "DiscoveredEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
DiscoveredEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/discovered_event_type_stub.py b/test/types/discovered_event_type_stub.py
index 448c709..8861fbc 100644
--- a/test/types/discovered_event_type_stub.py
+++ b/test/types/discovered_event_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "DiscoveredEventType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
DiscoveredEventTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/error_response_stub.py b/test/types/error_response_stub.py
index 0bff5b8..ae4ede6 100644
--- a/test/types/error_response_stub.py
+++ b/test/types/error_response_stub.py
@@ -64,7 +64,7 @@ def create_instance(cls) -> "ErrorResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ErrorResponseAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/failure_operation_result_value_stub.py b/test/types/failure_operation_result_value_stub.py
index 7649103..093efb1 100644
--- a/test/types/failure_operation_result_value_stub.py
+++ b/test/types/failure_operation_result_value_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "FailureOperationResultValue":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
FailureOperationResultValueAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/generic_metadata_event_stub.py b/test/types/generic_metadata_event_stub.py
index 61f7930..0a7fc3f 100644
--- a/test/types/generic_metadata_event_stub.py
+++ b/test/types/generic_metadata_event_stub.py
@@ -67,7 +67,7 @@ def create_instance(cls) -> "GenericMetadataEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
GenericMetadataEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/get_stream_event_format_parameter_stub.py b/test/types/get_stream_event_format_parameter_stub.py
index 7d1e6d8..04bd9d3 100644
--- a/test/types/get_stream_event_format_parameter_stub.py
+++ b/test/types/get_stream_event_format_parameter_stub.py
@@ -58,7 +58,7 @@ def create_instance(cls) -> "GetStreamEventFormatParameter":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
GetStreamEventFormatParameterAdapter.json_schema(),
diff --git a/test/types/hal_link_stub.py b/test/types/hal_link_stub.py
index e6637fd..ed0c84e 100644
--- a/test/types/hal_link_stub.py
+++ b/test/types/hal_link_stub.py
@@ -58,7 +58,7 @@ def create_instance(cls) -> "HALLink":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(HALLinkAdapter.json_schema(), allow_none_optionals=1)
json = backup_faker.generate(use_defaults=True, use_examples=True)
diff --git a/test/types/hal_page_links_stub.py b/test/types/hal_page_links_stub.py
index c5f3b6c..0bb4150 100644
--- a/test/types/hal_page_links_stub.py
+++ b/test/types/hal_page_links_stub.py
@@ -54,7 +54,7 @@ def create_instance(cls) -> "HALPageLinks":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALPageLinksAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_resource_entity_all_of_embedded_stub.py b/test/types/hal_resource_entity_all_of_embedded_stub.py
index 865a247..1136bf0 100644
--- a/test/types/hal_resource_entity_all_of_embedded_stub.py
+++ b/test/types/hal_resource_entity_all_of_embedded_stub.py
@@ -63,7 +63,7 @@ def create_instance(cls) -> "HALResourceEntityAllOfEmbedded":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceEntityAllOfEmbeddedAdapter.json_schema(),
diff --git a/test/types/hal_resource_entity_all_of_links_children_stub.py b/test/types/hal_resource_entity_all_of_links_children_stub.py
index 3b0bf9c..a623142 100644
--- a/test/types/hal_resource_entity_all_of_links_children_stub.py
+++ b/test/types/hal_resource_entity_all_of_links_children_stub.py
@@ -67,7 +67,7 @@ def create_instance(cls) -> "HALResourceEntityAllOfLinksChildren":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceEntityAllOfLinksChildrenAdapter.json_schema(),
diff --git a/test/types/hal_resource_entity_all_of_links_parent_stub.py b/test/types/hal_resource_entity_all_of_links_parent_stub.py
index 9664539..e183e65 100644
--- a/test/types/hal_resource_entity_all_of_links_parent_stub.py
+++ b/test/types/hal_resource_entity_all_of_links_parent_stub.py
@@ -68,7 +68,7 @@ def create_instance(cls) -> "HALResourceEntityAllOfLinksParent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceEntityAllOfLinksParentAdapter.json_schema(),
diff --git a/test/types/hal_resource_entity_all_of_links_resource_type_stub.py b/test/types/hal_resource_entity_all_of_links_resource_type_stub.py
index cfda03d..a7b09ac 100644
--- a/test/types/hal_resource_entity_all_of_links_resource_type_stub.py
+++ b/test/types/hal_resource_entity_all_of_links_resource_type_stub.py
@@ -68,7 +68,7 @@ def create_instance(cls) -> "HALResourceEntityAllOfLinksResourceType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceEntityAllOfLinksResourceTypeAdapter.json_schema(),
diff --git a/test/types/hal_resource_entity_all_of_links_stub.py b/test/types/hal_resource_entity_all_of_links_stub.py
index 3f7f123..666e9f7 100644
--- a/test/types/hal_resource_entity_all_of_links_stub.py
+++ b/test/types/hal_resource_entity_all_of_links_stub.py
@@ -69,7 +69,7 @@ def create_instance(cls) -> "HALResourceEntityAllOfLinks":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceEntityAllOfLinksAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_resource_entity_stub.py b/test/types/hal_resource_entity_stub.py
index 27a1161..b6426c9 100644
--- a/test/types/hal_resource_entity_stub.py
+++ b/test/types/hal_resource_entity_stub.py
@@ -66,7 +66,7 @@ def create_instance(cls) -> "HALResourceEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_resource_listing_all_of_embedded_stub.py b/test/types/hal_resource_listing_all_of_embedded_stub.py
index 3c27632..98a7082 100644
--- a/test/types/hal_resource_listing_all_of_embedded_stub.py
+++ b/test/types/hal_resource_listing_all_of_embedded_stub.py
@@ -71,7 +71,7 @@ def create_instance(cls) -> "HALResourceListingAllOfEmbedded":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceListingAllOfEmbeddedAdapter.json_schema(),
diff --git a/test/types/hal_resource_listing_stub.py b/test/types/hal_resource_listing_stub.py
index 503f4f7..121f167 100644
--- a/test/types/hal_resource_listing_stub.py
+++ b/test/types/hal_resource_listing_stub.py
@@ -66,7 +66,7 @@ def create_instance(cls) -> "HALResourceListing":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceListingAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_resource_type_entity_stub.py b/test/types/hal_resource_type_entity_stub.py
index eeaa4f7..f817fb3 100644
--- a/test/types/hal_resource_type_entity_stub.py
+++ b/test/types/hal_resource_type_entity_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "HALResourceTypeEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALResourceTypeEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_self_links_links_self_stub.py b/test/types/hal_self_links_links_self_stub.py
index 1196e59..6fa4969 100644
--- a/test/types/hal_self_links_links_self_stub.py
+++ b/test/types/hal_self_links_links_self_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "HALSelfLinksLinksSelf":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALSelfLinksLinksSelfAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_self_links_links_stub.py b/test/types/hal_self_links_links_stub.py
index 8323a59..b8a4e4c 100644
--- a/test/types/hal_self_links_links_stub.py
+++ b/test/types/hal_self_links_links_stub.py
@@ -64,7 +64,7 @@ def create_instance(cls) -> "HALSelfLinksLinks":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALSelfLinksLinksAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_self_links_links_value_stub.py b/test/types/hal_self_links_links_value_stub.py
index 099df6f..1c426bf 100644
--- a/test/types/hal_self_links_links_value_stub.py
+++ b/test/types/hal_self_links_links_value_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "HALSelfLinksLinksValue":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALSelfLinksLinksValueAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/hal_self_links_stub.py b/test/types/hal_self_links_stub.py
index 63c0bc6..72d1162 100644
--- a/test/types/hal_self_links_stub.py
+++ b/test/types/hal_self_links_stub.py
@@ -55,7 +55,7 @@ def create_instance(cls) -> "HALSelfLinks":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
HALSelfLinksAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/halid_link_stub.py b/test/types/halid_link_stub.py
index 05fee48..bb51894 100644
--- a/test/types/halid_link_stub.py
+++ b/test/types/halid_link_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "HALIdLink":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(HALIdLinkAdapter.json_schema(), allow_none_optionals=1)
json = backup_faker.generate(use_defaults=True, use_examples=True)
diff --git a/test/types/list_constraints200_response_stub.py b/test/types/list_constraints200_response_stub.py
index 0460472..b5d2081 100644
--- a/test/types/list_constraints200_response_stub.py
+++ b/test/types/list_constraints200_response_stub.py
@@ -67,7 +67,7 @@ def create_instance(cls) -> "ListConstraints200Response":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ListConstraints200ResponseAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/batch_resource_operation_action_stub.py b/test/types/list_resources_order_parameter_stub.py
similarity index 51%
rename from test/types/batch_resource_operation_action_stub.py
rename to test/types/list_resources_order_parameter_stub.py
index 62d5d50..ed0851f 100644
--- a/test/types/batch_resource_operation_action_stub.py
+++ b/test/types/list_resources_order_parameter_stub.py
@@ -16,54 +16,53 @@
from ..openapi import MODEL_DEFINITIONS, with_example_provider
try:
- from waylay.services.resources.models.batch_resource_operation_action import (
- BatchResourceOperationAction,
+ from waylay.services.resources.models.list_resources_order_parameter import (
+ ListResourcesOrderParameter,
)
- BatchResourceOperationActionAdapter = TypeAdapter(BatchResourceOperationAction)
+ ListResourcesOrderParameterAdapter = TypeAdapter(ListResourcesOrderParameter)
MODELS_AVAILABLE = True
except ImportError as exc:
MODELS_AVAILABLE = False
-batch_resource_operation_action_model_schema = json.loads(
+list_resources_order_parameter_model_schema = json.loads(
r"""{
- "title" : "BatchResourceOperation_action",
"type" : "string",
- "enum" : [ "delete" ]
+ "default" : "ascending",
+ "enum" : [ "ascending", "descending" ]
}
""",
object_hook=with_example_provider,
)
-batch_resource_operation_action_model_schema.update({"definitions": MODEL_DEFINITIONS})
+list_resources_order_parameter_model_schema.update({"definitions": MODEL_DEFINITIONS})
-batch_resource_operation_action_faker = JSF(
- batch_resource_operation_action_model_schema, allow_none_optionals=1
+list_resources_order_parameter_faker = JSF(
+ list_resources_order_parameter_model_schema, allow_none_optionals=1
)
-class BatchResourceOperationActionStub:
- """BatchResourceOperationAction unit test stubs."""
+class ListResourcesOrderParameterStub:
+ """ListResourcesOrderParameter unit test stubs."""
@classmethod
def create_json(cls):
"""Create a dict stub instance."""
- return batch_resource_operation_action_faker.generate(
+ return list_resources_order_parameter_faker.generate(
use_defaults=True, use_examples=True
)
@classmethod
- def create_instance(cls) -> "BatchResourceOperationAction":
- """Create BatchResourceOperationAction stub instance."""
+ def create_instance(cls) -> "ListResourcesOrderParameter":
+ """Create ListResourcesOrderParameter stub instance."""
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
- BatchResourceOperationActionAdapter.json_schema(),
- allow_none_optionals=1,
+ ListResourcesOrderParameterAdapter.json_schema(), allow_none_optionals=1
)
json = backup_faker.generate(use_defaults=True, use_examples=True)
- return BatchResourceOperationActionAdapter.validate_python(
+ return ListResourcesOrderParameterAdapter.validate_python(
json, context={"skip_validation": True}
)
diff --git a/test/types/metadata_entity_location_stub.py b/test/types/metadata_entity_location_stub.py
index 7a9fa06..7b821f2 100644
--- a/test/types/metadata_entity_location_stub.py
+++ b/test/types/metadata_entity_location_stub.py
@@ -66,7 +66,7 @@ def create_instance(cls) -> "MetadataEntityLocation":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
MetadataEntityLocationAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/metadata_entity_stub.py b/test/types/metadata_entity_stub.py
index 1652999..3a87b95 100644
--- a/test/types/metadata_entity_stub.py
+++ b/test/types/metadata_entity_stub.py
@@ -60,7 +60,7 @@
}
},
"additionalProperties" : {
- "$ref" : "#/components/schemas/MetadataEntity_value"
+ "$ref" : "#/components/schemas/User_Resource_properties"
},
"description" : "Common attributes for _Resource_ or _Resource Type_"
}
@@ -86,7 +86,7 @@ def create_instance(cls) -> "MetadataEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
MetadataEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/metadata_event_stub.py b/test/types/metadata_event_stub.py
index 5e25936..21ed85b 100644
--- a/test/types/metadata_event_stub.py
+++ b/test/types/metadata_event_stub.py
@@ -53,7 +53,7 @@ def create_instance(cls) -> "MetadataEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
MetadataEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/nd_json_response_stream_stub.py b/test/types/nd_json_response_stream_stub.py
index a0ec9a5..cd91231 100644
--- a/test/types/nd_json_response_stream_stub.py
+++ b/test/types/nd_json_response_stream_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "NdJsonResponseStream":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
NdJsonResponseStreamAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/numeric_enum_value_constraint_stub.py b/test/types/numeric_enum_value_constraint_stub.py
index 27f5158..33b286b 100644
--- a/test/types/numeric_enum_value_constraint_stub.py
+++ b/test/types/numeric_enum_value_constraint_stub.py
@@ -72,7 +72,7 @@ def create_instance(cls) -> "NumericEnumValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
NumericEnumValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/numeric_enum_value_constraint_type_stub.py b/test/types/numeric_enum_value_constraint_type_stub.py
index c0b2c05..1e654a6 100644
--- a/test/types/numeric_enum_value_constraint_type_stub.py
+++ b/test/types/numeric_enum_value_constraint_type_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "NumericEnumValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
NumericEnumValueConstraintTypeAdapter.json_schema(),
diff --git a/test/types/numeric_value_constraint_stub.py b/test/types/numeric_value_constraint_stub.py
index 89b46cc..3cf84f3 100644
--- a/test/types/numeric_value_constraint_stub.py
+++ b/test/types/numeric_value_constraint_stub.py
@@ -71,7 +71,7 @@ def create_instance(cls) -> "NumericValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
NumericValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/numeric_value_constraint_type_stub.py b/test/types/numeric_value_constraint_type_stub.py
index d96ff11..bf47cab 100644
--- a/test/types/numeric_value_constraint_type_stub.py
+++ b/test/types/numeric_value_constraint_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "NumericValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
NumericValueConstraintTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/object_value_constraint_stub.py b/test/types/object_value_constraint_stub.py
index fd6121f..09cfbbe 100644
--- a/test/types/object_value_constraint_stub.py
+++ b/test/types/object_value_constraint_stub.py
@@ -69,7 +69,7 @@ def create_instance(cls) -> "ObjectValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ObjectValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/object_value_constraint_type_stub.py b/test/types/object_value_constraint_type_stub.py
index 22ba3a6..56ce6f0 100644
--- a/test/types/object_value_constraint_type_stub.py
+++ b/test/types/object_value_constraint_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "ObjectValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ObjectValueConstraintTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/operation_result_object_results_stub.py b/test/types/operation_result_object_results_stub.py
index 1bbc1ce..37cecad 100644
--- a/test/types/operation_result_object_results_stub.py
+++ b/test/types/operation_result_object_results_stub.py
@@ -66,7 +66,7 @@ def create_instance(cls) -> "OperationResultObjectResults":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
OperationResultObjectResultsAdapter.json_schema(),
diff --git a/test/types/operation_result_object_stub.py b/test/types/operation_result_object_stub.py
index e743608..4b93fa9 100644
--- a/test/types/operation_result_object_stub.py
+++ b/test/types/operation_result_object_stub.py
@@ -65,7 +65,7 @@ def create_instance(cls) -> "OperationResultObject":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
OperationResultObjectAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/pagination_links_next_stub.py b/test/types/pagination_links_next_stub.py
index 944286c..c5bf2de 100644
--- a/test/types/pagination_links_next_stub.py
+++ b/test/types/pagination_links_next_stub.py
@@ -63,7 +63,7 @@ def create_instance(cls) -> "PaginationLinksNext":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PaginationLinksNextAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/pagination_links_prev_stub.py b/test/types/pagination_links_prev_stub.py
index 288d180..bd7a75d 100644
--- a/test/types/pagination_links_prev_stub.py
+++ b/test/types/pagination_links_prev_stub.py
@@ -63,7 +63,7 @@ def create_instance(cls) -> "PaginationLinksPrev":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PaginationLinksPrevAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/pagination_links_self_stub.py b/test/types/pagination_links_self_stub.py
index 49edd82..fb5720e 100644
--- a/test/types/pagination_links_self_stub.py
+++ b/test/types/pagination_links_self_stub.py
@@ -63,7 +63,7 @@ def create_instance(cls) -> "PaginationLinksSelf":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PaginationLinksSelfAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/pagination_links_stub.py b/test/types/pagination_links_stub.py
index 5a89f2b..7c6032d 100644
--- a/test/types/pagination_links_stub.py
+++ b/test/types/pagination_links_stub.py
@@ -63,7 +63,7 @@ def create_instance(cls) -> "PaginationLinks":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PaginationLinksAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/paging_count_stub.py b/test/types/paging_count_stub.py
index 113894c..5b0e473 100644
--- a/test/types/paging_count_stub.py
+++ b/test/types/paging_count_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "PagingCount":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(PagingCountAdapter.json_schema(), allow_none_optionals=1)
json = backup_faker.generate(use_defaults=True, use_examples=True)
diff --git a/test/types/paging_result_stub.py b/test/types/paging_result_stub.py
index 793bae7..ff8cce2 100644
--- a/test/types/paging_result_stub.py
+++ b/test/types/paging_result_stub.py
@@ -61,7 +61,7 @@ def create_instance(cls) -> "PagingResult":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PagingResultAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/patch_resource_entity_stub.py b/test/types/patch_resource_entity_stub.py
index 46cdd37..7fa3627 100644
--- a/test/types/patch_resource_entity_stub.py
+++ b/test/types/patch_resource_entity_stub.py
@@ -107,7 +107,7 @@ def create_instance(cls) -> "PatchResourceEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PatchResourceEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/patch_resource_type_entity_stub.py b/test/types/patch_resource_type_entity_stub.py
index 6763de7..e7aabc5 100644
--- a/test/types/patch_resource_type_entity_stub.py
+++ b/test/types/patch_resource_type_entity_stub.py
@@ -91,7 +91,7 @@ def create_instance(cls) -> "PatchResourceTypeEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
PatchResourceTypeEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_change_change_stub.py b/test/types/resource_change_change_stub.py
index c7fba60..91e27a5 100644
--- a/test/types/resource_change_change_stub.py
+++ b/test/types/resource_change_change_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "ResourceChangeChange":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceChangeChangeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_change_stub.py b/test/types/resource_change_stub.py
index 2bb7654..c3aab70 100644
--- a/test/types/resource_change_stub.py
+++ b/test/types/resource_change_stub.py
@@ -67,7 +67,7 @@ def create_instance(cls) -> "ResourceChange":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceChangeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_changes_paged_response_stub.py b/test/types/resource_changes_paged_response_stub.py
index 57e67f6..14da0a2 100644
--- a/test/types/resource_changes_paged_response_stub.py
+++ b/test/types/resource_changes_paged_response_stub.py
@@ -68,7 +68,7 @@ def create_instance(cls) -> "ResourceChangesPagedResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceChangesPagedResponseAdapter.json_schema(),
diff --git a/test/types/resource_constraint_creation_response_stub.py b/test/types/resource_constraint_creation_response_stub.py
index b4e8a20..dfd0e9e 100644
--- a/test/types/resource_constraint_creation_response_stub.py
+++ b/test/types/resource_constraint_creation_response_stub.py
@@ -74,7 +74,7 @@ def create_instance(cls) -> "ResourceConstraintCreationResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceConstraintCreationResponseAdapter.json_schema(),
diff --git a/test/types/resource_constraint_entity_stub.py b/test/types/resource_constraint_entity_stub.py
index d0d8bc7..b37c6e9 100644
--- a/test/types/resource_constraint_entity_stub.py
+++ b/test/types/resource_constraint_entity_stub.py
@@ -64,7 +64,7 @@ def create_instance(cls) -> "ResourceConstraintEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceConstraintEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_constraint_with_id_entity_stub.py b/test/types/resource_constraint_with_id_entity_stub.py
index 622c9c9..ca47e22 100644
--- a/test/types/resource_constraint_with_id_entity_stub.py
+++ b/test/types/resource_constraint_with_id_entity_stub.py
@@ -62,7 +62,7 @@ def create_instance(cls) -> "ResourceConstraintWithIdEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceConstraintWithIdEntityAdapter.json_schema(),
diff --git a/test/types/resource_creation_response_stub.py b/test/types/resource_creation_response_stub.py
index 863793a..faa956a 100644
--- a/test/types/resource_creation_response_stub.py
+++ b/test/types/resource_creation_response_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "ResourceCreationResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceCreationResponseAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_entity_stub.py b/test/types/resource_entity_stub.py
index f927238..867de98 100644
--- a/test/types/resource_entity_stub.py
+++ b/test/types/resource_entity_stub.py
@@ -98,7 +98,7 @@ def create_instance(cls) -> "ResourceEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_id_stub.py b/test/types/resource_id_stub.py
index e1d5afd..4540a05 100644
--- a/test/types/resource_id_stub.py
+++ b/test/types/resource_id_stub.py
@@ -61,7 +61,7 @@ def create_instance(cls) -> "ResourceId":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(ResourceIdAdapter.json_schema(), allow_none_optionals=1)
json = backup_faker.generate(use_defaults=True, use_examples=True)
diff --git a/test/types/resource_listing_stub.py b/test/types/resource_listing_stub.py
index f19a63a..d726422 100644
--- a/test/types/resource_listing_stub.py
+++ b/test/types/resource_listing_stub.py
@@ -64,7 +64,7 @@ def create_instance(cls) -> "ResourceListing":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceListingAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_metadata_event_all_of_object_type_stub.py b/test/types/resource_metadata_event_all_of_object_type_stub.py
index 7fc00b6..23b7862 100644
--- a/test/types/resource_metadata_event_all_of_object_type_stub.py
+++ b/test/types/resource_metadata_event_all_of_object_type_stub.py
@@ -61,7 +61,7 @@ def create_instance(cls) -> "ResourceMetadataEventAllOfObjectType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetadataEventAllOfObjectTypeAdapter.json_schema(),
diff --git a/test/types/resource_metadata_event_stub.py b/test/types/resource_metadata_event_stub.py
index 8d73144..ba529e6 100644
--- a/test/types/resource_metadata_event_stub.py
+++ b/test/types/resource_metadata_event_stub.py
@@ -41,7 +41,9 @@
}
}, {
"oneOf" : [ {
- "$ref" : "#/components/schemas/CreateDeleteEvent"
+ "$ref" : "#/components/schemas/CreateEvent"
+ }, {
+ "$ref" : "#/components/schemas/DeletedResourceEvent"
}, {
"$ref" : "#/components/schemas/ChangedEvent"
}, {
@@ -75,7 +77,7 @@ def create_instance(cls) -> "ResourceMetadataEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetadataEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_metric_metric_type_one_of1_stub.py b/test/types/resource_metric_metric_type_one_of1_stub.py
index 855c499..ec73a5b 100644
--- a/test/types/resource_metric_metric_type_one_of1_stub.py
+++ b/test/types/resource_metric_metric_type_one_of1_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ResourceMetricMetricTypeOneOf1":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricMetricTypeOneOf1Adapter.json_schema(),
diff --git a/test/types/resource_metric_metric_type_one_of2_stub.py b/test/types/resource_metric_metric_type_one_of2_stub.py
index ad68762..fd11c79 100644
--- a/test/types/resource_metric_metric_type_one_of2_stub.py
+++ b/test/types/resource_metric_metric_type_one_of2_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ResourceMetricMetricTypeOneOf2":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricMetricTypeOneOf2Adapter.json_schema(),
diff --git a/test/types/resource_metric_metric_type_one_of3_stub.py b/test/types/resource_metric_metric_type_one_of3_stub.py
index bdf0f21..d8e46af 100644
--- a/test/types/resource_metric_metric_type_one_of3_stub.py
+++ b/test/types/resource_metric_metric_type_one_of3_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ResourceMetricMetricTypeOneOf3":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricMetricTypeOneOf3Adapter.json_schema(),
diff --git a/test/types/resource_metric_metric_type_one_of4_stub.py b/test/types/resource_metric_metric_type_one_of4_stub.py
index aa53154..0546c43 100644
--- a/test/types/resource_metric_metric_type_one_of4_stub.py
+++ b/test/types/resource_metric_metric_type_one_of4_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ResourceMetricMetricTypeOneOf4":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricMetricTypeOneOf4Adapter.json_schema(),
diff --git a/test/types/resource_metric_metric_type_one_of_stub.py b/test/types/resource_metric_metric_type_one_of_stub.py
index 8a7e4f2..15bfeb9 100644
--- a/test/types/resource_metric_metric_type_one_of_stub.py
+++ b/test/types/resource_metric_metric_type_one_of_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ResourceMetricMetricTypeOneOf":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricMetricTypeOneOfAdapter.json_schema(),
diff --git a/test/types/resource_metric_metric_type_stub.py b/test/types/resource_metric_metric_type_stub.py
index f8c1e60..6a142ba 100644
--- a/test/types/resource_metric_metric_type_stub.py
+++ b/test/types/resource_metric_metric_type_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "ResourceMetricMetricType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricMetricTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_metric_stub.py b/test/types/resource_metric_stub.py
index adad93d..7e7b95d 100644
--- a/test/types/resource_metric_stub.py
+++ b/test/types/resource_metric_stub.py
@@ -95,7 +95,7 @@ def create_instance(cls) -> "ResourceMetric":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceMetricAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_ref_value_constraint_stub.py b/test/types/resource_ref_value_constraint_stub.py
index 9b7d02b..91dea52 100644
--- a/test/types/resource_ref_value_constraint_stub.py
+++ b/test/types/resource_ref_value_constraint_stub.py
@@ -80,7 +80,7 @@ def create_instance(cls) -> "ResourceRefValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceRefValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_ref_value_constraint_type_stub.py b/test/types/resource_ref_value_constraint_type_stub.py
index bc479e1..b6d5478 100644
--- a/test/types/resource_ref_value_constraint_type_stub.py
+++ b/test/types/resource_ref_value_constraint_type_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ResourceRefValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceRefValueConstraintTypeAdapter.json_schema(),
diff --git a/test/types/resource_reference_stub.py b/test/types/resource_reference_stub.py
index 2399654..c1b3175 100644
--- a/test/types/resource_reference_stub.py
+++ b/test/types/resource_reference_stub.py
@@ -33,6 +33,7 @@
"pattern" : "^/resources/.*",
"type" : "string",
"description" : "A URI for the _Resource_, formatted as `/resources/{resourceId}`",
+ "format" : "uri-reference",
"example" : "/resources/04592b9a-e0c2-4e64-8c9a-202e50cd9275"
}
},
@@ -64,7 +65,7 @@ def create_instance(cls) -> "ResourceReference":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceReferenceAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_sensor_sensor_stub.py b/test/types/resource_sensor_sensor_stub.py
index a7707cd..121ef0d 100644
--- a/test/types/resource_sensor_sensor_stub.py
+++ b/test/types/resource_sensor_sensor_stub.py
@@ -75,7 +75,7 @@ def create_instance(cls) -> "ResourceSensorSensor":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceSensorSensorAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_sensor_stub.py b/test/types/resource_sensor_stub.py
index 6fc93a2..55c79ed 100644
--- a/test/types/resource_sensor_stub.py
+++ b/test/types/resource_sensor_stub.py
@@ -71,7 +71,7 @@ def create_instance(cls) -> "ResourceSensor":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceSensorAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_type_change_stub.py b/test/types/resource_type_change_stub.py
index 0d8b0da..2135420 100644
--- a/test/types/resource_type_change_stub.py
+++ b/test/types/resource_type_change_stub.py
@@ -69,7 +69,7 @@ def create_instance(cls) -> "ResourceTypeChange":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeChangeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_type_creation_response_stub.py b/test/types/resource_type_creation_response_stub.py
index 9318205..1a7a2d7 100644
--- a/test/types/resource_type_creation_response_stub.py
+++ b/test/types/resource_type_creation_response_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "ResourceTypeCreationResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeCreationResponseAdapter.json_schema(),
diff --git a/test/types/resource_type_entity_stub.py b/test/types/resource_type_entity_stub.py
index 57e4c6d..78e3873 100644
--- a/test/types/resource_type_entity_stub.py
+++ b/test/types/resource_type_entity_stub.py
@@ -74,7 +74,7 @@ def create_instance(cls) -> "ResourceTypeEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_type_id_stub.py b/test/types/resource_type_id_stub.py
index cdcc44d..6afbe8c 100644
--- a/test/types/resource_type_id_stub.py
+++ b/test/types/resource_type_id_stub.py
@@ -61,7 +61,7 @@ def create_instance(cls) -> "ResourceTypeId":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeIdAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_type_listing_stub.py b/test/types/resource_type_listing_stub.py
index 090c60a..a1cb273 100644
--- a/test/types/resource_type_listing_stub.py
+++ b/test/types/resource_type_listing_stub.py
@@ -69,7 +69,7 @@ def create_instance(cls) -> "ResourceTypeListing":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeListingAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_type_with_constraints_stub.py b/test/types/resource_type_with_constraints_stub.py
index 5d33639..f591b9a 100644
--- a/test/types/resource_type_with_constraints_stub.py
+++ b/test/types/resource_type_with_constraints_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "ResourceTypeWithConstraints":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeWithConstraintsAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_type_with_id_entity_stub.py b/test/types/resource_type_with_id_entity_stub.py
index 20636cd..09c09fa 100644
--- a/test/types/resource_type_with_id_entity_stub.py
+++ b/test/types/resource_type_with_id_entity_stub.py
@@ -78,7 +78,7 @@ def create_instance(cls) -> "ResourceTypeWithIdEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypeWithIdEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resource_types_changes_paged_response_stub.py b/test/types/resource_types_changes_paged_response_stub.py
index 2db16e2..462dd38 100644
--- a/test/types/resource_types_changes_paged_response_stub.py
+++ b/test/types/resource_types_changes_paged_response_stub.py
@@ -72,7 +72,7 @@ def create_instance(cls) -> "ResourceTypesChangesPagedResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceTypesChangesPagedResponseAdapter.json_schema(),
diff --git a/test/types/resource_with_id_entity_stub.py b/test/types/resource_with_id_entity_stub.py
index 9e8723e..9e0ae96 100644
--- a/test/types/resource_with_id_entity_stub.py
+++ b/test/types/resource_with_id_entity_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "ResourceWithIdEntity":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourceWithIdEntityAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/resourcetype_metadata_event_all_of_object_type_stub.py b/test/types/resourcetype_metadata_event_all_of_object_type_stub.py
index a6d9c7f..6ed426a 100644
--- a/test/types/resourcetype_metadata_event_all_of_object_type_stub.py
+++ b/test/types/resourcetype_metadata_event_all_of_object_type_stub.py
@@ -61,7 +61,7 @@ def create_instance(cls) -> "ResourcetypeMetadataEventAllOfObjectType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourcetypeMetadataEventAllOfObjectTypeAdapter.json_schema(),
diff --git a/test/types/resourcetype_metadata_event_stub.py b/test/types/resourcetype_metadata_event_stub.py
index c9d66a0..98ffd1f 100644
--- a/test/types/resourcetype_metadata_event_stub.py
+++ b/test/types/resourcetype_metadata_event_stub.py
@@ -31,7 +31,9 @@
"$ref" : "#/components/schemas/GenericMetadataEvent"
}, {
"oneOf" : [ {
- "$ref" : "#/components/schemas/CreateDeleteEvent"
+ "$ref" : "#/components/schemas/CreateEvent"
+ }, {
+ "$ref" : "#/components/schemas/DeletedEvent"
}, {
"$ref" : "#/components/schemas/ChangedEvent"
} ]
@@ -73,7 +75,7 @@ def create_instance(cls) -> "ResourcetypeMetadataEvent":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ResourcetypeMetadataEventAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/schema_validation_error_stub.py b/test/types/schema_validation_error_stub.py
index d9ec3fd..6f4b630 100644
--- a/test/types/schema_validation_error_stub.py
+++ b/test/types/schema_validation_error_stub.py
@@ -95,7 +95,7 @@ def create_instance(cls) -> "SchemaValidationError":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
SchemaValidationErrorAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/ss_event_stream_stub.py b/test/types/ss_event_stream_stub.py
index c9f13f9..6014db6 100644
--- a/test/types/ss_event_stream_stub.py
+++ b/test/types/ss_event_stream_stub.py
@@ -54,7 +54,7 @@ def create_instance(cls) -> "SSEventStream":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
SSEventStreamAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/string_enum_value_constraint_stub.py b/test/types/string_enum_value_constraint_stub.py
index 75a404d..b1a5a1a 100644
--- a/test/types/string_enum_value_constraint_stub.py
+++ b/test/types/string_enum_value_constraint_stub.py
@@ -72,7 +72,7 @@ def create_instance(cls) -> "StringEnumValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
StringEnumValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/string_value_constraint_stub.py b/test/types/string_value_constraint_stub.py
index 3a95fc9..80bb7fc 100644
--- a/test/types/string_value_constraint_stub.py
+++ b/test/types/string_value_constraint_stub.py
@@ -73,7 +73,7 @@ def create_instance(cls) -> "StringValueConstraint":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
StringValueConstraintAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/string_value_constraint_type_stub.py b/test/types/string_value_constraint_type_stub.py
index 5da6be9..11ed418 100644
--- a/test/types/string_value_constraint_type_stub.py
+++ b/test/types/string_value_constraint_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "StringValueConstraintType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
StringValueConstraintTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/success_operation_result_value_stub.py b/test/types/success_operation_result_value_stub.py
index ae37bd4..d7a9863 100644
--- a/test/types/success_operation_result_value_stub.py
+++ b/test/types/success_operation_result_value_stub.py
@@ -65,7 +65,7 @@ def create_instance(cls) -> "SuccessOperationResultValue":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
SuccessOperationResultValueAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/task_configuration_stub.py b/test/types/task_configuration_stub.py
index e1266a9..4e467e6 100644
--- a/test/types/task_configuration_stub.py
+++ b/test/types/task_configuration_stub.py
@@ -70,7 +70,7 @@ def create_instance(cls) -> "TaskConfiguration":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
TaskConfigurationAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/task_configuration_type_stub.py b/test/types/task_configuration_type_stub.py
index 9e9d02f..f515373 100644
--- a/test/types/task_configuration_type_stub.py
+++ b/test/types/task_configuration_type_stub.py
@@ -57,7 +57,7 @@ def create_instance(cls) -> "TaskConfigurationType":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
TaskConfigurationTypeAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/metadata_entity_value_stub.py b/test/types/user_resource_properties_stub.py
similarity index 60%
rename from test/types/metadata_entity_value_stub.py
rename to test/types/user_resource_properties_stub.py
index f348a11..2299b41 100644
--- a/test/types/metadata_entity_value_stub.py
+++ b/test/types/user_resource_properties_stub.py
@@ -16,16 +16,16 @@
from ..openapi import MODEL_DEFINITIONS, with_example_provider
try:
- from waylay.services.resources.models.metadata_entity_value import (
- MetadataEntityValue,
+ from waylay.services.resources.models.user_resource_properties import (
+ UserResourceProperties,
)
- MetadataEntityValueAdapter = TypeAdapter(MetadataEntityValue)
+ UserResourcePropertiesAdapter = TypeAdapter(UserResourceProperties)
MODELS_AVAILABLE = True
except ImportError as exc:
MODELS_AVAILABLE = False
-metadata_entity_value_model_schema = json.loads(
+user_resource_properties_model_schema = json.loads(
r"""{
"title" : "User Resource properties",
"description" : "Other key-value properties provisioned by the user.",
@@ -37,35 +37,35 @@
""",
object_hook=with_example_provider,
)
-metadata_entity_value_model_schema.update({"definitions": MODEL_DEFINITIONS})
+user_resource_properties_model_schema.update({"definitions": MODEL_DEFINITIONS})
-metadata_entity_value_faker = JSF(
- metadata_entity_value_model_schema, allow_none_optionals=1
+user_resource_properties_faker = JSF(
+ user_resource_properties_model_schema, allow_none_optionals=1
)
-class MetadataEntityValueStub:
- """MetadataEntityValue unit test stubs."""
+class UserResourcePropertiesStub:
+ """UserResourceProperties unit test stubs."""
@classmethod
def create_json(cls):
"""Create a dict stub instance."""
- return metadata_entity_value_faker.generate(
+ return user_resource_properties_faker.generate(
use_defaults=True, use_examples=True
)
@classmethod
- def create_instance(cls) -> "MetadataEntityValue":
- """Create MetadataEntityValue stub instance."""
+ def create_instance(cls) -> "UserResourceProperties":
+ """Create UserResourceProperties stub instance."""
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
- MetadataEntityValueAdapter.json_schema(), allow_none_optionals=1
+ UserResourcePropertiesAdapter.json_schema(), allow_none_optionals=1
)
json = backup_faker.generate(use_defaults=True, use_examples=True)
- return MetadataEntityValueAdapter.validate_python(
+ return UserResourcePropertiesAdapter.validate_python(
json, context={"skip_validation": True}
)
diff --git a/test/types/validation_failure_stub.py b/test/types/validation_failure_stub.py
index febc71f..b9b0aad 100644
--- a/test/types/validation_failure_stub.py
+++ b/test/types/validation_failure_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "ValidationFailure":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
ValidationFailureAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/version_response_stub.py b/test/types/version_response_stub.py
index b1bd6f5..ec317aa 100644
--- a/test/types/version_response_stub.py
+++ b/test/types/version_response_stub.py
@@ -60,7 +60,7 @@ def create_instance(cls) -> "VersionResponse":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
VersionResponseAdapter.json_schema(), allow_none_optionals=1
diff --git a/test/types/with_id_required_stub.py b/test/types/with_id_required_stub.py
index 632411e..f2a3316 100644
--- a/test/types/with_id_required_stub.py
+++ b/test/types/with_id_required_stub.py
@@ -59,7 +59,7 @@ def create_instance(cls) -> "WithIdRequired":
if not MODELS_AVAILABLE:
raise ImportError("Models must be installed to create class stubs")
json = cls.create_json()
- if not json:
+ if json is None:
# use backup example based on the pydantic model schema
backup_faker = JSF(
WithIdRequiredAdapter.json_schema(), allow_none_optionals=1
diff --git a/waylay-sdk-resources-types/.openapi-generator/FILES b/waylay-sdk-resources-types/.openapi-generator/FILES
index 2ef65df..cd3ea6f 100644
--- a/waylay-sdk-resources-types/.openapi-generator/FILES
+++ b/waylay-sdk-resources-types/.openapi-generator/FILES
@@ -8,16 +8,21 @@ src/waylay/services/resources/models/attribute_item.py
src/waylay/services/resources/models/batch_operation_enqueued.py
src/waylay/services/resources/models/batch_operation_result.py
src/waylay/services/resources/models/batch_operation_status_response.py
+src/waylay/services/resources/models/batch_resource_delete_operation.py
+src/waylay/services/resources/models/batch_resource_delete_operation_action.py
+src/waylay/services/resources/models/batch_resource_delete_operation_action_parameters.py
+src/waylay/services/resources/models/batch_resource_delete_operation_entity.py
+src/waylay/services/resources/models/batch_resource_delete_operation_query.py
src/waylay/services/resources/models/batch_resource_operation.py
-src/waylay/services/resources/models/batch_resource_operation_action.py
-src/waylay/services/resources/models/batch_resource_operation_entity.py
-src/waylay/services/resources/models/batch_resource_operation_query.py
-src/waylay/services/resources/models/batch_resource_operation_query_ids_inner.py
+src/waylay/services/resources/models/batch_resource_type_delete_operation.py
+src/waylay/services/resources/models/batch_resource_type_delete_operation_entity.py
+src/waylay/services/resources/models/batch_resource_type_delete_operation_query.py
src/waylay/services/resources/models/batch_running_resource_operation.py
src/waylay/services/resources/models/batch_running_resource_operation_operation.py
src/waylay/services/resources/models/batch_running_resource_operation_operation_entity.py
src/waylay/services/resources/models/boolean_value_constraint.py
src/waylay/services/resources/models/boolean_value_constraint_type.py
+src/waylay/services/resources/models/cascade_delete_values_inner.py
src/waylay/services/resources/models/changed_event.py
src/waylay/services/resources/models/changed_event_type.py
src/waylay/services/resources/models/cloud_metadata_event.py
@@ -28,8 +33,10 @@ src/waylay/services/resources/models/constraint.py
src/waylay/services/resources/models/constraint_error.py
src/waylay/services/resources/models/constraint_status.py
src/waylay/services/resources/models/constraint_status_status.py
-src/waylay/services/resources/models/create_delete_event.py
-src/waylay/services/resources/models/create_delete_event_type.py
+src/waylay/services/resources/models/create_event.py
+src/waylay/services/resources/models/create_event_type.py
+src/waylay/services/resources/models/deleted_event.py
+src/waylay/services/resources/models/deleted_resource_event.py
src/waylay/services/resources/models/discovered_event.py
src/waylay/services/resources/models/discovered_event_type.py
src/waylay/services/resources/models/error_response.py
@@ -53,9 +60,9 @@ src/waylay/services/resources/models/hal_self_links_links_self.py
src/waylay/services/resources/models/hal_self_links_links_value.py
src/waylay/services/resources/models/halid_link.py
src/waylay/services/resources/models/list_constraints200_response.py
+src/waylay/services/resources/models/list_resources_order_parameter.py
src/waylay/services/resources/models/metadata_entity.py
src/waylay/services/resources/models/metadata_entity_location.py
-src/waylay/services/resources/models/metadata_entity_value.py
src/waylay/services/resources/models/metadata_event.py
src/waylay/services/resources/models/nd_json_response_stream.py
src/waylay/services/resources/models/numeric_enum_value_constraint.py
@@ -119,6 +126,7 @@ src/waylay/services/resources/models/string_value_constraint_type.py
src/waylay/services/resources/models/success_operation_result_value.py
src/waylay/services/resources/models/task_configuration.py
src/waylay/services/resources/models/task_configuration_type.py
+src/waylay/services/resources/models/user_resource_properties.py
src/waylay/services/resources/models/validation_failure.py
src/waylay/services/resources/models/version_response.py
src/waylay/services/resources/models/with_id_required.py
diff --git a/waylay-sdk-resources-types/.openapi-generator/VERSION b/waylay-sdk-resources-types/.openapi-generator/VERSION
index 1985849..09a6d30 100644
--- a/waylay-sdk-resources-types/.openapi-generator/VERSION
+++ b/waylay-sdk-resources-types/.openapi-generator/VERSION
@@ -1 +1 @@
-7.7.0
+7.8.0
diff --git a/waylay-sdk-resources-types/README.md b/waylay-sdk-resources-types/README.md
index a528be6..d2fae6d 100644
--- a/waylay-sdk-resources-types/README.md
+++ b/waylay-sdk-resources-types/README.md
@@ -9,7 +9,7 @@ You'll interact with the _Waylay Resources_ API to create this _Digital Twin_ mo
a process that's also called _resource provisioning_.
This Python package is automatically generated based on the
-Waylay Resources OpenAPI specification (API version: 8.1.0)
+Waylay Resources OpenAPI specification (API version: 8.5.0)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/resources.html).
It is considered an extension of the waylay-sdk-resources package, and it consists of the typed model classes for all path params, query params, body params and responses for each of the api methods in `waylay-sdk-resources`.
diff --git a/waylay-sdk-resources-types/pyproject.toml b/waylay-sdk-resources-types/pyproject.toml
index 2d20eea..f9e0120 100644
--- a/waylay-sdk-resources-types/pyproject.toml
+++ b/waylay-sdk-resources-types/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "waylay-sdk-resources-types"
-version = "8.1.0.20240802"
+version = "8.5.0.20241025"
description = "Waylay Resources Types "
authors = [
{ name = "Waylay", email = "info@waylay.io"}
@@ -12,8 +12,8 @@ authors = [
keywords = ["Waylay Resources" , "Types"]
requires-python = ">= 3.9"
dependencies = [
- "waylay-sdk-core ~= 0.2.3",
- "waylay-sdk-resources == 8.1.0.20240802",
+ "waylay-sdk-core ~= 0.2.4",
+ "waylay-sdk-resources == 8.5.0.20241025",
"pydantic ~= 2.6",
"typing-extensions ~= 4.10",
"eval-type-backport ~= 0.1.3; python_version < '3.10'",
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/__init__.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/__init__.py
index cc781b2..96138e0 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/__init__.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/__init__.py
@@ -3,7 +3,7 @@
This code was generated from the OpenAPI documentation of 'Waylay Resources'
-version: 8.1.0
+version: 8.5.0
This service manages [Waylay Resources](/#/features/resources/?id=resource) and related entities. A _Waylay Resource_ models a real-world device or abstract entity of your IoT solution, and provides a context when processing data in the Rule Engine. You'll interact with the _Waylay Resources_ API to create this _Digital Twin_ model, a process that's also called _resource provisioning_.
@@ -12,7 +12,7 @@
Do not edit the class manually.
"""
-__version__ = "8.1.0.20240802"
+__version__ = "8.5.0.20241025"
# import models into model package
from .array_must_contain_inner import ArrayMustContainInner
@@ -22,12 +22,20 @@
from .batch_operation_enqueued import BatchOperationEnqueued
from .batch_operation_result import BatchOperationResult
from .batch_operation_status_response import BatchOperationStatusResponse
+from .batch_resource_delete_operation import BatchResourceDeleteOperation
+from .batch_resource_delete_operation_action import BatchResourceDeleteOperationAction
+from .batch_resource_delete_operation_action_parameters import (
+ BatchResourceDeleteOperationActionParameters,
+)
+from .batch_resource_delete_operation_entity import BatchResourceDeleteOperationEntity
+from .batch_resource_delete_operation_query import BatchResourceDeleteOperationQuery
from .batch_resource_operation import BatchResourceOperation
-from .batch_resource_operation_action import BatchResourceOperationAction
-from .batch_resource_operation_entity import BatchResourceOperationEntity
-from .batch_resource_operation_query import BatchResourceOperationQuery
-from .batch_resource_operation_query_ids_inner import (
- BatchResourceOperationQueryIdsInner,
+from .batch_resource_type_delete_operation import BatchResourceTypeDeleteOperation
+from .batch_resource_type_delete_operation_entity import (
+ BatchResourceTypeDeleteOperationEntity,
+)
+from .batch_resource_type_delete_operation_query import (
+ BatchResourceTypeDeleteOperationQuery,
)
from .batch_running_resource_operation import BatchRunningResourceOperation
from .batch_running_resource_operation_operation import (
@@ -38,6 +46,7 @@
)
from .boolean_value_constraint import BooleanValueConstraint
from .boolean_value_constraint_type import BooleanValueConstraintType
+from .cascade_delete_values_inner import CascadeDeleteValuesInner
from .changed_event import ChangedEvent
from .changed_event_type import ChangedEventType
from .cloud_metadata_event import CloudMetadataEvent
@@ -48,8 +57,10 @@
from .constraint_error import ConstraintError
from .constraint_status import ConstraintStatus
from .constraint_status_status import ConstraintStatusStatus
-from .create_delete_event import CreateDeleteEvent
-from .create_delete_event_type import CreateDeleteEventType
+from .create_event import CreateEvent
+from .create_event_type import CreateEventType
+from .deleted_event import DeletedEvent
+from .deleted_resource_event import DeletedResourceEvent
from .discovered_event import DiscoveredEvent
from .discovered_event_type import DiscoveredEventType
from .error_response import ErrorResponse
@@ -77,9 +88,9 @@
from .hal_self_links_links_value import HALSelfLinksLinksValue
from .halid_link import HALIdLink
from .list_constraints200_response import ListConstraints200Response
+from .list_resources_order_parameter import ListResourcesOrderParameter
from .metadata_entity import MetadataEntity
from .metadata_entity_location import MetadataEntityLocation
-from .metadata_entity_value import MetadataEntityValue
from .metadata_event import MetadataEvent
from .nd_json_response_stream import NdJsonResponseStream
from .numeric_enum_value_constraint import NumericEnumValueConstraint
@@ -145,6 +156,7 @@
from .success_operation_result_value import SuccessOperationResultValue
from .task_configuration import TaskConfiguration
from .task_configuration_type import TaskConfigurationType
+from .user_resource_properties import UserResourceProperties
from .validation_failure import ValidationFailure
from .version_response import VersionResponse
from .with_id_required import WithIdRequired
@@ -158,16 +170,21 @@
"BatchOperationEnqueued",
"BatchOperationResult",
"BatchOperationStatusResponse",
+ "BatchResourceDeleteOperation",
+ "BatchResourceDeleteOperationAction",
+ "BatchResourceDeleteOperationActionParameters",
+ "BatchResourceDeleteOperationEntity",
+ "BatchResourceDeleteOperationQuery",
"BatchResourceOperation",
- "BatchResourceOperationAction",
- "BatchResourceOperationEntity",
- "BatchResourceOperationQuery",
- "BatchResourceOperationQueryIdsInner",
+ "BatchResourceTypeDeleteOperation",
+ "BatchResourceTypeDeleteOperationEntity",
+ "BatchResourceTypeDeleteOperationQuery",
"BatchRunningResourceOperation",
"BatchRunningResourceOperationOperation",
"BatchRunningResourceOperationOperationEntity",
"BooleanValueConstraint",
"BooleanValueConstraintType",
+ "CascadeDeleteValuesInner",
"ChangedEvent",
"ChangedEventType",
"CloudMetadataEvent",
@@ -178,8 +195,10 @@
"ConstraintError",
"ConstraintStatus",
"ConstraintStatusStatus",
- "CreateDeleteEvent",
- "CreateDeleteEventType",
+ "CreateEvent",
+ "CreateEventType",
+ "DeletedEvent",
+ "DeletedResourceEvent",
"DiscoveredEvent",
"DiscoveredEventType",
"ErrorResponse",
@@ -203,9 +222,9 @@
"HALSelfLinksLinksSelf",
"HALSelfLinksLinksValue",
"ListConstraints200Response",
+ "ListResourcesOrderParameter",
"MetadataEntity",
"MetadataEntityLocation",
- "MetadataEntityValue",
"MetadataEvent",
"NdJsonResponseStream",
"NumericEnumValueConstraint",
@@ -267,6 +286,7 @@
"SuccessOperationResultValue",
"TaskConfiguration",
"TaskConfigurationType",
+ "UserResourceProperties",
"ValidationFailure",
"VersionResponse",
"WithIdRequired",
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/array_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/array_value_constraint.py
index bd72057..6b8dccf 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/array_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/array_value_constraint.py
@@ -21,6 +21,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from waylay.sdk.api._models import Model as GenericModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/attribute_item.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/attribute_item.py
index 9af2f23..e304167 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/attribute_item.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/attribute_item.py
@@ -17,6 +17,7 @@
StrictBool,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from waylay.sdk.api._models import Model as GenericModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_enqueued.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_enqueued.py
index f41eb99..871ec0c 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_enqueued.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_enqueued.py
@@ -17,6 +17,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.batch_running_resource_operation import BatchRunningResourceOperation
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_result.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_result.py
index b5bceda..159b0b7 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_result.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_operation_result.py
@@ -23,6 +23,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.batch_running_resource_operation_operation import (
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation.py
new file mode 100644
index 0000000..a960a18
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation.py
@@ -0,0 +1,47 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from pydantic import (
+ ConfigDict,
+ Field,
+)
+
+from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+
+from ..models.batch_resource_delete_operation_action import (
+ BatchResourceDeleteOperationAction,
+)
+from ..models.batch_resource_delete_operation_action_parameters import (
+ BatchResourceDeleteOperationActionParameters,
+)
+from ..models.batch_resource_delete_operation_entity import (
+ BatchResourceDeleteOperationEntity,
+)
+from ..models.batch_resource_delete_operation_query import (
+ BatchResourceDeleteOperationQuery,
+)
+
+
+class BatchResourceDeleteOperation(WaylayBaseModel):
+ """BatchResourceDeleteOperation."""
+
+ entity: BatchResourceDeleteOperationEntity
+ action: BatchResourceDeleteOperationAction
+ query: BatchResourceDeleteOperationQuery
+ action_parameters: BatchResourceDeleteOperationActionParameters | None = Field(
+ default=None, alias="actionParameters"
+ )
+
+ model_config = ConfigDict(
+ populate_by_name=True, protected_namespaces=(), extra="ignore"
+ )
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_action.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_action.py
similarity index 78%
rename from waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_action.py
rename to waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_action.py
index 30e73fd..e0f14b6 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_action.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_action.py
@@ -14,8 +14,8 @@
from enum import Enum
-class BatchResourceOperationAction(str, Enum):
- """BatchResourceOperationAction."""
+class BatchResourceDeleteOperationAction(str, Enum):
+ """BatchResourceDeleteOperationAction."""
DELETE = "delete"
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_action_parameters.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_action_parameters.py
new file mode 100644
index 0000000..f211e30
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_action_parameters.py
@@ -0,0 +1,32 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from typing import List
+
+from pydantic import (
+ ConfigDict,
+)
+
+from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+
+from ..models.cascade_delete_values_inner import CascadeDeleteValuesInner
+
+
+class BatchResourceDeleteOperationActionParameters(WaylayBaseModel):
+ """BatchResourceDeleteOperationActionParameters."""
+
+ cascade: List[CascadeDeleteValuesInner]
+
+ model_config = ConfigDict(
+ populate_by_name=True, protected_namespaces=(), extra="ignore"
+ )
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_entity.py
new file mode 100644
index 0000000..62cc1fe
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_entity.py
@@ -0,0 +1,23 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from enum import Enum
+
+
+class BatchResourceDeleteOperationEntity(str, Enum):
+ """Type of entities to remove."""
+
+ RESOURCE = "resource"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_query.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_query.py
similarity index 67%
rename from waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_query.py
rename to waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_query.py
index 63ce890..7c2eae0 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_query.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_delete_operation_query.py
@@ -20,17 +20,16 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
-from ..models.batch_resource_operation_query_ids_inner import (
- BatchResourceOperationQueryIdsInner,
-)
+from ..models.resource_id import ResourceId
-class BatchResourceOperationQuery(WaylayBaseModel):
- """BatchResourceOperationQuery."""
+class BatchResourceDeleteOperationQuery(WaylayBaseModel):
+ """BatchResourceDeleteOperationQuery."""
- ids: Annotated[List[BatchResourceOperationQueryIdsInner], Field(min_length=1)]
+ ids: Annotated[List[ResourceId], Field(min_length=1)]
model_config = ConfigDict(
populate_by_name=True, protected_namespaces=(), extra="ignore"
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation.py
index d580406..7afdf55 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation.py
@@ -11,23 +11,21 @@
from __future__ import annotations
-from pydantic import (
- ConfigDict,
+from typing import (
+ Union,
)
-from waylay.sdk.api._models import BaseModel as WaylayBaseModel
-from ..models.batch_resource_operation_action import BatchResourceOperationAction
-from ..models.batch_resource_operation_entity import BatchResourceOperationEntity
-from ..models.batch_resource_operation_query import BatchResourceOperationQuery
-
-
-class BatchResourceOperation(WaylayBaseModel):
- """BatchResourceOperation."""
+from typing_extensions import (
+ Annotated, # >=3.9
+)
- entity: BatchResourceOperationEntity
- action: BatchResourceOperationAction
- query: BatchResourceOperationQuery
+from ..models.batch_resource_delete_operation import BatchResourceDeleteOperation
+from ..models.batch_resource_type_delete_operation import (
+ BatchResourceTypeDeleteOperation,
+)
- model_config = ConfigDict(
- populate_by_name=True, protected_namespaces=(), extra="ignore"
- )
+BatchResourceOperation = Union[
+ Annotated[BatchResourceDeleteOperation, ""],
+ Annotated[BatchResourceTypeDeleteOperation, ""],
+]
+"""BatchResourceOperation."""
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_query_ids_inner.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_query_ids_inner.py
deleted file mode 100644
index 7a8437e..0000000
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_query_ids_inner.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# coding: utf-8
-"""Waylay Resources models.
-
-This code was generated from the OpenAPI documentation of 'Waylay Resources'
-
-Generated by OpenAPI Generator (https://openapi-generator.tech)
-
-Do not edit the class manually.
-
-"""
-
-from __future__ import annotations
-
-from typing import (
- Union,
-)
-
-from typing_extensions import (
- Annotated, # >=3.9
-)
-
-from ..models.resource_id import ResourceId
-from ..models.resource_type_id import ResourceTypeId
-
-BatchResourceOperationQueryIdsInner = Union[
- Annotated[ResourceId, ""], Annotated[ResourceTypeId, ""]
-]
-"""BatchResourceOperationQueryIdsInner."""
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation.py
new file mode 100644
index 0000000..2763969
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation.py
@@ -0,0 +1,40 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from pydantic import (
+ ConfigDict,
+)
+
+from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+
+from ..models.batch_resource_delete_operation_action import (
+ BatchResourceDeleteOperationAction,
+)
+from ..models.batch_resource_type_delete_operation_entity import (
+ BatchResourceTypeDeleteOperationEntity,
+)
+from ..models.batch_resource_type_delete_operation_query import (
+ BatchResourceTypeDeleteOperationQuery,
+)
+
+
+class BatchResourceTypeDeleteOperation(WaylayBaseModel):
+ """BatchResourceTypeDeleteOperation."""
+
+ entity: BatchResourceTypeDeleteOperationEntity
+ action: BatchResourceDeleteOperationAction
+ query: BatchResourceTypeDeleteOperationQuery
+
+ model_config = ConfigDict(
+ populate_by_name=True, protected_namespaces=(), extra="ignore"
+ )
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation_entity.py
similarity index 85%
rename from waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_entity.py
rename to waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation_entity.py
index b35e2f5..0b9a30e 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_operation_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation_entity.py
@@ -14,10 +14,9 @@
from enum import Enum
-class BatchResourceOperationEntity(str, Enum):
+class BatchResourceTypeDeleteOperationEntity(str, Enum):
"""Type of entities to remove."""
- RESOURCE = "resource"
RESOURCETYPE = "resourcetype"
def __str__(self) -> str:
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation_query.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation_query.py
new file mode 100644
index 0000000..540b079
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_resource_type_delete_operation_query.py
@@ -0,0 +1,36 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from typing import List
+
+from pydantic import (
+ ConfigDict,
+ Field,
+)
+from typing_extensions import (
+ Annotated, # >=3.11
+)
+
+from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+
+from ..models.resource_type_id import ResourceTypeId
+
+
+class BatchResourceTypeDeleteOperationQuery(WaylayBaseModel):
+ """BatchResourceTypeDeleteOperationQuery."""
+
+ ids: Annotated[List[ResourceTypeId], Field(min_length=1)]
+
+ model_config = ConfigDict(
+ populate_by_name=True, protected_namespaces=(), extra="ignore"
+ )
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation.py
index fadcd43..e0916db 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation.py
@@ -23,6 +23,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.batch_running_resource_operation_operation import (
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation_operation.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation_operation.py
index 9294c1f..8f400d2 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation_operation.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/batch_running_resource_operation_operation.py
@@ -15,9 +15,12 @@
ConfigDict,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
-from ..models.batch_resource_operation_action import BatchResourceOperationAction
+from ..models.batch_resource_delete_operation_action import (
+ BatchResourceDeleteOperationAction,
+)
from ..models.batch_running_resource_operation_operation_entity import (
BatchRunningResourceOperationOperationEntity,
)
@@ -27,7 +30,7 @@ class BatchRunningResourceOperationOperation(WaylayBaseModel):
"""Queued operation summary."""
entity: BatchRunningResourceOperationOperationEntity
- action: BatchResourceOperationAction
+ action: BatchResourceDeleteOperationAction
description: StrictStr
model_config = ConfigDict(
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/boolean_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/boolean_value_constraint.py
index 4d46f83..f7c976f 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/boolean_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/boolean_value_constraint.py
@@ -14,6 +14,7 @@
from pydantic import (
ConfigDict,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.boolean_value_constraint_type import BooleanValueConstraintType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/cascade_delete_values_inner.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/cascade_delete_values_inner.py
new file mode 100644
index 0000000..9ef1367
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/cascade_delete_values_inner.py
@@ -0,0 +1,25 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from enum import Enum
+
+
+class CascadeDeleteValuesInner(str, Enum):
+ """CascadeDeleteValuesInner."""
+
+ ALARMS = "alarms"
+ MEASUREMENTS = "measurements"
+ TASKS = "tasks"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/changed_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/changed_event.py
index 56c69e1..911a498 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/changed_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/changed_event.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.changed_event_type import ChangedEventType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event.py
index 67916a7..d84423b 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event.py
@@ -17,6 +17,7 @@
from pydantic import (
ConfigDict,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.cloud_metadata_event_data_source import CloudMetadataEventDataSource
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event_data.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event_data.py
index 9800721..67cb751 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event_data.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/cloud_metadata_event_data.py
@@ -17,6 +17,7 @@
from pydantic import (
ConfigDict,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.cloud_metadata_event_data_source import CloudMetadataEventDataSource
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint.py
index 142feb2..b9dce81 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint.py
@@ -21,6 +21,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.attribute_item import AttributeItem
@@ -35,6 +36,7 @@ class Constraint(WaylayBaseModel):
description: StrictStr | None = Field(
default=None, description="A description for the _Resource Constraint_"
)
+ tags: List[StrictStr] | None = None
attributes: List[AttributeItem] = Field(
description="List of attribute descriptions"
)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_error.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_error.py
index 2b33e24..cfd42e5 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_error.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_error.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_id import ResourceId
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_status.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_status.py
index a891c0b..1520168 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_status.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/constraint_status.py
@@ -22,6 +22,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.constraint_error import ConstraintError
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/create_delete_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/create_event.py
similarity index 72%
rename from waylay-sdk-resources-types/src/waylay/services/resources/models/create_delete_event.py
rename to waylay-sdk-resources-types/src/waylay/services/resources/models/create_event.py
index d763cdf..cdf7c67 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/create_delete_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/create_event.py
@@ -14,15 +14,16 @@
from pydantic import (
ConfigDict,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
-from ..models.create_delete_event_type import CreateDeleteEventType
+from ..models.create_event_type import CreateEventType
-class CreateDeleteEvent(WaylayBaseModel):
- """CreateDeleteEvent."""
+class CreateEvent(WaylayBaseModel):
+ """CreateEvent."""
- type: CreateDeleteEventType | None = None
+ type: CreateEventType | None = None
model_config = ConfigDict(
populate_by_name=True, protected_namespaces=(), extra="ignore"
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/create_delete_event_type.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/create_event_type.py
similarity index 79%
rename from waylay-sdk-resources-types/src/waylay/services/resources/models/create_delete_event_type.py
rename to waylay-sdk-resources-types/src/waylay/services/resources/models/create_event_type.py
index e4c9ac7..dfc536f 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/create_delete_event_type.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/create_event_type.py
@@ -14,11 +14,10 @@
from enum import Enum
-class CreateDeleteEventType(str, Enum):
- """CreateDeleteEventType."""
+class CreateEventType(str, Enum):
+ """CreateEventType."""
CREATE = "create"
- DELETE = "delete"
def __str__(self) -> str:
return str(self.value)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/deleted_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/deleted_event.py
new file mode 100644
index 0000000..7c15913
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/deleted_event.py
@@ -0,0 +1,32 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from pydantic import (
+ ConfigDict,
+)
+
+from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+
+from ..models.batch_resource_delete_operation_action import (
+ BatchResourceDeleteOperationAction,
+)
+
+
+class DeletedEvent(WaylayBaseModel):
+ """DeletedEvent."""
+
+ type: BatchResourceDeleteOperationAction | None = None
+
+ model_config = ConfigDict(
+ populate_by_name=True, protected_namespaces=(), extra="ignore"
+ )
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/deleted_resource_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/deleted_resource_event.py
new file mode 100644
index 0000000..a5e851f
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/deleted_resource_event.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from typing import List
+
+from pydantic import (
+ ConfigDict,
+ Field,
+)
+
+from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+
+from ..models.batch_resource_delete_operation_action import (
+ BatchResourceDeleteOperationAction,
+)
+from ..models.cascade_delete_values_inner import CascadeDeleteValuesInner
+
+
+class DeletedResourceEvent(WaylayBaseModel):
+ """DeletedResourceEvent."""
+
+ type: BatchResourceDeleteOperationAction | None = None
+ cascade_delete: List[CascadeDeleteValuesInner] | None = Field(
+ default=None, alias="cascadeDelete"
+ )
+
+ model_config = ConfigDict(
+ populate_by_name=True, protected_namespaces=(), extra="ignore"
+ )
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/discovered_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/discovered_event.py
index 2a7c89c..2279051 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/discovered_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/discovered_event.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.discovered_event_type import DiscoveredEventType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/error_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/error_response.py
index 9088eb7..52832fb 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/error_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/error_response.py
@@ -17,6 +17,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/failure_operation_result_value.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/failure_operation_result_value.py
index eb15912..351305a 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/failure_operation_result_value.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/failure_operation_result_value.py
@@ -17,6 +17,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/generic_metadata_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/generic_metadata_event.py
index a85dbc8..f9bcdaf 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/generic_metadata_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/generic_metadata_event.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_link.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_link.py
index 77d33d9..ff39c4b 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_link.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_link.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_page_links.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_page_links.py
index a4e3dc8..3362552 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_page_links.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_page_links.py
@@ -15,6 +15,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.pagination_links import PaginationLinks
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity.py
index a246d50..5c32b44 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity.py
@@ -19,6 +19,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_resource_entity_all_of_embedded import HALResourceEntityAllOfEmbedded
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_embedded.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_embedded.py
index 0bb7b06..0dc1292 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_embedded.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_embedded.py
@@ -15,6 +15,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_resource_type_entity import HALResourceTypeEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links.py
index d31ab1c..2a86fc5 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links.py
@@ -15,6 +15,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_resource_entity_all_of_links_children import (
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_children.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_children.py
index c045603..e68c896 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_children.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_children.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_parent.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_parent.py
index 83f0000..6caa89c 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_parent.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_parent.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_resource_type.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_resource_type.py
index d69f835..b923cdd 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_resource_type.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_entity_all_of_links_resource_type.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing.py
index 01f8f08..c97602d 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing.py
@@ -16,6 +16,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_resource_listing_all_of_embedded import (
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing_all_of_embedded.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing_all_of_embedded.py
index d522a66..6c9945f 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing_all_of_embedded.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_listing_all_of_embedded.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_resource_entity import HALResourceEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_type_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_type_entity.py
index 6c415be..3a735d5 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_type_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_resource_type_entity.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_self_links_links import HALSelfLinksLinks
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links.py
index 461dbee..c461b0b 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links.py
@@ -15,6 +15,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_self_links_links import HALSelfLinksLinks
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links.py
index aa8c1fb..9f376ad 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links.py
@@ -15,6 +15,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.hal_self_links_links_self import HALSelfLinksLinksSelf
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_self.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_self.py
index c006879..62aba38 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_self.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_self.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_value.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_value.py
index bb7d13d..1d8e6d0 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_value.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/hal_self_links_links_value.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/halid_link.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/halid_link.py
index a7647f8..bfe3f8a 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/halid_link.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/halid_link.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/list_constraints200_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/list_constraints200_response.py
index fba2fdc..f9007dd 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/list_constraints200_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/list_constraints200_response.py
@@ -18,6 +18,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_constraint_with_id_entity import ResourceConstraintWithIdEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/list_resources_order_parameter.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/list_resources_order_parameter.py
new file mode 100644
index 0000000..9c2d93a
--- /dev/null
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/list_resources_order_parameter.py
@@ -0,0 +1,24 @@
+# coding: utf-8
+"""Waylay Resources models.
+
+This code was generated from the OpenAPI documentation of 'Waylay Resources'
+
+Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+Do not edit the class manually.
+
+"""
+
+from __future__ import annotations
+
+from enum import Enum
+
+
+class ListResourcesOrderParameter(str, Enum):
+ """ListResourcesOrderParameter."""
+
+ ASCENDING = "ascending"
+ DESCENDING = "descending"
+
+ def __str__(self) -> str:
+ return str(self.value)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity.py
index 91626aa..da9abc7 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.metadata_entity_location import MetadataEntityLocation
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_location.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_location.py
index f9bd74f..86a39d9 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_location.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_location.py
@@ -17,6 +17,7 @@
StrictFloat,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_enum_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_enum_value_constraint.py
index dc14130..14df6e8 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_enum_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_enum_value_constraint.py
@@ -22,6 +22,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.numeric_enum_value_constraint_type import NumericEnumValueConstraintType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_value_constraint.py
index 66022f3..1120771 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/numeric_value_constraint.py
@@ -17,6 +17,7 @@
StrictFloat,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.numeric_value_constraint_type import NumericValueConstraintType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/object_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/object_value_constraint.py
index 1ff6ccd..dd9ba14 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/object_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/object_value_constraint.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.attribute_item import AttributeItem
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object.py
index d95e2a7..c366411 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.operation_result_object_results import OperationResultObjectResults
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object_results.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object_results.py
index 0cddc9b..2ea8f09 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object_results.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/operation_result_object_results.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.failure_operation_result_value import FailureOperationResultValue
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links.py
index b0071b9..284bacd 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links.py
@@ -15,6 +15,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.pagination_links_next import PaginationLinksNext
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_next.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_next.py
index 2a41ee9..8174ed1 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_next.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_next.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_prev.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_prev.py
index a12b7bf..f5f7e65 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_prev.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_prev.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_self.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_self.py
index 6ce2aa9..1d0c00b 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_self.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/pagination_links_self.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_count.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_count.py
index 26ad139..55635aa 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_count.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_count.py
@@ -16,6 +16,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_result.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_result.py
index 245be1b..6ace505 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_result.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/paging_result.py
@@ -16,6 +16,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_entity.py
index ebc073a..2a99c26 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_entity.py
@@ -17,6 +17,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_id import ResourceId
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_type_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_type_entity.py
index bae6ae5..b609565 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_type_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/patch_resource_type_entity.py
@@ -20,6 +20,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_type_id import ResourceTypeId
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_change.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_change.py
index ef56d4d..c2cc30d 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_change.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_change.py
@@ -22,6 +22,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_change_change import ResourceChangeChange
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_changes_paged_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_changes_paged_response.py
index 5d52c80..f1f753f 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_changes_paged_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_changes_paged_response.py
@@ -18,6 +18,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_change import ResourceChange
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_creation_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_creation_response.py
index e46388d..198ba9e 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_creation_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_creation_response.py
@@ -17,6 +17,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_constraint_with_id_entity import ResourceConstraintWithIdEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_entity.py
index 4b9a3b7..be8a045 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_entity.py
@@ -23,6 +23,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.attribute_item import AttributeItem
@@ -37,6 +38,7 @@ class ResourceConstraintEntity(WaylayBaseModel):
description: StrictStr | None = Field(
default=None, description="A description for the _Resource Constraint_"
)
+ tags: List[StrictStr] | None = None
attributes: List[AttributeItem] = Field(
description="List of attribute descriptions"
)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_with_id_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_with_id_entity.py
index 599f2aa..ddf9ee5 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_with_id_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_constraint_with_id_entity.py
@@ -23,6 +23,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.attribute_item import AttributeItem
@@ -40,6 +41,7 @@ class ResourceConstraintWithIdEntity(WaylayBaseModel):
description: StrictStr | None = Field(
default=None, description="A description for the _Resource Constraint_"
)
+ tags: List[StrictStr] | None = None
attributes: List[AttributeItem] = Field(
description="List of attribute descriptions"
)
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_creation_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_creation_response.py
index eaa8342..58ddb0f 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_creation_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_creation_response.py
@@ -18,6 +18,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_with_id_entity import ResourceWithIdEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_entity.py
index bce7e52..fe3ec6a 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_entity.py
@@ -19,6 +19,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.metadata_entity_location import MetadataEntityLocation
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_listing.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_listing.py
index e127500..40c256d 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_listing.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_listing.py
@@ -18,6 +18,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_with_id_entity import ResourceWithIdEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metadata_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metadata_event.py
index c739f58..366b0ba 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metadata_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metadata_event.py
@@ -12,14 +12,16 @@
from __future__ import annotations
from datetime import datetime
-from typing import Any, Dict
+from typing import Any, Dict, List
from pydantic import (
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+from ..models.cascade_delete_values_inner import CascadeDeleteValuesInner
from ..models.discovered_event_type import DiscoveredEventType
from ..models.resource_entity import ResourceEntity
from ..models.resource_metadata_event_all_of_object_type import (
@@ -34,6 +36,9 @@ class ResourceMetadataEvent(WaylayBaseModel):
object_type: ResourceMetadataEventAllOfObjectType = Field(alias="objectType")
timestamp: datetime
resource: ResourceEntity
+ cascade_delete: List[CascadeDeleteValuesInner] | None = Field(
+ default=None, alias="cascadeDelete"
+ )
old_values: Dict[str, Any] | None = Field(
default=None,
description="old values of all attributes that have changed",
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metric.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metric.py
index c468452..d45cff3 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metric.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_metric.py
@@ -20,6 +20,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_metric_metric_type import ResourceMetricMetricType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_ref_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_ref_value_constraint.py
index 9135d3a..12d0c1a 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_ref_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_ref_value_constraint.py
@@ -18,6 +18,7 @@
Field,
StrictBool,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.attribute_item import AttributeItem
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_reference.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_reference.py
index b67f124..5e2e901 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_reference.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_reference.py
@@ -21,6 +21,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor.py
index b336132..4bfdc2c 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_sensor_sensor import ResourceSensorSensor
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor_sensor.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor_sensor.py
index b5b633f..2b9160e 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor_sensor.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_sensor_sensor.py
@@ -23,6 +23,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_change.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_change.py
index f2cf81a..a6af2b2 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_change.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_change.py
@@ -22,6 +22,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_change_change import ResourceChangeChange
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_creation_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_creation_response.py
index 422ea4b..ef52282 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_creation_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_creation_response.py
@@ -18,6 +18,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_type_with_id_entity import ResourceTypeWithIdEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_entity.py
index e4c4e4c..552c0d8 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_entity.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.metadata_entity_location import MetadataEntityLocation
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_listing.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_listing.py
index a9abbce..28ff027 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_listing.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_listing.py
@@ -18,6 +18,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_type_with_id_entity import ResourceTypeWithIdEntity
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_constraints.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_constraints.py
index 72751fb..da4cec0 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_constraints.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_constraints.py
@@ -21,6 +21,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.metadata_entity_location import MetadataEntityLocation
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_id_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_id_entity.py
index b6eb888..1d51908 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_id_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_type_with_id_entity.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.constraint_status import ConstraintStatus
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_types_changes_paged_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_types_changes_paged_response.py
index 5f7c2cd..d8bdcd8 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_types_changes_paged_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_types_changes_paged_response.py
@@ -18,6 +18,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_type_change import ResourceTypeChange
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_with_id_entity.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_with_id_entity.py
index abc3f37..076dfed 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_with_id_entity.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resource_with_id_entity.py
@@ -19,6 +19,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.metadata_entity_location import MetadataEntityLocation
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/resourcetype_metadata_event.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/resourcetype_metadata_event.py
index a7b8845..5929ca6 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/resourcetype_metadata_event.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/resourcetype_metadata_event.py
@@ -18,6 +18,7 @@
ConfigDict,
Field,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.changed_event_type import ChangedEventType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/schema_validation_error.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/schema_validation_error.py
index c9ad5eb..b99e960 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/schema_validation_error.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/schema_validation_error.py
@@ -18,6 +18,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/string_enum_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/string_enum_value_constraint.py
index e8dea88..b6496db 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/string_enum_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/string_enum_value_constraint.py
@@ -21,6 +21,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.numeric_enum_value_constraint_type import NumericEnumValueConstraintType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/string_value_constraint.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/string_value_constraint.py
index c7039f9..a7b8506 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/string_value_constraint.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/string_value_constraint.py
@@ -18,6 +18,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.string_value_constraint_type import StringValueConstraintType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/success_operation_result_value.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/success_operation_result_value.py
index f9793f9..9fd0189 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/success_operation_result_value.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/success_operation_result_value.py
@@ -16,6 +16,7 @@
Field,
StrictInt,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/task_configuration.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/task_configuration.py
index 46d88f3..0e90c2a 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/task_configuration.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/task_configuration.py
@@ -16,6 +16,7 @@
Field,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.task_configuration_type import TaskConfigurationType
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_value.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/user_resource_properties.py
similarity index 87%
rename from waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_value.py
rename to waylay-sdk-resources-types/src/waylay/services/resources/models/user_resource_properties.py
index 8bb5a75..7fc0cbc 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/metadata_entity_value.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/user_resource_properties.py
@@ -21,5 +21,5 @@
from ..models.resource_reference import ResourceReference
-MetadataEntityValue = Union[Annotated[ResourceReference, ""]]
+UserResourceProperties = Union[Annotated[ResourceReference, ""]]
"""Other key-value properties provisioned by the user.."""
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/validation_failure.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/validation_failure.py
index e799553..41bba7c 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/validation_failure.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/validation_failure.py
@@ -19,6 +19,7 @@
StrictInt,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.schema_validation_error import SchemaValidationError
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/version_response.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/version_response.py
index e666685..687e4af 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/version_response.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/version_response.py
@@ -15,6 +15,7 @@
ConfigDict,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/models/with_id_required.py b/waylay-sdk-resources-types/src/waylay/services/resources/models/with_id_required.py
index 17acc9a..b3b680c 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/models/with_id_required.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/models/with_id_required.py
@@ -15,6 +15,7 @@
ConfigDict,
StrictStr,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/__init__.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/__init__.py
index 823938d..8ed060f 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/__init__.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/__init__.py
@@ -3,7 +3,7 @@
This code was generated from the OpenAPI documentation of 'Waylay Resources'
-version: 8.1.0
+version: 8.5.0
This service manages [Waylay Resources](/#/features/resources/?id=resource) and related entities. A _Waylay Resource_ models a real-world device or abstract entity of your IoT solution, and provides a context when processing data in the Rule Engine. You'll interact with the _Waylay Resources_ API to create this _Digital Twin_ model, a process that's also called _resource provisioning_.
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/about_api.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/about_api.py
index 99421c4..91f1ab2 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/about_api.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/about_api.py
@@ -13,6 +13,7 @@
from pydantic import (
ConfigDict,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/batch_operations_api.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/batch_operations_api.py
index 784f0a3..bb60508 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/batch_operations_api.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/batch_operations_api.py
@@ -13,6 +13,7 @@
from pydantic import (
ConfigDict,
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/metadata_events_api.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/metadata_events_api.py
index c773760..57d40cc 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/metadata_events_api.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/metadata_events_api.py
@@ -17,6 +17,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.get_stream_event_format_parameter import GetStreamEventFormatParameter
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_api.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_api.py
index 2b4edba..faf4a3b 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_api.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_api.py
@@ -23,8 +23,11 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
+from ..models.cascade_delete_values_inner import CascadeDeleteValuesInner
+from ..models.list_resources_order_parameter import ListResourcesOrderParameter
from ..models.resource_id import ResourceId
@@ -44,12 +47,19 @@ class CreateQuery(WaylayBaseModel):
def _delete_query_alias_for(field_name: str) -> str:
+ if field_name == "cascade":
+ return "cascade"
return field_name
class DeleteQuery(WaylayBaseModel):
"""Model for `delete` query parameters."""
+ cascade: Annotated[
+ List[CascadeDeleteValuesInner] | None,
+ Field(description="List of related data that needs to be deleted"),
+ ] = None
+
model_config = ConfigDict(
protected_namespaces=(),
extra="allow",
@@ -247,6 +257,10 @@ def _list_query_alias_for(field_name: str) -> str:
return "distance"
if field_name == "toplevel_only":
return "toplevelOnly"
+ if field_name == "sort":
+ return "sort"
+ if field_name == "order":
+ return "order"
return field_name
@@ -292,6 +306,11 @@ class ListQuery(WaylayBaseModel):
StrictBool | None,
Field(description="If true, search only for _Resources_ without parent."),
] = None
+ sort: Annotated[StrictStr | None, Field(description="The field to sort on.")] = None
+ order: Annotated[
+ ListResourcesOrderParameter | None,
+ Field(description="The order in which to sort"),
+ ] = None
model_config = ConfigDict(
protected_namespaces=(),
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_constraint_api.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_constraint_api.py
index 92937ed..af9f153 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_constraint_api.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_constraint_api.py
@@ -19,6 +19,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
@@ -74,6 +75,8 @@ def _list_query_alias_for(field_name: str) -> str:
return "limit"
if field_name == "filter":
return "filter"
+ if field_name == "query":
+ return "query"
return field_name
@@ -89,6 +92,12 @@ class ListQuery(WaylayBaseModel):
filter: Annotated[
StrictStr | None, Field(description="(Filter) fuzzy search on multiple fields.")
] = None
+ query: Annotated[
+ StrictStr | None,
+ Field(
+ description="Search string using following query language > `tags:()` Supported operations are * `eq`: equals - exact match * `in`: in - exact match - arguments are a (comma-separated) list of values * `exists`: check if tags are specified on the Constraint * `like`: wildcard search - argument should contain * and/or ? For more info see [Waylay Docs](/#/api/resources/?id=metadata-query-language)"
+ ),
+ ] = None
model_config = ConfigDict(
protected_namespaces=(),
diff --git a/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_type_api.py b/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_type_api.py
index a20abb2..41ae756 100644
--- a/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_type_api.py
+++ b/waylay-sdk-resources-types/src/waylay/services/resources/queries/resource_type_api.py
@@ -21,6 +21,7 @@
from typing_extensions import (
Annotated, # >=3.11
)
+
from waylay.sdk.api._models import BaseModel as WaylayBaseModel
from ..models.resource_type_id import ResourceTypeId
diff --git a/waylay-sdk-resources/.openapi-generator/VERSION b/waylay-sdk-resources/.openapi-generator/VERSION
index 1985849..09a6d30 100644
--- a/waylay-sdk-resources/.openapi-generator/VERSION
+++ b/waylay-sdk-resources/.openapi-generator/VERSION
@@ -1 +1 @@
-7.7.0
+7.8.0
diff --git a/waylay-sdk-resources/README.md b/waylay-sdk-resources/README.md
index 509ee2c..dd5d458 100644
--- a/waylay-sdk-resources/README.md
+++ b/waylay-sdk-resources/README.md
@@ -9,7 +9,7 @@ You'll interact with the _Waylay Resources_ API to create this _Digital Twin_ mo
a process that's also called _resource provisioning_.
This Python package is automatically generated based on the
-Waylay Resources OpenAPI specification (API version: 8.1.0)
+Waylay Resources OpenAPI specification (API version: 8.5.0)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/resources.html).
It consists of a plugin for the waylay-sdk-core package, and contains the Resources api methods.
diff --git a/waylay-sdk-resources/pyproject.toml b/waylay-sdk-resources/pyproject.toml
index 93eb6ed..c50c504 100644
--- a/waylay-sdk-resources/pyproject.toml
+++ b/waylay-sdk-resources/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "waylay-sdk-resources"
-version = "8.1.0.20240802"
+version = "8.5.0.20241025"
description = "Waylay Resources"
authors = [
{ name = "Waylay", email = "info@waylay.io"}
@@ -12,7 +12,7 @@ authors = [
keywords = ["Waylay Resources"]
requires-python = ">= 3.9"
dependencies = [
- "waylay-sdk-core ~= 0.2.3",
+ "waylay-sdk-core ~= 0.2.4",
"pydantic ~= 2.6",
"typing-extensions ~= 4.10",
"eval-type-backport ~= 0.1.3; python_version < '3.10'",
diff --git a/waylay-sdk-resources/src/waylay/services/resources/api/about_api.py b/waylay-sdk-resources/src/waylay/services/resources/api/about_api.py
index 7305041..37264e0 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/api/about_api.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/api/about_api.py
@@ -23,6 +23,7 @@
StrictBool,
TypeAdapter,
)
+
from waylay.sdk.api import (
HeaderTypes,
QueryParamTypes,
diff --git a/waylay-sdk-resources/src/waylay/services/resources/api/batch_operations_api.py b/waylay-sdk-resources/src/waylay/services/resources/api/batch_operations_api.py
index 4d5eeed..0cec391 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/api/batch_operations_api.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/api/batch_operations_api.py
@@ -28,6 +28,7 @@
from typing_extensions import (
Annotated, # >=3.9,
)
+
from waylay.sdk.api import (
HeaderTypes,
QueryParamTypes,
diff --git a/waylay-sdk-resources/src/waylay/services/resources/api/metadata_events_api.py b/waylay-sdk-resources/src/waylay/services/resources/api/metadata_events_api.py
index 66005a8..1288583 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/api/metadata_events_api.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/api/metadata_events_api.py
@@ -24,6 +24,7 @@
StrictBool,
TypeAdapter,
)
+
from waylay.sdk.api import (
HeaderTypes,
QueryParamTypes,
diff --git a/waylay-sdk-resources/src/waylay/services/resources/api/resource_api.py b/waylay-sdk-resources/src/waylay/services/resources/api/resource_api.py
index 4c01f1b..a94e9d0 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/api/resource_api.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/api/resource_api.py
@@ -29,6 +29,7 @@
from typing_extensions import (
Annotated, # >=3.9,
)
+
from waylay.sdk.api import (
HeaderTypes,
QueryParamTypes,
@@ -104,6 +105,8 @@
ErrorResponse = Model
+ ErrorResponse = Model
+
GetQuery = dict
ResourceWithIdEntity = Model
@@ -398,6 +401,8 @@ async def delete(
:type resource_id: ResourceId
:param query: URL Query parameters.
:type query: DeleteQuery | QueryParamTypes, optional
+ :param query['cascade'] (dict)
query.cascade (Query) : List of related data that needs to be deleted
+ :type query['cascade']: List[CascadeDeleteValuesInner]
:param raw_response: If true, return the http Response object instead of returning an api model object, or throwing an ApiError.
:param select_path: Denotes the json path applied to the response object before returning it.
Set it to the empty string `""` to receive the full response object.
@@ -442,6 +447,7 @@ async def delete(
)
non_200_response_types_map: Dict[str, Any] = {
"400": ErrorResponse,
+ "403": ErrorResponse,
"404": ErrorResponse,
}
response_types_map.update(non_200_response_types_map)
@@ -1199,6 +1205,10 @@ async def list(
:type query['distance']: str
:param query['toplevelOnly'] (dict)
query.toplevel_only (Query) : If true, search only for _Resources_ without parent.
:type query['toplevelOnly']: bool
+ :param query['sort'] (dict)
query.sort (Query) : The field to sort on.
+ :type query['sort']: str
+ :param query['order'] (dict)
query.order (Query) : The order in which to sort
+ :type query['order']: ListResourcesOrderParameter
:param raw_response: If true, return the http Response object instead of returning an api model object, or throwing an ApiError.
:param select_path: Denotes the json path applied to the response object before returning it.
Set it to the empty string `""` to receive the full response object.
diff --git a/waylay-sdk-resources/src/waylay/services/resources/api/resource_constraint_api.py b/waylay-sdk-resources/src/waylay/services/resources/api/resource_constraint_api.py
index dfe660c..917e7f2 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/api/resource_constraint_api.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/api/resource_constraint_api.py
@@ -28,6 +28,7 @@
from typing_extensions import (
Annotated, # >=3.9,
)
+
from waylay.sdk.api import (
HeaderTypes,
QueryParamTypes,
@@ -679,6 +680,8 @@ async def list(
:type query['limit']: int
:param query['filter'] (dict)
query.filter (Query) : (Filter) fuzzy search on multiple fields.
:type query['filter']: str
+ :param query['query'] (dict)
query.query (Query) : Search string using following query language > `tags:()` Supported operations are * `eq`: equals - exact match * `in`: in - exact match - arguments are a (comma-separated) list of values * `exists`: check if tags are specified on the Constraint * `like`: wildcard search - argument should contain * and/or ? For more info see [Waylay Docs](/#/api/resources/?id=metadata-query-language)
+ :type query['query']: str
:param raw_response: If true, return the http Response object instead of returning an api model object, or throwing an ApiError.
:param select_path: Denotes the json path applied to the response object before returning it.
Set it to the empty string `""` to receive the full response object.
diff --git a/waylay-sdk-resources/src/waylay/services/resources/api/resource_type_api.py b/waylay-sdk-resources/src/waylay/services/resources/api/resource_type_api.py
index 54c9a27..2c9a470 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/api/resource_type_api.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/api/resource_type_api.py
@@ -29,6 +29,7 @@
from typing_extensions import (
Annotated, # >=3.9,
)
+
from waylay.sdk.api import (
HeaderTypes,
QueryParamTypes,
diff --git a/waylay-sdk-resources/src/waylay/services/resources/service/__init__.py b/waylay-sdk-resources/src/waylay/services/resources/service/__init__.py
index ea4804c..b7b662d 100644
--- a/waylay-sdk-resources/src/waylay/services/resources/service/__init__.py
+++ b/waylay-sdk-resources/src/waylay/services/resources/service/__init__.py
@@ -3,7 +3,7 @@
This code was generated from the OpenAPI documentation of 'Waylay Resources'
-version: 8.1.0
+version: 8.5.0
This service manages [Waylay Resources](/#/features/resources/?id=resource) and related entities. A _Waylay Resource_ models a real-world device or abstract entity of your IoT solution, and provides a context when processing data in the Rule Engine. You'll interact with the _Waylay Resources_ API to create this _Digital Twin_ model, a process that's also called _resource provisioning_.
@@ -12,7 +12,7 @@
Do not edit the class manually.
"""
-__version__ = "8.1.0.20240802"
+__version__ = "8.5.0.20241025"
from .service import ResourcesService