azure_sdk 0.15.2 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +5 -5
  2. data/lib/azure_sdk/version.rb +1 -1
  3. data/lib/latest/latest_profile_client.rb +645 -61
  4. data/lib/latest/module_definition.rb +1 -118
  5. data/lib/latest/modules/analysisservices_profile_module.rb +139 -84
  6. data/lib/latest/modules/authorization_profile_module.rb +113 -100
  7. data/lib/latest/modules/automation_profile_module.rb +597 -580
  8. data/lib/latest/modules/batch_profile_module.rb +357 -132
  9. data/lib/latest/modules/billing_profile_module.rb +77 -64
  10. data/lib/latest/modules/cdn_profile_module.rb +277 -216
  11. data/lib/latest/modules/cognitiveservices_profile_module.rb +121 -108
  12. data/lib/latest/modules/commerce_profile_module.rb +79 -66
  13. data/lib/latest/modules/compute_profile_module.rb +783 -730
  14. data/lib/latest/modules/computervision_profile_module.rb +189 -0
  15. data/lib/latest/modules/consumption_profile_module.rb +153 -54
  16. data/lib/latest/modules/containerinstance_profile_module.rb +163 -106
  17. data/lib/latest/modules/containerregistry_profile_module.rb +203 -190
  18. data/lib/latest/modules/containerservice_profile_module.rb +93 -80
  19. data/lib/latest/modules/contentmoderator_profile_module.rb +295 -0
  20. data/lib/latest/modules/customerinsights_profile_module.rb +477 -464
  21. data/lib/latest/modules/customsearch_profile_module.rb +123 -0
  22. data/lib/latest/modules/datalakeanalytics_profile_module.rb +233 -152
  23. data/lib/latest/modules/datalakestore_profile_module.rb +201 -128
  24. data/lib/latest/modules/devtestlabs_profile_module.rb +697 -656
  25. data/lib/latest/modules/dns_profile_module.rb +99 -94
  26. data/lib/latest/modules/entitysearch_profile_module.rb +231 -0
  27. data/lib/latest/modules/eventgrid_profile_module.rb +220 -99
  28. data/lib/latest/modules/eventhub_profile_module.rb +165 -152
  29. data/lib/latest/modules/face_profile_module.rb +241 -0
  30. data/lib/latest/modules/features_profile_module.rb +41 -28
  31. data/lib/latest/modules/graphrbac_profile_module.rb +225 -0
  32. data/lib/latest/modules/imagesearch_profile_module.rb +279 -0
  33. data/lib/latest/modules/iothub_profile_module.rb +265 -252
  34. data/lib/latest/modules/keyvault_profile_module.rb +155 -88
  35. data/lib/latest/modules/links_profile_module.rb +49 -36
  36. data/lib/latest/modules/locks_profile_module.rb +45 -32
  37. data/lib/latest/modules/logic_profile_module.rb +593 -580
  38. data/lib/latest/modules/machinelearning_profile_module.rb +177 -164
  39. data/lib/latest/modules/managedapplications_profile_module.rb +103 -90
  40. data/lib/latest/modules/managedserviceidentity_profile_module.rb +55 -42
  41. data/lib/latest/modules/marketplaceordering_profile_module.rb +59 -46
  42. data/lib/latest/modules/mediaservices_profile_module.rb +103 -90
  43. data/lib/latest/modules/mobileengagement_profile_module.rb +397 -384
  44. data/lib/latest/modules/monitor_profile_module.rb +403 -323
  45. data/lib/latest/modules/network_profile_module.rb +1245 -1148
  46. data/lib/latest/modules/newssearch_profile_module.rb +143 -0
  47. data/lib/latest/modules/notificationhubs_profile_module.rb +155 -142
  48. data/lib/latest/modules/operationalinsights_profile_module.rb +218 -188
  49. data/lib/latest/modules/policy_profile_module.rb +84 -68
  50. data/lib/latest/modules/powerbiembedded_profile_module.rb +107 -94
  51. data/lib/latest/modules/recoveryservices_profile_module.rb +176 -188
  52. data/lib/latest/modules/recoveryservicesbackup_profile_module.rb +1133 -728
  53. data/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +1367 -1354
  54. data/lib/latest/modules/redis_profile_module.rb +165 -152
  55. data/lib/latest/modules/relay_profile_module.rb +143 -130
  56. data/lib/latest/modules/resources_profile_module.rb +227 -214
  57. data/lib/latest/modules/resourcesmanagement_profile_module.rb +81 -74
  58. data/lib/latest/modules/scheduler_profile_module.rb +207 -198
  59. data/lib/latest/modules/search_profile_module.rb +103 -76
  60. data/lib/latest/modules/servermanagement_profile_module.rb +155 -142
  61. data/lib/latest/modules/servicebus_profile_module.rb +247 -234
  62. data/lib/latest/modules/servicefabric_profile_module.rb +269 -120
  63. data/lib/latest/modules/spellcheck_profile_module.rb +101 -0
  64. data/lib/latest/modules/sql_profile_module.rb +1075 -918
  65. data/lib/latest/modules/storage_profile_module.rb +263 -250
  66. data/lib/latest/modules/storsimple8000series_profile_module.rb +695 -682
  67. data/lib/latest/modules/streamanalytics_profile_module.rb +329 -316
  68. data/lib/latest/modules/subscriptions_profile_module.rb +67 -54
  69. data/lib/latest/modules/textanalytics_profile_module.rb +105 -0
  70. data/lib/latest/modules/trafficmanager_profile_module.rb +140 -124
  71. data/lib/latest/modules/videosearch_profile_module.rb +175 -0
  72. data/lib/latest/modules/web_profile_module.rb +1289 -1138
  73. data/lib/latest/modules/websearch_profile_module.rb +211 -0
  74. data/lib/v2017_03_09/module_definition.rb +1 -20
  75. data/lib/v2017_03_09/modules/compute_profile_module.rb +437 -424
  76. data/lib/v2017_03_09/modules/features_profile_module.rb +41 -28
  77. data/lib/v2017_03_09/modules/links_profile_module.rb +49 -36
  78. data/lib/v2017_03_09/modules/locks_profile_module.rb +41 -28
  79. data/lib/v2017_03_09/modules/network_profile_module.rb +535 -522
  80. data/lib/v2017_03_09/modules/policy_profile_module.rb +51 -38
  81. data/lib/v2017_03_09/modules/resources_profile_module.rb +223 -210
  82. data/lib/v2017_03_09/modules/storage_profile_module.rb +143 -130
  83. data/lib/v2017_03_09/modules/subscriptions_profile_module.rb +67 -54
  84. data/lib/v2017_03_09/v2017_03_09_profile_client.rb +103 -10
  85. metadata +312 -133
  86. data/lib/latest/modules/graph_profile_module.rb +0 -202
@@ -5,144 +5,157 @@
5
5
  require 'azure_mgmt_storage'
6
6
 
7
7
  module Azure::Profiles::V2017_03_09
8
- module Storage::Mgmt
9
- StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts
10
- UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations
8
+ module Storage
9
+ module Mgmt
10
+ StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts
11
+ UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations
11
12
 
12
- module Models
13
- StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters
14
- StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey
15
- Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku
16
- StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult
17
- EncryptionService = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService
18
- StorageAccountListKeysResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult
19
- Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption
20
- StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters
21
- Endpoints = Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints
22
- StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters
23
- CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain
24
- UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName
25
- StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters
26
- Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage
27
- EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices
28
- UsageListResult = Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult
29
- CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult
30
- Resource = Azure::Storage::Mgmt::V2016_01_01::Models::Resource
31
- StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount
32
- Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason
33
- SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName
34
- SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier
35
- AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier
36
- Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind
37
- ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState
38
- AccountStatus = Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus
39
- KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission
40
- UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit
41
- end
42
-
43
- #
44
- # Storage
45
- #
46
- class StorageClass
47
- attr_reader :storage_accounts, :usage_operations, :configurable, :base_url, :options, :model_classes
13
+ module Models
14
+ StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters
15
+ StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey
16
+ Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku
17
+ StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult
18
+ EncryptionService = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService
19
+ StorageAccountListKeysResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult
20
+ Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption
21
+ StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters
22
+ Endpoints = Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints
23
+ StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters
24
+ CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain
25
+ UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName
26
+ StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters
27
+ Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage
28
+ EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices
29
+ UsageListResult = Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult
30
+ CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult
31
+ Resource = Azure::Storage::Mgmt::V2016_01_01::Models::Resource
32
+ StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount
33
+ Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason
34
+ SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName
35
+ SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier
36
+ AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier
37
+ Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind
38
+ ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState
39
+ AccountStatus = Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus
40
+ KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission
41
+ UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit
42
+ end
48
43
 
49
- def initialize(configurable, base_url=nil, options=nil)
50
- @configurable, @base_url, @options = configurable, base_url, options
44
+ class StorageManagementClass
45
+ attr_reader :storage_accounts, :usage_operations, :configurable, :base_url, :options, :model_classes
51
46
 
52
- client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, options)
53
- if(client_0.respond_to?(:subscription_id))
54
- client_0.subscription_id = configurable.subscription_id
55
- end
56
- @storage_accounts = client_0.storage_accounts
57
- @usage_operations = client_0.usage_operations
47
+ def initialize(configurable, base_url=nil, options=nil)
48
+ @configurable, @base_url, @options = configurable, base_url, options
58
49
 
59
- @model_classes = ModelClasses.new
60
- end
50
+ @client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, options)
51
+ if(@client_0.respond_to?(:subscription_id))
52
+ @client_0.subscription_id = configurable.subscription_id
53
+ end
54
+ add_telemetry(@client_0)
55
+ @storage_accounts = @client_0.storage_accounts
56
+ @usage_operations = @client_0.usage_operations
61
57
 
62
- class ModelClasses
63
- def storage_account_check_name_availability_parameters
64
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters
65
- end
66
- def storage_account_key
67
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey
68
- end
69
- def sku
70
- Azure::Storage::Mgmt::V2016_01_01::Models::Sku
71
- end
72
- def storage_account_list_result
73
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult
74
- end
75
- def encryption_service
76
- Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService
77
- end
78
- def storage_account_list_keys_result
79
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult
80
- end
81
- def encryption
82
- Azure::Storage::Mgmt::V2016_01_01::Models::Encryption
83
- end
84
- def storage_account_regenerate_key_parameters
85
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters
86
- end
87
- def endpoints
88
- Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints
89
- end
90
- def storage_account_update_parameters
91
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters
92
- end
93
- def custom_domain
94
- Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain
95
- end
96
- def usage_name
97
- Azure::Storage::Mgmt::V2016_01_01::Models::UsageName
58
+ @model_classes = ModelClasses.new
98
59
  end
99
- def storage_account_create_parameters
100
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters
101
- end
102
- def usage
103
- Azure::Storage::Mgmt::V2016_01_01::Models::Usage
104
- end
105
- def encryption_services
106
- Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices
107
- end
108
- def usage_list_result
109
- Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult
110
- end
111
- def check_name_availability_result
112
- Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult
113
- end
114
- def resource
115
- Azure::Storage::Mgmt::V2016_01_01::Models::Resource
116
- end
117
- def storage_account
118
- Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount
119
- end
120
- def reason
121
- Azure::Storage::Mgmt::V2016_01_01::Models::Reason
122
- end
123
- def sku_name
124
- Azure::Storage::Mgmt::V2016_01_01::Models::SkuName
125
- end
126
- def sku_tier
127
- Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier
128
- end
129
- def access_tier
130
- Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier
131
- end
132
- def kind
133
- Azure::Storage::Mgmt::V2016_01_01::Models::Kind
134
- end
135
- def provisioning_state
136
- Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState
137
- end
138
- def account_status
139
- Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus
60
+
61
+ def add_telemetry(client)
62
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2017_03_09/Storage/Mgmt"
63
+ client.add_user_agent_information(profile_information)
140
64
  end
141
- def key_permission
142
- Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission
65
+
66
+ def method_missing(method, *args)
67
+ if @client_0.respond_to?method
68
+ @client_0.send(method, *args)
69
+ else
70
+ super
71
+ end
143
72
  end
144
- def usage_unit
145
- Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit
73
+
74
+ class ModelClasses
75
+ def storage_account_check_name_availability_parameters
76
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters
77
+ end
78
+ def storage_account_key
79
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey
80
+ end
81
+ def sku
82
+ Azure::Storage::Mgmt::V2016_01_01::Models::Sku
83
+ end
84
+ def storage_account_list_result
85
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult
86
+ end
87
+ def encryption_service
88
+ Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService
89
+ end
90
+ def storage_account_list_keys_result
91
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult
92
+ end
93
+ def encryption
94
+ Azure::Storage::Mgmt::V2016_01_01::Models::Encryption
95
+ end
96
+ def storage_account_regenerate_key_parameters
97
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters
98
+ end
99
+ def endpoints
100
+ Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints
101
+ end
102
+ def storage_account_update_parameters
103
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters
104
+ end
105
+ def custom_domain
106
+ Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain
107
+ end
108
+ def usage_name
109
+ Azure::Storage::Mgmt::V2016_01_01::Models::UsageName
110
+ end
111
+ def storage_account_create_parameters
112
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters
113
+ end
114
+ def usage
115
+ Azure::Storage::Mgmt::V2016_01_01::Models::Usage
116
+ end
117
+ def encryption_services
118
+ Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices
119
+ end
120
+ def usage_list_result
121
+ Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult
122
+ end
123
+ def check_name_availability_result
124
+ Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult
125
+ end
126
+ def resource
127
+ Azure::Storage::Mgmt::V2016_01_01::Models::Resource
128
+ end
129
+ def storage_account
130
+ Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount
131
+ end
132
+ def reason
133
+ Azure::Storage::Mgmt::V2016_01_01::Models::Reason
134
+ end
135
+ def sku_name
136
+ Azure::Storage::Mgmt::V2016_01_01::Models::SkuName
137
+ end
138
+ def sku_tier
139
+ Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier
140
+ end
141
+ def access_tier
142
+ Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier
143
+ end
144
+ def kind
145
+ Azure::Storage::Mgmt::V2016_01_01::Models::Kind
146
+ end
147
+ def provisioning_state
148
+ Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState
149
+ end
150
+ def account_status
151
+ Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus
152
+ end
153
+ def key_permission
154
+ Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission
155
+ end
156
+ def usage_unit
157
+ Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit
158
+ end
146
159
  end
147
160
  end
148
161
  end
@@ -5,68 +5,81 @@
5
5
  require 'azure_mgmt_subscriptions'
6
6
 
7
7
  module Azure::Profiles::V2017_03_09
8
- module Subscriptions::Mgmt
9
- Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions
10
- Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants
8
+ module Subscriptions
9
+ module Mgmt
10
+ Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions
11
+ Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants
11
12
 
12
- module Models
13
- Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
14
- SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
15
- LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
16
- TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
17
- Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
18
- TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
19
- SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
20
- SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
21
- SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
22
- end
13
+ module Models
14
+ Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
15
+ SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
16
+ LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
17
+ TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
18
+ Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
19
+ TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
20
+ SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
21
+ SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
22
+ SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
23
+ end
23
24
 
24
- #
25
- # Subscriptions
26
- #
27
- class SubscriptionsClass
28
- attr_reader :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
25
+ class SubscriptionsManagementClass
26
+ attr_reader :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
29
27
 
30
- def initialize(configurable, base_url=nil, options=nil)
31
- @configurable, @base_url, @options = configurable, base_url, options
28
+ def initialize(configurable, base_url=nil, options=nil)
29
+ @configurable, @base_url, @options = configurable, base_url, options
32
30
 
33
- client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
34
- if(client_0.respond_to?(:subscription_id))
35
- client_0.subscription_id = configurable.subscription_id
36
- end
37
- @subscriptions = client_0.subscriptions
38
- @tenants = client_0.tenants
31
+ @client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
32
+ if(@client_0.respond_to?(:subscription_id))
33
+ @client_0.subscription_id = configurable.subscription_id
34
+ end
35
+ add_telemetry(@client_0)
36
+ @subscriptions = @client_0.subscriptions
37
+ @tenants = @client_0.tenants
39
38
 
40
- @model_classes = ModelClasses.new
41
- end
42
-
43
- class ModelClasses
44
- def subscription
45
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
46
- end
47
- def subscription_list_result
48
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
49
- end
50
- def location_list_result
51
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
39
+ @model_classes = ModelClasses.new
52
40
  end
53
- def tenant_id_description
54
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
55
- end
56
- def location
57
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
58
- end
59
- def tenant_list_result
60
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
61
- end
62
- def subscription_policies
63
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
41
+
42
+ def add_telemetry(client)
43
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2017_03_09/Subscriptions/Mgmt"
44
+ client.add_user_agent_information(profile_information)
64
45
  end
65
- def subscription_state
66
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
46
+
47
+ def method_missing(method, *args)
48
+ if @client_0.respond_to?method
49
+ @client_0.send(method, *args)
50
+ else
51
+ super
52
+ end
67
53
  end
68
- def spending_limit
69
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
54
+
55
+ class ModelClasses
56
+ def subscription
57
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
58
+ end
59
+ def subscription_list_result
60
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
61
+ end
62
+ def location_list_result
63
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
64
+ end
65
+ def tenant_id_description
66
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
67
+ end
68
+ def location
69
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
70
+ end
71
+ def tenant_list_result
72
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
73
+ end
74
+ def subscription_policies
75
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
76
+ end
77
+ def subscription_state
78
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
79
+ end
80
+ def spending_limit
81
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
82
+ end
70
83
  end
71
84
  end
72
85
  end
@@ -13,7 +13,7 @@ require 'v2017_03_09/modules/policy_profile_module'
13
13
  require 'v2017_03_09/modules/resources_profile_module'
14
14
  require 'v2017_03_09/modules/subscriptions_profile_module'
15
15
 
16
- module Azure::Profiles::V2017_03_09::Mgmt
16
+ module Azure::Profiles::V2017_03_09
17
17
  #
18
18
  # Client class for the V2017_03_09 profile SDK.
19
19
  #
@@ -22,6 +22,24 @@ module Azure::Profiles::V2017_03_09::Mgmt
22
22
 
23
23
  attr_reader :storage, :network, :compute, :features, :links, :locks, :policy, :resources, :subscriptions
24
24
 
25
+ #
26
+ # Initializes a new instance of the Client class.
27
+ # @param options [Hash] hash of client options.
28
+ # options = {
29
+ # tenant_id: 'YOUR TENANT ID',
30
+ # client_id: 'YOUR CLIENT ID',
31
+ # client_secret: 'YOUR CLIENT SECRET',
32
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
33
+ # credentials: credentials,
34
+ # active_directory_settings: active_directory_settings,
35
+ # base_url: 'YOUR BASE URL',
36
+ # options: options
37
+ # }
38
+ # 'credentials' are optional and if not passed in the hash, will be obtained
39
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
40
+ #
41
+ # Also, base_url, active_directory_settings & options are optional.
42
+ #
25
43
  def initialize(options = {})
26
44
  if options.is_a?(Hash) && options.length == 0
27
45
  @options = setup_default_options
@@ -31,15 +49,90 @@ module Azure::Profiles::V2017_03_09::Mgmt
31
49
 
32
50
  reset!(options)
33
51
 
34
- @storage = Azure::Profiles::V2017_03_09::Storage::Mgmt::StorageClass.new(self)
35
- @network = Azure::Profiles::V2017_03_09::Network::Mgmt::NetworkClass.new(self)
36
- @compute = Azure::Profiles::V2017_03_09::Compute::Mgmt::ComputeClass.new(self)
37
- @features = Azure::Profiles::V2017_03_09::Features::Mgmt::FeaturesClass.new(self)
38
- @links = Azure::Profiles::V2017_03_09::Links::Mgmt::LinksClass.new(self)
39
- @locks = Azure::Profiles::V2017_03_09::Locks::Mgmt::LocksClass.new(self)
40
- @policy = Azure::Profiles::V2017_03_09::Policy::Mgmt::PolicyClass.new(self)
41
- @resources = Azure::Profiles::V2017_03_09::Resources::Mgmt::ResourcesClass.new(self)
42
- @subscriptions = Azure::Profiles::V2017_03_09::Subscriptions::Mgmt::SubscriptionsClass.new(self)
52
+ base_url = options[:base_url].nil? ? nil:options[:base_url]
53
+ sdk_options = options[:options].nil? ? nil:options[:options]
54
+
55
+ @storage = StorageAdapter.new(self, base_url, sdk_options)
56
+ @network = NetworkAdapter.new(self, base_url, sdk_options)
57
+ @compute = ComputeAdapter.new(self, base_url, sdk_options)
58
+ @features = FeaturesAdapter.new(self, base_url, sdk_options)
59
+ @links = LinksAdapter.new(self, base_url, sdk_options)
60
+ @locks = LocksAdapter.new(self, base_url, sdk_options)
61
+ @policy = PolicyAdapter.new(self, base_url, sdk_options)
62
+ @resources = ResourcesAdapter.new(self, base_url, sdk_options)
63
+ @subscriptions = SubscriptionsAdapter.new(self, base_url, sdk_options)
64
+ end
65
+
66
+ class StorageAdapter
67
+ attr_accessor :mgmt
68
+
69
+ def initialize(context, base_url, options)
70
+ @mgmt = Azure::Profiles::V2017_03_09::Storage::Mgmt::StorageManagementClass.new(context, base_url, options)
71
+ end
72
+ end
73
+
74
+ class NetworkAdapter
75
+ attr_accessor :mgmt
76
+
77
+ def initialize(context, base_url, options)
78
+ @mgmt = Azure::Profiles::V2017_03_09::Network::Mgmt::NetworkManagementClass.new(context, base_url, options)
79
+ end
80
+ end
81
+
82
+ class ComputeAdapter
83
+ attr_accessor :mgmt
84
+
85
+ def initialize(context, base_url, options)
86
+ @mgmt = Azure::Profiles::V2017_03_09::Compute::Mgmt::ComputeManagementClass.new(context, base_url, options)
87
+ end
88
+ end
89
+
90
+ class FeaturesAdapter
91
+ attr_accessor :mgmt
92
+
93
+ def initialize(context, base_url, options)
94
+ @mgmt = Azure::Profiles::V2017_03_09::Features::Mgmt::FeaturesManagementClass.new(context, base_url, options)
95
+ end
96
+ end
97
+
98
+ class LinksAdapter
99
+ attr_accessor :mgmt
100
+
101
+ def initialize(context, base_url, options)
102
+ @mgmt = Azure::Profiles::V2017_03_09::Links::Mgmt::LinksManagementClass.new(context, base_url, options)
103
+ end
104
+ end
105
+
106
+ class LocksAdapter
107
+ attr_accessor :mgmt
108
+
109
+ def initialize(context, base_url, options)
110
+ @mgmt = Azure::Profiles::V2017_03_09::Locks::Mgmt::LocksManagementClass.new(context, base_url, options)
111
+ end
112
+ end
113
+
114
+ class PolicyAdapter
115
+ attr_accessor :mgmt
116
+
117
+ def initialize(context, base_url, options)
118
+ @mgmt = Azure::Profiles::V2017_03_09::Policy::Mgmt::PolicyManagementClass.new(context, base_url, options)
119
+ end
120
+ end
121
+
122
+ class ResourcesAdapter
123
+ attr_accessor :mgmt
124
+
125
+ def initialize(context, base_url, options)
126
+ @mgmt = Azure::Profiles::V2017_03_09::Resources::Mgmt::ResourcesManagementClass.new(context, base_url, options)
127
+ end
128
+ end
129
+
130
+ class SubscriptionsAdapter
131
+ attr_accessor :mgmt
132
+
133
+ def initialize(context, base_url, options)
134
+ @mgmt = Azure::Profiles::V2017_03_09::Subscriptions::Mgmt::SubscriptionsManagementClass.new(context, base_url, options)
135
+ end
43
136
  end
44
137
 
45
138
  end