azure_mgmt_datalake_analytics 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics.rb +51 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb +3131 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +131 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb +46 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb +46 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/azure_async_operation_result.rb +66 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/blob_container.rb +79 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/blob_container_properties.rb +45 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb +107 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb +110 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb +97 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb +109 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties.rb +167 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb +16 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb +23 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb +56 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info_properties.rb +44 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/error.rb +99 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/error_details.rb +69 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/inner_error.rb +56 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/list_blob_containers_result.rb +97 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb +97 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/operation_status.rb +17 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb +46 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb +57 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/storage_account_properties.rb +55 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/module_definition.rb +9 -0
- data/lib/{generated/azure_mgmt_datalake_analytics/module_definition.rb → 2015-10-01-preview/generated/azure_mgmt_datalake_analytics/version.rb} +3 -3
- data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics.rb +64 -0
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/account.rb +14 -14
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/compute_policies.rb +8 -8
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +3 -3
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb +5 -5
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/firewall_rules.rb +8 -8
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/aadobject_type.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/compute_policy.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/firewall_rule.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/firewall_state.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/resource.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/sas_token_info.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/storage_account_info.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/storage_container.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/sub_resource.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/tier_type.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb +1 -1
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb +1 -1
- data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/module_definition.rb +9 -0
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/storage_accounts.rb +11 -11
- data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/version.rb +2 -2
- data/lib/azure_mgmt_datalake_analytics.rb +6 -1
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/datalakeanalytics_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/datalakeanalytics_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/datalakeanalytics_profile_module.rb +178 -0
- data/lib/version.rb +7 -0
- metadata +78 -43
- data/lib/generated/azure_mgmt_datalake_analytics.rb +0 -64
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Storage account parameters for a storage account being updated in a Data
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure end
|
7
|
+
module Azure::DataLakeAnalytics end
|
8
|
+
module Azure::DataLakeAnalytics::Mgmt end
|
9
|
+
module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 end
|
data/lib/{generated → 2016-11-01/generated}/azure_mgmt_datalake_analytics/storage_accounts.rb
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
|
7
7
|
#
|
8
8
|
# Creates an Azure Data Lake Analytics account management client.
|
9
9
|
#
|
@@ -98,7 +98,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
98
98
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
99
99
|
|
100
100
|
# Serialize Request
|
101
|
-
request_mapper = Azure::
|
101
|
+
request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters.mapper()
|
102
102
|
request_content = @client.serialize(request_mapper, parameters)
|
103
103
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
104
104
|
|
@@ -209,7 +209,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
209
209
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
210
210
|
|
211
211
|
# Serialize Request
|
212
|
-
request_mapper = Azure::
|
212
|
+
request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters.mapper()
|
213
213
|
request_content = @client.serialize(request_mapper, parameters)
|
214
214
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
215
215
|
|
@@ -434,7 +434,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
434
434
|
if status_code == 200
|
435
435
|
begin
|
436
436
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
437
|
-
result_mapper = Azure::
|
437
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInfo.mapper()
|
438
438
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
439
439
|
rescue Exception => e
|
440
440
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -548,7 +548,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
548
548
|
if status_code == 200
|
549
549
|
begin
|
550
550
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
551
|
-
result_mapper = Azure::
|
551
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer.mapper()
|
552
552
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
553
553
|
rescue Exception => e
|
554
554
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -658,7 +658,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
658
658
|
if status_code == 200
|
659
659
|
begin
|
660
660
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
661
|
-
result_mapper = Azure::
|
661
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListStorageContainersResult.mapper()
|
662
662
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
663
663
|
rescue Exception => e
|
664
664
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -772,7 +772,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
772
772
|
if status_code == 200
|
773
773
|
begin
|
774
774
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
775
|
-
result_mapper = Azure::
|
775
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListSasTokensResult.mapper()
|
776
776
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
777
777
|
rescue Exception => e
|
778
778
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -917,7 +917,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
917
917
|
if status_code == 200
|
918
918
|
begin
|
919
919
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
920
|
-
result_mapper = Azure::
|
920
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
|
921
921
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
922
922
|
rescue Exception => e
|
923
923
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1010,7 +1010,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
1010
1010
|
if status_code == 200
|
1011
1011
|
begin
|
1012
1012
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1013
|
-
result_mapper = Azure::
|
1013
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListStorageContainersResult.mapper()
|
1014
1014
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1015
1015
|
rescue Exception => e
|
1016
1016
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1100,7 +1100,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
1100
1100
|
if status_code == 200
|
1101
1101
|
begin
|
1102
1102
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1103
|
-
result_mapper = Azure::
|
1103
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListSasTokensResult.mapper()
|
1104
1104
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1105
1105
|
rescue Exception => e
|
1106
1106
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1194,7 +1194,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
1194
1194
|
if status_code == 200
|
1195
1195
|
begin
|
1196
1196
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1197
|
-
result_mapper = Azure::
|
1197
|
+
result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
|
1198
1198
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1199
1199
|
rescue Exception => e
|
1200
1200
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1,2 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
|
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 '2015-10-01-preview/generated/azure_mgmt_datalake_analytics'
|
6
|
+
require '2016-11-01/generated/azure_mgmt_datalake_analytics'
|
7
|
+
require 'profiles/latest/datalakeanalytics_latest_profile_client'
|
@@ -0,0 +1,8 @@
|
|
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
|
+
module Azure end
|
6
|
+
module Azure::DataLakeAnalytics end
|
7
|
+
module Azure::DataLakeAnalytics::Mgmt end
|
8
|
+
|
@@ -0,0 +1,73 @@
|
|
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
|
+
module Azure::ARM
|
6
|
+
# The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
|
7
|
+
module Configurable
|
8
|
+
# @return [String] Azure tenant id (also known as domain).
|
9
|
+
attr_accessor :tenant_id
|
10
|
+
|
11
|
+
# @return [String] Azure client id.
|
12
|
+
attr_accessor :client_id
|
13
|
+
|
14
|
+
# @return [String] Azure secret key.
|
15
|
+
attr_accessor :client_secret
|
16
|
+
|
17
|
+
# @return [String] Azure subscription id.
|
18
|
+
attr_accessor :subscription_id
|
19
|
+
|
20
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
+
attr_accessor :active_directory_settings
|
22
|
+
|
23
|
+
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
+
attr_accessor :credentials
|
25
|
+
|
26
|
+
class << self
|
27
|
+
#
|
28
|
+
# List of configurable keys for {Azure::ARM::Client}.
|
29
|
+
# @return [Array] of option keys.
|
30
|
+
#
|
31
|
+
def keys
|
32
|
+
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Set configuration options using a block.
|
38
|
+
#
|
39
|
+
def configure
|
40
|
+
yield self
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Resets the configurable options to provided options or defaults.
|
45
|
+
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
+
#
|
47
|
+
def reset!(options = {})
|
48
|
+
Azure::ARM::Configurable.keys.each do |key|
|
49
|
+
default_value = Azure::ARM::Default.options[key]
|
50
|
+
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
+
end
|
52
|
+
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def config
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
#
|
63
|
+
# configures configurable options to default values
|
64
|
+
#
|
65
|
+
def setup_options
|
66
|
+
opts = {}
|
67
|
+
Azure::ARM::Configurable.keys.map do |key|
|
68
|
+
opts[key] = Azure::ARM::Default.options[key]
|
69
|
+
end
|
70
|
+
opts
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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
|
+
module Azure::ARM
|
6
|
+
# Default configuration options for {Azure::ARM.Client}
|
7
|
+
module Default
|
8
|
+
class << self
|
9
|
+
#
|
10
|
+
# Default Azure Tenant Id.
|
11
|
+
# @return [String] Azure Tenant Id.
|
12
|
+
#
|
13
|
+
def tenant_id
|
14
|
+
ENV['AZURE_TENANT_ID']
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# Default Azure Client Id.
|
19
|
+
# @return [String] Azure Client Id.
|
20
|
+
#
|
21
|
+
def client_id
|
22
|
+
ENV['AZURE_CLIENT_ID']
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Default Azure Client Secret.
|
27
|
+
# @return [String] Azure Client Secret.
|
28
|
+
#
|
29
|
+
def client_secret
|
30
|
+
ENV['AZURE_CLIENT_SECRET']
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Default Azure Subscription Id.
|
35
|
+
# @return [String] Azure Subscription Id.
|
36
|
+
#
|
37
|
+
def subscription_id
|
38
|
+
ENV['AZURE_SUBSCRIPTION_ID']
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Default Azure credentials to authorize HTTP requests made by the service client.
|
43
|
+
# @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
|
44
|
+
#
|
45
|
+
def credentials
|
46
|
+
MsRest::TokenCredentials.new(
|
47
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
48
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Default Azure Active Directory Service Settings.
|
53
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
54
|
+
#
|
55
|
+
def active_directory_settings
|
56
|
+
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Configuration options.
|
61
|
+
# @return [Hash] Configuration options.
|
62
|
+
#
|
63
|
+
def options
|
64
|
+
Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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 'profiles/latest/datalakeanalytics_module_definition'
|
6
|
+
require 'profiles/latest/modules/datalakeanalytics_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::DataLakeAnalytics::Profiles::Latest::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the Latest profile SDK.
|
13
|
+
#
|
14
|
+
class Client < DataLakeAnalyticsClass
|
15
|
+
include Azure::ARM::Configurable
|
16
|
+
|
17
|
+
|
18
|
+
def initialize(options = {})
|
19
|
+
super(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def credentials
|
23
|
+
if @credentials.nil?
|
24
|
+
self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
|
25
|
+
|
26
|
+
@credentials = MsRest::TokenCredentials.new(
|
27
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
28
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
29
|
+
end
|
30
|
+
@credentials
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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
|
+
module Azure end
|
6
|
+
module Azure::DataLakeAnalytics end
|
7
|
+
module Azure::DataLakeAnalytics::Profiles end
|
8
|
+
module Azure::DataLakeAnalytics::Profiles::Latest end
|
9
|
+
module Azure::DataLakeAnalytics::Profiles::Latest::Mgmt end
|
@@ -0,0 +1,178 @@
|
|
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_datalake_analytics'
|
6
|
+
|
7
|
+
module Azure::DataLakeAnalytics::Profiles::Latest::Mgmt
|
8
|
+
ComputePolicies = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::ComputePolicies
|
9
|
+
FirewallRules = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::FirewallRules
|
10
|
+
StorageAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts
|
11
|
+
DataLakeStoreAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeStoreAccounts
|
12
|
+
Account = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Account
|
13
|
+
|
14
|
+
module Models
|
15
|
+
UpdateStorageAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters
|
16
|
+
AddDataLakeStoreParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreParameters
|
17
|
+
StorageContainer = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer
|
18
|
+
AddStorageAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters
|
19
|
+
SasTokenInfo = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInfo
|
20
|
+
OptionalSubResource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OptionalSubResource
|
21
|
+
ComputePolicyCreateOrUpdateParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyCreateOrUpdateParameters
|
22
|
+
DataLakeAnalyticsAccountListDataLakeStoreResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListDataLakeStoreResult
|
23
|
+
ComputePolicyListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyListResult
|
24
|
+
ComputePolicyAccountCreateParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyAccountCreateParameters
|
25
|
+
DataLakeAnalyticsAccountUpdateParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountUpdateParameters
|
26
|
+
ListStorageContainersResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListStorageContainersResult
|
27
|
+
DataLakeAnalyticsAccountPropertiesBasic = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountPropertiesBasic
|
28
|
+
DataLakeAnalyticsAccountListStorageAccountsResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListStorageAccountsResult
|
29
|
+
Resource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource
|
30
|
+
ComputePolicy = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicy
|
31
|
+
UpdateFirewallRuleParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters
|
32
|
+
SubResource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource
|
33
|
+
DataLakeAnalyticsAccountListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult
|
34
|
+
ListSasTokensResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListSasTokensResult
|
35
|
+
DataLakeAnalyticsFirewallRuleListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsFirewallRuleListResult
|
36
|
+
StorageAccountInfo = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInfo
|
37
|
+
DataLakeStoreAccountInfo = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInfo
|
38
|
+
FirewallRule = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRule
|
39
|
+
DataLakeAnalyticsAccountBasic = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountBasic
|
40
|
+
DataLakeAnalyticsAccount = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount
|
41
|
+
TierType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType
|
42
|
+
FirewallState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallState
|
43
|
+
FirewallAllowAzureIpsState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState
|
44
|
+
AADObjectType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AADObjectType
|
45
|
+
DataLakeAnalyticsAccountStatus = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus
|
46
|
+
DataLakeAnalyticsAccountState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# DataLakeAnalytics
|
51
|
+
#
|
52
|
+
class DataLakeAnalyticsClass
|
53
|
+
attr_reader :compute_policies, :firewall_rules, :storage_accounts, :data_lake_store_accounts, :account, :configurable, :base_url, :options, :model_classes
|
54
|
+
|
55
|
+
def initialize(options = {})
|
56
|
+
if options.is_a?(Hash) && options.length == 0
|
57
|
+
@options = setup_options
|
58
|
+
else
|
59
|
+
@options = options
|
60
|
+
end
|
61
|
+
|
62
|
+
reset!(options)
|
63
|
+
|
64
|
+
@configurable, @base_url, @options = self, nil, nil
|
65
|
+
|
66
|
+
client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.new(configurable.credentials, base_url, options)
|
67
|
+
if(client_0.respond_to?(:subscription_id))
|
68
|
+
client_0.subscription_id = configurable.subscription_id
|
69
|
+
end
|
70
|
+
@compute_policies = client_0.compute_policies
|
71
|
+
@firewall_rules = client_0.firewall_rules
|
72
|
+
@storage_accounts = client_0.storage_accounts
|
73
|
+
@data_lake_store_accounts = client_0.data_lake_store_accounts
|
74
|
+
@account = client_0.account
|
75
|
+
|
76
|
+
@model_classes = ModelClasses.new
|
77
|
+
end
|
78
|
+
|
79
|
+
class ModelClasses
|
80
|
+
def update_storage_account_parameters
|
81
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters
|
82
|
+
end
|
83
|
+
def add_data_lake_store_parameters
|
84
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreParameters
|
85
|
+
end
|
86
|
+
def storage_container
|
87
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer
|
88
|
+
end
|
89
|
+
def add_storage_account_parameters
|
90
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters
|
91
|
+
end
|
92
|
+
def sas_token_info
|
93
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInfo
|
94
|
+
end
|
95
|
+
def optional_sub_resource
|
96
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OptionalSubResource
|
97
|
+
end
|
98
|
+
def compute_policy_create_or_update_parameters
|
99
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyCreateOrUpdateParameters
|
100
|
+
end
|
101
|
+
def data_lake_analytics_account_list_data_lake_store_result
|
102
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListDataLakeStoreResult
|
103
|
+
end
|
104
|
+
def compute_policy_list_result
|
105
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyListResult
|
106
|
+
end
|
107
|
+
def compute_policy_account_create_parameters
|
108
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyAccountCreateParameters
|
109
|
+
end
|
110
|
+
def data_lake_analytics_account_update_parameters
|
111
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountUpdateParameters
|
112
|
+
end
|
113
|
+
def list_storage_containers_result
|
114
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListStorageContainersResult
|
115
|
+
end
|
116
|
+
def data_lake_analytics_account_properties_basic
|
117
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountPropertiesBasic
|
118
|
+
end
|
119
|
+
def data_lake_analytics_account_list_storage_accounts_result
|
120
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListStorageAccountsResult
|
121
|
+
end
|
122
|
+
def resource
|
123
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource
|
124
|
+
end
|
125
|
+
def compute_policy
|
126
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicy
|
127
|
+
end
|
128
|
+
def update_firewall_rule_parameters
|
129
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters
|
130
|
+
end
|
131
|
+
def sub_resource
|
132
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource
|
133
|
+
end
|
134
|
+
def data_lake_analytics_account_list_result
|
135
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListResult
|
136
|
+
end
|
137
|
+
def list_sas_tokens_result
|
138
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListSasTokensResult
|
139
|
+
end
|
140
|
+
def data_lake_analytics_firewall_rule_list_result
|
141
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsFirewallRuleListResult
|
142
|
+
end
|
143
|
+
def storage_account_info
|
144
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInfo
|
145
|
+
end
|
146
|
+
def data_lake_store_account_info
|
147
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInfo
|
148
|
+
end
|
149
|
+
def firewall_rule
|
150
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallRule
|
151
|
+
end
|
152
|
+
def data_lake_analytics_account_basic
|
153
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountBasic
|
154
|
+
end
|
155
|
+
def data_lake_analytics_account
|
156
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount
|
157
|
+
end
|
158
|
+
def tier_type
|
159
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType
|
160
|
+
end
|
161
|
+
def firewall_state
|
162
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallState
|
163
|
+
end
|
164
|
+
def firewall_allow_azure_ips_state
|
165
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState
|
166
|
+
end
|
167
|
+
def aadobject_type
|
168
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AADObjectType
|
169
|
+
end
|
170
|
+
def data_lake_analytics_account_status
|
171
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus
|
172
|
+
end
|
173
|
+
def data_lake_analytics_account_state
|
174
|
+
Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|