azure_mgmt_batch 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-12-01/generated/azure_mgmt_batch.rb +50 -0
  3. data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +635 -0
  4. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/application_package_operations.rb +4 -4
  5. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +1229 -0
  6. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +142 -0
  7. data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +115 -0
  8. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/account_key_type.rb +1 -1
  9. data/lib/2015-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +45 -0
  10. data/lib/2015-12-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +55 -0
  11. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/application.rb +1 -1
  12. data/lib/2015-12-01/generated/azure_mgmt_batch/models/application_package.rb +110 -0
  13. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +45 -0
  14. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +57 -0
  15. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account.rb +147 -0
  16. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +74 -0
  17. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +54 -0
  18. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +95 -0
  19. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +1 -1
  20. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +64 -0
  21. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +45 -0
  22. data/lib/2015-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +94 -0
  23. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/package_state.rb +1 -1
  24. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/provisioning_state.rb +1 -1
  25. data/lib/2015-12-01/generated/azure_mgmt_batch/models/resource.rb +94 -0
  26. data/lib/2015-12-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +66 -0
  27. data/lib/2015-12-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  28. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/version.rb +2 -2
  29. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch.rb +35 -35
  30. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/application_operations.rb +7 -7
  31. data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +427 -0
  32. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/batch_account_operations.rb +14 -14
  33. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/batch_management_client.rb +3 -3
  34. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/location.rb +4 -4
  35. data/lib/2017-05-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  36. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/activate_application_package_parameters.rb +1 -1
  37. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application.rb +96 -0
  38. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/application_create_parameters.rb +1 -1
  39. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/application_package.rb +1 -1
  40. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/application_update_parameters.rb +1 -1
  41. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/auto_storage_base_properties.rb +1 -1
  42. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/auto_storage_properties.rb +1 -1
  43. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account.rb +1 -1
  44. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_create_parameters.rb +1 -1
  45. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_keys.rb +1 -1
  46. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_list_result.rb +1 -1
  47. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +46 -0
  48. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_update_parameters.rb +1 -1
  49. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_location_quota.rb +1 -1
  50. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/check_name_availability_parameters.rb +1 -1
  51. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/check_name_availability_result.rb +1 -1
  52. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/key_vault_reference.rb +1 -1
  53. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/list_applications_result.rb +1 -1
  54. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/name_availability_reason.rb +1 -1
  55. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/operation.rb +1 -1
  56. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/operation_display.rb +1 -1
  57. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/operation_list_result.rb +1 -1
  58. data/lib/2017-05-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
  59. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/pool_allocation_mode.rb +1 -1
  60. data/lib/2017-05-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  61. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/resource.rb +1 -1
  62. data/lib/2017-05-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  63. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/operations.rb +3 -3
  64. data/lib/{generated/azure_mgmt_batch/module_definition.rb → 2017-05-01/generated/azure_mgmt_batch/version.rb} +3 -3
  65. data/lib/azure_mgmt_batch.rb +3 -1
  66. data/lib/module_definition.rb +7 -0
  67. data/lib/profiles/common/configurable.rb +73 -0
  68. data/lib/profiles/common/default.rb +68 -0
  69. data/lib/profiles/latest/batch_latest_profile_client.rb +33 -0
  70. data/lib/profiles/latest/batch_module_definition.rb +9 -0
  71. data/lib/profiles/latest/modules/batch_profile_module.rb +158 -0
  72. data/lib/version.rb +7 -0
  73. metadata +72 -38
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # Quotas associated with a Batch region for a particular subscription.
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # Parameters for a check name availability request.
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # The CheckNameAvailability operation response.
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # Identifies the Azure key vault associated with a Batch account.
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # The result of performing list applications.
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for NameAvailabilityReason
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # A REST API operation
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # The object that describes the operation.
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -0,0 +1,17 @@
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::Batch::Mgmt::V2017_05_01
7
+ module Models
8
+ #
9
+ # Defines values for PackageState
10
+ #
11
+ module PackageState
12
+ Pending = "pending"
13
+ Active = "active"
14
+ Unmapped = "unmapped"
15
+ end
16
+ end
17
+ end
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # Defines values for PoolAllocationMode
@@ -0,0 +1,20 @@
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::Batch::Mgmt::V2017_05_01
7
+ module Models
8
+ #
9
+ # Defines values for ProvisioningState
10
+ #
11
+ module ProvisioningState
12
+ Invalid = "Invalid"
13
+ Creating = "Creating"
14
+ Deleting = "Deleting"
15
+ Succeeded = "Succeeded"
16
+ Failed = "Failed"
17
+ Cancelled = "Cancelled"
18
+ end
19
+ end
20
+ end
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  module Models
8
8
  #
9
9
  # A definition of an Azure resource.
@@ -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::Batch end
8
+ module Azure::Batch::Mgmt end
9
+ module Azure::Batch::Mgmt::V2017_05_01 end
@@ -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::ARM::Batch
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
7
  #
8
8
  # Operations
9
9
  #
@@ -89,7 +89,7 @@ module Azure::ARM::Batch
89
89
  if status_code == 200
90
90
  begin
91
91
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
92
- result_mapper = Azure::ARM::Batch::Models::OperationListResult.mapper()
92
+ result_mapper = Azure::Batch::Mgmt::V2017_05_01::Models::OperationListResult.mapper()
93
93
  result.body = @client.deserialize(result_mapper, parsed_response)
94
94
  rescue Exception => e
95
95
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -176,7 +176,7 @@ module Azure::ARM::Batch
176
176
  if status_code == 200
177
177
  begin
178
178
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
179
- result_mapper = Azure::ARM::Batch::Models::OperationListResult.mapper()
179
+ result_mapper = Azure::Batch::Mgmt::V2017_05_01::Models::OperationListResult.mapper()
180
180
  result.body = @client.deserialize(result_mapper, parsed_response)
181
181
  rescue Exception => e
182
182
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::Batch end
6
+ module Azure::Batch::Mgmt::V2017_05_01
7
+ VERSION = '0.15.0'
8
+ end
@@ -2,4 +2,6 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_batch'
5
+ require '2015-12-01/generated/azure_mgmt_batch'
6
+ require '2017-05-01/generated/azure_mgmt_batch'
7
+ require 'profiles/latest/batch_latest_profile_client'
@@ -0,0 +1,7 @@
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::Batch end
7
+ module Azure::Batch::Mgmt end
@@ -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/batch_module_definition'
6
+ require 'profiles/latest/modules/batch_profile_module'
7
+ require 'profiles/common/configurable'
8
+ require 'profiles/common/default'
9
+
10
+ module Azure::Batch::Profiles::Latest::Mgmt
11
+ #
12
+ # Client class for the Latest profile SDK.
13
+ #
14
+ class Client < BatchClass
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::Batch end
7
+ module Azure::Batch::Profiles end
8
+ module Azure::Batch::Profiles::Latest end
9
+ module Azure::Batch::Profiles::Latest::Mgmt end
@@ -0,0 +1,158 @@
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_batch'
6
+
7
+ module Azure::Batch::Profiles::Latest::Mgmt
8
+ BatchAccountOperations = Azure::Batch::Mgmt::V2017_05_01::BatchAccountOperations
9
+ ApplicationPackageOperations = Azure::Batch::Mgmt::V2017_05_01::ApplicationPackageOperations
10
+ ApplicationOperations = Azure::Batch::Mgmt::V2017_05_01::ApplicationOperations
11
+ Location = Azure::Batch::Mgmt::V2017_05_01::Location
12
+ Operations = Azure::Batch::Mgmt::V2017_05_01::Operations
13
+
14
+ module Models
15
+ ApplicationPackage = Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationPackage
16
+ Application = Azure::Batch::Mgmt::V2017_05_01::Models::Application
17
+ KeyVaultReference = Azure::Batch::Mgmt::V2017_05_01::Models::KeyVaultReference
18
+ ListApplicationsResult = Azure::Batch::Mgmt::V2017_05_01::Models::ListApplicationsResult
19
+ BatchAccountCreateParameters = Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountCreateParameters
20
+ CheckNameAvailabilityParameters = Azure::Batch::Mgmt::V2017_05_01::Models::CheckNameAvailabilityParameters
21
+ BatchAccountUpdateParameters = Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountUpdateParameters
22
+ ApplicationUpdateParameters = Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationUpdateParameters
23
+ BatchAccountRegenerateKeyParameters = Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountRegenerateKeyParameters
24
+ BatchLocationQuota = Azure::Batch::Mgmt::V2017_05_01::Models::BatchLocationQuota
25
+ ActivateApplicationPackageParameters = Azure::Batch::Mgmt::V2017_05_01::Models::ActivateApplicationPackageParameters
26
+ Resource = Azure::Batch::Mgmt::V2017_05_01::Models::Resource
27
+ AutoStorageBaseProperties = Azure::Batch::Mgmt::V2017_05_01::Models::AutoStorageBaseProperties
28
+ BatchAccountListResult = Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountListResult
29
+ ApplicationCreateParameters = Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationCreateParameters
30
+ OperationDisplay = Azure::Batch::Mgmt::V2017_05_01::Models::OperationDisplay
31
+ BatchAccountKeys = Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountKeys
32
+ Operation = Azure::Batch::Mgmt::V2017_05_01::Models::Operation
33
+ CheckNameAvailabilityResult = Azure::Batch::Mgmt::V2017_05_01::Models::CheckNameAvailabilityResult
34
+ OperationListResult = Azure::Batch::Mgmt::V2017_05_01::Models::OperationListResult
35
+ AutoStorageProperties = Azure::Batch::Mgmt::V2017_05_01::Models::AutoStorageProperties
36
+ BatchAccount = Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccount
37
+ PoolAllocationMode = Azure::Batch::Mgmt::V2017_05_01::Models::PoolAllocationMode
38
+ ProvisioningState = Azure::Batch::Mgmt::V2017_05_01::Models::ProvisioningState
39
+ AccountKeyType = Azure::Batch::Mgmt::V2017_05_01::Models::AccountKeyType
40
+ PackageState = Azure::Batch::Mgmt::V2017_05_01::Models::PackageState
41
+ NameAvailabilityReason = Azure::Batch::Mgmt::V2017_05_01::Models::NameAvailabilityReason
42
+ end
43
+
44
+ #
45
+ # Batch
46
+ #
47
+ class BatchClass
48
+ attr_reader :batch_account_operations, :application_package_operations, :application_operations, :location, :operations, :configurable, :base_url, :options, :model_classes
49
+
50
+ def initialize(options = {})
51
+ if options.is_a?(Hash) && options.length == 0
52
+ @options = setup_options
53
+ else
54
+ @options = options
55
+ end
56
+
57
+ reset!(options)
58
+
59
+ @configurable, @base_url, @options = self, nil, nil
60
+
61
+ client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.new(configurable.credentials, base_url, options)
62
+ if(client_0.respond_to?(:subscription_id))
63
+ client_0.subscription_id = configurable.subscription_id
64
+ end
65
+ @batch_account_operations = client_0.batch_account_operations
66
+ @application_package_operations = client_0.application_package_operations
67
+ @application_operations = client_0.application_operations
68
+ @location = client_0.location
69
+ @operations = client_0.operations
70
+
71
+ @model_classes = ModelClasses.new
72
+ end
73
+
74
+ class ModelClasses
75
+ def application_package
76
+ Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationPackage
77
+ end
78
+ def application
79
+ Azure::Batch::Mgmt::V2017_05_01::Models::Application
80
+ end
81
+ def key_vault_reference
82
+ Azure::Batch::Mgmt::V2017_05_01::Models::KeyVaultReference
83
+ end
84
+ def list_applications_result
85
+ Azure::Batch::Mgmt::V2017_05_01::Models::ListApplicationsResult
86
+ end
87
+ def batch_account_create_parameters
88
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountCreateParameters
89
+ end
90
+ def check_name_availability_parameters
91
+ Azure::Batch::Mgmt::V2017_05_01::Models::CheckNameAvailabilityParameters
92
+ end
93
+ def batch_account_update_parameters
94
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountUpdateParameters
95
+ end
96
+ def application_update_parameters
97
+ Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationUpdateParameters
98
+ end
99
+ def batch_account_regenerate_key_parameters
100
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountRegenerateKeyParameters
101
+ end
102
+ def batch_location_quota
103
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchLocationQuota
104
+ end
105
+ def activate_application_package_parameters
106
+ Azure::Batch::Mgmt::V2017_05_01::Models::ActivateApplicationPackageParameters
107
+ end
108
+ def resource
109
+ Azure::Batch::Mgmt::V2017_05_01::Models::Resource
110
+ end
111
+ def auto_storage_base_properties
112
+ Azure::Batch::Mgmt::V2017_05_01::Models::AutoStorageBaseProperties
113
+ end
114
+ def batch_account_list_result
115
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountListResult
116
+ end
117
+ def application_create_parameters
118
+ Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationCreateParameters
119
+ end
120
+ def operation_display
121
+ Azure::Batch::Mgmt::V2017_05_01::Models::OperationDisplay
122
+ end
123
+ def batch_account_keys
124
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccountKeys
125
+ end
126
+ def operation
127
+ Azure::Batch::Mgmt::V2017_05_01::Models::Operation
128
+ end
129
+ def check_name_availability_result
130
+ Azure::Batch::Mgmt::V2017_05_01::Models::CheckNameAvailabilityResult
131
+ end
132
+ def operation_list_result
133
+ Azure::Batch::Mgmt::V2017_05_01::Models::OperationListResult
134
+ end
135
+ def auto_storage_properties
136
+ Azure::Batch::Mgmt::V2017_05_01::Models::AutoStorageProperties
137
+ end
138
+ def batch_account
139
+ Azure::Batch::Mgmt::V2017_05_01::Models::BatchAccount
140
+ end
141
+ def pool_allocation_mode
142
+ Azure::Batch::Mgmt::V2017_05_01::Models::PoolAllocationMode
143
+ end
144
+ def provisioning_state
145
+ Azure::Batch::Mgmt::V2017_05_01::Models::ProvisioningState
146
+ end
147
+ def account_key_type
148
+ Azure::Batch::Mgmt::V2017_05_01::Models::AccountKeyType
149
+ end
150
+ def package_state
151
+ Azure::Batch::Mgmt::V2017_05_01::Models::PackageState
152
+ end
153
+ def name_availability_reason
154
+ Azure::Batch::Mgmt::V2017_05_01::Models::NameAvailabilityReason
155
+ end
156
+ end
157
+ end
158
+ end