azure_mgmt_batch 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) 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_batch.gemspec +34 -0
  6. data/lib/azure_mgmt_batch.rb +5 -0
  7. data/lib/generated/azure_mgmt_batch.rb +51 -0
  8. data/lib/generated/azure_mgmt_batch/account.rb +1263 -0
  9. data/lib/generated/azure_mgmt_batch/application_operations.rb +1068 -0
  10. data/lib/generated/azure_mgmt_batch/batch_management_client.rb +75 -0
  11. data/lib/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  12. data/lib/generated/azure_mgmt_batch/models/account_provisioning_state.rb +20 -0
  13. data/lib/generated/azure_mgmt_batch/models/account_resource.rb +146 -0
  14. data/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +45 -0
  15. data/lib/generated/azure_mgmt_batch/models/add_application_package_result.rb +75 -0
  16. data/lib/generated/azure_mgmt_batch/models/add_application_parameters.rb +55 -0
  17. data/lib/generated/azure_mgmt_batch/models/application.rb +96 -0
  18. data/lib/generated/azure_mgmt_batch/models/application_package.rb +78 -0
  19. data/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +45 -0
  20. data/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb +57 -0
  21. data/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +74 -0
  22. data/lib/generated/azure_mgmt_batch/models/batch_account_list_key_result.rb +54 -0
  23. data/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb +94 -0
  24. data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +46 -0
  25. data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_result.rb +54 -0
  26. data/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +64 -0
  27. data/lib/generated/azure_mgmt_batch/models/get_application_package_result.rb +109 -0
  28. data/lib/generated/azure_mgmt_batch/models/list_applications_result.rb +93 -0
  29. data/lib/generated/azure_mgmt_batch/models/package_state.rb +17 -0
  30. data/lib/generated/azure_mgmt_batch/models/subscription_quotas_get_result.rb +45 -0
  31. data/lib/generated/azure_mgmt_batch/models/update_application_parameters.rb +66 -0
  32. data/lib/generated/azure_mgmt_batch/module_definition.rb +8 -0
  33. data/lib/generated/azure_mgmt_batch/subscription.rb +116 -0
  34. data/lib/generated/azure_mgmt_batch/version.rb +8 -0
  35. metadata +147 -0
@@ -0,0 +1,8 @@
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 end
7
+ module Azure::ARM end
8
+ module Azure::ARM::Batch end
@@ -0,0 +1,116 @@
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::Batch
7
+ #
8
+ # Subscription
9
+ #
10
+ class Subscription
11
+ include Azure::ARM::Batch::Models
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the Subscription class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return reference to the BatchManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Gets the Batch service quotas for the specified suscription.
27
+ #
28
+ # @param location_name [String] The desired region for the quotas.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [SubscriptionQuotasGetResult] operation results.
33
+ #
34
+ def get_subscription_quotas(location_name, custom_headers = nil)
35
+ response = get_subscription_quotas_async(location_name, custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Gets the Batch service quotas for the specified suscription.
41
+ #
42
+ # @param location_name [String] The desired region for the quotas.
43
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
+ # will be added to the HTTP request.
45
+ #
46
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
47
+ #
48
+ def get_subscription_quotas_with_http_info(location_name, custom_headers = nil)
49
+ get_subscription_quotas_async(location_name, custom_headers).value!
50
+ end
51
+
52
+ #
53
+ # Gets the Batch service quotas for the specified suscription.
54
+ #
55
+ # @param location_name [String] The desired region for the quotas.
56
+ # @param [Hash{String => String}] A hash of custom headers that will be added
57
+ # to the HTTP request.
58
+ #
59
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
60
+ #
61
+ def get_subscription_quotas_async(location_name, custom_headers = nil)
62
+ fail ArgumentError, 'location_name is nil' if location_name.nil?
63
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
64
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
+
66
+
67
+ request_headers = {}
68
+
69
+ # Set Headers
70
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
71
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
72
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'
73
+ options = {
74
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
75
+ path_params: {'locationName' => location_name,'subscriptionId' => @client.subscription_id},
76
+ query_params: {'api-version' => @client.api_version},
77
+ headers: request_headers.merge(custom_headers || {})
78
+ }
79
+
80
+ request_url = @base_url || @client.base_url
81
+
82
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
83
+ promise = request.run_promise do |req|
84
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
85
+ end
86
+
87
+ promise = promise.then do |http_response|
88
+ status_code = http_response.status
89
+ response_content = http_response.body
90
+ unless status_code == 200
91
+ error_model = JSON.load(response_content)
92
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
93
+ end
94
+
95
+ # Create Result
96
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
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 = SubscriptionQuotasGetResult.mapper()
103
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
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,8 @@
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::Batch
7
+ VERSION = '0.4.0'
8
+ end
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_mgmt_batch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-07-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ms_rest_azure
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.0
83
+ description: Microsoft Azure Batch Management Client Library for Ruby
84
+ email: azrubyteam@microsoft.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - ".rspec"
90
+ - LICENSE.txt
91
+ - Rakefile
92
+ - azure_mgmt_batch.gemspec
93
+ - lib/azure_mgmt_batch.rb
94
+ - lib/generated/azure_mgmt_batch.rb
95
+ - lib/generated/azure_mgmt_batch/account.rb
96
+ - lib/generated/azure_mgmt_batch/application_operations.rb
97
+ - lib/generated/azure_mgmt_batch/batch_management_client.rb
98
+ - lib/generated/azure_mgmt_batch/models/account_key_type.rb
99
+ - lib/generated/azure_mgmt_batch/models/account_provisioning_state.rb
100
+ - lib/generated/azure_mgmt_batch/models/account_resource.rb
101
+ - lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb
102
+ - lib/generated/azure_mgmt_batch/models/add_application_package_result.rb
103
+ - lib/generated/azure_mgmt_batch/models/add_application_parameters.rb
104
+ - lib/generated/azure_mgmt_batch/models/application.rb
105
+ - lib/generated/azure_mgmt_batch/models/application_package.rb
106
+ - lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb
107
+ - lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb
108
+ - lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb
109
+ - lib/generated/azure_mgmt_batch/models/batch_account_list_key_result.rb
110
+ - lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb
111
+ - lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb
112
+ - lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_result.rb
113
+ - lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb
114
+ - lib/generated/azure_mgmt_batch/models/get_application_package_result.rb
115
+ - lib/generated/azure_mgmt_batch/models/list_applications_result.rb
116
+ - lib/generated/azure_mgmt_batch/models/package_state.rb
117
+ - lib/generated/azure_mgmt_batch/models/subscription_quotas_get_result.rb
118
+ - lib/generated/azure_mgmt_batch/models/update_application_parameters.rb
119
+ - lib/generated/azure_mgmt_batch/module_definition.rb
120
+ - lib/generated/azure_mgmt_batch/subscription.rb
121
+ - lib/generated/azure_mgmt_batch/version.rb
122
+ homepage: https://aka.ms/azure-sdk-for-ruby
123
+ licenses:
124
+ - MIT
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 1.9.3
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 2.4.6
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: Official Ruby client library to consume Microsoft Azure Batch Management
146
+ services.
147
+ test_files: []