another-ayx-python-sdk 2.4.23__py3-none-any.whl → 2.4.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- another_ayx_python_sdk/version.py +3 -3
- {another_ayx_python_sdk-2.4.23.dist-info → another_ayx_python_sdk-2.4.24.dist-info}/METADATA +2 -2
- {another_ayx_python_sdk-2.4.23.dist-info → another_ayx_python_sdk-2.4.24.dist-info}/RECORD +212 -7
- {another_ayx_python_sdk-2.4.23.dist-info → another_ayx_python_sdk-2.4.24.dist-info}/top_level.txt +2 -0
- build/lib/another_ayx_python_sdk/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/__main__.py +470 -0
- build/lib/another_ayx_python_sdk/assets/workspace_files/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/assets/workspace_files/setup.py +38 -0
- build/lib/another_ayx_python_sdk/cli/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/cli/utilities.py +103 -0
- build/lib/another_ayx_python_sdk/cli/workspace.py +266 -0
- build/lib/another_ayx_python_sdk/cli/yxi_builder.py +125 -0
- build/lib/another_ayx_python_sdk/cli/yxi_installer.py +45 -0
- build/lib/another_ayx_python_sdk/core/__init__.py +51 -0
- build/lib/another_ayx_python_sdk/core/constants.py +25 -0
- build/lib/another_ayx_python_sdk/core/dcm_base.py +115 -0
- build/lib/another_ayx_python_sdk/core/doc_utilities.py +40 -0
- build/lib/another_ayx_python_sdk/core/environment_base.py +213 -0
- build/lib/another_ayx_python_sdk/core/exceptions.py +59 -0
- build/lib/another_ayx_python_sdk/core/field.py +183 -0
- build/lib/another_ayx_python_sdk/core/input_anchor_base.py +86 -0
- build/lib/another_ayx_python_sdk/core/input_connection_base.py +206 -0
- build/lib/another_ayx_python_sdk/core/io_base.py +139 -0
- build/lib/another_ayx_python_sdk/core/metadata.py +173 -0
- build/lib/another_ayx_python_sdk/core/observable_mixin.py +90 -0
- build/lib/another_ayx_python_sdk/core/output_anchor_base.py +151 -0
- build/lib/another_ayx_python_sdk/core/plugin.py +108 -0
- build/lib/another_ayx_python_sdk/core/plugin_v2.py +97 -0
- build/lib/another_ayx_python_sdk/core/provider_base.py +125 -0
- build/lib/another_ayx_python_sdk/core/proxy_requests.py +51 -0
- build/lib/another_ayx_python_sdk/core/record_packet.py +88 -0
- build/lib/another_ayx_python_sdk/core/record_packet_base.py +123 -0
- build/lib/another_ayx_python_sdk/core/register_plugin.py +127 -0
- build/lib/another_ayx_python_sdk/core/testing.py +191 -0
- build/lib/another_ayx_python_sdk/core/utils.py +146 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkInput/main.py +89 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkMultiConnectionsMultiOutputAnchor/main.py +102 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkMultipleInputAnchors/main.py +84 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkMultipleOutputAnchors/main.py +96 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkOptionalInputAnchor/main.py +94 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkOutput/main.py +78 -0
- build/lib/another_ayx_python_sdk/examples/AyxSdkPassThrough/main.py +82 -0
- build/lib/another_ayx_python_sdk/providers/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/__init__.py +41 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/__main__.py +85 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_dcm.py +58 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_driver.py +358 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_environment.py +73 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_environment_v2.py +278 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_input_anchor.py +73 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_input_connection.py +132 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_io.py +64 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_io_components.py +407 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_output_anchor.py +107 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_provider.py +68 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_provider_v2.py +128 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/amp_record_packet.py +21 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/__init__.py +32 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/input_anchor_builder.py +123 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/input_connection_builder.py +95 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/metadata_builder.py +118 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/output_anchor_builder.py +110 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/packers.py +458 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/record_builder.py +204 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/record_packet_builder.py +133 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/builders/tool_config_builder.py +59 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/cng_certs.py +197 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/data_transport/__init__.py +18 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/data_transport/amp_transport.py +127 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/data_transport/transport_base.py +35 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/grpc_helpers/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/grpc_helpers/control_msgs.py +189 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/grpc_helpers/dcme_msgs.py +119 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/grpc_helpers/record_transfer_msgs.py +32 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/grpc_util.py +161 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/logger_config.py +63 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/plugin_class_loader.py +77 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/__init__.py +67 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/dcm_repository.py +252 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/environment_repository.py +212 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/grpc_repository.py +119 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/input_anchor_repository.py +110 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/input_connection_repository.py +276 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/input_metadata_repository.py +144 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/input_record_packet_repository.py +252 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/io_repository.py +188 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/output_anchor_repository.py +117 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/output_metadata_repository.py +129 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/output_record_packet_repository.py +170 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/plugin_class_repository.py +55 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/singleton.py +32 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/test_harness_state_repository.py +172 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/tool_config_repository.py +89 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/__init__.py +0 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/close_outgoing_anchor_pb2.py +25 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/close_outgoing_anchor_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/dcm_e_pb2.py +38 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/dcm_e_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_anchor_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_anchor_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_complete_pb2.py +25 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_complete_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_connection_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_data_push_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_data_push_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_record_packet_push_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_record_packet_push_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/metadata_pb2.py +31 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/metadata_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_anchor_pb2.py +28 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_anchor_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_data_push_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_data_push_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_metadata_push_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_metadata_push_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_record_packet_push_pb2.py +26 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/outgoing_record_packet_push_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/output_message_data_pb2.py +29 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/output_message_data_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/password_data_pb2.py +25 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/password_data_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/plugin_initialization_data_pb2.py +33 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/plugin_initialization_data_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/record_batch_pb2.py +25 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/record_batch_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/record_packet_pb2.py +29 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/record_packet_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_engine_service_pb2.py +34 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_engine_service_pb2_grpc.py +305 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_pb2.py +30 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_pb2_grpc.py +235 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_startup_info_pb2.py +25 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_startup_info_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_v2_pb2.py +54 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/sdk_tool_service_v2_pb2_grpc.py +99 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/translate_message_data_pb2.py +27 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/translate_message_data_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/transport_pb2.py +31 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/transport_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/update_progress_pb2.py +25 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/update_progress_pb2_grpc.py +4 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/sdk_tool_runner.py +115 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/sdk_tool_service.py +207 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/sdk_tool_service_v2.py +306 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/utilities/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/utilities/constants.py +22 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/utilities/conversions.py +55 -0
- build/lib/another_ayx_python_sdk/providers/amp_provider/utilities/utilities.py +63 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/__init__.py +36 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/anchor_builder.py +95 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/cache_e1_sdk_import.py +31 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/connection_callback_strategy.py +155 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/connection_interface.py +125 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_dcm.py +53 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_environment.py +127 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_input_anchor.py +51 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_input_anchor_proxy.py +33 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_input_connection.py +87 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_io.py +71 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_output_anchor.py +157 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_output_anchor_proxy.py +97 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_plugin_driver.py +63 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_plugin_proxy.py +363 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_provider.py +71 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/e1_record_packet.py +21 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/events.py +36 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/__init__.py +37 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/alteryx_engine.py +105 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/constants.py +50 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/field.py +122 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/output_anchor.py +55 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/output_anchor_manager.py +31 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_copier.py +65 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_creator.py +41 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_info.py +134 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/record_ref.py +42 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/tool.py +29 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/AlteryxPythonSDK/tool_execution_info.py +43 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/mock_e1_sdk/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/proxies/__init__.py +18 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/proxies/field_proxy.py +109 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/proxies/record_copier_proxy.py +49 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/records/__init__.py +23 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/records/base_record_container.py +47 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/records/parsed_record_container.py +67 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/records/raw_record_container.py +111 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/tool_config_loader.py +132 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/utilities/__init__.py +35 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/utilities/utilities.py +54 -0
- build/lib/another_ayx_python_sdk/providers/e1_provider/workflow_config.py +31 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/__init__.py +32 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/environment.py +131 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_adapter.py +286 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_provider.py +185 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_provider_dcm.py +53 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_provider_input_anchor.py +70 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_provider_input_connection.py +112 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_provider_output_anchor.py +114 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/file_record_packet.py +21 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/iox.py +56 -0
- build/lib/another_ayx_python_sdk/providers/file_provider/tool_input.py +104 -0
- build/lib/another_ayx_python_sdk/test_harness/__init__.py +14 -0
- build/lib/another_ayx_python_sdk/test_harness/__main__.py +120 -0
- build/lib/another_ayx_python_sdk/test_harness/plugin_runner.py +416 -0
- build/lib/another_ayx_python_sdk/test_harness/process_lifecycle_manager.py +80 -0
- build/lib/another_ayx_python_sdk/test_harness/sdk_engine_service.py +106 -0
- build/lib/another_ayx_python_sdk/version.py +8 -0
- {another_ayx_python_sdk-2.4.23.dist-info → another_ayx_python_sdk-2.4.24.dist-info}/WHEEL +0 -0
- {another_ayx_python_sdk-2.4.23.dist-info → another_ayx_python_sdk-2.4.24.dist-info}/entry_points.txt +0 -0
- {another_ayx_python_sdk-2.4.23.dist-info → another_ayx_python_sdk-2.4.24.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Class that saves/retrieves output record packets."""
|
15
|
+
import logging
|
16
|
+
from typing import Dict, List, TYPE_CHECKING
|
17
|
+
|
18
|
+
from another_ayx_python_sdk.providers.amp_provider.builders import RecordPacketBuilder
|
19
|
+
from another_ayx_python_sdk.providers.amp_provider.repositories.grpc_repository import (
|
20
|
+
GrpcRepository,
|
21
|
+
)
|
22
|
+
from another_ayx_python_sdk.providers.amp_provider.repositories.singleton import Singleton
|
23
|
+
from another_ayx_python_sdk.providers.amp_provider.resources.generated.outgoing_record_packet_push_pb2 import (
|
24
|
+
OutgoingRecordPacketPush,
|
25
|
+
)
|
26
|
+
from another_ayx_python_sdk.providers.amp_provider.resources.generated.record_packet_pb2 import (
|
27
|
+
RecordPacket as ProtobufRecordPacket,
|
28
|
+
)
|
29
|
+
|
30
|
+
if TYPE_CHECKING:
|
31
|
+
from another_ayx_python_sdk.core.record_packet_base import RecordPacketBase
|
32
|
+
|
33
|
+
logger = logging.getLogger(__name__)
|
34
|
+
|
35
|
+
|
36
|
+
class OutputRecordPacketRepository(metaclass=Singleton):
|
37
|
+
"""Repository that stores output record packets."""
|
38
|
+
|
39
|
+
_record_packet_builder = RecordPacketBuilder()
|
40
|
+
|
41
|
+
def __init__(self) -> None:
|
42
|
+
"""Initialize the output record packet repository."""
|
43
|
+
self._record_packet_map: Dict[str, "RecordPacketBase"] = {}
|
44
|
+
self._record_packet_sequence: Dict[str, int] = {}
|
45
|
+
self._anchor_progress: Dict[str, float] = {}
|
46
|
+
|
47
|
+
def save_record_packet(
|
48
|
+
self, anchor_name: str, record_packet: "RecordPacketBase"
|
49
|
+
) -> None:
|
50
|
+
"""
|
51
|
+
Save a record packet.
|
52
|
+
|
53
|
+
Parameters
|
54
|
+
----------
|
55
|
+
anchor_name
|
56
|
+
The name of the anchor that the record packet is associated with.
|
57
|
+
record_packet
|
58
|
+
The record packet to save to the repository.
|
59
|
+
"""
|
60
|
+
logger.debug(
|
61
|
+
"Saving record packet for %s in OutputRecordPacketRepository", anchor_name
|
62
|
+
)
|
63
|
+
self._record_packet_map[anchor_name] = record_packet
|
64
|
+
logger.debug(
|
65
|
+
"Current OutputRecordPacketRepository State: %r", self._record_packet_map
|
66
|
+
)
|
67
|
+
|
68
|
+
try:
|
69
|
+
client = GrpcRepository().get_sdk_engine_client()
|
70
|
+
except ValueError:
|
71
|
+
pass
|
72
|
+
else:
|
73
|
+
logger.debug("Pushing output record packet for anchor %s", anchor_name)
|
74
|
+
|
75
|
+
for record_packet in self.get_grpc_record_packets(anchor_name):
|
76
|
+
client.PushOutgoingRecordPacket(
|
77
|
+
OutgoingRecordPacketPush(
|
78
|
+
anchor_name=anchor_name,
|
79
|
+
record_packet=record_packet,
|
80
|
+
)
|
81
|
+
)
|
82
|
+
|
83
|
+
def get_record_packet(self, anchor_name: str) -> "RecordPacketBase":
|
84
|
+
"""
|
85
|
+
Get a record packet.
|
86
|
+
|
87
|
+
Parameters
|
88
|
+
----------
|
89
|
+
anchor_name
|
90
|
+
The name of the output anchor that the record packet is associated with.
|
91
|
+
|
92
|
+
Returns
|
93
|
+
-------
|
94
|
+
RecordPacketBase
|
95
|
+
The record packet associated with the anchor name.
|
96
|
+
"""
|
97
|
+
if anchor_name not in self._record_packet_map:
|
98
|
+
raise ValueError(f"Anchor {anchor_name} not found in repository.")
|
99
|
+
|
100
|
+
return self._record_packet_map[anchor_name]
|
101
|
+
|
102
|
+
def get_grpc_record_packets(self, anchor_name: str) -> List[ProtobufRecordPacket]:
|
103
|
+
"""
|
104
|
+
Get a record packet in protobuf format.
|
105
|
+
|
106
|
+
Parameters
|
107
|
+
----------
|
108
|
+
anchor_name
|
109
|
+
The name of the anchor to delete.
|
110
|
+
|
111
|
+
Returns
|
112
|
+
-------
|
113
|
+
List[ProtobufRecordPacket]
|
114
|
+
The list of protobuf record packets that are associated with the passed in anchor name.
|
115
|
+
"""
|
116
|
+
record_packet = self.get_record_packet(anchor_name)
|
117
|
+
|
118
|
+
if anchor_name not in self._record_packet_sequence:
|
119
|
+
self._record_packet_sequence[anchor_name] = 0
|
120
|
+
|
121
|
+
pb_packets = self._record_packet_builder.to_protobuf(
|
122
|
+
record_packet,
|
123
|
+
self._record_packet_sequence[anchor_name],
|
124
|
+
self.get_anchor_progress(anchor_name),
|
125
|
+
)
|
126
|
+
|
127
|
+
self._record_packet_sequence[anchor_name] += len(pb_packets)
|
128
|
+
return pb_packets
|
129
|
+
|
130
|
+
def save_anchor_progress(self, anchor_name: str, progress: float) -> None:
|
131
|
+
"""
|
132
|
+
Save the anchor progress.
|
133
|
+
|
134
|
+
Parameters
|
135
|
+
----------
|
136
|
+
anchor_name
|
137
|
+
The name of the anchor to delete.
|
138
|
+
progress
|
139
|
+
The progress percentage of the anchor.
|
140
|
+
"""
|
141
|
+
if not 0.0 <= progress <= 1.0:
|
142
|
+
raise ValueError("Progress must be between 0 and 1.")
|
143
|
+
|
144
|
+
self._anchor_progress[anchor_name] = progress
|
145
|
+
|
146
|
+
def get_anchor_progress(self, anchor_name: str) -> float:
|
147
|
+
"""
|
148
|
+
Get the anchor progress.
|
149
|
+
|
150
|
+
Parameters
|
151
|
+
----------
|
152
|
+
anchor_name
|
153
|
+
The name of the anchor to delete.
|
154
|
+
|
155
|
+
Returns
|
156
|
+
-------
|
157
|
+
progress
|
158
|
+
The progress percentage of the anchor.
|
159
|
+
"""
|
160
|
+
return self._anchor_progress.get(anchor_name, 0.0)
|
161
|
+
|
162
|
+
def clear_repository(self) -> None:
|
163
|
+
"""Delete all data in the repository."""
|
164
|
+
logger.debug("Clearing OutputRecordPacketRepository")
|
165
|
+
self._record_packet_map = {}
|
166
|
+
self._record_packet_sequence = {}
|
167
|
+
self._anchor_progress = {}
|
168
|
+
logger.debug(
|
169
|
+
"Current OutputRecordPacketRepository State: %r", self._record_packet_map
|
170
|
+
)
|
build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/plugin_class_repository.py
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Class that saves plugin class."""
|
15
|
+
from typing import Optional, Type
|
16
|
+
|
17
|
+
from another_ayx_python_sdk.core.plugin import Plugin
|
18
|
+
from another_ayx_python_sdk.providers.amp_provider.repositories.singleton import Singleton
|
19
|
+
|
20
|
+
|
21
|
+
class PluginClassRepository(metaclass=Singleton):
|
22
|
+
"""Repository that stores plugin class."""
|
23
|
+
|
24
|
+
def __init__(self) -> None:
|
25
|
+
"""Initialize the plugin class repository."""
|
26
|
+
self._plugin_class: Optional[Type[Plugin]] = None
|
27
|
+
|
28
|
+
def save_plugin_class(self, plugin_class: Type[Plugin]) -> None:
|
29
|
+
"""
|
30
|
+
Save plugin class.
|
31
|
+
|
32
|
+
Parameters
|
33
|
+
----------
|
34
|
+
plugin_class
|
35
|
+
The custom Plugin class that's being used.
|
36
|
+
"""
|
37
|
+
self._plugin_class = plugin_class
|
38
|
+
|
39
|
+
def get_plugin_class(self) -> Type[Plugin]:
|
40
|
+
"""
|
41
|
+
Get the plugin class.
|
42
|
+
|
43
|
+
Returns
|
44
|
+
-------
|
45
|
+
Type[Plugin]
|
46
|
+
The custom Plugin class that's being used.
|
47
|
+
"""
|
48
|
+
if self._plugin_class is None:
|
49
|
+
raise ValueError("Plugin class hasn't been saved.")
|
50
|
+
|
51
|
+
return self._plugin_class
|
52
|
+
|
53
|
+
def clear_repository(self) -> None:
|
54
|
+
"""Delete all data in the repository."""
|
55
|
+
self._plugin_class = None
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Singleton metaclass."""
|
15
|
+
|
16
|
+
|
17
|
+
class Singleton(type):
|
18
|
+
"""Implements the Singleton Design Pattern using metaclasses.
|
19
|
+
|
20
|
+
References
|
21
|
+
----------
|
22
|
+
[1] Mastering Python Design Patterns, Singleton.
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
_instances = {} # type: ignore
|
27
|
+
|
28
|
+
def __call__(cls, *args, **kwargs): # type: ignore
|
29
|
+
"""Call."""
|
30
|
+
if cls not in cls._instances:
|
31
|
+
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
|
32
|
+
return cls._instances[cls]
|
@@ -0,0 +1,172 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Repository for the status of the handshake with the SDK engine server."""
|
15
|
+
import logging
|
16
|
+
from typing import Dict, Optional, TYPE_CHECKING, cast
|
17
|
+
|
18
|
+
from another_ayx_python_sdk.providers.amp_provider import AMPRecordPacket
|
19
|
+
from another_ayx_python_sdk.providers.amp_provider.builders import (
|
20
|
+
MetadataBuilder,
|
21
|
+
RecordPacketBuilder,
|
22
|
+
)
|
23
|
+
from another_ayx_python_sdk.providers.amp_provider.repositories.singleton import Singleton
|
24
|
+
|
25
|
+
|
26
|
+
if TYPE_CHECKING:
|
27
|
+
from another_ayx_python_sdk.providers.amp_provider.grpc_util import SocketAddress
|
28
|
+
from another_ayx_python_sdk.providers.amp_provider.resources.generated.record_packet_pb2 import (
|
29
|
+
RecordPacket as ProtobufRecordPacket,
|
30
|
+
)
|
31
|
+
from another_ayx_python_sdk.providers.amp_provider.resources.generated.metadata_pb2 import (
|
32
|
+
Metadata as ProtobufMetadata,
|
33
|
+
)
|
34
|
+
from another_ayx_python_sdk.core import Metadata as CoreMetadata # noqa: F401
|
35
|
+
|
36
|
+
logger = logging.getLogger(__name__)
|
37
|
+
|
38
|
+
|
39
|
+
class TestHarnessStateRepository(metaclass=Singleton):
|
40
|
+
"""
|
41
|
+
Class defines methods and properties to read/write/delete the handshake status.
|
42
|
+
|
43
|
+
NOTE: This class is only used by the test harness and shouldn't be used by the
|
44
|
+
SDK Tool Service.
|
45
|
+
"""
|
46
|
+
|
47
|
+
__test__ = False # Pytest tries to collect this by default, disable here to prevent warning
|
48
|
+
|
49
|
+
def __init__(self) -> None:
|
50
|
+
"""Construct the repository."""
|
51
|
+
self._handshake_completed = False
|
52
|
+
self._sdk_tool_server_address: Optional["SocketAddress"] = None
|
53
|
+
self._metadata: Dict[str, "CoreMetadata"] = {}
|
54
|
+
self._record_packets: Dict[str, "AMPRecordPacket"] = {}
|
55
|
+
|
56
|
+
def save_handshake_completed_status(self, status: bool) -> None:
|
57
|
+
"""
|
58
|
+
Save handshake completed status.
|
59
|
+
|
60
|
+
Parameters
|
61
|
+
----------
|
62
|
+
status
|
63
|
+
Handshake completion status.
|
64
|
+
"""
|
65
|
+
logger.debug(f"Handshake completed: {status}")
|
66
|
+
self._handshake_completed = status
|
67
|
+
|
68
|
+
def get_handshake_completed_status(self) -> bool:
|
69
|
+
"""
|
70
|
+
Save AMP input anchor to repository.
|
71
|
+
|
72
|
+
Returns
|
73
|
+
-------
|
74
|
+
bool
|
75
|
+
True if handshake completed, False otherwise.
|
76
|
+
"""
|
77
|
+
return self._handshake_completed
|
78
|
+
|
79
|
+
def save_sdk_tool_server_address(self, address: "SocketAddress") -> None:
|
80
|
+
"""
|
81
|
+
Save the SDK Tool server address.
|
82
|
+
|
83
|
+
Parameters
|
84
|
+
----------
|
85
|
+
address
|
86
|
+
The IP address and port that the server is listening on.
|
87
|
+
"""
|
88
|
+
self._sdk_tool_server_address = address
|
89
|
+
|
90
|
+
def get_sdk_tool_server_address(self) -> "SocketAddress":
|
91
|
+
"""
|
92
|
+
Get the SDK Tool server address.
|
93
|
+
|
94
|
+
Returns
|
95
|
+
-------
|
96
|
+
SocketAddress
|
97
|
+
The IP address and port that the server is listening on.
|
98
|
+
"""
|
99
|
+
if self._sdk_tool_server_address is None:
|
100
|
+
raise ValueError("SDK Tool server address has not been saved.")
|
101
|
+
|
102
|
+
return self._sdk_tool_server_address
|
103
|
+
|
104
|
+
def save_metadata(self, anchor_name: str, metadata: "ProtobufMetadata") -> None:
|
105
|
+
"""
|
106
|
+
Saves metadata of the data coming in.
|
107
|
+
|
108
|
+
Parameters
|
109
|
+
----------
|
110
|
+
anchor_name
|
111
|
+
The anchor that the metadata is associated with.
|
112
|
+
metadata
|
113
|
+
The metadata of the data that will be going through this anchor.
|
114
|
+
"""
|
115
|
+
core_metadata = MetadataBuilder().from_protobuf(metadata)
|
116
|
+
logger.debug(f"Saving metadata {core_metadata} to TestHarnessStateRepository")
|
117
|
+
self._metadata[anchor_name] = core_metadata
|
118
|
+
|
119
|
+
def get_metadata(self, anchor_name: str) -> "CoreMetadata":
|
120
|
+
"""
|
121
|
+
Get metadata on the anchor.
|
122
|
+
|
123
|
+
Parameters
|
124
|
+
----------
|
125
|
+
anchor_name
|
126
|
+
The anchor to get the metadata of.
|
127
|
+
|
128
|
+
Returns
|
129
|
+
-------
|
130
|
+
CoreMetadata
|
131
|
+
The metadata on the anchor that matches the passed in anchor name.
|
132
|
+
"""
|
133
|
+
if anchor_name not in self._metadata:
|
134
|
+
raise ValueError(f"Anchor name '{anchor_name}' not found.")
|
135
|
+
return self._metadata[anchor_name]
|
136
|
+
|
137
|
+
def save_record_packet(
|
138
|
+
self, anchor_name: str, record_packet: "ProtobufRecordPacket"
|
139
|
+
) -> None:
|
140
|
+
"""
|
141
|
+
Save record packet to this repository.
|
142
|
+
|
143
|
+
Parameters
|
144
|
+
----------
|
145
|
+
anchor_name
|
146
|
+
The name of the anchor that the record packet is associated with.
|
147
|
+
record_packet
|
148
|
+
The record packet to save to the repository.
|
149
|
+
"""
|
150
|
+
core_record_packet, _, _ = RecordPacketBuilder().from_protobuf(
|
151
|
+
record_packet, self.get_metadata(anchor_name)
|
152
|
+
)
|
153
|
+
self._record_packets[anchor_name] = cast(AMPRecordPacket, core_record_packet)
|
154
|
+
|
155
|
+
def get_record_packet(self, anchor_name: str) -> "AMPRecordPacket":
|
156
|
+
"""
|
157
|
+
Get record packet from repository.
|
158
|
+
|
159
|
+
Parameters
|
160
|
+
----------
|
161
|
+
anchor_name
|
162
|
+
The name of the anchor that the record packet is associated with.
|
163
|
+
|
164
|
+
Returns
|
165
|
+
-------
|
166
|
+
record_packet
|
167
|
+
The record packet to save to the repository.
|
168
|
+
"""
|
169
|
+
if anchor_name not in self._record_packets:
|
170
|
+
raise ValueError(f"Anchor name '{anchor_name}' not found")
|
171
|
+
logger.debug(f"Saving record packet for {anchor_name}")
|
172
|
+
return self._record_packets[anchor_name]
|
build/lib/another_ayx_python_sdk/providers/amp_provider/repositories/tool_config_repository.py
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Class that saves tool configuration information."""
|
15
|
+
import copy
|
16
|
+
from typing import Any, Dict
|
17
|
+
|
18
|
+
from another_ayx_python_sdk.providers.amp_provider.builders.tool_config_builder import (
|
19
|
+
ToolConfigBuilder,
|
20
|
+
)
|
21
|
+
from another_ayx_python_sdk.providers.amp_provider.repositories.grpc_repository import (
|
22
|
+
GrpcRepository,
|
23
|
+
)
|
24
|
+
from another_ayx_python_sdk.providers.amp_provider.repositories.singleton import Singleton
|
25
|
+
from another_ayx_python_sdk.providers.amp_provider.resources.generated.output_message_data_pb2 import (
|
26
|
+
OutputMessageData,
|
27
|
+
OutputMessageTypes,
|
28
|
+
)
|
29
|
+
|
30
|
+
|
31
|
+
class ToolConfigRepository(metaclass=Singleton):
|
32
|
+
"""Repository that stores tool configuration information."""
|
33
|
+
|
34
|
+
_tool_config_builder = ToolConfigBuilder()
|
35
|
+
|
36
|
+
def __init__(self) -> None:
|
37
|
+
"""Initialize the tool configuration repository."""
|
38
|
+
self._tool_config: Dict[str, Any] = {}
|
39
|
+
|
40
|
+
def save_tool_config(self, tool_config: Dict[str, Any]) -> None:
|
41
|
+
"""
|
42
|
+
Save tool configuration dictionary.
|
43
|
+
|
44
|
+
Parameters
|
45
|
+
----------
|
46
|
+
tool_config
|
47
|
+
Dictionary form of the Tool Config XML.
|
48
|
+
"""
|
49
|
+
if tool_config != self._tool_config:
|
50
|
+
self._tool_config = tool_config
|
51
|
+
|
52
|
+
try:
|
53
|
+
client = GrpcRepository().get_sdk_engine_client()
|
54
|
+
except ValueError:
|
55
|
+
# Don't save if client isn't ready
|
56
|
+
pass
|
57
|
+
else:
|
58
|
+
client.OutputMessage(
|
59
|
+
OutputMessageData(
|
60
|
+
message_type=OutputMessageTypes.OMT_UpdateOutputConfigXml,
|
61
|
+
message=self._tool_config_builder.to_xml(tool_config),
|
62
|
+
)
|
63
|
+
)
|
64
|
+
|
65
|
+
def save_xml_tool_config(self, tool_config_xml: str) -> None:
|
66
|
+
"""
|
67
|
+
Save the tool configuration xml as a dictionary.
|
68
|
+
|
69
|
+
Parameters
|
70
|
+
----------
|
71
|
+
tool_config_xml
|
72
|
+
The Tool Config XML as a raw string.
|
73
|
+
"""
|
74
|
+
self.save_tool_config(self._tool_config_builder.from_xml(tool_config_xml))
|
75
|
+
|
76
|
+
def get_tool_config(self) -> Dict[str, Any]:
|
77
|
+
"""
|
78
|
+
Get the tool configuration.
|
79
|
+
|
80
|
+
Returns
|
81
|
+
-------
|
82
|
+
Dict[str, Any]
|
83
|
+
The Tool Config XML associated with the current plugin.
|
84
|
+
"""
|
85
|
+
return copy.deepcopy(self._tool_config)
|
86
|
+
|
87
|
+
def clear_repository(self) -> None:
|
88
|
+
"""Delete all data in the repository."""
|
89
|
+
self._tool_config = {}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Copyright (C) 2022 Alteryx, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the ALTERYX SDK AND API LICENSE AGREEMENT;
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.alteryx.com/alteryx-sdk-and-api-license-agreement
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
"""Resources to be consumed by the amp provider."""
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: close_outgoing_anchor.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63lose_outgoing_anchor.proto\x12\x03sdk\"#\n\x13\x43loseOutgoingAnchor\x12\x0c\n\x04name\x18\x01 \x01(\tb\x06proto3')
|
17
|
+
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'close_outgoing_anchor_pb2', globals())
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
21
|
+
|
22
|
+
DESCRIPTOR._options = None
|
23
|
+
_CLOSEOUTGOINGANCHOR._serialized_start=36
|
24
|
+
_CLOSEOUTGOINGANCHOR._serialized_end=71
|
25
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: dcm_e.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0b\x64\x63m_e.proto\x12\x03sdk\x1a\x1cgoogle/protobuf/struct.proto\"\xe3\x05\n\x0b\x44\x63mERequest\x12!\n\x02v2\x18\x01 \x01(\x0b\x32\x13.sdk.DcmERequest.V2H\x00\x1a\xa5\x05\n\x02V2\x12;\n\x0eget_connection\x18\x01 \x01(\x0b\x32!.sdk.DcmERequest.V2.GetConnectionH\x00\x12\x35\n\x0block_secret\x18\x02 \x01(\x0b\x32\x1e.sdk.DcmERequest.V2.LockSecretH\x00\x12\x39\n\runlock_secret\x18\x03 \x01(\x0b\x32 .sdk.DcmERequest.V2.UnlockSecretH\x00\x12\x39\n\rupdate_secret\x18\x04 \x01(\x0b\x32 .sdk.DcmERequest.V2.UpdateSecretH\x00\x1a&\n\rGetConnection\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x1a\x65\n\nLockSecret\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63redential_role\x18\x02 \x01(\t\x12\x13\n\x0bsecret_type\x18\x03 \x01(\t\x12\x12\n\nexpires_in\x18\x04 \x01(\t\x1a\x64\n\x0cUnlockSecret\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63redential_role\x18\x02 \x01(\t\x12\x13\n\x0bsecret_type\x18\x03 \x01(\t\x12\x0f\n\x07lock_id\x18\x04 \x01(\t\x1a\xb4\x01\n\x0cUpdateSecret\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x17\n\x0f\x63redential_role\x18\x02 \x01(\t\x12\x13\n\x0bsecret_type\x18\x03 \x01(\t\x12\x0f\n\x07lock_id\x18\x04 \x01(\t\x12\x12\n\nexpires_on\x18\x05 \x01(\t\x12\r\n\x05value\x18\x06 \x01(\t\x12+\n\nparameters\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructB\t\n\x07RequestB\t\n\x07Request\"J\n\x0c\x44\x63mEResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12)\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Structb\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dcm_e_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_DCMEREQUEST._serialized_start=51
|
25
|
+
_DCMEREQUEST._serialized_end=790
|
26
|
+
_DCMEREQUEST_V2._serialized_start=102
|
27
|
+
_DCMEREQUEST_V2._serialized_end=779
|
28
|
+
_DCMEREQUEST_V2_GETCONNECTION._serialized_start=342
|
29
|
+
_DCMEREQUEST_V2_GETCONNECTION._serialized_end=380
|
30
|
+
_DCMEREQUEST_V2_LOCKSECRET._serialized_start=382
|
31
|
+
_DCMEREQUEST_V2_LOCKSECRET._serialized_end=483
|
32
|
+
_DCMEREQUEST_V2_UNLOCKSECRET._serialized_start=485
|
33
|
+
_DCMEREQUEST_V2_UNLOCKSECRET._serialized_end=585
|
34
|
+
_DCMEREQUEST_V2_UPDATESECRET._serialized_start=588
|
35
|
+
_DCMEREQUEST_V2_UPDATESECRET._serialized_end=768
|
36
|
+
_DCMERESPONSE._serialized_start=792
|
37
|
+
_DCMERESPONSE._serialized_end=866
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
build/lib/another_ayx_python_sdk/providers/amp_provider/resources/generated/incoming_anchor_pb2.py
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: incoming_anchor.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
from . import incoming_connection_pb2 as incoming__connection__pb2
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15incoming_anchor.proto\x12\x03sdk\x1a\x19incoming_connection.proto\"`\n\x0eIncomingAnchor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x0b\x63onnections\x18\x02 \x03(\x0b\x32\x17.sdk.IncomingConnection\x12\x12\n\nsequencing\x18\x03 \x01(\x05\x62\x06proto3')
|
18
|
+
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'incoming_anchor_pb2', globals())
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
22
|
+
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_INCOMINGANCHOR._serialized_start=57
|
25
|
+
_INCOMINGANCHOR._serialized_end=153
|
26
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: incoming_connection_complete.proto
|
4
|
+
"""Generated protocol buffer code."""
|
5
|
+
from google.protobuf.internal import builder as _builder
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
# @@protoc_insertion_point(imports)
|
10
|
+
|
11
|
+
_sym_db = _symbol_database.Default()
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"incoming_connection_complete.proto\x12\x03sdk\"x\n\x1aIncomingConnectionComplete\x12\x18\n\x0b\x61nchor_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63onnection_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_anchor_nameB\x12\n\x10_connection_nameb\x06proto3')
|
17
|
+
|
18
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
19
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'incoming_connection_complete_pb2', globals())
|
20
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
21
|
+
|
22
|
+
DESCRIPTOR._options = None
|
23
|
+
_INCOMINGCONNECTIONCOMPLETE._serialized_start=43
|
24
|
+
_INCOMINGCONNECTIONCOMPLETE._serialized_end=163
|
25
|
+
# @@protoc_insertion_point(module_scope)
|