Cloud platform client code processing method and device

By automatically matching and generating cloud platform client code, the compatibility and access complexity between cloud platforms in multi-cloud deployment environments are solved, efficiency and accuracy are improved, and the enterprise's cloud platform access process is simplified.

CN119292590APending Publication Date: 2025-01-10HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411387933.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In multi-cloud deployment environments, compatibility and access complexity issues between cloud platforms have led to enterprises needing to manually write new client code, which is inefficient and prone to human errors, increasing the complexity of the system and maintenance burden.

Method used

By obtaining the client code of the target application, determining its associated cloud product and interface information, finding matching information on the second cloud platform, generating corresponding client code, reducing or eliminating the need for manual coding, improving efficiency and ensuring accurate code sex.

Benefits of technology

It realizes automatic generation of client code, reduces human errors, improves efficiency, ensures the accuracy and consistency of the code, and simplifies the access process between cloud platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292590A_ABST
    Figure CN119292590A_ABST
Patent Text Reader

Abstract

The invention discloses a cloud platform client code processing method and device. The method comprises the steps that a client code of a target application program is acquired; the client code is used for interaction between the target application program and the first cloud platform; based on the client code, determining information of a first cloud product and information of a first cloud interface associated with the target application program; searching information of a second cloud product and information of a second cloud interface matched with the information of the first cloud product and the information of the first cloud interface in a second cloud platform; generating a client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface; and accessing the client code of the second cloud platform to the target application, so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a cloud platform client code processing method and device. Background Art

[0002] With the rapid development of information technology, cloud computing has become an indispensable part of modern enterprise IT architecture. With the widespread popularization and in-depth application of cloud computing technology, enterprises are increasingly inclined to migrate key IT resources to the cloud to fully utilize the flexibility, scalability and cost-effectiveness of cloud platforms. As the main form of cloud computing services, public cloud platforms generally provide mainstream products including cloud servers, load balancing, elastic scaling, etc. to meet the diverse business needs of enterprises. However, when choosing a cloud platform, in addition to the completeness of functions, enterprises also need to comprehensively consider factors such as platform stability, cost-effectiveness and user experience.

[0003] As the scale of enterprise business continues to expand and the software architecture becomes more complex, the limitations of a single cloud platform gradually become apparent, and multi-cloud deployment strategies have emerged. Multi-cloud architecture integrates the advantages of multiple cloud platforms to provide enterprises with higher availability, stronger elasticity and fault tolerance, stricter data security, and more flexible resource allocation capabilities, thereby greatly enhancing the business continuity and market competitiveness of enterprises. However, multi-cloud deployment also brings unprecedented technical challenges, especially the compatibility and access complexity between cloud platforms.

[0004] At present, the mainstream cloud platforms on the market all provide exclusive SDKs (software development kits) and ApiExplorer (API online auxiliary tools) to support developers in interface docking and application development. However, the technology stacks of these platforms vary greatly. Each cloud platform has its own unique API design, authentication mechanism and calling specifications, which means that enterprises have to re-adapt a new set of client codes when connecting to a new cloud platform.

[0005] Currently, enterprises mainly rely on developers to manually write new client codes to adapt to the needs of new cloud platforms. However, this manual development method is not only time-consuming and laborious, but also inefficient and prone to human errors, especially when facing multiple cloud platforms, multiple cloud products and diverse client code requirements, which increases the complexity of the system and the maintenance burden. Summary of the invention

[0006] In view of the above problems, this application provides a cloud platform client code processing method and device to reduce or eliminate the need for manual coding, improve efficiency, reduce human errors, and ensure the accuracy of the generated client code. The specific solution is as follows:

[0007] The first aspect of the present application provides a cloud platform client code processing method, comprising:

[0008] Obtaining a client code of a target application; the client code is used for the target application to interact with the first cloud platform;

[0009] Based on the client code, determine information of a first cloud product and information of a first cloud interface associated with the target application;

[0010] Searching the second cloud platform for information of a second cloud product and information of a second cloud interface that matches the information of the first cloud product and the information of the first cloud interface;

[0011] Generate a client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface;

[0012] The client code of the second cloud platform is connected to the target application so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.

[0013] In a possible implementation, determining, based on the client code, information about the first cloud product and information about the first cloud interface associated with the target application includes:

[0014] Identify the English name of the first cloud product according to the reference or comment in the client code;

[0015] Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface;

[0016] Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface;

[0017] At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required to call the first cloud interface are used as the information of the first cloud interface.

[0018] In a possible implementation, the method further includes:

[0019] Obtaining full information corresponding to the first cloud platform; the full information corresponding to the first cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the first cloud platform;

[0020] Filtering the Chinese name of the first cloud product that matches the English name of the first cloud product from the full amount of information corresponding to the first cloud platform;

[0021] Filtering the Chinese name of the first cloud interface, the description information of the first cloud interface, and the parameter information of the first cloud interface that match the English name of the first cloud interface and the first request parameter required to call the first cloud interface from the full amount of information corresponding to the first cloud platform;

[0022] At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required for calling the first cloud interface are used as the information of the first cloud interface, including:

[0023] The Chinese name and English name of the first cloud product are used as the information of the first cloud product, and the Chinese name, English name, description information, and parameter information of the first cloud interface are used as the information of the first cloud interface.

[0024] In a possible implementation, searching the second cloud platform for information of the second cloud product and information of the second cloud interface that matches the information of the first cloud product and the information of the first cloud interface includes:

[0025] Obtaining full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform;

[0026] Filtering information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform;

[0027] Information of the second cloud interface that matches the information of the first cloud interface is filtered out from all cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform.

[0028] In a possible implementation, the method further includes:

[0029] Building a first inverted index based on detailed information of all cloud products of the second cloud platform;

[0030] Building a second inverted index based on detailed information of all cloud interfaces of the second cloud platform;

[0031] Filtering the information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform includes:

[0032] Segmenting the information of the first cloud product to obtain a plurality of first query words, searching the first inverted index by using the plurality of first query words to find information of a second cloud product that matches the information of the first cloud product;

[0033] The second cloud interface information matching the information of the first cloud interface is selected from all the cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform, including:

[0034] The information of the first cloud interface is segmented to obtain a plurality of second query words, and the second inverted index is searched by the plurality of second query words to find the information of the second cloud interface that matches the information of the first cloud interface.

[0035] On the other hand, the present application provides a cloud platform client code processing device, including:

[0036] A source code information extraction module, used to obtain the client code of the target application; the client code is used for the target application to interact with the first cloud platform, and based on the client code, determine the information of the first cloud product and the information of the first cloud interface associated with the target application;

[0037] An analogy module, configured to search in a second cloud platform for information of a second cloud product and information of a second cloud interface that matches the information of the first cloud product and the information of the first cloud interface;

[0038] A generation module, configured to generate a client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface;

[0039] An access module is used to connect the client code of the second cloud platform to the target application so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.

[0040] In a possible implementation, the process of the source code information extraction module determining the information of the first cloud product and the information of the first cloud interface associated with the target application based on the client code specifically includes:

[0041] Identify the English name of the first cloud product according to the reference or comment in the client code;

[0042] Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface;

[0043] Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface;

[0044] At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required to call the first cloud interface are used as the information of the first cloud interface.

[0045] In a possible implementation, the process of the source code information extraction module determining the information of the first cloud product and the information of the first cloud interface associated with the target application based on the client code specifically includes:

[0046] Identify the English name of the first cloud product according to the reference or comment in the client code;

[0047] Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface;

[0048] Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface;

[0049] Obtaining full information corresponding to the first cloud platform; the full information corresponding to the first cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the first cloud platform;

[0050] Filtering the Chinese name of the first cloud product that matches the English name of the first cloud product from the full amount of information corresponding to the first cloud platform;

[0051] Filtering the Chinese name of the first cloud interface, the description information of the first cloud interface, and the parameter information of the first cloud interface that match the English name of the first cloud interface and the first request parameter required to call the first cloud interface from the full amount of information corresponding to the first cloud platform;

[0052] The Chinese name and English name of the first cloud product are used as the information of the first cloud product, and the Chinese name, English name, description information, and parameter information of the first cloud interface are used as the information of the first cloud interface.

[0053] In a possible implementation, the analog module is specifically used to:

[0054] Obtaining full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform;

[0055] Filtering information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform;

[0056] Information of the second cloud interface that matches the information of the first cloud interface is filtered out from all cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform.

[0057] In a possible implementation, the analog module is further used for:

[0058] Building a first inverted index based on detailed information of all cloud products of the second cloud platform;

[0059] Building a second inverted index based on detailed information of all cloud interfaces of the second cloud platform;

[0060] Filtering the information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform includes:

[0061] Segmenting the information of the first cloud product to obtain a plurality of first query words, searching the first inverted index by using the plurality of first query words to find information of a second cloud product that matches the information of the first cloud product;

[0062] The second cloud interface information matching the information of the first cloud interface is selected from all the cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform, including:

[0063] The information of the first cloud interface is segmented to obtain a plurality of second query words, and the second inverted index is searched by the plurality of second query words to find the information of the second cloud interface that matches the information of the first cloud interface.

[0064] In the present application, the client code of the target application is obtained; the client code is used for the target application to interact with the first cloud platform; based on the client code, it is possible to determine how the target application interacts with the first cloud platform, including which first cloud products (such as databases, storage services, computing instances, etc.) and which interfaces (APIs) it uses to perform these interactions, that is, to determine the information of the first cloud product and the first cloud interface associated with the target application.

[0065] Although the services provided by different cloud platforms may be different, many basic services (such as database, storage, computing, etc.) are similar in function. By searching the second cloud platform for information of the second cloud product and the second cloud interface that matches the information of the first cloud product and the first cloud interface, it can be ensured that the automatically generated client code corresponding to the second cloud platform can achieve the same or similar functions as the first cloud platform on the second cloud platform.

[0066] The above process can be automatically performed by electronic devices, reducing or eliminating the need for manual coding, improving efficiency, reducing human errors, and ensuring the accuracy of the generated client code. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0068] Figure 1 A flowchart of a cloud platform client code processing method provided in Example 1 of the present application;

[0069] Figure 2 A flowchart of a cloud platform client code processing method provided in Example 2 of the present application;

[0070] Figure 3 A flowchart of a cloud platform client code processing method provided in Example 3 of the present application;

[0071] Figure 4 A schematic diagram of an implementation scenario of a cloud platform client code processing method provided in this application;

[0072] Figure 5 A flowchart of a cloud platform client code processing method provided in Example 4 of the present application;

[0073] Figure 6 A schematic diagram of another implementation scenario of a cloud platform client code processing method provided in this application;

[0074] Figure 7 A schematic diagram of another implementation scenario of a cloud platform client code processing method provided in this application;

[0075] Figure 8 A schematic diagram of another implementation scenario of a cloud platform client code processing method provided in this application. DETAILED DESCRIPTION

[0076] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0077] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0078] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0079] The present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0080] Reference Figure 1 , which is a flow chart of a cloud platform client code processing method provided in Example 1 of the present application, such as Figure 1 As shown, the method may include but is not limited to the following steps:

[0081] Step S101, obtaining the client code of the target application; the client code is used for the target application to interact with the first cloud platform.

[0082] In this embodiment, the code of the target application may be analyzed, and the client code for interacting with the first cloud platform may be identified from the code of the target application.

[0083] The client code may encapsulate the logic of the first cloud product and the first cloud interface in the first cloud platform used by the target application.

[0084] Step S102: Based on the client code, determine the information of the first cloud product and the information of the first cloud interface associated with the target application.

[0085] The information of the first cloud product may be used to identify the first cloud product.

[0086] The information of the first cloud interface may be used to identify the first cloud interface and / or define specific operations, conditions, or limitations performed by the first cloud interface.

[0087] The first cloud product may be one of the cloud products in the first cloud platform, and the first cloud interface may be one of the cloud interfaces in the first cloud platform.

[0088] Step S103: searching the second cloud platform for information of a second cloud product and information of a second cloud interface that match the information of the first cloud product and the information of the first cloud interface.

[0089] The information of the second cloud product matches the information of the first cloud product, which can indicate that the second cloud product found in the second cloud platform provides the same or highly similar functions, service scope, or features as the first cloud product in the first cloud platform. This matching is based on a functional comparison at the cloud product level and is intended to ensure that the target application can continue to access similar services or resources during the conversion or migration process.

[0090] The information of the second cloud interface matches the information of the first cloud interface, which can indicate that the second cloud interface is found in the context of the second cloud product, and the operations, parameter lists, return values, and other characteristics provided by the second cloud interface are the same or highly similar to those of the first cloud interface. This cloud interface-level matching can ensure that the target application can interact with the second cloud platform in a similar manner.

[0091] Step S104: Generate client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface.

[0092] In this embodiment, the information of the second cloud product and the information of the second cloud interface can be sent to the ApiExplorer (API online auxiliary tool) provided by the second cloud platform. The ApiExplorer provided by the second cloud platform automatically generates client code that complies with the second cloud platform specifications based on the information of the second cloud product and the information of the second cloud interface.

[0093] Step S105: Connect the client code of the second cloud platform to the target application, so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.

[0094] In this embodiment, the client code of the target application is obtained; the client code is used for the target application to interact with the first cloud platform; based on the client code, it can be determined how the target application interacts with the first cloud platform, including which first cloud products (such as databases, storage services, computing instances, etc.) and which interfaces (APIs) it uses to perform these interactions, that is, the information of the first cloud product and the first cloud interface associated with the target application are determined.

[0095] Although the services provided by different cloud platforms may be different, many basic services (such as database, storage, computing, etc.) are similar in function. By searching the second cloud platform for information of the second cloud product and the second cloud interface that matches the information of the first cloud product and the first cloud interface, it can be ensured that the automatically generated client code corresponding to the second cloud platform can achieve the same or similar functions as the first cloud platform on the second cloud platform.

[0096] The above process can be automatically performed by electronic devices, reducing or eliminating the need for manual coding, improving efficiency, reducing human errors, and ensuring the accuracy of the generated client code.

[0097] As another optional embodiment of the present application, refer to Figure 2 , is a flow chart of a cloud platform client code processing method provided in Example 2 of the present application. This example is mainly an implementation method of step S102 in Example 1, such as Figure 2 As shown, step S102 may include but is not limited to the following steps:

[0098] Step S1021: Identify the English name of the first cloud product according to the reference or annotation in the client code.

[0099] In this embodiment, the references (such as import statements, package names, etc.) or comments in the client code usually contain information about the cloud product, including its English name. By searching for specific keywords, patterns, or known identifiers, the English name of the cloud product can be identified from the references or comments in the client code, and the identified English name of the cloud product is used as the English name of the first cloud product.

[0100] Step S1022: Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface.

[0101] After the English name of the first cloud product is identified, the code in the client code related to the first cloud product can be analyzed, such as the code block that executes the API call. In the code block that executes the API call, the specific statement that calls the cloud interface can be found, and the English name of the called cloud interface can be identified. The identified English name of the called cloud interface is used as the English name of the first cloud interface.

[0102] Step S1023: Analyze the code in the client code for calling the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface.

[0103] After determining the English name of the first cloud interface being called, the code in the client code that calls the first cloud interface can be analyzed, and the parameters of the API function or method used to initiate the request can be checked to determine the HTTP request method used (such as GET, POST, PUT, DELETE, etc.). At the same time, all request parameters required to call the first cloud interface, namely the first request parameters, can also be extracted. The first request parameters may exist in different forms, such as as function parameters, method parameters, request body, query string, or request headers.

[0104] Step S1024: The English name of the first cloud product is used as the information of the first cloud product, and the English name of the first cloud interface and the first request parameter required to call the first cloud interface are used as the information of the first cloud interface.

[0105] Correspondingly, the information of the second cloud product in the second cloud platform that matches the information of the first cloud product may include: the English name of the second cloud product.

[0106] The information of the second cloud interface in the second cloud platform that matches the information of the first cloud interface may include: the English name of the second cloud interface and the second request parameter required to call the second cloud interface.

[0107] In this embodiment, the English name of the second cloud product, the English name of the second cloud interface, and the second request parameter required for calling the second cloud interface can be sent to the ApiExplorer (API online auxiliary tool) provided by the second cloud platform. The ApiExplorer provided by the second cloud platform obtains the Chinese name of the second cloud product (such as cloud server ESC), the Chinese name of the second cloud interface (such as querying detailed information of one or more ESC instances), the description information of the second cloud interface (such as the purpose of the interface, input and output parameter description, etc.), and the parameter information of the second cloud interface (such as the name, type, required or not, description, etc. of the request parameter required to call the second cloud interface) from the full information corresponding to the second cloud platform based on the English name of the second cloud product, the English name of the second cloud interface, and the second request parameter required to call the second cloud interface. Based on the Chinese name and English name of the second cloud product and the Chinese name, English name description information, and parameter information of the second cloud interface, the client code that complies with the specifications of the second cloud platform is automatically generated.

[0108] As another optional embodiment of the present application, refer to Figure 3 , is a flow chart of a cloud platform client code processing method provided in Example 3 of the present application. This embodiment is mainly an implementation method of step S102 in Example 1, such as Figure 3As shown, step S102 may include but is not limited to the following steps:

[0109] Step S1025: Identify the English name of the first cloud product according to the reference or annotation in the client code.

[0110] Step S1026: Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface.

[0111] Step S1027, analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface.

[0112] The detailed process of steps S1025-S1027 can refer to the relevant introduction of steps S1021-S1023 in Example 2, which will not be repeated here.

[0113] Step S1028, obtain the full information corresponding to the first cloud platform; the full information corresponding to the first cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the first cloud platform.

[0114] In this embodiment, the full amount of information corresponding to the first cloud platform can be obtained from the ApiExplorer provided by the first cloud platform by accessing the ApiExplorer provided by the first cloud platform.

[0115] The detailed information of the cloud products of the first cloud platform may include but is not limited to: the Chinese name and the English name of the cloud products.

[0116] The detailed information of the cloud interface of the first cloud platform may include but is not limited to: the Chinese name of the cloud interface (e.g., querying the detailed information of one or more ESC instances), the description information of the cloud interface (e.g., the purpose of the interface, input and output parameter descriptions, etc.), and the parameter information of the cloud interface (e.g., the name, type, whether required, description, etc. of the request parameters required to call the cloud interface).

[0117] Step S1029: Filter the Chinese name of the first cloud product that matches the English name of the first cloud product from the full amount of information corresponding to the first cloud platform.

[0118] Step S10210: Filter the Chinese name of the first cloud interface, the description information of the first cloud interface, and the parameter information of the first cloud interface that match the English name of the first cloud interface and the first request parameter required to call the first cloud interface from the full information corresponding to the first cloud platform.

[0119] The description information of the first cloud interface may include but is not limited to the purpose of the first cloud interface, input and output parameter descriptions, etc.

[0120] The parameter information of the first cloud interface may include but is not limited to: the name, type, whether it is required, description, etc. of the request parameter required to call the first cloud interface.

[0121] Step S10211: Use the Chinese name and English name of the first cloud product as the information of the first cloud product, and use the Chinese name, English name, description information, and parameter information of the first cloud interface as the information of the first cloud interface.

[0122] Step S10211 is an implementation of step S1024 in Example 2.

[0123] Accordingly, the information of the second cloud product in the second cloud platform that matches the information of the first cloud product may include: the Chinese name and the English name of the second cloud product.

[0124] The information of the second cloud interface in the second cloud platform that matches the information of the first cloud interface may include: the Chinese name, English name, description information, and parameter information of the second cloud interface.

[0125] In this embodiment, the first cloud platform may have one or more cloud products. Accordingly, one cloud product and one cloud interface may be determined from the client code of the target application. Alternatively, multiple cloud products and multiple cloud interfaces may be determined from the client code of the target application. Figure 4 As shown, the client code of the target application may include: the English name of the first cloud product A, the English name of the first cloud interface under the first cloud product A, and the first request parameter required for calling the first cloud interface under the first cloud product A, as well as the English name of the first cloud product B, the English name of the first cloud interface under the first cloud product B, and the first request parameter required for calling the first cloud interface under the first cloud product B. The source code information extraction module may obtain the English name of the first cloud product A and the resource keywords (such as the English name and the first request parameter) of the first cloud interface under the first cloud product A from the client code of the target application. The source code information extraction module may also obtain the full information corresponding to the first cloud platform from the ApiExplorer tool provided by the first cloud platform, and determine the Chinese name of the first cloud product A and the resource key information (such as the Chinese name, English name, description information, and parameter information) of the first cloud interface under the first cloud product A from the full information corresponding to the first cloud platform.

[0126] The source code information extraction module can obtain the English name of the first cloud product B and the resource keywords of the first cloud interface under the first cloud product B (such as the English name and the first request parameter) from the client code of the target application. The source code information extraction module can also obtain the full information corresponding to the first cloud platform from the ApiExplorer tool provided by the first cloud platform, and determine the Chinese name of the first cloud product B and the resource key information of the first cloud interface under the first cloud product B (such as the Chinese name, English name, description information and parameter information of the first cloud interface) in the full information corresponding to the first cloud platform.

[0127] In this embodiment, by using the Chinese name and English name of the first cloud product as the information of the first cloud product, and the Chinese name, English name, description information, and parameter information of the first cloud interface as the information of the first cloud interface, the second cloud platform is searched for the information of the second cloud product and the second cloud interface that match the information of the first cloud product and the first cloud interface. The use of Chinese names and English names can increase the flexibility of the search, because different cloud platforms may use different languages ​​to name their products and interfaces. This multi-language support can ensure that the information of the second cloud product and the second cloud interface that match the information of the first cloud product and the first cloud interface found in the second cloud platform is more accurate.

[0128] Furthermore, the description information and parameter information of the first cloud interface provide detailed information about the function and usage of the interface, which helps to more accurately find interfaces with the same or similar functions in the second cloud platform.

[0129] As another optional embodiment of the present application, refer to Figure 5 , is a flow chart of a cloud platform client code processing method provided in Example 4 of the present application. This embodiment is mainly an implementation method of step S103 in Example 3, such as Figure 5 As shown, step S103 may include but is not limited to the following steps:

[0130] Step S1031, obtain the full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform.

[0131] In this embodiment, the full amount of information corresponding to the second cloud platform can be obtained from the ApiExplorer provided by the second cloud platform by accessing the ApiExplorer provided by the second cloud platform.

[0132] The detailed information of the cloud product of the second cloud platform may include but is not limited to: the Chinese name and English name of the cloud product.

[0133] The detailed information of the cloud interface of the second cloud platform may include but is not limited to: the Chinese name of the cloud interface, description information of the cloud interface (such as the purpose of the interface, input and output parameter descriptions, etc.), parameter information of the cloud interface (such as the name, type, whether required, description, etc. of the request parameters required to call the cloud interface).

[0134] Step S1032: Filter the information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform.

[0135] In this embodiment, the Chinese and English names (i.e., Chinese names and English names) of the second cloud products that match the Chinese and English names (i.e., Chinese names and English names) of the first cloud products can be screened from the full information corresponding to the second cloud platform.

[0136] Step S1033: Filter the second cloud interface information that matches the first cloud interface information from all the cloud interface information related to the second cloud product information in the full amount of information corresponding to the second cloud platform.

[0137] Step S1033 may include but is not limited to:

[0138] Step S10331, select the Chinese and English names of the second cloud interface (i.e., Chinese name and English name) that match the Chinese and English names (i.e., Chinese name and English name) of the first cloud interface from the Chinese and English names of all cloud interfaces related to the Chinese and English names of the second cloud product in the full information corresponding to the second cloud platform.

[0139] Step S10332: Filter the description information and parameter information of the second cloud interface that matches the description information and parameter information of the first cloud interface from all the description information and parameter information related to the Chinese and English names of the second cloud interface in the full information corresponding to the second cloud platform.

[0140] like Figure 6 As shown, cloud product analogy can be performed based on the Chinese and English names of the first cloud product, and cloud interface analogy can be performed based on the Chinese and English names of the first cloud interface, the first cloud interface description information and parameter information, to find the matching second cloud product and second cloud interface in the second cloud platform, and the SDK access source code corresponding to the matching second cloud product and second cloud interface can be filled based on the first cloud interface parameter information to obtain the client code corresponding to the second cloud platform. It should be noted that the client code corresponding to the second cloud platform does not only include the English name of the second cloud product, the English name of the second cloud interface, and the second request parameter. Figure 6 The English name of the second cloud product, the English name of the second cloud interface, and the second request parameter are shown to emphasize that the client code corresponding to the second cloud platform can use these elements to interact with the second cloud platform.

[0141] In this embodiment, by taking the Chinese name and English name of the first cloud product as the information of the first cloud product, and taking the Chinese name, English name, description information, and parameter information of the first cloud interface as the information of the first cloud interface, the full information corresponding to the second cloud platform is obtained, and the information of the second cloud product that matches the information of the first cloud product is screened from the full information corresponding to the second cloud platform, and the information of the second cloud interface that matches the information of the first cloud interface is screened from all the cloud interface information related to the information of the second cloud product in the full information corresponding to the second cloud platform, the cloud products and interfaces in the second cloud platform that fully match or have similar functions to the first cloud product and its interface can be accurately located. This precise matching can ensure seamless connection of functions during migration or integration, and reduce the risk of missing functions or performance degradation due to mismatch.

[0142] In this embodiment, the cloud platform client code processing method is described by the interaction between the target application, the source code information extraction module, the cloud platform module and the analogy module. For example, Figure 7As shown, the target application includes business logic code and client code corresponding to the first cloud platform. The source code information extraction module can determine the resource keywords of the first cloud platform (such as the English name of the first cloud product, the English name of the first cloud interface, and the first request parameter required to call the first cloud interface) based on the client code corresponding to the first cloud platform. The source code information extraction module can also obtain the full information corresponding to the first cloud platform from the ApiExplorer tool provided by the first cloud platform, and determine the key resource information of the first cloud platform (such as the Chinese name and English name of the first cloud product, the Chinese name, English name, description information, and parameter information of the first cloud interface) from the full information corresponding to the first cloud platform. The analog module can also obtain the full amount of information corresponding to the second cloud platform (i.e., the analog resource information of the second cloud platform) from the ApiExplorer tool provided by the second cloud platform or obtain the full amount of information corresponding to the third cloud platform from the ApiExplorer tool provided by the third cloud platform. The analog module can filter out the information of the second cloud product and the second cloud interface that matches the information of the first cloud product and the information of the first cloud interface (i.e., the analog resource information of the second cloud platform) by analogy with the key resource information of the first cloud platform and the analog resource information of the second cloud platform, and then generate the client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface, and connect the client code of the second cloud platform to the target application. Alternatively, by analogy with the key resource information of the first cloud platform and the analog resource information of the third cloud platform, filter out the information of the third cloud product and the third cloud interface that matches the information of the first cloud product and the information of the first cloud interface (i.e., the analog resource information of the third cloud platform), and then generate the client code corresponding to the third cloud platform based on the information of the third cloud product and the information of the third cloud interface, and connect the client code of the third cloud platform to the target application.

[0143] As another optional embodiment of the present application, a flow chart of a cloud platform client code processing method provided in Embodiment 5 of the present application is provided. This embodiment is mainly an implementation method of step S103 in Embodiment 3. Step S103 may include but is not limited to the following steps:

[0144] Step S1034: Obtain full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform;

[0145] Step S1035: construct a first inverted index based on the detailed information of all cloud products of the second cloud platform.

[0146] like Figure 8As shown, initialize a document with the detailed information of all cloud products on the second cloud platform, that is, each part of the information in the detailed information can be regarded as an independent document and assigned a unique document ID.

[0147] Taking the Chinese names in the detailed information of cloud products on the second cloud platform as an example, the process of initializing the document is described. For example, the second cloud platform has three cloud products, namely cloud products A, B, and C. The Chinese name of each cloud product can be regarded as an independent document and assigned a unique document ID. For example: The Chinese name of cloud product A is "cloud server", and this name is regarded as a document a with a document ID of a11. The Chinese name of cloud product B is "cloud storage service", and this name is regarded as a document b with a document ID of b11. The Chinese name of cloud product C is "cloud database service", and this name is regarded as a document c with a document ID of c11.

[0148] As Figure 8 shown, after initializing the document, tokenize the document and construct a first inverted index. For example, based on the Chinese names of the above cloud products, the first inverted index constructed can contain the following entries:

[0149] cloud -> [a11, b11, c11]

[0150] service -> [a11, b11, c11]

[0151] server -> [a11]

[0152] storage -> [b11]

[0153] database -> [c11]

[0154] The first inverted index allows users to quickly find the corresponding cloud product document ID by entering the Chinese name of the cloud product, and then obtain the detailed cloud product information.

[0155] Step S1036, construct a second inverted index based on the detailed information of all cloud interfaces on the second cloud platform.

[0156] As Figure 8 shown, initialize a document with the detailed information of all cloud interfaces on the second cloud platform, that is, each part of the information in the detailed information of the cloud interface can be regarded as an independent document and assigned a unique document ID.

[0157] Taking the Chinese name in the detailed information of the cloud interface in the second cloud platform as an example, the process of initializing the document is explained. For example, the second cloud platform is the Alibaba Cloud platform. There is a cloud product A with the Chinese name "Cloud Server" under the Alibaba Cloud platform. There are three cloud interfaces under Cloud Product A, namely A11, A12, and A13. The Chinese names of the three cloud interfaces are "Query the detailed information of one or more ECS instances (DescribeInstances)", "View the list of instances (DescribeInstances)", and "Create an ECS instance with a monthly subscription or pay-as-you-go fee (CreateInstance)". The Chinese name of each cloud interface can be regarded as a document and assigned a unique document ID. For example, the document ID corresponding to "Query the detailed information of one or more ECS instances (DescribeInstances)" is 1; the document ID corresponding to "View the list of instances (DescribeInstances)" is 2; the document ID corresponding to "Create an ECS instance with a monthly subscription or pay-as-you-go fee (CreateInstance)" is 3.

[0158] like Figure 8 As shown, after the document is initialized, the document is segmented and a second inverted index is constructed. For example, according to the Chinese name of the above cloud interface, the constructed second inverted index may contain the following entries:

[0159] or ->[3]

[0160] Information->[1]

[0161] ->[1]

[0162] Yearly Package->[3]

[0163] Example->[1,2,3]

[0164] describeinstances->[1,2]

[0165] createinstance->[3]

[0166] (->[1,2,3]

[0167] Monthly subscription->[3]

[0168] )->[1,2,3]

[0169] By quantity->[3]

[0170] Payment->[3]

[0171] View->[2]

[0172] Details->[1]

[0173] Query->[1]

[0174] Details->[1]

[0175] ecs->[1,3]

[0176] Create->[3]

[0177] or->[1]

[0178] One->[1,3]

[0179] List->[2]

[0180] Multiple->[1]

[0181] Step S1037: segment the information of the first cloud product to obtain multiple first query words, and search the first inverted index using the multiple first query words to find information of the second cloud product that matches the information of the first cloud product.

[0182] like Figure 8 As shown, multiple first query terms can be traversed, and each time a first query term is traversed, the first inverted index is queried to see whether there is a term matching the first query term, and each time a match is found, one point is accumulated to obtain a document score. The document is sorted by score to determine the matching result.

[0183] In this embodiment, taking the example of the first inverted index in step S1035 and the Chinese name of the first cloud product as an example, step S1037 is explained. For example, the Chinese name of the first cloud product is: "High-performance cloud server instance", and "High-performance cloud server instance" is segmented to obtain multiple first query terms, namely "high performance", "cloud server", and "instance".

[0184] Using "high performance" to query the first inverted index, no directly matching entries are found.

[0185] Use "cloud server" to query in the first inverted index, calculate the document score according to the number of matches, and the score results are: document ID: a11, score: 3; document ID: b11, score 2; document ID: c11, score 2. Therefore, cloud product A with document ID a11 is the second cloud product that matches the first cloud product, that is, the matching result.

[0186] Step S1038: segment the information of the first cloud interface to obtain multiple second query words, and search the second inverted index using the multiple second query words to find the information of the second cloud interface that matches the information of the first cloud interface.

[0187] like Figure 8 As shown, multiple second query terms can be traversed, and each time a second query term is traversed, the second inverted index is queried to see whether there is a word matching the second query term, and each time a match is found, one point is accumulated to obtain a document score. The document is sorted by score to determine the matching result.

[0188] In this embodiment, step S1038 is explained by taking the example of the second inverted index in step S1036. For example, the first cloud platform is the Tencent cloud platform, and the Chinese name of the first cloud interface is: "Query instance list DescribeInstances". "Query instance list DescribeInstances" is segmented to obtain multiple second query words. The second inverted index is searched through the multiple second query words, and scores are obtained according to the number of matches. The score results may include:

[0189] Document ID: 1, Score: 3, Document Content: Query detailed information of one or more ECS instances (DescribeInstances)

[0190] Document ID: 2, Score: 3, Document Content: View instance list (DescribeInstances)

[0191] Document ID: 3, Score: 1, Document Content: Create a pay-per-use ECS instance (CreateInstance)

[0192] According to the scoring results, the second cloud interfaces that match the first cloud interface are cloud interfaces A11 and A12, ie, the matching results.

[0193] Next, the cloud platform client code processing device provided by the present application is introduced. The cloud platform client code processing device introduced below and the cloud platform client code method introduced above can refer to each other.

[0194] The cloud platform client code processing device comprises:

[0195] A source code information extraction module is used to obtain the client code of the target application; the client code is used for the target application to interact with the first cloud platform, and based on the client code, determine the information of the first cloud product and the first cloud interface associated with the target application.

[0196] The analogy module is used to search in the second cloud platform for information of a second cloud product and information of a second cloud interface that matches the information of the first cloud product and the information of the first cloud interface.

[0197] A generation module is used to generate a client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface.

[0198] An access module is used to connect the client code of the second cloud platform to the target application so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.

[0199] The process of the source code information extraction module determining the information of the first cloud product and the information of the first cloud interface associated with the target application based on the client code may specifically include:

[0200] Identify the English name of the first cloud product according to the reference or comment in the client code;

[0201] Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface;

[0202] Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface;

[0203] At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required to call the first cloud interface are used as the information of the first cloud interface.

[0204] The process of the source code information extraction module determining the information of the first cloud product and the information of the first cloud interface associated with the target application based on the client code may specifically include:

[0205] Identify the English name of the first cloud product according to the reference or comment in the client code;

[0206] Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface;

[0207] Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface;

[0208] Obtaining full information corresponding to the first cloud platform; the full information corresponding to the first cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the first cloud platform;

[0209] Filtering the Chinese name of the first cloud product that matches the English name of the first cloud product from the full amount of information corresponding to the first cloud platform;

[0210] Filtering the Chinese name of the first cloud interface, the description information of the first cloud interface, and the parameter information of the first cloud interface that match the English name of the first cloud interface and the first request parameter required to call the first cloud interface from the full amount of information corresponding to the first cloud platform;

[0211] The Chinese name and English name of the first cloud product are used as the information of the first cloud product, and the Chinese name, English name, description information, and parameter information of the first cloud interface are used as the information of the first cloud interface.

[0212] The analog module can be specifically used for:

[0213] Obtaining full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform;

[0214] Filtering information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform;

[0215] Information of the second cloud interface that matches the information of the first cloud interface is filtered out from all cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform.

[0216] The analog module can also be used to:

[0217] Building a first inverted index based on detailed information of all cloud products of the second cloud platform;

[0218] Building a second inverted index based on detailed information of all cloud interfaces of the second cloud platform;

[0219] Filtering the information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform includes:

[0220] Segmenting the information of the first cloud product to obtain a plurality of first query words, searching the first inverted index by using the plurality of first query words to find information of a second cloud product that matches the information of the first cloud product;

[0221] The second cloud interface information matching the information of the first cloud interface is selected from all the cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform, including:

[0222] The information of the first cloud interface is segmented to obtain a plurality of second query words, and the second inverted index is searched by the plurality of second query words to find the information of the second cloud interface that matches the information of the first cloud interface.

[0223] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0224] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0225] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0226] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A cloud platform client code processing method, characterized in that: include: Get the client code of the target application; The client code is used for the target application to interact with the first cloud platform; Based on the client code, determine information of a first cloud product and information of a first cloud interface associated with the target application; Searching the second cloud platform for information of a second cloud product and information of a second cloud interface that matches the information of the first cloud product and the information of the first cloud interface; Based on the information of the second cloud product and the information of the second cloud interface, generating a client code corresponding to the second cloud platform; The client code of the second cloud platform is connected to the target application so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.

2. The method according to claim 1, characterized in that Determining information of a first cloud product and information of a first cloud interface associated with the target application based on the client code includes: Identify the English name of the first cloud product according to the reference or comment in the client code; Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface; Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface; At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required to call the first cloud interface are used as the information of the first cloud interface.

3. The method according to claim 2, characterized in that The method further comprises: Obtaining full information corresponding to the first cloud platform; the full information corresponding to the first cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the first cloud platform; Filtering the Chinese name of the first cloud product that matches the English name of the first cloud product from the full amount of information corresponding to the first cloud platform; Filtering the Chinese name of the first cloud interface, the description information of the first cloud interface, and the parameter information of the first cloud interface that match the English name of the first cloud interface and the first request parameter required to call the first cloud interface from the full amount of information corresponding to the first cloud platform; At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required for calling the first cloud interface are used as the information of the first cloud interface, including: The Chinese name and English name of the first cloud product are used as the information of the first cloud product, and the Chinese name, English name, description information, and parameter information of the first cloud interface are used as the information of the first cloud interface.

4. The method according to claim 3, characterized in that Searching the second cloud platform for information of a second cloud product and information of a second cloud interface that matches the information of the first cloud product and the information of the first cloud interface includes: Obtaining full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform; Filtering information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform; Information of the second cloud interface that matches the information of the first cloud interface is filtered out from all cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform.

5. The method according to claim 4, characterized in that The method further comprises: Building a first inverted index based on detailed information of all cloud products of the second cloud platform; Building a second inverted index based on detailed information of all cloud interfaces of the second cloud platform; Filtering the information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform includes: Segmenting the information of the first cloud product to obtain a plurality of first query words, searching the first inverted index by using the plurality of first query words to find information of a second cloud product that matches the information of the first cloud product; The second cloud interface information matching the information of the first cloud interface is selected from all the cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform, including: The information of the first cloud interface is segmented to obtain a plurality of second query words, and the second inverted index is searched by the plurality of second query words to find the information of the second cloud interface that matches the information of the first cloud interface.

6. A cloud platform client code processing device, characterized in that: include: Source code information extraction module, used to obtain the client code of the target application; The client code is used for the target application to interact with the first cloud platform, and based on the client code, determines the information of the first cloud product and the information of the first cloud interface associated with the target application; An analogy module, configured to search in a second cloud platform for information of a second cloud product and information of a second cloud interface that matches the information of the first cloud product and the information of the first cloud interface; A generation module, configured to generate a client code corresponding to the second cloud platform based on the information of the second cloud product and the information of the second cloud interface; An access module is used to connect the client code of the second cloud platform to the target application so that the target application interacts with the second cloud platform based on the client code corresponding to the second cloud platform.

7. The cloud platform client code processing device according to claim 6, characterized in that: The process of the source code information extraction module determining the information of the first cloud product and the information of the first cloud interface associated with the target application based on the client code specifically includes: Identify the English name of the first cloud product according to the reference or comment in the client code; Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface; Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface; At least the English name of the first cloud product is used as the information of the first cloud product, and at least the English name of the first cloud interface and the first request parameter required to call the first cloud interface are used as the information of the first cloud interface.

8. The cloud platform client code processing device according to claim 7, characterized in that: The process of the source code information extraction module determining the information of the first cloud product and the information of the first cloud interface associated with the target application based on the client code specifically includes: Identify the English name of the first cloud product according to the reference or comment in the client code; Analyze the code related to the first cloud product in the client code to identify the English name of the called first cloud interface; Analyze the code in the client code that calls the first cloud interface, determine the HTTP request method used when calling the first cloud interface, and extract the first request parameter required for calling the first cloud interface; Obtaining full information corresponding to the first cloud platform; the full information corresponding to the first cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the first cloud platform; Filtering the Chinese name of the first cloud product that matches the English name of the first cloud product from the full amount of information corresponding to the first cloud platform; Filtering the Chinese name of the first cloud interface, the description information of the first cloud interface, and the parameter information of the first cloud interface that match the English name of the first cloud interface and the first request parameter required to call the first cloud interface from the full amount of information corresponding to the first cloud platform; The Chinese name and English name of the first cloud product are used as the information of the first cloud product, and the Chinese name, English name, description information, and parameter information of the first cloud interface are used as the information of the first cloud interface.

9. The cloud platform client code processing device according to claim 8, characterized in that: The analog module is specifically used for: Obtaining full information corresponding to the second cloud platform; the full information corresponding to the second cloud platform includes: detailed information of all cloud products and detailed information of all cloud interfaces of the second cloud platform; Filtering information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform; Information of the second cloud interface that matches the information of the first cloud interface is filtered out from all cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform.

10. The cloud platform client code processing device according to claim 9, characterized in that: The analog module is also used for: Building a first inverted index based on detailed information of all cloud products of the second cloud platform; Building a second inverted index based on detailed information of all cloud interfaces of the second cloud platform; Filtering the information of the second cloud product that matches the information of the first cloud product from the full amount of information corresponding to the second cloud platform includes: Segmenting the information of the first cloud product to obtain a plurality of first query words, searching the first inverted index by using the plurality of first query words to find information of a second cloud product that matches the information of the first cloud product; The second cloud interface information matching the information of the first cloud interface is selected from all the cloud interface information related to the information of the second cloud product in the full amount of information corresponding to the second cloud platform, including: The information of the first cloud interface is segmented to obtain a plurality of second query words, and the second inverted index is searched by the plurality of second query words to find the information of the second cloud interface that matches the information of the first cloud interface.