azure_mgmt_datalake_store 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb +105 -97
  3. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb +4 -1
  4. data/lib/2016-11-01/generated/azure_mgmt_datalake_store.rb +28 -12
  5. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/{account.rb → accounts.rb} +491 -402
  6. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb +15 -4
  7. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/firewall_rules.rb +171 -201
  8. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/locations.rb +116 -0
  9. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/capability_information.rb +100 -0
  10. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/check_name_availability_parameters.rb +61 -0
  11. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/create_data_lake_store_account_parameters.rb +216 -0
  12. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/create_firewall_rule_with_account_parameters.rb +71 -0
  13. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/create_or_update_firewall_rule_parameters.rb +59 -0
  14. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/create_or_update_trusted_id_provider_parameters.rb +47 -0
  15. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/create_trusted_id_provider_with_account_parameters.rb +60 -0
  16. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb +82 -70
  17. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/data_lake_store_account_basic.rb +21 -19
  18. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb +3 -3
  19. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/firewall_rule.rb +8 -5
  20. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/{data_lake_store_firewall_rule_list_result.rb → firewall_rule_list_result.rb} +7 -7
  21. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/{error_details.rb → name_availability_information.rb} +21 -20
  22. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/operation.rb +72 -0
  23. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/operation_display.rb +83 -0
  24. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/operation_list_result.rb +68 -0
  25. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/operation_origin.rb +17 -0
  26. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/resource.rb +9 -7
  27. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/sub_resource.rb +5 -4
  28. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/subscription_state.rb +19 -0
  29. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb +5 -3
  30. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/{data_lake_store_trusted_id_provider_list_result.rb → trusted_id_provider_list_result.rb} +7 -8
  31. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/{data_lake_store_account_update_parameters.rb → update_data_lake_store_account_parameters.rb} +84 -41
  32. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb +3 -3
  33. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/update_firewall_rule_with_account_parameters.rb +71 -0
  34. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb +2 -2
  35. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_with_account_parameters.rb +60 -0
  36. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/operations.rb +107 -0
  37. data/lib/2016-11-01/generated/azure_mgmt_datalake_store/trusted_id_providers.rb +171 -201
  38. data/lib/profiles/latest/datalakestore_latest_profile_client.rb +28 -9
  39. data/lib/profiles/latest/datalakestore_module_definition.rb +0 -1
  40. data/lib/profiles/latest/modules/datalakestore_profile_module.rb +184 -105
  41. data/lib/version.rb +1 -1
  42. metadata +23 -7
@@ -0,0 +1,116 @@
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::DataLakeStore::Mgmt::V2016_11_01
7
+ #
8
+ # Creates an Azure Data Lake Store account management client.
9
+ #
10
+ class Locations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Locations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [DataLakeStoreAccountManagementClient] reference to the DataLakeStoreAccountManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets subscription-level properties and limits for Data Lake Store specified
26
+ # by resource location.
27
+ #
28
+ # @param location [String] The resource location without whitespace.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [CapabilityInformation] operation results.
33
+ #
34
+ def get_capability(location, custom_headers:nil)
35
+ response = get_capability_async(location, custom_headers:custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Gets subscription-level properties and limits for Data Lake Store specified
41
+ # by resource location.
42
+ #
43
+ # @param location [String] The resource location without whitespace.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def get_capability_with_http_info(location, custom_headers:nil)
50
+ get_capability_async(location, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Gets subscription-level properties and limits for Data Lake Store specified
55
+ # by resource location.
56
+ #
57
+ # @param location [String] The resource location without whitespace.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def get_capability_async(location, custom_headers:nil)
64
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
+ fail ArgumentError, 'location is nil' if location.nil?
66
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
67
+
68
+
69
+ request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
+
72
+ # Set Headers
73
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
74
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
75
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/locations/{location}/capability'
76
+
77
+ request_url = @base_url || @client.base_url
78
+
79
+ options = {
80
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
81
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
82
+ query_params: {'api-version' => @client.api_version},
83
+ headers: request_headers.merge(custom_headers || {}),
84
+ base_url: request_url
85
+ }
86
+ promise = @client.make_request_async(:get, path_template, options)
87
+
88
+ promise = promise.then do |result|
89
+ http_response = result.response
90
+ status_code = http_response.status
91
+ response_content = http_response.body
92
+ unless status_code == 200 || status_code == 404
93
+ error_model = JSON.load(response_content)
94
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
95
+ end
96
+
97
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
98
+ # Deserialize Response
99
+ if status_code == 200
100
+ begin
101
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
102
+ result_mapper = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CapabilityInformation.mapper()
103
+ result.body = @client.deserialize(result_mapper, parsed_response)
104
+ rescue Exception => e
105
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
106
+ end
107
+ end
108
+
109
+ result
110
+ end
111
+
112
+ promise.execute
113
+ end
114
+
115
+ end
116
+ end
@@ -0,0 +1,100 @@
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::DataLakeStore::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # Subscription-level properties and limits for Data Lake Store.
10
+ #
11
+ class CapabilityInformation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return The subscription credentials that uniquely identifies the
16
+ # subscription.
17
+ attr_accessor :subscription_id
18
+
19
+ # @return [SubscriptionState] The subscription state. Possible values
20
+ # include: 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned'
21
+ attr_accessor :state
22
+
23
+ # @return [Integer] The maximum supported number of accounts under this
24
+ # subscription.
25
+ attr_accessor :max_account_count
26
+
27
+ # @return [Integer] The current number of accounts under this
28
+ # subscription.
29
+ attr_accessor :account_count
30
+
31
+ # @return [Boolean] The Boolean value of true or false to indicate the
32
+ # maintenance state.
33
+ attr_accessor :migration_state
34
+
35
+
36
+ #
37
+ # Mapper for CapabilityInformation class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'CapabilityInformation',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'CapabilityInformation',
48
+ model_properties: {
49
+ subscription_id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'subscriptionId',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ state: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'state',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ max_account_count: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'maxAccountCount',
72
+ type: {
73
+ name: 'Number'
74
+ }
75
+ },
76
+ account_count: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'accountCount',
81
+ type: {
82
+ name: 'Number'
83
+ }
84
+ },
85
+ migration_state: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ read_only: true,
89
+ serialized_name: 'migrationState',
90
+ type: {
91
+ name: 'Boolean'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,61 @@
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::DataLakeStore::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # Data Lake Store account name availability check parameters.
10
+ #
11
+ class CheckNameAvailabilityParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The Data Lake Store name to check availability for.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The resource type. Note: This should not be set by the
19
+ # user, as the constant value is Microsoft.DataLakeStore/accounts.
20
+ # Default value: 'Microsoft.DataLakeStore/accounts' .
21
+ attr_accessor :type
22
+
23
+
24
+ #
25
+ # Mapper for CheckNameAvailabilityParameters class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'CheckNameAvailabilityParameters',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'CheckNameAvailabilityParameters',
36
+ model_properties: {
37
+ name: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ type: {
46
+ client_side_validation: true,
47
+ required: true,
48
+ is_constant: true,
49
+ serialized_name: 'type',
50
+ default_value: 'Microsoft.DataLakeStore/accounts',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,216 @@
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::DataLakeStore::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class CreateDataLakeStoreAccountParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The resource location.
17
+ attr_accessor :location
18
+
19
+ # @return [Hash{String => String}] The resource tags.
20
+ attr_accessor :tags
21
+
22
+ # @return [EncryptionIdentity] The Key Vault encryption identity, if any.
23
+ attr_accessor :identity
24
+
25
+ # @return [String] The default owner group for all new folders and files
26
+ # created in the Data Lake Store account.
27
+ attr_accessor :default_group
28
+
29
+ # @return [EncryptionConfig] The Key Vault encryption configuration.
30
+ attr_accessor :encryption_config
31
+
32
+ # @return [EncryptionState] The current state of encryption for this Data
33
+ # Lake Store account. Possible values include: 'Enabled', 'Disabled'
34
+ attr_accessor :encryption_state
35
+
36
+ # @return [Array<CreateFirewallRuleWithAccountParameters>] The list of
37
+ # firewall rules associated with this Data Lake Store account.
38
+ attr_accessor :firewall_rules
39
+
40
+ # @return [FirewallState] The current state of the IP address firewall
41
+ # for this Data Lake Store account. Possible values include: 'Enabled',
42
+ # 'Disabled'
43
+ attr_accessor :firewall_state
44
+
45
+ # @return [FirewallAllowAzureIpsState] The current state of allowing or
46
+ # disallowing IPs originating within Azure through the firewall. If the
47
+ # firewall is disabled, this is not enforced. Possible values include:
48
+ # 'Enabled', 'Disabled'
49
+ attr_accessor :firewall_allow_azure_ips
50
+
51
+ # @return [Array<CreateTrustedIdProviderWithAccountParameters>] The list
52
+ # of trusted identity providers associated with this Data Lake Store
53
+ # account.
54
+ attr_accessor :trusted_id_providers
55
+
56
+ # @return [TrustedIdProviderState] The current state of the trusted
57
+ # identity provider feature for this Data Lake Store account. Possible
58
+ # values include: 'Enabled', 'Disabled'
59
+ attr_accessor :trusted_id_provider_state
60
+
61
+ # @return [TierType] The commitment tier to use for next month. Possible
62
+ # values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB',
63
+ # 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB',
64
+ # 'Commitment_5PB'
65
+ attr_accessor :new_tier
66
+
67
+
68
+ #
69
+ # Mapper for CreateDataLakeStoreAccountParameters class as Ruby Hash.
70
+ # This will be used for serialization/deserialization.
71
+ #
72
+ def self.mapper()
73
+ {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'CreateDataLakeStoreAccountParameters',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'CreateDataLakeStoreAccountParameters',
80
+ model_properties: {
81
+ location: {
82
+ client_side_validation: true,
83
+ required: true,
84
+ serialized_name: 'location',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ tags: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'tags',
93
+ type: {
94
+ name: 'Dictionary',
95
+ value: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'StringElementType',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ }
103
+ }
104
+ },
105
+ identity: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'identity',
109
+ type: {
110
+ name: 'Composite',
111
+ class_name: 'EncryptionIdentity'
112
+ }
113
+ },
114
+ default_group: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'properties.defaultGroup',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ encryption_config: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'properties.encryptionConfig',
126
+ type: {
127
+ name: 'Composite',
128
+ class_name: 'EncryptionConfig'
129
+ }
130
+ },
131
+ encryption_state: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'properties.encryptionState',
135
+ type: {
136
+ name: 'Enum',
137
+ module: 'EncryptionState'
138
+ }
139
+ },
140
+ firewall_rules: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ serialized_name: 'properties.firewallRules',
144
+ type: {
145
+ name: 'Sequence',
146
+ element: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: 'CreateFirewallRuleWithAccountParametersElementType',
150
+ type: {
151
+ name: 'Composite',
152
+ class_name: 'CreateFirewallRuleWithAccountParameters'
153
+ }
154
+ }
155
+ }
156
+ },
157
+ firewall_state: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ serialized_name: 'properties.firewallState',
161
+ type: {
162
+ name: 'Enum',
163
+ module: 'FirewallState'
164
+ }
165
+ },
166
+ firewall_allow_azure_ips: {
167
+ client_side_validation: true,
168
+ required: false,
169
+ serialized_name: 'properties.firewallAllowAzureIps',
170
+ type: {
171
+ name: 'Enum',
172
+ module: 'FirewallAllowAzureIpsState'
173
+ }
174
+ },
175
+ trusted_id_providers: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ serialized_name: 'properties.trustedIdProviders',
179
+ type: {
180
+ name: 'Sequence',
181
+ element: {
182
+ client_side_validation: true,
183
+ required: false,
184
+ serialized_name: 'CreateTrustedIdProviderWithAccountParametersElementType',
185
+ type: {
186
+ name: 'Composite',
187
+ class_name: 'CreateTrustedIdProviderWithAccountParameters'
188
+ }
189
+ }
190
+ }
191
+ },
192
+ trusted_id_provider_state: {
193
+ client_side_validation: true,
194
+ required: false,
195
+ serialized_name: 'properties.trustedIdProviderState',
196
+ type: {
197
+ name: 'Enum',
198
+ module: 'TrustedIdProviderState'
199
+ }
200
+ },
201
+ new_tier: {
202
+ client_side_validation: true,
203
+ required: false,
204
+ serialized_name: 'properties.newTier',
205
+ type: {
206
+ name: 'Enum',
207
+ module: 'TierType'
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ end
214
+ end
215
+ end
216
+ end