azure_sdk 0.51.1 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +20 -20
- data/lib/azure_sdk.rb +9 -9
- data/lib/azure_sdk/version.rb +1 -1
- data/lib/latest/latest_profile_client.rb +0 -0
- data/lib/latest/module_definition.rb +6 -6
- data/lib/latest/modules/adhybridhealthservice_profile_module.rb +481 -481
- data/lib/latest/modules/advisor_profile_module.rb +119 -119
- data/lib/latest/modules/alertsmanagement_profile_module.rb +259 -259
- data/lib/latest/modules/analysisservices_profile_module.rb +159 -159
- data/lib/latest/modules/anomalydetector_profile_module.rb +69 -69
- data/lib/latest/modules/apimanagement_profile_module.rb +1069 -1069
- data/lib/latest/modules/appconfiguration_profile_module.rb +175 -107
- data/lib/latest/modules/attestation_profile_module.rb +95 -95
- data/lib/latest/modules/authorization_profile_module.rb +167 -167
- data/lib/latest/modules/automation_profile_module.rb +663 -663
- data/lib/latest/modules/autosuggest_profile_module.rb +121 -121
- data/lib/latest/modules/azurestack_profile_module.rb +0 -0
- data/lib/latest/modules/batch_profile_module.rb +417 -417
- data/lib/latest/modules/batchai_profile_module.rb +425 -425
- data/lib/latest/modules/billing_profile_module.rb +107 -107
- data/lib/latest/modules/botservice_profile_module.rb +293 -293
- data/lib/latest/modules/cdn_profile_module.rb +325 -325
- data/lib/latest/modules/cognitiveservices_profile_module.rb +201 -207
- data/lib/latest/modules/commerce_profile_module.rb +99 -99
- data/lib/latest/modules/compute_profile_module.rb +1235 -1235
- data/lib/latest/modules/computervision_profile_module.rb +233 -233
- data/lib/latest/modules/consumption_profile_module.rb +345 -345
- data/lib/latest/modules/containerinstance_profile_module.rb +253 -253
- data/lib/latest/modules/containerregistry_profile_module.rb +575 -575
- data/lib/latest/modules/containerservice_profile_module.rb +385 -385
- data/lib/latest/modules/contentmoderator_profile_module.rb +287 -287
- data/lib/latest/modules/cosmosdb_profile_module.rb +679 -679
- data/lib/latest/modules/costmanagement_profile_module.rb +207 -207
- data/lib/latest/modules/customerinsights_profile_module.rb +497 -497
- data/lib/latest/modules/customimagesearch_profile_module.rb +143 -143
- data/lib/latest/modules/customsearch_profile_module.rb +123 -123
- data/lib/latest/modules/customvisionprediction_profile_module.rb +69 -69
- data/lib/latest/modules/customvisiontraining_profile_module.rb +241 -241
- data/lib/latest/modules/databox_profile_module.rb +309 -309
- data/lib/latest/modules/datafactory_profile_module.rb +2701 -2159
- data/lib/latest/modules/datalakeanalytics_profile_module.rb +253 -253
- data/lib/latest/modules/datalakestore_profile_module.rb +247 -247
- data/lib/latest/modules/datamigration_profile_module.rb +1307 -1307
- data/lib/latest/modules/datashare_profile_module.rb +383 -383
- data/lib/latest/modules/deploymentmanager_profile_module.rb +261 -261
- data/lib/latest/modules/devspaces_profile_module.rb +119 -119
- data/lib/latest/modules/devtestlabs_profile_module.rb +849 -849
- data/lib/latest/modules/dns_profile_module.rb +143 -143
- data/lib/latest/modules/edgegateway_profile_module.rb +463 -463
- data/lib/latest/modules/entitysearch_profile_module.rb +231 -231
- data/lib/latest/modules/eventgrid_profile_module.rb +679 -679
- data/lib/latest/modules/eventhub_profile_module.rb +195 -195
- data/lib/latest/modules/face_profile_module.rb +297 -297
- data/lib/latest/modules/features_profile_module.rb +73 -73
- data/lib/latest/modules/formrecognizer_profile_module.rb +169 -169
- data/lib/latest/modules/graphrbac_profile_module.rb +225 -225
- data/lib/latest/modules/hanaonazure_profile_module.rb +137 -137
- data/lib/latest/modules/hdinsight_profile_module.rb +415 -415
- data/lib/latest/modules/imagesearch_profile_module.rb +279 -279
- data/lib/latest/modules/importexport_profile_module.rb +135 -135
- data/lib/latest/modules/iotcentral_profile_module.rb +111 -111
- data/lib/latest/modules/iothub_profile_module.rb +377 -377
- data/lib/latest/modules/keyvault_profile_module.rb +623 -623
- data/lib/latest/modules/kusto_profile_module.rb +349 -297
- data/lib/latest/modules/labservices_profile_module.rb +357 -357
- data/lib/latest/modules/links_profile_module.rb +83 -83
- data/lib/latest/modules/localsearch_profile_module.rb +151 -151
- data/lib/latest/modules/locks_profile_module.rb +79 -79
- data/lib/latest/modules/logic_profile_module.rb +787 -787
- data/lib/latest/modules/luisauthoring_profile_module.rb +497 -497
- data/lib/latest/modules/luisruntime_profile_module.rb +91 -91
- data/lib/latest/modules/machinelearning_profile_module.rb +211 -211
- data/lib/latest/modules/machinelearningservices_profile_module.rb +293 -293
- data/lib/latest/modules/maintenance_profile_module.rb +121 -121
- data/lib/latest/modules/managedapplications_profile_module.rb +123 -123
- data/lib/latest/modules/managedserviceidentity_profile_module.rb +75 -75
- data/lib/latest/modules/mariadb_profile_module.rb +233 -233
- data/lib/latest/modules/marketplaceordering_profile_module.rb +79 -79
- data/lib/latest/modules/mediaservices_profile_module.rb +871 -871
- data/lib/latest/modules/migrate_profile_module.rb +243 -243
- data/lib/latest/modules/mixedreality_profile_module.rb +125 -125
- data/lib/latest/modules/monitor_profile_module.rb +723 -723
- data/lib/latest/modules/mysql_profile_module.rb +233 -233
- data/lib/latest/modules/netapp_profile_module.rb +209 -209
- data/lib/latest/modules/network_profile_module.rb +2489 -2489
- data/lib/latest/modules/newssearch_profile_module.rb +143 -143
- data/lib/latest/modules/notificationhubs_profile_module.rb +189 -189
- data/lib/latest/modules/operationalinsights_profile_module.rb +259 -259
- data/lib/latest/modules/operationsmanagement_profile_module.rb +123 -123
- data/lib/latest/modules/peering_profile_module.rb +259 -259
- data/lib/latest/modules/personalizer_profile_module.rb +83 -83
- data/lib/latest/modules/policy_profile_module.rb +105 -105
- data/lib/latest/modules/policyinsights_profile_module.rb +223 -223
- data/lib/latest/modules/portal_profile_module.rb +95 -95
- data/lib/latest/modules/postgresql_profile_module.rb +233 -233
- data/lib/latest/modules/powerbidedicated_profile_module.rb +123 -123
- data/lib/latest/modules/powerbiembedded_profile_module.rb +127 -127
- data/lib/latest/modules/privatedns_profile_module.rb +137 -137
- data/lib/latest/modules/qnamaker_profile_module.rb +215 -219
- data/lib/latest/modules/qnamakerruntime_profile_module.rb +123 -123
- data/lib/latest/modules/recoveryservices_profile_module.rb +211 -211
- data/lib/latest/modules/recoveryservicesbackup_profile_module.rb +1301 -1301
- data/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +1465 -1465
- data/lib/latest/modules/redis_profile_module.rb +209 -209
- data/lib/latest/modules/relay_profile_module.rb +163 -163
- data/lib/latest/modules/reservations_profile_module.rb +359 -237
- data/lib/latest/modules/resourcegraph_profile_module.rb +129 -129
- data/lib/latest/modules/resourcehealth_profile_module.rb +111 -111
- data/lib/latest/modules/resources_profile_module.rb +321 -321
- data/lib/latest/modules/resourcesmanagement_profile_module.rb +163 -163
- data/lib/latest/modules/scheduler_profile_module.rb +227 -227
- data/lib/latest/modules/search_profile_module.rb +127 -127
- data/lib/latest/modules/security_profile_module.rb +733 -733
- data/lib/latest/modules/serialconsole_profile_module.rb +73 -73
- data/lib/latest/modules/servicebus_profile_module.rb +309 -309
- data/lib/latest/modules/servicefabric_profile_module.rb +2711 -2711
- data/lib/latest/modules/signalr_profile_module.rb +161 -161
- data/lib/latest/modules/spellcheck_profile_module.rb +101 -101
- data/lib/latest/modules/sql_profile_module.rb +1765 -1765
- data/lib/latest/modules/sqlvirtualmachine_profile_module.rb +235 -235
- data/lib/latest/modules/storage_profile_module.rb +569 -549
- data/lib/latest/modules/storagecache_profile_module.rb +173 -173
- data/lib/latest/modules/storagesync_profile_module.rb +275 -275
- data/lib/latest/modules/storsimple8000series_profile_module.rb +715 -715
- data/lib/latest/modules/streamanalytics_profile_module.rb +349 -349
- data/lib/latest/modules/subscriptions_profile_module.rb +207 -207
- data/lib/latest/modules/textanalytics_profile_module.rb +125 -125
- data/lib/latest/modules/timeseriesinsights_profile_module.rb +0 -0
- data/lib/latest/modules/trafficmanager_profile_module.rb +173 -173
- data/lib/latest/modules/videosearch_profile_module.rb +175 -175
- data/lib/latest/modules/visualsearch_profile_module.rb +235 -235
- data/lib/latest/modules/vmwarecloudsimple_profile_module.rb +247 -247
- data/lib/latest/modules/web_profile_module.rb +1419 -1419
- data/lib/latest/modules/websearch_profile_module.rb +211 -211
- data/lib/v2017_03_09/module_definition.rb +6 -6
- data/lib/v2017_03_09/modules/authorization_profile_module.rb +141 -141
- data/lib/v2017_03_09/modules/compute_profile_module.rb +469 -469
- data/lib/v2017_03_09/modules/dns_profile_module.rb +139 -139
- data/lib/v2017_03_09/modules/features_profile_module.rb +73 -73
- data/lib/v2017_03_09/modules/keyvault_profile_module.rb +559 -559
- data/lib/v2017_03_09/modules/links_profile_module.rb +83 -83
- data/lib/v2017_03_09/modules/locks_profile_module.rb +61 -61
- data/lib/v2017_03_09/modules/network_profile_module.rb +555 -555
- data/lib/v2017_03_09/modules/policy_profile_module.rb +71 -71
- data/lib/v2017_03_09/modules/resources_profile_module.rb +255 -255
- data/lib/v2017_03_09/modules/storage_profile_module.rb +163 -163
- data/lib/v2017_03_09/modules/subscriptions_profile_module.rb +101 -101
- data/lib/v2017_03_09/v2017_03_09_profile_client.rb +170 -170
- data/lib/v2018_03_01/module_definition.rb +6 -6
- data/lib/v2018_03_01/modules/authorization_profile_module.rb +133 -133
- data/lib/v2018_03_01/modules/compute_profile_module.rb +755 -755
- data/lib/v2018_03_01/modules/dns_profile_module.rb +139 -139
- data/lib/v2018_03_01/modules/keyvault_profile_module.rb +559 -559
- data/lib/v2018_03_01/modules/locks_profile_module.rb +79 -79
- data/lib/v2018_03_01/modules/network_profile_module.rb +1321 -1321
- data/lib/v2018_03_01/modules/policy_profile_module.rb +75 -75
- data/lib/v2018_03_01/modules/resources_profile_module.rb +271 -271
- data/lib/v2018_03_01/modules/storage_profile_module.rb +163 -163
- data/lib/v2018_03_01/modules/subscriptions_profile_module.rb +101 -101
- data/lib/v2018_03_01/modules/web_profile_module.rb +1223 -1223
- data/lib/v2018_03_01/v2018_03_01_profile_client.rb +160 -160
- data/lib/v2019_03_01_hybrid/module_definition.rb +6 -6
- data/lib/v2019_03_01_hybrid/modules/authorization_profile_module.rb +133 -133
- data/lib/v2019_03_01_hybrid/modules/compute_profile_module.rb +855 -855
- data/lib/v2019_03_01_hybrid/modules/dns_profile_module.rb +139 -139
- data/lib/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +559 -559
- data/lib/v2019_03_01_hybrid/modules/locks_profile_module.rb +79 -79
- data/lib/v2019_03_01_hybrid/modules/monitor_profile_module.rb +285 -285
- data/lib/v2019_03_01_hybrid/modules/network_profile_module.rb +1261 -1261
- data/lib/v2019_03_01_hybrid/modules/policy_profile_module.rb +75 -75
- data/lib/v2019_03_01_hybrid/modules/resources_profile_module.rb +289 -289
- data/lib/v2019_03_01_hybrid/modules/storage_profile_module.rb +283 -283
- data/lib/v2019_03_01_hybrid/modules/subscriptions_profile_module.rb +101 -101
- data/lib/v2019_03_01_hybrid/modules/web_profile_module.rb +1457 -1457
- data/lib/v2019_03_01_hybrid/v2019_03_01_hybrid_profile_client.rb +170 -170
- metadata +27 -26
@@ -1,207 +1,207 @@
|
|
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_mgmt_subscriptions'
|
6
|
-
|
7
|
-
module Azure::Profiles::Latest
|
8
|
-
module Subscriptions
|
9
|
-
module Mgmt
|
10
|
-
SubscriptionDefinitionsOperationMetadata = Azure::Subscriptions::Mgmt::V2017_11_01_preview::SubscriptionDefinitionsOperationMetadata
|
11
|
-
SubscriptionDefinitions = Azure::Subscriptions::Mgmt::V2017_11_01_preview::SubscriptionDefinitions
|
12
|
-
SubscriptionOperations = Azure::Subscriptions::Mgmt::V2018_03_01_preview::SubscriptionOperations
|
13
|
-
SubscriptionOperationOperations = Azure::Subscriptions::Mgmt::V2018_11_01_preview::SubscriptionOperationOperations
|
14
|
-
SubscriptionFactory = Azure::Subscriptions::Mgmt::V2018_11_01_preview::SubscriptionFactory
|
15
|
-
Operations = Azure::Subscriptions::Mgmt::V2019_06_01::Operations
|
16
|
-
Subscriptions = Azure::Subscriptions::Mgmt::V2019_06_01::Subscriptions
|
17
|
-
Tenants = Azure::Subscriptions::Mgmt::V2019_06_01::Tenants
|
18
|
-
|
19
|
-
module Models
|
20
|
-
SubscriptionDefinition = Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinition
|
21
|
-
SubscriptionDefinitionList = Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinitionList
|
22
|
-
SubscriptionCreationParameters = Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::SubscriptionCreationParameters
|
23
|
-
OfferType = Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::OfferType
|
24
|
-
SubscriptionOperation = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperation
|
25
|
-
SubscriptionOperationListResult = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperationListResult
|
26
|
-
AdPrincipal = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::AdPrincipal
|
27
|
-
ModernSubscriptionCreationParameters = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::ModernSubscriptionCreationParameters
|
28
|
-
SubscriptionCreationResult = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionCreationResult
|
29
|
-
SubscriptionName = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::SubscriptionName
|
30
|
-
CanceledSubscriptionId = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::CanceledSubscriptionId
|
31
|
-
ErrorResponse = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::ErrorResponse
|
32
|
-
RenamedSubscriptionId = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::RenamedSubscriptionId
|
33
|
-
SubscriptionListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionListResult
|
34
|
-
TenantIdDescription = Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantIdDescription
|
35
|
-
LocationListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::LocationListResult
|
36
|
-
TenantListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantListResult
|
37
|
-
ManagedByTenant = Azure::Subscriptions::Mgmt::V2019_06_01::Models::ManagedByTenant
|
38
|
-
OperationDisplay = Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationDisplay
|
39
|
-
Location = Azure::Subscriptions::Mgmt::V2019_06_01::Models::Location
|
40
|
-
Operation = Azure::Subscriptions::Mgmt::V2019_06_01::Models::Operation
|
41
|
-
Subscription = Azure::Subscriptions::Mgmt::V2019_06_01::Models::Subscription
|
42
|
-
OperationListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationListResult
|
43
|
-
SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionPolicies
|
44
|
-
SubscriptionState = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionState
|
45
|
-
SpendingLimit = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SpendingLimit
|
46
|
-
end
|
47
|
-
|
48
|
-
class SubscriptionsManagementClass
|
49
|
-
attr_reader :subscription_definitions_operation_metadata, :subscription_definitions, :subscription_operations, :subscription_operation_operations, :subscription_factory, :operations, :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
|
50
|
-
|
51
|
-
def initialize(configurable, base_url=nil, options=nil)
|
52
|
-
@configurable, @base_url, @options = configurable, base_url, options
|
53
|
-
|
54
|
-
@client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
55
|
-
if(@client_0.respond_to?(:subscription_id))
|
56
|
-
@client_0.subscription_id = configurable.subscription_id
|
57
|
-
end
|
58
|
-
add_telemetry(@client_0)
|
59
|
-
|
60
|
-
@client_1 = Azure::Subscriptions::Mgmt::V2017_11_01_preview::SubscriptionDefinitionsClient.new(configurable.credentials, base_url, options)
|
61
|
-
if(@client_1.respond_to?(:subscription_id))
|
62
|
-
@client_1.subscription_id = configurable.subscription_id
|
63
|
-
end
|
64
|
-
add_telemetry(@client_1)
|
65
|
-
@subscription_definitions_operation_metadata = @client_1.subscription_definitions_operation_metadata
|
66
|
-
@subscription_definitions = @client_1.subscription_definitions
|
67
|
-
|
68
|
-
@client_2 = Azure::Subscriptions::Mgmt::V2018_03_01_preview::SubscriptionClient.new(configurable.credentials, base_url, options)
|
69
|
-
if(@client_2.respond_to?(:subscription_id))
|
70
|
-
@client_2.subscription_id = configurable.subscription_id
|
71
|
-
end
|
72
|
-
add_telemetry(@client_2)
|
73
|
-
@subscription_operations = @client_2.subscription_operations
|
74
|
-
|
75
|
-
@client_3 = Azure::Subscriptions::Mgmt::V2018_11_01_preview::SubscriptionClient.new(configurable.credentials, base_url, options)
|
76
|
-
if(@client_3.respond_to?(:subscription_id))
|
77
|
-
@client_3.subscription_id = configurable.subscription_id
|
78
|
-
end
|
79
|
-
add_telemetry(@client_3)
|
80
|
-
@subscription_operation_operations = @client_3.subscription_operation_operations
|
81
|
-
@subscription_factory = @client_3.subscription_factory
|
82
|
-
|
83
|
-
@client_4 = Azure::Subscriptions::Mgmt::V2019_03_01_preview::SubscriptionClient.new(configurable.credentials, base_url, options)
|
84
|
-
if(@client_4.respond_to?(:subscription_id))
|
85
|
-
@client_4.subscription_id = configurable.subscription_id
|
86
|
-
end
|
87
|
-
add_telemetry(@client_4)
|
88
|
-
|
89
|
-
@client_5 = Azure::Subscriptions::Mgmt::V2019_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
90
|
-
if(@client_5.respond_to?(:subscription_id))
|
91
|
-
@client_5.subscription_id = configurable.subscription_id
|
92
|
-
end
|
93
|
-
add_telemetry(@client_5)
|
94
|
-
@operations = @client_5.operations
|
95
|
-
@subscriptions = @client_5.subscriptions
|
96
|
-
@tenants = @client_5.tenants
|
97
|
-
|
98
|
-
@model_classes = ModelClasses.new
|
99
|
-
end
|
100
|
-
|
101
|
-
def add_telemetry(client)
|
102
|
-
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Subscriptions/Mgmt"
|
103
|
-
client.add_user_agent_information(profile_information)
|
104
|
-
end
|
105
|
-
|
106
|
-
def method_missing(method, *args)
|
107
|
-
if @client_5.respond_to?method
|
108
|
-
@client_5.send(method, *args)
|
109
|
-
elsif @client_4.respond_to?method
|
110
|
-
@client_4.send(method, *args)
|
111
|
-
elsif @client_3.respond_to?method
|
112
|
-
@client_3.send(method, *args)
|
113
|
-
elsif @client_2.respond_to?method
|
114
|
-
@client_2.send(method, *args)
|
115
|
-
elsif @client_1.respond_to?method
|
116
|
-
@client_1.send(method, *args)
|
117
|
-
elsif @client_0.respond_to?method
|
118
|
-
@client_0.send(method, *args)
|
119
|
-
else
|
120
|
-
super
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
class ModelClasses
|
125
|
-
def subscription_definition
|
126
|
-
Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinition
|
127
|
-
end
|
128
|
-
def subscription_definition_list
|
129
|
-
Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinitionList
|
130
|
-
end
|
131
|
-
def subscription_creation_parameters
|
132
|
-
Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::SubscriptionCreationParameters
|
133
|
-
end
|
134
|
-
def offer_type
|
135
|
-
Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::OfferType
|
136
|
-
end
|
137
|
-
def subscription_operation
|
138
|
-
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperation
|
139
|
-
end
|
140
|
-
def subscription_operation_list_result
|
141
|
-
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperationListResult
|
142
|
-
end
|
143
|
-
def ad_principal
|
144
|
-
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::AdPrincipal
|
145
|
-
end
|
146
|
-
def modern_subscription_creation_parameters
|
147
|
-
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::ModernSubscriptionCreationParameters
|
148
|
-
end
|
149
|
-
def subscription_creation_result
|
150
|
-
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionCreationResult
|
151
|
-
end
|
152
|
-
def subscription_name
|
153
|
-
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::SubscriptionName
|
154
|
-
end
|
155
|
-
def canceled_subscription_id
|
156
|
-
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::CanceledSubscriptionId
|
157
|
-
end
|
158
|
-
def error_response
|
159
|
-
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::ErrorResponse
|
160
|
-
end
|
161
|
-
def renamed_subscription_id
|
162
|
-
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::RenamedSubscriptionId
|
163
|
-
end
|
164
|
-
def subscription_list_result
|
165
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionListResult
|
166
|
-
end
|
167
|
-
def tenant_id_description
|
168
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantIdDescription
|
169
|
-
end
|
170
|
-
def location_list_result
|
171
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::LocationListResult
|
172
|
-
end
|
173
|
-
def tenant_list_result
|
174
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantListResult
|
175
|
-
end
|
176
|
-
def managed_by_tenant
|
177
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::ManagedByTenant
|
178
|
-
end
|
179
|
-
def operation_display
|
180
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationDisplay
|
181
|
-
end
|
182
|
-
def location
|
183
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::Location
|
184
|
-
end
|
185
|
-
def operation
|
186
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::Operation
|
187
|
-
end
|
188
|
-
def subscription
|
189
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::Subscription
|
190
|
-
end
|
191
|
-
def operation_list_result
|
192
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationListResult
|
193
|
-
end
|
194
|
-
def subscription_policies
|
195
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionPolicies
|
196
|
-
end
|
197
|
-
def subscription_state
|
198
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionState
|
199
|
-
end
|
200
|
-
def spending_limit
|
201
|
-
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SpendingLimit
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
end
|
206
|
-
end
|
207
|
-
end
|
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_mgmt_subscriptions'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module Subscriptions
|
9
|
+
module Mgmt
|
10
|
+
SubscriptionDefinitionsOperationMetadata = Azure::Subscriptions::Mgmt::V2017_11_01_preview::SubscriptionDefinitionsOperationMetadata
|
11
|
+
SubscriptionDefinitions = Azure::Subscriptions::Mgmt::V2017_11_01_preview::SubscriptionDefinitions
|
12
|
+
SubscriptionOperations = Azure::Subscriptions::Mgmt::V2018_03_01_preview::SubscriptionOperations
|
13
|
+
SubscriptionOperationOperations = Azure::Subscriptions::Mgmt::V2018_11_01_preview::SubscriptionOperationOperations
|
14
|
+
SubscriptionFactory = Azure::Subscriptions::Mgmt::V2018_11_01_preview::SubscriptionFactory
|
15
|
+
Operations = Azure::Subscriptions::Mgmt::V2019_06_01::Operations
|
16
|
+
Subscriptions = Azure::Subscriptions::Mgmt::V2019_06_01::Subscriptions
|
17
|
+
Tenants = Azure::Subscriptions::Mgmt::V2019_06_01::Tenants
|
18
|
+
|
19
|
+
module Models
|
20
|
+
SubscriptionDefinition = Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinition
|
21
|
+
SubscriptionDefinitionList = Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinitionList
|
22
|
+
SubscriptionCreationParameters = Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::SubscriptionCreationParameters
|
23
|
+
OfferType = Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::OfferType
|
24
|
+
SubscriptionOperation = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperation
|
25
|
+
SubscriptionOperationListResult = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperationListResult
|
26
|
+
AdPrincipal = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::AdPrincipal
|
27
|
+
ModernSubscriptionCreationParameters = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::ModernSubscriptionCreationParameters
|
28
|
+
SubscriptionCreationResult = Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionCreationResult
|
29
|
+
SubscriptionName = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::SubscriptionName
|
30
|
+
CanceledSubscriptionId = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::CanceledSubscriptionId
|
31
|
+
ErrorResponse = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::ErrorResponse
|
32
|
+
RenamedSubscriptionId = Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::RenamedSubscriptionId
|
33
|
+
SubscriptionListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionListResult
|
34
|
+
TenantIdDescription = Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantIdDescription
|
35
|
+
LocationListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::LocationListResult
|
36
|
+
TenantListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantListResult
|
37
|
+
ManagedByTenant = Azure::Subscriptions::Mgmt::V2019_06_01::Models::ManagedByTenant
|
38
|
+
OperationDisplay = Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationDisplay
|
39
|
+
Location = Azure::Subscriptions::Mgmt::V2019_06_01::Models::Location
|
40
|
+
Operation = Azure::Subscriptions::Mgmt::V2019_06_01::Models::Operation
|
41
|
+
Subscription = Azure::Subscriptions::Mgmt::V2019_06_01::Models::Subscription
|
42
|
+
OperationListResult = Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationListResult
|
43
|
+
SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionPolicies
|
44
|
+
SubscriptionState = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionState
|
45
|
+
SpendingLimit = Azure::Subscriptions::Mgmt::V2019_06_01::Models::SpendingLimit
|
46
|
+
end
|
47
|
+
|
48
|
+
class SubscriptionsManagementClass
|
49
|
+
attr_reader :subscription_definitions_operation_metadata, :subscription_definitions, :subscription_operations, :subscription_operation_operations, :subscription_factory, :operations, :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
|
50
|
+
|
51
|
+
def initialize(configurable, base_url=nil, options=nil)
|
52
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
53
|
+
|
54
|
+
@client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
55
|
+
if(@client_0.respond_to?(:subscription_id))
|
56
|
+
@client_0.subscription_id = configurable.subscription_id
|
57
|
+
end
|
58
|
+
add_telemetry(@client_0)
|
59
|
+
|
60
|
+
@client_1 = Azure::Subscriptions::Mgmt::V2017_11_01_preview::SubscriptionDefinitionsClient.new(configurable.credentials, base_url, options)
|
61
|
+
if(@client_1.respond_to?(:subscription_id))
|
62
|
+
@client_1.subscription_id = configurable.subscription_id
|
63
|
+
end
|
64
|
+
add_telemetry(@client_1)
|
65
|
+
@subscription_definitions_operation_metadata = @client_1.subscription_definitions_operation_metadata
|
66
|
+
@subscription_definitions = @client_1.subscription_definitions
|
67
|
+
|
68
|
+
@client_2 = Azure::Subscriptions::Mgmt::V2018_03_01_preview::SubscriptionClient.new(configurable.credentials, base_url, options)
|
69
|
+
if(@client_2.respond_to?(:subscription_id))
|
70
|
+
@client_2.subscription_id = configurable.subscription_id
|
71
|
+
end
|
72
|
+
add_telemetry(@client_2)
|
73
|
+
@subscription_operations = @client_2.subscription_operations
|
74
|
+
|
75
|
+
@client_3 = Azure::Subscriptions::Mgmt::V2018_11_01_preview::SubscriptionClient.new(configurable.credentials, base_url, options)
|
76
|
+
if(@client_3.respond_to?(:subscription_id))
|
77
|
+
@client_3.subscription_id = configurable.subscription_id
|
78
|
+
end
|
79
|
+
add_telemetry(@client_3)
|
80
|
+
@subscription_operation_operations = @client_3.subscription_operation_operations
|
81
|
+
@subscription_factory = @client_3.subscription_factory
|
82
|
+
|
83
|
+
@client_4 = Azure::Subscriptions::Mgmt::V2019_03_01_preview::SubscriptionClient.new(configurable.credentials, base_url, options)
|
84
|
+
if(@client_4.respond_to?(:subscription_id))
|
85
|
+
@client_4.subscription_id = configurable.subscription_id
|
86
|
+
end
|
87
|
+
add_telemetry(@client_4)
|
88
|
+
|
89
|
+
@client_5 = Azure::Subscriptions::Mgmt::V2019_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
|
90
|
+
if(@client_5.respond_to?(:subscription_id))
|
91
|
+
@client_5.subscription_id = configurable.subscription_id
|
92
|
+
end
|
93
|
+
add_telemetry(@client_5)
|
94
|
+
@operations = @client_5.operations
|
95
|
+
@subscriptions = @client_5.subscriptions
|
96
|
+
@tenants = @client_5.tenants
|
97
|
+
|
98
|
+
@model_classes = ModelClasses.new
|
99
|
+
end
|
100
|
+
|
101
|
+
def add_telemetry(client)
|
102
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Subscriptions/Mgmt"
|
103
|
+
client.add_user_agent_information(profile_information)
|
104
|
+
end
|
105
|
+
|
106
|
+
def method_missing(method, *args)
|
107
|
+
if @client_5.respond_to?method
|
108
|
+
@client_5.send(method, *args)
|
109
|
+
elsif @client_4.respond_to?method
|
110
|
+
@client_4.send(method, *args)
|
111
|
+
elsif @client_3.respond_to?method
|
112
|
+
@client_3.send(method, *args)
|
113
|
+
elsif @client_2.respond_to?method
|
114
|
+
@client_2.send(method, *args)
|
115
|
+
elsif @client_1.respond_to?method
|
116
|
+
@client_1.send(method, *args)
|
117
|
+
elsif @client_0.respond_to?method
|
118
|
+
@client_0.send(method, *args)
|
119
|
+
else
|
120
|
+
super
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class ModelClasses
|
125
|
+
def subscription_definition
|
126
|
+
Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinition
|
127
|
+
end
|
128
|
+
def subscription_definition_list
|
129
|
+
Azure::Subscriptions::Mgmt::V2017_11_01_preview::Models::SubscriptionDefinitionList
|
130
|
+
end
|
131
|
+
def subscription_creation_parameters
|
132
|
+
Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::SubscriptionCreationParameters
|
133
|
+
end
|
134
|
+
def offer_type
|
135
|
+
Azure::Subscriptions::Mgmt::V2018_03_01_preview::Models::OfferType
|
136
|
+
end
|
137
|
+
def subscription_operation
|
138
|
+
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperation
|
139
|
+
end
|
140
|
+
def subscription_operation_list_result
|
141
|
+
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionOperationListResult
|
142
|
+
end
|
143
|
+
def ad_principal
|
144
|
+
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::AdPrincipal
|
145
|
+
end
|
146
|
+
def modern_subscription_creation_parameters
|
147
|
+
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::ModernSubscriptionCreationParameters
|
148
|
+
end
|
149
|
+
def subscription_creation_result
|
150
|
+
Azure::Subscriptions::Mgmt::V2018_11_01_preview::Models::SubscriptionCreationResult
|
151
|
+
end
|
152
|
+
def subscription_name
|
153
|
+
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::SubscriptionName
|
154
|
+
end
|
155
|
+
def canceled_subscription_id
|
156
|
+
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::CanceledSubscriptionId
|
157
|
+
end
|
158
|
+
def error_response
|
159
|
+
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::ErrorResponse
|
160
|
+
end
|
161
|
+
def renamed_subscription_id
|
162
|
+
Azure::Subscriptions::Mgmt::V2019_03_01_preview::Models::RenamedSubscriptionId
|
163
|
+
end
|
164
|
+
def subscription_list_result
|
165
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionListResult
|
166
|
+
end
|
167
|
+
def tenant_id_description
|
168
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantIdDescription
|
169
|
+
end
|
170
|
+
def location_list_result
|
171
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::LocationListResult
|
172
|
+
end
|
173
|
+
def tenant_list_result
|
174
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::TenantListResult
|
175
|
+
end
|
176
|
+
def managed_by_tenant
|
177
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::ManagedByTenant
|
178
|
+
end
|
179
|
+
def operation_display
|
180
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationDisplay
|
181
|
+
end
|
182
|
+
def location
|
183
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::Location
|
184
|
+
end
|
185
|
+
def operation
|
186
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::Operation
|
187
|
+
end
|
188
|
+
def subscription
|
189
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::Subscription
|
190
|
+
end
|
191
|
+
def operation_list_result
|
192
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::OperationListResult
|
193
|
+
end
|
194
|
+
def subscription_policies
|
195
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionPolicies
|
196
|
+
end
|
197
|
+
def subscription_state
|
198
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SubscriptionState
|
199
|
+
end
|
200
|
+
def spending_limit
|
201
|
+
Azure::Subscriptions::Mgmt::V2019_06_01::Models::SpendingLimit
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -1,125 +1,125 @@
|
|
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_textanalytics'
|
6
|
-
|
7
|
-
module Azure::Profiles::Latest
|
8
|
-
module TextAnalytics
|
9
|
-
|
10
|
-
module Models
|
11
|
-
ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorResponse
|
12
|
-
MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageInput
|
13
|
-
KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
|
14
|
-
MatchRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord
|
15
|
-
KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResult
|
16
|
-
DocumentStatistics = Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
|
17
|
-
LanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
|
18
|
-
ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorRecord
|
19
|
-
LanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchInput
|
20
|
-
EntitiesBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResult
|
21
|
-
DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_1::Models::DetectedLanguage
|
22
|
-
MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageBatchInput
|
23
|
-
LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResultItem
|
24
|
-
EntitiesBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResultItem
|
25
|
-
LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResult
|
26
|
-
InternalError = Azure::CognitiveServices::TextAnalytics::V2_1::Models::InternalError
|
27
|
-
SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
|
28
|
-
RequestStatistics = Azure::CognitiveServices::TextAnalytics::V2_1::Models::RequestStatistics
|
29
|
-
SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResult
|
30
|
-
EntityRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntityRecord
|
31
|
-
end
|
32
|
-
|
33
|
-
class TextAnalyticsDataClass
|
34
|
-
attr_reader :configurable, :base_url, :options, :model_classes
|
35
|
-
|
36
|
-
def initialize(configurable, base_url=nil, options=nil)
|
37
|
-
@configurable, @base_url, @options = configurable, base_url, options
|
38
|
-
|
39
|
-
@client_0 = Azure::CognitiveServices::TextAnalytics::V2_1::TextAnalyticsClient.new(configurable.credentials, options)
|
40
|
-
if(@client_0.respond_to?(:subscription_id))
|
41
|
-
@client_0.subscription_id = configurable.subscription_id
|
42
|
-
end
|
43
|
-
add_telemetry(@client_0)
|
44
|
-
|
45
|
-
@model_classes = ModelClasses.new
|
46
|
-
end
|
47
|
-
|
48
|
-
def add_telemetry(client)
|
49
|
-
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/TextAnalytics"
|
50
|
-
client.add_user_agent_information(profile_information)
|
51
|
-
end
|
52
|
-
|
53
|
-
def method_missing(method, *args)
|
54
|
-
if @client_0.respond_to?method
|
55
|
-
@client_0.send(method, *args)
|
56
|
-
else
|
57
|
-
super
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
class ModelClasses
|
62
|
-
def error_response
|
63
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorResponse
|
64
|
-
end
|
65
|
-
def multi_language_input
|
66
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageInput
|
67
|
-
end
|
68
|
-
def key_phrase_batch_result_item
|
69
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
|
70
|
-
end
|
71
|
-
def match_record
|
72
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord
|
73
|
-
end
|
74
|
-
def key_phrase_batch_result
|
75
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResult
|
76
|
-
end
|
77
|
-
def document_statistics
|
78
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
|
79
|
-
end
|
80
|
-
def language_input
|
81
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
|
82
|
-
end
|
83
|
-
def error_record
|
84
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorRecord
|
85
|
-
end
|
86
|
-
def language_batch_input
|
87
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchInput
|
88
|
-
end
|
89
|
-
def entities_batch_result
|
90
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResult
|
91
|
-
end
|
92
|
-
def detected_language
|
93
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::DetectedLanguage
|
94
|
-
end
|
95
|
-
def multi_language_batch_input
|
96
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageBatchInput
|
97
|
-
end
|
98
|
-
def language_batch_result_item
|
99
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResultItem
|
100
|
-
end
|
101
|
-
def entities_batch_result_item
|
102
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResultItem
|
103
|
-
end
|
104
|
-
def language_batch_result
|
105
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResult
|
106
|
-
end
|
107
|
-
def internal_error
|
108
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::InternalError
|
109
|
-
end
|
110
|
-
def sentiment_batch_result_item
|
111
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
|
112
|
-
end
|
113
|
-
def request_statistics
|
114
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::RequestStatistics
|
115
|
-
end
|
116
|
-
def sentiment_batch_result
|
117
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResult
|
118
|
-
end
|
119
|
-
def entity_record
|
120
|
-
Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntityRecord
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
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_textanalytics'
|
6
|
+
|
7
|
+
module Azure::Profiles::Latest
|
8
|
+
module TextAnalytics
|
9
|
+
|
10
|
+
module Models
|
11
|
+
ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorResponse
|
12
|
+
MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageInput
|
13
|
+
KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
|
14
|
+
MatchRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord
|
15
|
+
KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResult
|
16
|
+
DocumentStatistics = Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
|
17
|
+
LanguageInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
|
18
|
+
ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorRecord
|
19
|
+
LanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchInput
|
20
|
+
EntitiesBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResult
|
21
|
+
DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_1::Models::DetectedLanguage
|
22
|
+
MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageBatchInput
|
23
|
+
LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResultItem
|
24
|
+
EntitiesBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResultItem
|
25
|
+
LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResult
|
26
|
+
InternalError = Azure::CognitiveServices::TextAnalytics::V2_1::Models::InternalError
|
27
|
+
SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
|
28
|
+
RequestStatistics = Azure::CognitiveServices::TextAnalytics::V2_1::Models::RequestStatistics
|
29
|
+
SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResult
|
30
|
+
EntityRecord = Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntityRecord
|
31
|
+
end
|
32
|
+
|
33
|
+
class TextAnalyticsDataClass
|
34
|
+
attr_reader :configurable, :base_url, :options, :model_classes
|
35
|
+
|
36
|
+
def initialize(configurable, base_url=nil, options=nil)
|
37
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
38
|
+
|
39
|
+
@client_0 = Azure::CognitiveServices::TextAnalytics::V2_1::TextAnalyticsClient.new(configurable.credentials, options)
|
40
|
+
if(@client_0.respond_to?(:subscription_id))
|
41
|
+
@client_0.subscription_id = configurable.subscription_id
|
42
|
+
end
|
43
|
+
add_telemetry(@client_0)
|
44
|
+
|
45
|
+
@model_classes = ModelClasses.new
|
46
|
+
end
|
47
|
+
|
48
|
+
def add_telemetry(client)
|
49
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/TextAnalytics"
|
50
|
+
client.add_user_agent_information(profile_information)
|
51
|
+
end
|
52
|
+
|
53
|
+
def method_missing(method, *args)
|
54
|
+
if @client_0.respond_to?method
|
55
|
+
@client_0.send(method, *args)
|
56
|
+
else
|
57
|
+
super
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class ModelClasses
|
62
|
+
def error_response
|
63
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorResponse
|
64
|
+
end
|
65
|
+
def multi_language_input
|
66
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageInput
|
67
|
+
end
|
68
|
+
def key_phrase_batch_result_item
|
69
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
|
70
|
+
end
|
71
|
+
def match_record
|
72
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::MatchRecord
|
73
|
+
end
|
74
|
+
def key_phrase_batch_result
|
75
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResult
|
76
|
+
end
|
77
|
+
def document_statistics
|
78
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::DocumentStatistics
|
79
|
+
end
|
80
|
+
def language_input
|
81
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageInput
|
82
|
+
end
|
83
|
+
def error_record
|
84
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::ErrorRecord
|
85
|
+
end
|
86
|
+
def language_batch_input
|
87
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchInput
|
88
|
+
end
|
89
|
+
def entities_batch_result
|
90
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResult
|
91
|
+
end
|
92
|
+
def detected_language
|
93
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::DetectedLanguage
|
94
|
+
end
|
95
|
+
def multi_language_batch_input
|
96
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::MultiLanguageBatchInput
|
97
|
+
end
|
98
|
+
def language_batch_result_item
|
99
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResultItem
|
100
|
+
end
|
101
|
+
def entities_batch_result_item
|
102
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntitiesBatchResultItem
|
103
|
+
end
|
104
|
+
def language_batch_result
|
105
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::LanguageBatchResult
|
106
|
+
end
|
107
|
+
def internal_error
|
108
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::InternalError
|
109
|
+
end
|
110
|
+
def sentiment_batch_result_item
|
111
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
|
112
|
+
end
|
113
|
+
def request_statistics
|
114
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::RequestStatistics
|
115
|
+
end
|
116
|
+
def sentiment_batch_result
|
117
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResult
|
118
|
+
end
|
119
|
+
def entity_record
|
120
|
+
Azure::CognitiveServices::TextAnalytics::V2_1::Models::EntityRecord
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|