azure_sdk 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- 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/qnamaker_profile_module.rb +181 -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: af344719829cc3ed20faaf013879cee657b4b1b0
|
4
|
+
data.tar.gz: 335bc14f8d66678e3b2e71a25517666fbda36c95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18c2caafe6efc64e832d24c02fe7231a6fcb7f430c5a05102071b45b803cfff6a74a4310c9299f8d815d9bc00db4e6c2ef9b4b5a5ac66d68c56bb63b3bf1cf82
|
7
|
+
data.tar.gz: 2cbf3f56bfa6e7241f9871736548b9f9d77313ea9a95aee1f6578d735fcd64214dc63f83cda25c99fab89d375836212335db301a660c41555210c0b2e30957ee
|
data/lib/azure_sdk/version.rb
CHANGED
@@ -75,6 +75,7 @@ require 'latest/modules/entitysearch_profile_module'
|
|
75
75
|
require 'latest/modules/face_profile_module'
|
76
76
|
require 'latest/modules/imagesearch_profile_module'
|
77
77
|
require 'latest/modules/newssearch_profile_module'
|
78
|
+
require 'latest/modules/qnamaker_profile_module'
|
78
79
|
require 'latest/modules/spellcheck_profile_module'
|
79
80
|
require 'latest/modules/textanalytics_profile_module'
|
80
81
|
require 'latest/modules/videosearch_profile_module'
|
@@ -88,7 +89,7 @@ module Azure::Profiles::Latest
|
|
88
89
|
class Client
|
89
90
|
include MsRestAzure::Common::Configurable
|
90
91
|
|
91
|
-
attr_reader :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, :event_grid, :event_hub, :features, :graph_rbac, :iot_central, :iot_hub, :key_vault, :kusto, :links, :locks, :logic, :machine_learning, :managed_applications, :marketplace_ordering, :media_services, :monitor, :managed_service_identity, :network, :notification_hubs, :operational_insights, :policy, :policy_insights, :power_bi_embedded, :recovery_services, :recovery_services_backup, :recovery_services_site_recovery, :redis, :relay, :resources, :resources_management, :scheduler, :search, :security, :service_bus, :service_fabric, :signalr, :sql, :sqlvirtualmachine, :stor_simple8000_series, :storage, :stream_analytics, :subscriptions, :traffic_manager, :web, :computer_vision, :content_moderator, :custom_search, :entity_search, :face, :image_search, :news_search, :spell_check, :text_analytics, :video_search, :web_search, :visual_search
|
92
|
+
attr_reader :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, :event_grid, :event_hub, :features, :graph_rbac, :iot_central, :iot_hub, :key_vault, :kusto, :links, :locks, :logic, :machine_learning, :managed_applications, :marketplace_ordering, :media_services, :monitor, :managed_service_identity, :network, :notification_hubs, :operational_insights, :policy, :policy_insights, :power_bi_embedded, :recovery_services, :recovery_services_backup, :recovery_services_site_recovery, :redis, :relay, :resources, :resources_management, :scheduler, :search, :security, :service_bus, :service_fabric, :signalr, :sql, :sqlvirtualmachine, :stor_simple8000_series, :storage, :stream_analytics, :subscriptions, :traffic_manager, :web, :computer_vision, :content_moderator, :custom_search, :entity_search, :face, :image_search, :news_search, :qnamaker, :spell_check, :text_analytics, :video_search, :web_search, :visual_search
|
92
93
|
|
93
94
|
#
|
94
95
|
# Initializes a new instance of the Client class.
|
@@ -192,6 +193,7 @@ module Azure::Profiles::Latest
|
|
192
193
|
@face = FaceAdapter.new(self, base_url, sdk_options)
|
193
194
|
@image_search = ImageSearchAdapter.new(self, base_url, sdk_options)
|
194
195
|
@news_search = NewsSearchAdapter.new(self, base_url, sdk_options)
|
196
|
+
@qnamaker = QnamakerAdapter.new(self, base_url, sdk_options)
|
195
197
|
@spell_check = SpellCheckAdapter.new(self, base_url, sdk_options)
|
196
198
|
@text_analytics = TextAnalyticsAdapter.new(self, base_url, sdk_options)
|
197
199
|
@video_search = VideoSearchAdapter.new(self, base_url, sdk_options)
|
@@ -769,6 +771,13 @@ module Azure::Profiles::Latest
|
|
769
771
|
end
|
770
772
|
end
|
771
773
|
|
774
|
+
class QnamakerAdapter < Azure::Profiles::Latest::Qnamaker::QnamakerDataClass
|
775
|
+
|
776
|
+
def initialize(context, base_url, options)
|
777
|
+
super(context)
|
778
|
+
end
|
779
|
+
end
|
780
|
+
|
772
781
|
class SpellCheckAdapter < Azure::Profiles::Latest::SpellCheck::SpellCheckDataClass
|
773
782
|
|
774
783
|
def initialize(context, base_url, options)
|
@@ -0,0 +1,181 @@
|
|
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_qnamaker'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module Qnamaker
|
9
|
+
EndpointKeys = Azure::CognitiveServices::Qnamaker::V4_0::EndpointKeys
|
10
|
+
Alterations = Azure::CognitiveServices::Qnamaker::V4_0::Alterations
|
11
|
+
Knowledgebase = Azure::CognitiveServices::Qnamaker::V4_0::Knowledgebase
|
12
|
+
Operations = Azure::CognitiveServices::Qnamaker::V4_0::Operations
|
13
|
+
|
14
|
+
module Models
|
15
|
+
CreateKbInputDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::CreateKbInputDTO
|
16
|
+
DeleteKbContentsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::DeleteKbContentsDTO
|
17
|
+
QnADTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::QnADTO
|
18
|
+
EndpointKeysDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::EndpointKeysDTO
|
19
|
+
FileDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::FileDTO
|
20
|
+
WordAlterationsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::WordAlterationsDTO
|
21
|
+
KnowledgebasesDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebasesDTO
|
22
|
+
UpdateQnaDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTO
|
23
|
+
QnADocumentsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::QnADocumentsDTO
|
24
|
+
UpdateQuestionsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQuestionsDTO
|
25
|
+
CreateKbDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::CreateKbDTO
|
26
|
+
UpdateMetadataDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateMetadataDTO
|
27
|
+
ReplaceKbDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::ReplaceKbDTO
|
28
|
+
UpdateKbOperationDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTO
|
29
|
+
KnowledgebaseDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseDTO
|
30
|
+
UpdateKbContentsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbContentsDTO
|
31
|
+
ErrorResponse = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponse
|
32
|
+
InnerErrorModel = Azure::CognitiveServices::Qnamaker::V4_0::Models::InnerErrorModel
|
33
|
+
MetadataDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::MetadataDTO
|
34
|
+
Error = Azure::CognitiveServices::Qnamaker::V4_0::Models::Error
|
35
|
+
AlterationsDTO = Azure::CognitiveServices::Qnamaker::V4_0::Models::AlterationsDTO
|
36
|
+
Operation = Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation
|
37
|
+
UpdateKbOperationDTOAdd = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOAdd
|
38
|
+
UpdateKbOperationDTODelete = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTODelete
|
39
|
+
UpdateKbOperationDTOUpdate = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOUpdate
|
40
|
+
UpdateQnaDTOQuestions = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOQuestions
|
41
|
+
UpdateQnaDTOMetadata = Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOMetadata
|
42
|
+
ErrorResponseError = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponseError
|
43
|
+
KnowledgebaseEnvironmentType = Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseEnvironmentType
|
44
|
+
ErrorCodeType = Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorCodeType
|
45
|
+
OperationStateType = Azure::CognitiveServices::Qnamaker::V4_0::Models::OperationStateType
|
46
|
+
EnvironmentType = Azure::CognitiveServices::Qnamaker::V4_0::Models::EnvironmentType
|
47
|
+
end
|
48
|
+
|
49
|
+
class QnamakerDataClass
|
50
|
+
attr_reader :endpoint_keys, :alterations, :knowledgebase, :operations, :configurable, :base_url, :options, :model_classes
|
51
|
+
|
52
|
+
def initialize(configurable, base_url=nil, options=nil)
|
53
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
54
|
+
|
55
|
+
@client_0 = Azure::CognitiveServices::Qnamaker::V4_0::QnamakerClient.new(configurable.credentials, options)
|
56
|
+
if(@client_0.respond_to?(:subscription_id))
|
57
|
+
@client_0.subscription_id = configurable.subscription_id
|
58
|
+
end
|
59
|
+
add_telemetry(@client_0)
|
60
|
+
@endpoint_keys = @client_0.endpoint_keys
|
61
|
+
@alterations = @client_0.alterations
|
62
|
+
@knowledgebase = @client_0.knowledgebase
|
63
|
+
@operations = @client_0.operations
|
64
|
+
|
65
|
+
@model_classes = ModelClasses.new
|
66
|
+
end
|
67
|
+
|
68
|
+
def add_telemetry(client)
|
69
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Qnamaker"
|
70
|
+
client.add_user_agent_information(profile_information)
|
71
|
+
end
|
72
|
+
|
73
|
+
def method_missing(method, *args)
|
74
|
+
if @client_0.respond_to?method
|
75
|
+
@client_0.send(method, *args)
|
76
|
+
else
|
77
|
+
super
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
class ModelClasses
|
82
|
+
def create_kb_input_dto
|
83
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::CreateKbInputDTO
|
84
|
+
end
|
85
|
+
def delete_kb_contents_dto
|
86
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::DeleteKbContentsDTO
|
87
|
+
end
|
88
|
+
def qn_adto
|
89
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::QnADTO
|
90
|
+
end
|
91
|
+
def endpoint_keys_dto
|
92
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::EndpointKeysDTO
|
93
|
+
end
|
94
|
+
def file_dto
|
95
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::FileDTO
|
96
|
+
end
|
97
|
+
def word_alterations_dto
|
98
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::WordAlterationsDTO
|
99
|
+
end
|
100
|
+
def knowledgebases_dto
|
101
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebasesDTO
|
102
|
+
end
|
103
|
+
def update_qna_dto
|
104
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTO
|
105
|
+
end
|
106
|
+
def qn_adocuments_dto
|
107
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::QnADocumentsDTO
|
108
|
+
end
|
109
|
+
def update_questions_dto
|
110
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQuestionsDTO
|
111
|
+
end
|
112
|
+
def create_kb_dto
|
113
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::CreateKbDTO
|
114
|
+
end
|
115
|
+
def update_metadata_dto
|
116
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateMetadataDTO
|
117
|
+
end
|
118
|
+
def replace_kb_dto
|
119
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::ReplaceKbDTO
|
120
|
+
end
|
121
|
+
def update_kb_operation_dto
|
122
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTO
|
123
|
+
end
|
124
|
+
def knowledgebase_dto
|
125
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseDTO
|
126
|
+
end
|
127
|
+
def update_kb_contents_dto
|
128
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbContentsDTO
|
129
|
+
end
|
130
|
+
def error_response
|
131
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponse
|
132
|
+
end
|
133
|
+
def inner_error_model
|
134
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::InnerErrorModel
|
135
|
+
end
|
136
|
+
def metadata_dto
|
137
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::MetadataDTO
|
138
|
+
end
|
139
|
+
def error
|
140
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::Error
|
141
|
+
end
|
142
|
+
def alterations_dto
|
143
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::AlterationsDTO
|
144
|
+
end
|
145
|
+
def operation
|
146
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::Operation
|
147
|
+
end
|
148
|
+
def update_kb_operation_dtoadd
|
149
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOAdd
|
150
|
+
end
|
151
|
+
def update_kb_operation_dtodelete
|
152
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTODelete
|
153
|
+
end
|
154
|
+
def update_kb_operation_dtoupdate
|
155
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateKbOperationDTOUpdate
|
156
|
+
end
|
157
|
+
def update_qna_dtoquestions
|
158
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOQuestions
|
159
|
+
end
|
160
|
+
def update_qna_dtometadata
|
161
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::UpdateQnaDTOMetadata
|
162
|
+
end
|
163
|
+
def error_response_error
|
164
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorResponseError
|
165
|
+
end
|
166
|
+
def knowledgebase_environment_type
|
167
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::KnowledgebaseEnvironmentType
|
168
|
+
end
|
169
|
+
def error_code_type
|
170
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::ErrorCodeType
|
171
|
+
end
|
172
|
+
def operation_state_type
|
173
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::OperationStateType
|
174
|
+
end
|
175
|
+
def environment_type
|
176
|
+
Azure::CognitiveServices::Qnamaker::V4_0::Models::EnvironmentType
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
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.19.
|
4
|
+
version: 0.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -1192,6 +1192,7 @@ files:
|
|
1192
1192
|
- lib/latest/modules/policy_profile_module.rb
|
1193
1193
|
- lib/latest/modules/policyinsights_profile_module.rb
|
1194
1194
|
- lib/latest/modules/powerbiembedded_profile_module.rb
|
1195
|
+
- lib/latest/modules/qnamaker_profile_module.rb
|
1195
1196
|
- lib/latest/modules/recoveryservices_profile_module.rb
|
1196
1197
|
- lib/latest/modules/recoveryservicesbackup_profile_module.rb
|
1197
1198
|
- lib/latest/modules/recoveryservicessiterecovery_profile_module.rb
|
@@ -1253,7 +1254,7 @@ metadata:
|
|
1253
1254
|
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
1254
1255
|
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
1255
1256
|
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
1256
|
-
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ARM-0.19.
|
1257
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ARM-0.19.3
|
1257
1258
|
wiki_uri: https://github.com/Azure/azure-sdk-for-ruby/wiki
|
1258
1259
|
post_install_message:
|
1259
1260
|
rdoc_options: []
|