azure_mgmt_datalake_store 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_datalake_store.gemspec +34 -0
  6. data/lib/azure_mgmt_datalake_store.rb +3 -0
  7. data/lib/generated/azure_mgmt_datalake_store_account.rb +41 -0
  8. data/lib/generated/azure_mgmt_datalake_store_account/account.rb +1739 -0
  9. data/lib/generated/azure_mgmt_datalake_store_account/data_lake_store_account_management_client.rb +68 -0
  10. data/lib/generated/azure_mgmt_datalake_store_account/models/azure_async_operation_result.rb +66 -0
  11. data/lib/generated/azure_mgmt_datalake_store_account/models/data_lake_store_account.rb +105 -0
  12. data/lib/generated/azure_mgmt_datalake_store_account/models/data_lake_store_account_list_result.rb +107 -0
  13. data/lib/generated/azure_mgmt_datalake_store_account/models/data_lake_store_account_properties.rb +106 -0
  14. data/lib/generated/azure_mgmt_datalake_store_account/models/data_lake_store_account_state.rb +16 -0
  15. data/lib/generated/azure_mgmt_datalake_store_account/models/data_lake_store_account_status.rb +23 -0
  16. data/lib/generated/azure_mgmt_datalake_store_account/models/data_lake_store_firewall_rule_list_result.rb +107 -0
  17. data/lib/generated/azure_mgmt_datalake_store_account/models/error.rb +99 -0
  18. data/lib/generated/azure_mgmt_datalake_store_account/models/error_details.rb +69 -0
  19. data/lib/generated/azure_mgmt_datalake_store_account/models/firewall_rule.rb +86 -0
  20. data/lib/generated/azure_mgmt_datalake_store_account/models/firewall_rule_properties.rb +54 -0
  21. data/lib/generated/azure_mgmt_datalake_store_account/models/inner_error.rb +56 -0
  22. data/lib/generated/azure_mgmt_datalake_store_account/models/operation_status.rb +17 -0
  23. data/lib/generated/azure_mgmt_datalake_store_account/module_definition.rb +9 -0
  24. data/lib/generated/azure_mgmt_datalake_store_account/version.rb +8 -0
  25. data/lib/generated/azure_mgmt_datalake_store_filesystem.rb +50 -0
  26. data/lib/generated/azure_mgmt_datalake_store_filesystem/data_lake_store_file_system_management_client.rb +67 -0
  27. data/lib/generated/azure_mgmt_datalake_store_filesystem/file_system.rb +2149 -0
  28. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/acl_status.rb +82 -0
  29. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/acl_status_result.rb +45 -0
  30. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_access_control_exception.rb +66 -0
  31. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_bad_offset_exception.rb +66 -0
  32. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_error.rb +49 -0
  33. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_file_already_exists_exception.rb +65 -0
  34. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_file_not_found_exception.rb +65 -0
  35. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_illegal_argument_exception.rb +66 -0
  36. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_ioexception.rb +65 -0
  37. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_remote_exception.rb +89 -0
  38. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_runtime_exception.rb +66 -0
  39. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_security_exception.rb +65 -0
  40. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/adls_unsupported_operation_exception.rb +66 -0
  41. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/append_mode_type.rb +15 -0
  42. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/content_summary.rb +78 -0
  43. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/content_summary_result.rb +46 -0
  44. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/file_operation_result.rb +45 -0
  45. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/file_status_properties.rb +146 -0
  46. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/file_status_result.rb +47 -0
  47. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/file_statuses.rb +54 -0
  48. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/file_statuses_result.rb +47 -0
  49. data/lib/generated/azure_mgmt_datalake_store_filesystem/models/file_type.rb +16 -0
  50. data/lib/generated/azure_mgmt_datalake_store_filesystem/module_definition.rb +9 -0
  51. metadata +163 -0
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::DataLakeStore::Account
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class DataLakeStoreAccountManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRest::Serialization
12
+ include MsRestAzure
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Gets subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client Api Version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] Gets or sets the preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
+ # Running Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
+ # is generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return Subscription credentials which uniquely identify client
40
+ # subscription.
41
+ attr_accessor :credentials
42
+
43
+ # @return [Account] account
44
+ attr_reader :account
45
+
46
+ #
47
+ # Creates initializes a new instance of the DataLakeStoreAccountManagementClient class.
48
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
49
+ # @param base_url [String] the base URI of the service.
50
+ # @param options [Array] filters to be applied to the HTTP requests.
51
+ #
52
+ def initialize(credentials, base_url = nil, options = nil)
53
+ super(credentials, options)
54
+ @base_url = base_url || 'https://management.azure.com'
55
+
56
+ fail ArgumentError, 'credentials is nil' if credentials.nil?
57
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
58
+ @credentials = credentials
59
+
60
+ @account = Account.new(self)
61
+ @api_version = '2015-10-01-preview'
62
+ @accept_language = 'en-US'
63
+ @long_running_operation_retry_timeout = 30
64
+ @generate_client_request_id = true
65
+ end
66
+
67
+ end
68
+ end
@@ -0,0 +1,66 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::DataLakeStore::Account
7
+ module Models
8
+ #
9
+ # The response body contains the status of the specified asynchronous
10
+ # operation, indicating whether it has succeeded, is in progress, or has
11
+ # failed. Note that this status is distinct from the HTTP status code
12
+ # returned for the Get Operation Status operation itself. If the
13
+ # asynchronous operation succeeded, the response body includes the HTTP
14
+ # status code for the successful request. If the asynchronous operation
15
+ # failed, the response body includes the HTTP status code for the failed
16
+ # request and error information regarding the failure.
17
+ #
18
+ class AzureAsyncOperationResult
19
+
20
+ include MsRestAzure
21
+
22
+ # @return [OperationStatus] the status of the AzureAsuncOperation.
23
+ # Possible values include: 'InProgress', 'Succeeded', 'Failed'
24
+ attr_accessor :status
25
+
26
+ # @return [Error]
27
+ attr_accessor :error
28
+
29
+
30
+ #
31
+ # Mapper for AzureAsyncOperationResult class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'AzureAsyncOperationResult',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'AzureAsyncOperationResult',
41
+ model_properties: {
42
+ status: {
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'status',
46
+ type: {
47
+ name: 'Enum',
48
+ module: 'OperationStatus'
49
+ }
50
+ },
51
+ error: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'error',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'Error'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,105 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::DataLakeStore::Account
7
+ module Models
8
+ #
9
+ # Data Lake Store account information
10
+ #
11
+ class DataLakeStoreAccount
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the account regional location.
16
+ attr_accessor :location
17
+
18
+ # @return [String] the account name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] the namespace and type of the account.
22
+ attr_accessor :type
23
+
24
+ # @return [String] the account subscription ID.
25
+ attr_accessor :id
26
+
27
+ # @return [Hash{String => String}] the value of custom properties.
28
+ attr_accessor :tags
29
+
30
+ # @return [DataLakeStoreAccountProperties] the Data Lake Store account
31
+ # properties.
32
+ attr_accessor :properties
33
+
34
+
35
+ #
36
+ # Mapper for DataLakeStoreAccount class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'DataLakeStoreAccount',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'DataLakeStoreAccount',
46
+ model_properties: {
47
+ location: {
48
+ required: false,
49
+ serialized_name: 'location',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ name: {
55
+ required: false,
56
+ serialized_name: 'name',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ type: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'type',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ id: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'id',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ tags: {
78
+ required: false,
79
+ serialized_name: 'tags',
80
+ type: {
81
+ name: 'Dictionary',
82
+ value: {
83
+ required: false,
84
+ serialized_name: 'StringElementType',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ properties: {
92
+ required: false,
93
+ serialized_name: 'properties',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'DataLakeStoreAccountProperties'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,107 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::DataLakeStore::Account
7
+ module Models
8
+ #
9
+ # Data Lake Store account list information response.
10
+ #
11
+ class DataLakeStoreAccountListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<DataLakeStoreAccount>] the results of the list operation
16
+ attr_accessor :value
17
+
18
+ # @return [String] the link (url) to the next page of results.
19
+ attr_accessor :next_link
20
+
21
+ # @return [Integer] the total count of results that are available, but
22
+ # might not be returned in the current page.
23
+ attr_accessor :count
24
+
25
+ # return [Proc] with next page method call.
26
+ attr_accessor :next_method
27
+
28
+ #
29
+ # Gets the rest of the items for the request, enabling auto-pagination.
30
+ #
31
+ # @return [Array<DataLakeStoreAccount>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil do
37
+ page = page.get_next_page
38
+ items.concat(page.value)
39
+ end
40
+ items
41
+ end
42
+
43
+ #
44
+ # Gets the next page of results.
45
+ #
46
+ # @return [DataLakeStoreAccountListResult] with next page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for DataLakeStoreAccountListResult class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ required: false,
64
+ serialized_name: 'DataLakeStoreAccountListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'DataLakeStoreAccountListResult',
68
+ model_properties: {
69
+ value: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'value',
73
+ type: {
74
+ name: 'Sequence',
75
+ element: {
76
+ required: false,
77
+ serialized_name: 'DataLakeStoreAccountElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'DataLakeStoreAccount'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ count: {
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'count',
97
+ type: {
98
+ name: 'Number'
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ end
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,106 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::DataLakeStore::Account
7
+ module Models
8
+ #
9
+ # Data Lake Store account properties information
10
+ #
11
+ class DataLakeStoreAccountProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DataLakeStoreAccountStatus] the status of the Data Lake Store
16
+ # account while being provisioned. Possible values include: 'Failed',
17
+ # 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending',
18
+ # 'Resuming', 'Deleting', 'Deleted'
19
+ attr_accessor :provisioning_state
20
+
21
+ # @return [DataLakeStoreAccountState] the status of the Data Lake Store
22
+ # account after provisioning has completed. Possible values include:
23
+ # 'active', 'suspended'
24
+ attr_accessor :state
25
+
26
+ # @return [DateTime] the account creation time.
27
+ attr_accessor :creation_time
28
+
29
+ # @return [DateTime] the account last modified time.
30
+ attr_accessor :last_modified_time
31
+
32
+ # @return [String] the gateway host.
33
+ attr_accessor :endpoint
34
+
35
+ # @return [String] the default owner group for all new folders and files
36
+ # created in the Data Lake Store account.
37
+ attr_accessor :default_group
38
+
39
+
40
+ #
41
+ # Mapper for DataLakeStoreAccountProperties class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ required: false,
47
+ serialized_name: 'DataLakeStoreAccountProperties',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'DataLakeStoreAccountProperties',
51
+ model_properties: {
52
+ provisioning_state: {
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'provisioningState',
56
+ type: {
57
+ name: 'Enum',
58
+ module: 'DataLakeStoreAccountStatus'
59
+ }
60
+ },
61
+ state: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'state',
65
+ type: {
66
+ name: 'Enum',
67
+ module: 'DataLakeStoreAccountState'
68
+ }
69
+ },
70
+ creation_time: {
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'creationTime',
74
+ type: {
75
+ name: 'DateTime'
76
+ }
77
+ },
78
+ last_modified_time: {
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'lastModifiedTime',
82
+ type: {
83
+ name: 'DateTime'
84
+ }
85
+ },
86
+ endpoint: {
87
+ required: false,
88
+ serialized_name: 'endpoint',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ default_group: {
94
+ required: false,
95
+ serialized_name: 'defaultGroup',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ end
104
+ end
105
+ end
106
+ end