def page_handler(params): if singular_param_to_json: _param_expand_to_json(params, singular_param_to_json) if plural_param_to_json: _param_expand_to_json(params, plural_param_to_json, singular=False) if param_aliases: _handle_param_aliases(params, param_aliases) if parent_identifier: params.update({parent_identifier: parent_identifier_value}) _params = _transfer_params(params) response = request_class(**_params) return _new_get_key_in_response(response, key_to_resource_items)
def query_device_file(self, **params): _params = _transfer_params(params) response = self._client.query_device_file(**_params) file_id = _new_get_key_in_response(response, 'FileId') return _IOTDeviceFileResource(file_id, _client=self._client)
def get_instance(self, **params): _params = _transfer_params(params) response = self._client.get_instance(**_params) instance_name = _new_get_key_in_response(response, 'InstanceName') return _OTSInstanceResource(instance_name, _client=self._client)
def create_file_system(self, **params): _params = _transfer_params(params) response = self._client.create_file_system(**_params) file_system_id = _new_get_key_in_response(response, 'FileSystemId') return _NASFileSystemResource(file_system_id, _client=self._client)
def create_signature_people_certificate(self, **params): _params = _transfer_params(params) response = self._client.create_signature_people_certificate(**_params) people_id = _new_get_key_in_response(response, 'PeopleId') return _CASSignaturePeopleCertificateResource(people_id, _client=self._client)
def create_signature(self, **params): _params = _transfer_params(params) response = self._client.create_signature(**_params) transaction_id = _new_get_key_in_response(response, 'TransactionId') return _CASSignatureResource(transaction_id, _client=self._client)
def create_pkg_version(self, **params): _params = _transfer_params(params) response = self._client.create_pkg_version(**_params) pkg_version_id = _new_get_key_in_response(response, 'PkgVersionId') return _WEBPLUSPkgVersionResource(pkg_version_id, _client=self._client)
def create_application(self, **params): _params = _transfer_params(params) response = self._client.create_application(**_params) app_id = _new_get_key_in_response(response, 'AppId') return _WEBPLUSApplicationResource(app_id, _client=self._client)
def create_rule_action(self, **params): _params = _transfer_params(params) response = self._client.create_rule_action(**_params) action_id = _new_get_key_in_response(response, 'ActionId') return _IOTRuleActionResource(action_id, _client=self._client)
def create_rule(self, **params): _params = _transfer_params(params) response = self._client.create_rule(**_params) rule_id = _new_get_key_in_response(response, 'RuleId') return _IOTRuleResource(rule_id, _client=self._client)
def create_product_topic(self, **params): _params = _transfer_params(params) response = self._client.create_product_topic(**_params) topic_id = _new_get_key_in_response(response, 'TopicId') return _IOTProductTopicResource(topic_id, _client=self._client)
def query_product(self, **params): _params = _transfer_params(params) response = self._client.query_product(**_params) product_name = _new_get_key_in_response(response, 'ProductName') return _IOTProductResource(product_name, _client=self._client)
def create_lo_ra_nodes_task(self, **params): _params = _transfer_params(params) response = self._client.create_lo_ra_nodes_task(**_params) task_id = _new_get_key_in_response(response, 'TaskId') return _IOTLoRaNodesTaskResource(task_id, _client=self._client)
def get_edge_instance(self, **params): _params = _transfer_params(params) response = self._client.get_edge_instance(**_params) instance_id = _new_get_key_in_response(response, 'InstanceId') return _IOTEdgeInstanceResource(instance_id, _client=self._client)
def create_device_group(self, **params): _params = _transfer_params(params) response = self._client.create_device_group(**_params) group_id = _new_get_key_in_response(response, 'GroupId') return _IOTDeviceGroupResource(group_id, _client=self._client)
def create_storage(self, **params): _params = _transfer_params(params) response = self._client.create_storage(**_params) bucket_name = _new_get_key_in_response(response, 'BucketName') return _WEBPLUSStorageResource(bucket_name, _client=self._client)
def create_app_env(self, **params): _params = _transfer_params(params) response = self._client.create_app_env(**_params) env_id = _new_get_key_in_response(response, 'EnvId') return _WEBPLUSAppEnvResource(env_id, _client=self._client)
def create_dnat_entry(self, **params): _params = _transfer_params(params) response = self._client.create_dnat_entry(uis_node_id=self.uis_node_id, **_params) uis_dnat_id = _new_get_key_in_response(response, 'UisDnatId') return _UISDnatEntryResource(uis_dnat_id, self.uis_node_id, _client=self._client)
def create_config_template(self, **params): _params = _transfer_params(params) response = self._client.create_config_template(**_params) template_id = _new_get_key_in_response(response, 'TemplateId') return _WEBPLUSConfigTemplateResource(template_id, _client=self._client)
def create_uis_node(self, **params): _params = _transfer_params(params) response = self._client.create_uis_node(**_params) uis_node_id = _new_get_key_in_response(response, 'UisNodeId') return _UISNodeResource(uis_node_id, _client=self._client)
def create_order_audit(self, **params): _params = _transfer_params(params) response = self._client.create_order_audit(**_params) check_name = _new_get_key_in_response(response, 'CheckName') return _CASOrderAuditResource(check_name, _client=self._client)
def create_sub_connection(self, **params): _params = _transfer_params(params) response = self._client.create_sub_connection(**_params) uis_sub_connection_id = _new_get_key_in_response(response, 'UisSubConnectionId') return _UISSubConnectionResource(uis_sub_connection_id, _client=self._client)
def create_signature_document(self, **params): _params = _transfer_params(params) response = self._client.create_signature_document(**_params) doc_id = _new_get_key_in_response(response, 'DocId') return _CASSignatureDocumentResource(doc_id, _client=self._client)
def unbind_template(self, **params): _params = _transfer_params(params) response = self._client.unbind_template(**_params) template_id = _new_get_key_in_response(response, 'TemplateId') return _VSTemplateResource(template_id, _client=self._client)
def create_access_group(self, **params): _params = _transfer_params(params) response = self._client.create_access_group(**_params) access_group_name = _new_get_key_in_response(response, 'AccessGroupName') return _NASAccessGroupResource(access_group_name, _client=self._client)
def delete_instance(self, **params): _params = _transfer_params(params) response = self._client.delete_instance(**_params) instance_id = _new_get_key_in_response(response, 'InstanceId') return _HPCInstanceResource(instance_id, _client=self._client)
def create_snapshot(self, **params): _params = _transfer_params(params) response = self._client.create_snapshot(**_params) snapshot_id = _new_get_key_in_response(response, 'SnapshotId') return _NASSnapshotResource(snapshot_id, _client=self._client)
def delete_zone(self, **params): _params = _transfer_params(params) response = self._client.delete_zone(**_params) zone_id = _new_get_key_in_response(response, 'ZoneId') return _PVTZZoneResource(zone_id, _client=self._client)
def create_aliyun_account(self, **params): _params = _transfer_params(params) response = self._client.create_aliyun_account(**_params) aliyun_id = _new_get_key_in_response(response, 'AliyunId') return _AASAliyunAccountResource(aliyun_id, _client=self._client)
def update_zone_record(self, **params): _params = _transfer_params(params) response = self._client.update_zone_record(**_params) record_id = _new_get_key_in_response(response, 'RecordId') return _PVTZZoneRecordResource(record_id, _client=self._client)