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,170 +1,170 @@
|
|
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 'v2019_03_01_hybrid/module_definition'
|
6
|
-
require 'v2019_03_01_hybrid/modules/authorization_profile_module'
|
7
|
-
require 'v2019_03_01_hybrid/modules/locks_profile_module'
|
8
|
-
require 'v2019_03_01_hybrid/modules/policy_profile_module'
|
9
|
-
require 'v2019_03_01_hybrid/modules/compute_profile_module'
|
10
|
-
require 'v2019_03_01_hybrid/modules/keyvault_profile_module'
|
11
|
-
require 'v2019_03_01_hybrid/modules/network_profile_module'
|
12
|
-
require 'v2019_03_01_hybrid/modules/dns_profile_module'
|
13
|
-
require 'v2019_03_01_hybrid/modules/resources_profile_module'
|
14
|
-
require 'v2019_03_01_hybrid/modules/subscriptions_profile_module'
|
15
|
-
require 'v2019_03_01_hybrid/modules/storage_profile_module'
|
16
|
-
require 'v2019_03_01_hybrid/modules/monitor_profile_module'
|
17
|
-
require 'v2019_03_01_hybrid/modules/web_profile_module'
|
18
|
-
|
19
|
-
module Azure::Profiles::V2019_03_01_Hybrid
|
20
|
-
#
|
21
|
-
# Client class for the V2019_03_01_Hybrid profile SDK.
|
22
|
-
#
|
23
|
-
class Client
|
24
|
-
include MsRestAzure::Common::Configurable
|
25
|
-
|
26
|
-
attr_reader :authorization, :locks, :policy, :compute, :key_vault, :network, :dns, :resources, :subscriptions, :storage, :monitor, :web
|
27
|
-
|
28
|
-
#
|
29
|
-
# Initializes a new instance of the Client class.
|
30
|
-
# @param options [Hash] hash of client options.
|
31
|
-
# options = {
|
32
|
-
# tenant_id: 'YOUR TENANT ID',
|
33
|
-
# client_id: 'YOUR CLIENT ID',
|
34
|
-
# client_secret: 'YOUR CLIENT SECRET',
|
35
|
-
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
36
|
-
# credentials: credentials,
|
37
|
-
# active_directory_settings: active_directory_settings,
|
38
|
-
# base_url: 'YOUR BASE URL',
|
39
|
-
# options: options
|
40
|
-
# }
|
41
|
-
# 'credentials' are optional and if not passed in the hash, will be obtained
|
42
|
-
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
43
|
-
#
|
44
|
-
# Also, base_url, active_directory_settings & options are optional.
|
45
|
-
#
|
46
|
-
def initialize(options = {})
|
47
|
-
if options.is_a?(Hash) && options.length == 0
|
48
|
-
@options = setup_default_options
|
49
|
-
else
|
50
|
-
@options = options
|
51
|
-
end
|
52
|
-
|
53
|
-
reset!(options)
|
54
|
-
|
55
|
-
base_url = options[:base_url].nil? ? nil:options[:base_url]
|
56
|
-
sdk_options = options[:options].nil? ? nil:options[:options]
|
57
|
-
|
58
|
-
@authorization = AuthorizationAdapter.new(self, base_url, sdk_options)
|
59
|
-
@locks = LocksAdapter.new(self, base_url, sdk_options)
|
60
|
-
@policy = PolicyAdapter.new(self, base_url, sdk_options)
|
61
|
-
@compute = ComputeAdapter.new(self, base_url, sdk_options)
|
62
|
-
@key_vault = KeyVaultAdapter.new(self, base_url, sdk_options)
|
63
|
-
@network = NetworkAdapter.new(self, base_url, sdk_options)
|
64
|
-
@dns = DnsAdapter.new(self, base_url, sdk_options)
|
65
|
-
@resources = ResourcesAdapter.new(self, base_url, sdk_options)
|
66
|
-
@subscriptions = SubscriptionsAdapter.new(self, base_url, sdk_options)
|
67
|
-
@storage = StorageAdapter.new(self, base_url, sdk_options)
|
68
|
-
@monitor = MonitorAdapter.new(self, base_url, sdk_options)
|
69
|
-
@web = WebAdapter.new(self, base_url, sdk_options)
|
70
|
-
end
|
71
|
-
|
72
|
-
class AuthorizationAdapter
|
73
|
-
attr_accessor :mgmt
|
74
|
-
|
75
|
-
def initialize(context, base_url, options)
|
76
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Authorization::Mgmt::AuthorizationManagementClass.new(context, base_url, options)
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
class LocksAdapter
|
81
|
-
attr_accessor :mgmt
|
82
|
-
|
83
|
-
def initialize(context, base_url, options)
|
84
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Locks::Mgmt::LocksManagementClass.new(context, base_url, options)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
class PolicyAdapter
|
89
|
-
attr_accessor :mgmt
|
90
|
-
|
91
|
-
def initialize(context, base_url, options)
|
92
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Policy::Mgmt::PolicyManagementClass.new(context, base_url, options)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
class ComputeAdapter
|
97
|
-
attr_accessor :mgmt
|
98
|
-
|
99
|
-
def initialize(context, base_url, options)
|
100
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Compute::Mgmt::ComputeManagementClass.new(context, base_url, options)
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
class KeyVaultAdapter < Azure::Profiles::V2019_03_01_Hybrid::KeyVault::KeyVaultDataClass
|
105
|
-
attr_accessor :mgmt
|
106
|
-
|
107
|
-
def initialize(context, base_url, options)
|
108
|
-
super(context)
|
109
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::KeyVault::Mgmt::KeyVaultManagementClass.new(context, base_url, options)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
class NetworkAdapter
|
114
|
-
attr_accessor :mgmt
|
115
|
-
|
116
|
-
def initialize(context, base_url, options)
|
117
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Network::Mgmt::NetworkManagementClass.new(context, base_url, options)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
class DnsAdapter
|
122
|
-
attr_accessor :mgmt
|
123
|
-
|
124
|
-
def initialize(context, base_url, options)
|
125
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Dns::Mgmt::DnsManagementClass.new(context, base_url, options)
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
class ResourcesAdapter
|
130
|
-
attr_accessor :mgmt
|
131
|
-
|
132
|
-
def initialize(context, base_url, options)
|
133
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Resources::Mgmt::ResourcesManagementClass.new(context, base_url, options)
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
|
-
class SubscriptionsAdapter
|
138
|
-
attr_accessor :mgmt
|
139
|
-
|
140
|
-
def initialize(context, base_url, options)
|
141
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Subscriptions::Mgmt::SubscriptionsManagementClass.new(context, base_url, options)
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
class StorageAdapter
|
146
|
-
attr_accessor :mgmt
|
147
|
-
|
148
|
-
def initialize(context, base_url, options)
|
149
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Storage::Mgmt::StorageManagementClass.new(context, base_url, options)
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
class MonitorAdapter
|
154
|
-
attr_accessor :mgmt
|
155
|
-
|
156
|
-
def initialize(context, base_url, options)
|
157
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Monitor::Mgmt::MonitorManagementClass.new(context, base_url, options)
|
158
|
-
end
|
159
|
-
end
|
160
|
-
|
161
|
-
class WebAdapter
|
162
|
-
attr_accessor :mgmt
|
163
|
-
|
164
|
-
def initialize(context, base_url, options)
|
165
|
-
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Web::Mgmt::WebManagementClass.new(context, base_url, options)
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
end
|
170
|
-
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 'v2019_03_01_hybrid/module_definition'
|
6
|
+
require 'v2019_03_01_hybrid/modules/authorization_profile_module'
|
7
|
+
require 'v2019_03_01_hybrid/modules/locks_profile_module'
|
8
|
+
require 'v2019_03_01_hybrid/modules/policy_profile_module'
|
9
|
+
require 'v2019_03_01_hybrid/modules/compute_profile_module'
|
10
|
+
require 'v2019_03_01_hybrid/modules/keyvault_profile_module'
|
11
|
+
require 'v2019_03_01_hybrid/modules/network_profile_module'
|
12
|
+
require 'v2019_03_01_hybrid/modules/dns_profile_module'
|
13
|
+
require 'v2019_03_01_hybrid/modules/resources_profile_module'
|
14
|
+
require 'v2019_03_01_hybrid/modules/subscriptions_profile_module'
|
15
|
+
require 'v2019_03_01_hybrid/modules/storage_profile_module'
|
16
|
+
require 'v2019_03_01_hybrid/modules/monitor_profile_module'
|
17
|
+
require 'v2019_03_01_hybrid/modules/web_profile_module'
|
18
|
+
|
19
|
+
module Azure::Profiles::V2019_03_01_Hybrid
|
20
|
+
#
|
21
|
+
# Client class for the V2019_03_01_Hybrid profile SDK.
|
22
|
+
#
|
23
|
+
class Client
|
24
|
+
include MsRestAzure::Common::Configurable
|
25
|
+
|
26
|
+
attr_reader :authorization, :locks, :policy, :compute, :key_vault, :network, :dns, :resources, :subscriptions, :storage, :monitor, :web
|
27
|
+
|
28
|
+
#
|
29
|
+
# Initializes a new instance of the Client class.
|
30
|
+
# @param options [Hash] hash of client options.
|
31
|
+
# options = {
|
32
|
+
# tenant_id: 'YOUR TENANT ID',
|
33
|
+
# client_id: 'YOUR CLIENT ID',
|
34
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
35
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
36
|
+
# credentials: credentials,
|
37
|
+
# active_directory_settings: active_directory_settings,
|
38
|
+
# base_url: 'YOUR BASE URL',
|
39
|
+
# options: options
|
40
|
+
# }
|
41
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
42
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
43
|
+
#
|
44
|
+
# Also, base_url, active_directory_settings & options are optional.
|
45
|
+
#
|
46
|
+
def initialize(options = {})
|
47
|
+
if options.is_a?(Hash) && options.length == 0
|
48
|
+
@options = setup_default_options
|
49
|
+
else
|
50
|
+
@options = options
|
51
|
+
end
|
52
|
+
|
53
|
+
reset!(options)
|
54
|
+
|
55
|
+
base_url = options[:base_url].nil? ? nil:options[:base_url]
|
56
|
+
sdk_options = options[:options].nil? ? nil:options[:options]
|
57
|
+
|
58
|
+
@authorization = AuthorizationAdapter.new(self, base_url, sdk_options)
|
59
|
+
@locks = LocksAdapter.new(self, base_url, sdk_options)
|
60
|
+
@policy = PolicyAdapter.new(self, base_url, sdk_options)
|
61
|
+
@compute = ComputeAdapter.new(self, base_url, sdk_options)
|
62
|
+
@key_vault = KeyVaultAdapter.new(self, base_url, sdk_options)
|
63
|
+
@network = NetworkAdapter.new(self, base_url, sdk_options)
|
64
|
+
@dns = DnsAdapter.new(self, base_url, sdk_options)
|
65
|
+
@resources = ResourcesAdapter.new(self, base_url, sdk_options)
|
66
|
+
@subscriptions = SubscriptionsAdapter.new(self, base_url, sdk_options)
|
67
|
+
@storage = StorageAdapter.new(self, base_url, sdk_options)
|
68
|
+
@monitor = MonitorAdapter.new(self, base_url, sdk_options)
|
69
|
+
@web = WebAdapter.new(self, base_url, sdk_options)
|
70
|
+
end
|
71
|
+
|
72
|
+
class AuthorizationAdapter
|
73
|
+
attr_accessor :mgmt
|
74
|
+
|
75
|
+
def initialize(context, base_url, options)
|
76
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Authorization::Mgmt::AuthorizationManagementClass.new(context, base_url, options)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class LocksAdapter
|
81
|
+
attr_accessor :mgmt
|
82
|
+
|
83
|
+
def initialize(context, base_url, options)
|
84
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Locks::Mgmt::LocksManagementClass.new(context, base_url, options)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
class PolicyAdapter
|
89
|
+
attr_accessor :mgmt
|
90
|
+
|
91
|
+
def initialize(context, base_url, options)
|
92
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Policy::Mgmt::PolicyManagementClass.new(context, base_url, options)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
class ComputeAdapter
|
97
|
+
attr_accessor :mgmt
|
98
|
+
|
99
|
+
def initialize(context, base_url, options)
|
100
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Compute::Mgmt::ComputeManagementClass.new(context, base_url, options)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
class KeyVaultAdapter < Azure::Profiles::V2019_03_01_Hybrid::KeyVault::KeyVaultDataClass
|
105
|
+
attr_accessor :mgmt
|
106
|
+
|
107
|
+
def initialize(context, base_url, options)
|
108
|
+
super(context)
|
109
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::KeyVault::Mgmt::KeyVaultManagementClass.new(context, base_url, options)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class NetworkAdapter
|
114
|
+
attr_accessor :mgmt
|
115
|
+
|
116
|
+
def initialize(context, base_url, options)
|
117
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Network::Mgmt::NetworkManagementClass.new(context, base_url, options)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
class DnsAdapter
|
122
|
+
attr_accessor :mgmt
|
123
|
+
|
124
|
+
def initialize(context, base_url, options)
|
125
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Dns::Mgmt::DnsManagementClass.new(context, base_url, options)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
class ResourcesAdapter
|
130
|
+
attr_accessor :mgmt
|
131
|
+
|
132
|
+
def initialize(context, base_url, options)
|
133
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Resources::Mgmt::ResourcesManagementClass.new(context, base_url, options)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
class SubscriptionsAdapter
|
138
|
+
attr_accessor :mgmt
|
139
|
+
|
140
|
+
def initialize(context, base_url, options)
|
141
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Subscriptions::Mgmt::SubscriptionsManagementClass.new(context, base_url, options)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
class StorageAdapter
|
146
|
+
attr_accessor :mgmt
|
147
|
+
|
148
|
+
def initialize(context, base_url, options)
|
149
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Storage::Mgmt::StorageManagementClass.new(context, base_url, options)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
class MonitorAdapter
|
154
|
+
attr_accessor :mgmt
|
155
|
+
|
156
|
+
def initialize(context, base_url, options)
|
157
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Monitor::Mgmt::MonitorManagementClass.new(context, base_url, options)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
class WebAdapter
|
162
|
+
attr_accessor :mgmt
|
163
|
+
|
164
|
+
def initialize(context, base_url, options)
|
165
|
+
@mgmt = Azure::Profiles::V2019_03_01_Hybrid::Web::Mgmt::WebManagementClass.new(context, base_url, options)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
end
|
170
|
+
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.
|
4
|
+
version: 0.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.17.
|
145
|
+
version: 0.17.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.17.
|
152
|
+
version: 0.17.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: azure_mgmt_attestation
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,14 +282,14 @@ dependencies:
|
|
282
282
|
requirements:
|
283
283
|
- - "~>"
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version: 0.
|
285
|
+
version: 0.19.0
|
286
286
|
type: :runtime
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
290
|
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version: 0.
|
292
|
+
version: 0.19.0
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: azure_mgmt_commerce
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|
@@ -492,14 +492,14 @@ dependencies:
|
|
492
492
|
requirements:
|
493
493
|
- - "~>"
|
494
494
|
- !ruby/object:Gem::Version
|
495
|
-
version: 0.
|
495
|
+
version: 0.18.0
|
496
496
|
type: :runtime
|
497
497
|
prerelease: false
|
498
498
|
version_requirements: !ruby/object:Gem::Requirement
|
499
499
|
requirements:
|
500
500
|
- - "~>"
|
501
501
|
- !ruby/object:Gem::Version
|
502
|
-
version: 0.
|
502
|
+
version: 0.18.0
|
503
503
|
- !ruby/object:Gem::Dependency
|
504
504
|
name: azure_mgmt_deployment_manager
|
505
505
|
requirement: !ruby/object:Gem::Requirement
|
@@ -576,14 +576,14 @@ dependencies:
|
|
576
576
|
requirements:
|
577
577
|
- - "~>"
|
578
578
|
- !ruby/object:Gem::Version
|
579
|
-
version: 0.17.
|
579
|
+
version: 0.17.10
|
580
580
|
type: :runtime
|
581
581
|
prerelease: false
|
582
582
|
version_requirements: !ruby/object:Gem::Requirement
|
583
583
|
requirements:
|
584
584
|
- - "~>"
|
585
585
|
- !ruby/object:Gem::Version
|
586
|
-
version: 0.17.
|
586
|
+
version: 0.17.10
|
587
587
|
- !ruby/object:Gem::Dependency
|
588
588
|
name: azure_mgmt_event_hub
|
589
589
|
requirement: !ruby/object:Gem::Requirement
|
@@ -618,14 +618,14 @@ dependencies:
|
|
618
618
|
requirements:
|
619
619
|
- - "~>"
|
620
620
|
- !ruby/object:Gem::Version
|
621
|
-
version: 0.
|
621
|
+
version: 0.18.0
|
622
622
|
type: :runtime
|
623
623
|
prerelease: false
|
624
624
|
version_requirements: !ruby/object:Gem::Requirement
|
625
625
|
requirements:
|
626
626
|
- - "~>"
|
627
627
|
- !ruby/object:Gem::Version
|
628
|
-
version: 0.
|
628
|
+
version: 0.18.0
|
629
629
|
- !ruby/object:Gem::Dependency
|
630
630
|
name: azure_mgmt_hdinsight
|
631
631
|
requirement: !ruby/object:Gem::Requirement
|
@@ -702,14 +702,14 @@ dependencies:
|
|
702
702
|
requirements:
|
703
703
|
- - "~>"
|
704
704
|
- !ruby/object:Gem::Version
|
705
|
-
version: 0.19.
|
705
|
+
version: 0.19.1
|
706
706
|
type: :runtime
|
707
707
|
prerelease: false
|
708
708
|
version_requirements: !ruby/object:Gem::Requirement
|
709
709
|
requirements:
|
710
710
|
- - "~>"
|
711
711
|
- !ruby/object:Gem::Version
|
712
|
-
version: 0.19.
|
712
|
+
version: 0.19.1
|
713
713
|
- !ruby/object:Gem::Dependency
|
714
714
|
name: azure_mgmt_labservices
|
715
715
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1024,14 +1024,14 @@ dependencies:
|
|
1024
1024
|
requirements:
|
1025
1025
|
- - "~>"
|
1026
1026
|
- !ruby/object:Gem::Version
|
1027
|
-
version: 0.17.
|
1027
|
+
version: 0.17.8
|
1028
1028
|
type: :runtime
|
1029
1029
|
prerelease: false
|
1030
1030
|
version_requirements: !ruby/object:Gem::Requirement
|
1031
1031
|
requirements:
|
1032
1032
|
- - "~>"
|
1033
1033
|
- !ruby/object:Gem::Version
|
1034
|
-
version: 0.17.
|
1034
|
+
version: 0.17.8
|
1035
1035
|
- !ruby/object:Gem::Dependency
|
1036
1036
|
name: azure_mgmt_policy_insights
|
1037
1037
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1192,14 +1192,14 @@ dependencies:
|
|
1192
1192
|
requirements:
|
1193
1193
|
- - "~>"
|
1194
1194
|
- !ruby/object:Gem::Version
|
1195
|
-
version: 0.19.
|
1195
|
+
version: 0.19.1
|
1196
1196
|
type: :runtime
|
1197
1197
|
prerelease: false
|
1198
1198
|
version_requirements: !ruby/object:Gem::Requirement
|
1199
1199
|
requirements:
|
1200
1200
|
- - "~>"
|
1201
1201
|
- !ruby/object:Gem::Version
|
1202
|
-
version: 0.19.
|
1202
|
+
version: 0.19.1
|
1203
1203
|
- !ruby/object:Gem::Dependency
|
1204
1204
|
name: azure_mgmt_resource_health
|
1205
1205
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1402,14 +1402,14 @@ dependencies:
|
|
1402
1402
|
requirements:
|
1403
1403
|
- - "~>"
|
1404
1404
|
- !ruby/object:Gem::Version
|
1405
|
-
version: 0.19.
|
1405
|
+
version: 0.19.2
|
1406
1406
|
type: :runtime
|
1407
1407
|
prerelease: false
|
1408
1408
|
version_requirements: !ruby/object:Gem::Requirement
|
1409
1409
|
requirements:
|
1410
1410
|
- - "~>"
|
1411
1411
|
- !ruby/object:Gem::Version
|
1412
|
-
version: 0.19.
|
1412
|
+
version: 0.19.2
|
1413
1413
|
- !ruby/object:Gem::Dependency
|
1414
1414
|
name: azure_mgmt_storagesync
|
1415
1415
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1766,28 +1766,28 @@ dependencies:
|
|
1766
1766
|
requirements:
|
1767
1767
|
- - "~>"
|
1768
1768
|
- !ruby/object:Gem::Version
|
1769
|
-
version: 0.
|
1769
|
+
version: 0.18.0
|
1770
1770
|
type: :runtime
|
1771
1771
|
prerelease: false
|
1772
1772
|
version_requirements: !ruby/object:Gem::Requirement
|
1773
1773
|
requirements:
|
1774
1774
|
- - "~>"
|
1775
1775
|
- !ruby/object:Gem::Version
|
1776
|
-
version: 0.
|
1776
|
+
version: 0.18.0
|
1777
1777
|
- !ruby/object:Gem::Dependency
|
1778
1778
|
name: azure_cognitiveservices_qnamakerruntime
|
1779
1779
|
requirement: !ruby/object:Gem::Requirement
|
1780
1780
|
requirements:
|
1781
1781
|
- - "~>"
|
1782
1782
|
- !ruby/object:Gem::Version
|
1783
|
-
version: 0.17.
|
1783
|
+
version: 0.17.1
|
1784
1784
|
type: :runtime
|
1785
1785
|
prerelease: false
|
1786
1786
|
version_requirements: !ruby/object:Gem::Requirement
|
1787
1787
|
requirements:
|
1788
1788
|
- - "~>"
|
1789
1789
|
- !ruby/object:Gem::Version
|
1790
|
-
version: 0.17.
|
1790
|
+
version: 0.17.1
|
1791
1791
|
- !ruby/object:Gem::Dependency
|
1792
1792
|
name: azure_cognitiveservices_spellcheck
|
1793
1793
|
requirement: !ruby/object:Gem::Requirement
|
@@ -2117,7 +2117,7 @@ metadata:
|
|
2117
2117
|
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
2118
2118
|
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
2119
2119
|
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
2120
|
-
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ARM-0.
|
2120
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ARM-0.52.0
|
2121
2121
|
wiki_uri: https://github.com/Azure/azure-sdk-for-ruby/wiki
|
2122
2122
|
post_install_message:
|
2123
2123
|
rdoc_options: []
|
@@ -2134,7 +2134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2134
2134
|
- !ruby/object:Gem::Version
|
2135
2135
|
version: '0'
|
2136
2136
|
requirements: []
|
2137
|
-
|
2137
|
+
rubyforge_project:
|
2138
|
+
rubygems_version: 2.7.8
|
2138
2139
|
signing_key:
|
2139
2140
|
specification_version: 4
|
2140
2141
|
summary: Official Ruby client library to consume Microsoft Azure services.
|