azure_sdk 0.25.4 → 0.25.5
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.
- checksums.yaml +4 -4
- data/lib/azure_sdk/version.rb +1 -1
- data/lib/latest/latest_profile_client.rb +10 -1
- data/lib/latest/modules/formrecognizer_profile_module.rb +109 -0
- metadata +4 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 2017068e910ac988a7403b73cf2eb4ba2066c750
         | 
| 4 | 
            +
              data.tar.gz: 08fde618d181145dea617bee561a05c5e9375243
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a3a19ece72f00c1a46e3d35f687918db479abb0a8e975fbc3e4fa0aaab80f4ce0045973f242575862bdfefdb24628473562ad78d66bc1fe85317ddfcafb7c83a
         | 
| 7 | 
            +
              data.tar.gz: 04cc151ea1789e5d279768504787630fbe3b86c1deae9a23e948c2d8d21f21558bd705f708cc7d7ae3ba2da735c89116b389cdd57d623f421b1a59215184c094
         | 
    
        data/lib/azure_sdk/version.rb
    CHANGED
    
    
| @@ -93,6 +93,7 @@ require 'latest/modules/customvisiontraining_profile_module' | |
| 93 93 | 
             
            require 'latest/modules/customvisionprediction_profile_module'
         | 
| 94 94 | 
             
            require 'latest/modules/entitysearch_profile_module'
         | 
| 95 95 | 
             
            require 'latest/modules/face_profile_module'
         | 
| 96 | 
            +
            require 'latest/modules/formrecognizer_profile_module'
         | 
| 96 97 | 
             
            require 'latest/modules/imagesearch_profile_module'
         | 
| 97 98 | 
             
            require 'latest/modules/localsearch_profile_module'
         | 
| 98 99 | 
             
            require 'latest/modules/luisruntime_profile_module'
         | 
| @@ -112,7 +113,7 @@ module Azure::Profiles::Latest | |
| 112 113 | 
             
              class Client
         | 
| 113 114 | 
             
                include MsRestAzure::Common::Configurable
         | 
| 114 115 |  | 
| 115 | 
            -
                attr_reader  :advisor, :analysis_services, :api_management, :authorization, :automation, :batch, :billing, :cdn, :cognitive_services, :commerce, :compute, :consumption, :container_instance, :container_registry, :container_service, :customer_insights, :data_lake_analytics, :data_lake_store, :data_migration, :dev_spaces, :dev_test_labs, :dns, :edge_gateway, :event_grid, :event_hub, :features, :hanaonazure, :hdinsight, :graph_rbac, :iot_central, :iot_hub, :key_vault, :kusto, :labservices, :links, :locks, :logic, :machine_learning, :machine_learning_services, :managed_applications, :maria_db, :marketplace_ordering, :media_services, :mixed_reality, :monitor, :managed_service_identity, :net_app, :network, :notification_hubs, :operational_insights, :policy, :policy_insights, :postgresql, :power_bi_embedded, :private_dns, :recovery_services, :recovery_services_backup, :recovery_services_site_recovery, :redis, :relay, :reservations, :resource_graph, :resources, :resources_management, :scheduler, :search, :security, :serialconsole, :service_bus, :service_fabric, :signalr, :sql, :sqlvirtualmachine, :stor_simple8000_series, :storage, :storage_sync, :stream_analytics, :subscriptions, :traffic_manager, :web, :anomaly_detector, :autosuggest, :customimagesearch, :computer_vision, :content_moderator, :custom_search, :customvisiontraining, :customvisionprediction, :entity_search, :face, :image_search, :local_search, :luis_runtime, :luis_authoring, :news_search, :qnamaker, :spell_check, :text_analytics, :video_search, :web_search, :visual_search
         | 
| 116 | 
            +
                attr_reader  :advisor, :analysis_services, :api_management, :authorization, :automation, :batch, :billing, :cdn, :cognitive_services, :commerce, :compute, :consumption, :container_instance, :container_registry, :container_service, :customer_insights, :data_lake_analytics, :data_lake_store, :data_migration, :dev_spaces, :dev_test_labs, :dns, :edge_gateway, :event_grid, :event_hub, :features, :hanaonazure, :hdinsight, :graph_rbac, :iot_central, :iot_hub, :key_vault, :kusto, :labservices, :links, :locks, :logic, :machine_learning, :machine_learning_services, :managed_applications, :maria_db, :marketplace_ordering, :media_services, :mixed_reality, :monitor, :managed_service_identity, :net_app, :network, :notification_hubs, :operational_insights, :policy, :policy_insights, :postgresql, :power_bi_embedded, :private_dns, :recovery_services, :recovery_services_backup, :recovery_services_site_recovery, :redis, :relay, :reservations, :resource_graph, :resources, :resources_management, :scheduler, :search, :security, :serialconsole, :service_bus, :service_fabric, :signalr, :sql, :sqlvirtualmachine, :stor_simple8000_series, :storage, :storage_sync, :stream_analytics, :subscriptions, :traffic_manager, :web, :anomaly_detector, :autosuggest, :customimagesearch, :computer_vision, :content_moderator, :custom_search, :customvisiontraining, :customvisionprediction, :entity_search, :face, :form_recognizer, :image_search, :local_search, :luis_runtime, :luis_authoring, :news_search, :qnamaker, :spell_check, :text_analytics, :video_search, :web_search, :visual_search
         | 
| 116 117 |  | 
| 117 118 | 
             
                #
         | 
| 118 119 | 
             
                # Initializes a new instance of the Client class.
         | 
| @@ -234,6 +235,7 @@ module Azure::Profiles::Latest | |
| 234 235 | 
             
                  @customvisionprediction = CustomvisionpredictionAdapter.new(self, base_url, sdk_options)
         | 
| 235 236 | 
             
                  @entity_search = EntitySearchAdapter.new(self, base_url, sdk_options)
         | 
| 236 237 | 
             
                  @face = FaceAdapter.new(self, base_url, sdk_options)
         | 
| 238 | 
            +
                  @form_recognizer = FormRecognizerAdapter.new(self, base_url, sdk_options)
         | 
| 237 239 | 
             
                  @image_search = ImageSearchAdapter.new(self, base_url, sdk_options)
         | 
| 238 240 | 
             
                  @local_search = LocalSearchAdapter.new(self, base_url, sdk_options)
         | 
| 239 241 | 
             
                  @luis_runtime = LuisRuntimeAdapter.new(self, base_url, sdk_options)
         | 
| @@ -959,6 +961,13 @@ module Azure::Profiles::Latest | |
| 959 961 | 
             
                  end
         | 
| 960 962 | 
             
                end
         | 
| 961 963 |  | 
| 964 | 
            +
                class FormRecognizerAdapter < Azure::Profiles::Latest::FormRecognizer::FormRecognizerDataClass
         | 
| 965 | 
            +
             | 
| 966 | 
            +
                  def initialize(context, base_url, options)
         | 
| 967 | 
            +
                    super(context)
         | 
| 968 | 
            +
                  end
         | 
| 969 | 
            +
                end
         | 
| 970 | 
            +
             | 
| 962 971 | 
             
                class ImageSearchAdapter < Azure::Profiles::Latest::ImageSearch::ImageSearchDataClass
         | 
| 963 972 |  | 
| 964 973 | 
             
                  def initialize(context, base_url, options)
         | 
| @@ -0,0 +1,109 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
            # Copyright (c) Microsoft Corporation. All rights reserved.
         | 
| 3 | 
            +
            # Licensed under the MIT License. See License.txt in the project root for license information.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require 'azure_cognitiveservices_formrecognizer'
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            module Azure::Profiles::Latest
         | 
| 8 | 
            +
              module FormRecognizer
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                module Models
         | 
| 11 | 
            +
                  ErrorInformation = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ErrorInformation
         | 
| 12 | 
            +
                  TrainRequest = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::TrainRequest
         | 
| 13 | 
            +
                  ErrorResponse = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ErrorResponse
         | 
| 14 | 
            +
                  FormOperationError = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::FormOperationError
         | 
| 15 | 
            +
                  ExtractedToken = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedToken
         | 
| 16 | 
            +
                  KeysResult = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::KeysResult
         | 
| 17 | 
            +
                  ExtractedKeyValuePair = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedKeyValuePair
         | 
| 18 | 
            +
                  ModelsResult = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ModelsResult
         | 
| 19 | 
            +
                  ExtractedTableColumn = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedTableColumn
         | 
| 20 | 
            +
                  FormDocumentReport = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::FormDocumentReport
         | 
| 21 | 
            +
                  ExtractedTable = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedTable
         | 
| 22 | 
            +
                  ModelResult = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ModelResult
         | 
| 23 | 
            +
                  ExtractedPage = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedPage
         | 
| 24 | 
            +
                  TrainResult = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::TrainResult
         | 
| 25 | 
            +
                  AnalyzeResult = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::AnalyzeResult
         | 
| 26 | 
            +
                  InnerError = Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::InnerError
         | 
| 27 | 
            +
                end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                class FormRecognizerDataClass
         | 
| 30 | 
            +
                  attr_reader :configurable, :base_url, :options, :model_classes
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                  def initialize(configurable, base_url=nil, options=nil)
         | 
| 33 | 
            +
                    @configurable, @base_url, @options = configurable, base_url, options
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                    @client_0 = Azure::CognitiveServices::FormRecognizer::V1_0_preview::FormRecognizerClient.new(configurable.credentials, options)
         | 
| 36 | 
            +
                    if(@client_0.respond_to?(:subscription_id))
         | 
| 37 | 
            +
                      @client_0.subscription_id = configurable.subscription_id
         | 
| 38 | 
            +
                    end
         | 
| 39 | 
            +
                    add_telemetry(@client_0)
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                    @model_classes = ModelClasses.new
         | 
| 42 | 
            +
                  end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                  def add_telemetry(client)
         | 
| 45 | 
            +
                    profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/FormRecognizer"
         | 
| 46 | 
            +
                    client.add_user_agent_information(profile_information)
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                  def method_missing(method, *args)
         | 
| 50 | 
            +
                    if @client_0.respond_to?method
         | 
| 51 | 
            +
                      @client_0.send(method, *args)
         | 
| 52 | 
            +
                    else
         | 
| 53 | 
            +
                      super
         | 
| 54 | 
            +
                    end
         | 
| 55 | 
            +
                  end
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                  class ModelClasses
         | 
| 58 | 
            +
                    def error_information
         | 
| 59 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ErrorInformation
         | 
| 60 | 
            +
                    end
         | 
| 61 | 
            +
                    def train_request
         | 
| 62 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::TrainRequest
         | 
| 63 | 
            +
                    end
         | 
| 64 | 
            +
                    def error_response
         | 
| 65 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ErrorResponse
         | 
| 66 | 
            +
                    end
         | 
| 67 | 
            +
                    def form_operation_error
         | 
| 68 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::FormOperationError
         | 
| 69 | 
            +
                    end
         | 
| 70 | 
            +
                    def extracted_token
         | 
| 71 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedToken
         | 
| 72 | 
            +
                    end
         | 
| 73 | 
            +
                    def keys_result
         | 
| 74 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::KeysResult
         | 
| 75 | 
            +
                    end
         | 
| 76 | 
            +
                    def extracted_key_value_pair
         | 
| 77 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedKeyValuePair
         | 
| 78 | 
            +
                    end
         | 
| 79 | 
            +
                    def models_result
         | 
| 80 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ModelsResult
         | 
| 81 | 
            +
                    end
         | 
| 82 | 
            +
                    def extracted_table_column
         | 
| 83 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedTableColumn
         | 
| 84 | 
            +
                    end
         | 
| 85 | 
            +
                    def form_document_report
         | 
| 86 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::FormDocumentReport
         | 
| 87 | 
            +
                    end
         | 
| 88 | 
            +
                    def extracted_table
         | 
| 89 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedTable
         | 
| 90 | 
            +
                    end
         | 
| 91 | 
            +
                    def model_result
         | 
| 92 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ModelResult
         | 
| 93 | 
            +
                    end
         | 
| 94 | 
            +
                    def extracted_page
         | 
| 95 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::ExtractedPage
         | 
| 96 | 
            +
                    end
         | 
| 97 | 
            +
                    def train_result
         | 
| 98 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::TrainResult
         | 
| 99 | 
            +
                    end
         | 
| 100 | 
            +
                    def analyze_result
         | 
| 101 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::AnalyzeResult
         | 
| 102 | 
            +
                    end
         | 
| 103 | 
            +
                    def inner_error
         | 
| 104 | 
            +
                      Azure::CognitiveServices::FormRecognizer::V1_0_preview::Models::InnerError
         | 
| 105 | 
            +
                    end
         | 
| 106 | 
            +
                  end
         | 
| 107 | 
            +
                end
         | 
| 108 | 
            +
              end
         | 
| 109 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: azure_sdk
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.25. | 
| 4 | 
            +
              version: 0.25.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Microsoft Corporation
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2019-05- | 
| 11 | 
            +
            date: 2019-05-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -1177,6 +1177,7 @@ files: | |
| 1177 1177 | 
             
            - lib/latest/modules/eventhub_profile_module.rb
         | 
| 1178 1178 | 
             
            - lib/latest/modules/face_profile_module.rb
         | 
| 1179 1179 | 
             
            - lib/latest/modules/features_profile_module.rb
         | 
| 1180 | 
            +
            - lib/latest/modules/formrecognizer_profile_module.rb
         | 
| 1180 1181 | 
             
            - lib/latest/modules/graphrbac_profile_module.rb
         | 
| 1181 1182 | 
             
            - lib/latest/modules/hanaonazure_profile_module.rb
         | 
| 1182 1183 | 
             
            - lib/latest/modules/hdinsight_profile_module.rb
         | 
| @@ -1291,7 +1292,7 @@ metadata: | |
| 1291 1292 | 
             
              changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
         | 
| 1292 1293 | 
             
              documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
         | 
| 1293 1294 | 
             
              homepage_uri: https://aka.ms/azure-sdk-for-ruby
         | 
| 1294 | 
            -
              source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ARM-0.25. | 
| 1295 | 
            +
              source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ARM-0.25.5
         | 
| 1295 1296 | 
             
              wiki_uri: https://github.com/Azure/azure-sdk-for-ruby/wiki
         | 
| 1296 1297 | 
             
            post_install_message: 
         | 
| 1297 1298 | 
             
            rdoc_options: []
         |