azure_mgmt_batch 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,75 @@
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
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class BatchManagementClient < 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] A unique identifier of a Microsoft Azure subscription.
21
+ # The subscription id forms part of the URI for every service call.
22
+ attr_accessor :subscription_id
23
+
24
+ # @return [String] Client API Version.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] Gets or sets the preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
+ # Running Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
+ # is generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return Subscription credentials which uniquely identify client
39
+ # subscription.
40
+ attr_accessor :credentials
41
+
42
+ # @return [Account] account
43
+ attr_reader :account
44
+
45
+ # @return [ApplicationOperations] application_operations
46
+ attr_reader :application_operations
47
+
48
+ # @return [Subscription] subscription
49
+ attr_reader :subscription
50
+
51
+ #
52
+ # Creates initializes a new instance of the BatchManagementClient class.
53
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
54
+ # @param base_url [String] the base URI of the service.
55
+ # @param options [Array] filters to be applied to the HTTP requests.
56
+ #
57
+ def initialize(credentials, base_url = nil, options = nil)
58
+ super(credentials, options)
59
+ @base_url = base_url || 'https://management.azure.com'
60
+
61
+ fail ArgumentError, 'credentials is nil' if credentials.nil?
62
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
63
+ @credentials = credentials
64
+
65
+ @account = Account.new(self)
66
+ @application_operations = ApplicationOperations.new(self)
67
+ @subscription = Subscription.new(self)
68
+ @api_version = '2015-12-01'
69
+ @accept_language = 'en-US'
70
+ @long_running_operation_retry_timeout = 30
71
+ @generate_client_request_id = true
72
+ end
73
+
74
+ end
75
+ end
@@ -0,0 +1,16 @@
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
+ module Models
8
+ #
9
+ # Defines values for AccountKeyType
10
+ #
11
+ module AccountKeyType
12
+ Primary = "Primary"
13
+ Secondary = "Secondary"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,20 @@
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
+ module Models
8
+ #
9
+ # Defines values for AccountProvisioningState
10
+ #
11
+ module AccountProvisioningState
12
+ Invalid = "Invalid"
13
+ Creating = "Creating"
14
+ Deleting = "Deleting"
15
+ Succeeded = "Succeeded"
16
+ Failed = "Failed"
17
+ Cancelled = "Cancelled"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,146 @@
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
+ module Models
8
+ #
9
+ # Contains information about an Azure Batch account.
10
+ #
11
+ class AccountResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The endpoint used by this account to interact with
16
+ # the Batch services.
17
+ attr_accessor :account_endpoint
18
+
19
+ # @return [AccountProvisioningState] The provisioned state of the
20
+ # resource. Possible values include: 'Invalid', 'Creating', 'Deleting',
21
+ # 'Succeeded', 'Failed', 'Cancelled'
22
+ attr_accessor :provisioning_state
23
+
24
+ # @return [AutoStorageProperties] The properties and status of any auto
25
+ # storage account associated with the account.
26
+ attr_accessor :auto_storage
27
+
28
+ # @return [Integer] The core quota for this Batch account.
29
+ attr_accessor :core_quota
30
+
31
+ # @return [Integer] The pool quota for this Batch account.
32
+ attr_accessor :pool_quota
33
+
34
+ # @return [Integer] The active job and job schedule quota for this Batch
35
+ # account.
36
+ attr_accessor :active_job_and_job_schedule_quota
37
+
38
+
39
+ #
40
+ # Mapper for AccountResource class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ required: false,
46
+ serialized_name: 'AccountResource',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'AccountResource',
50
+ model_properties: {
51
+ id: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ name: {
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ type: {
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'type',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ location: {
76
+ required: false,
77
+ serialized_name: 'location',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ tags: {
83
+ required: false,
84
+ serialized_name: 'tags',
85
+ type: {
86
+ name: 'Dictionary',
87
+ value: {
88
+ required: false,
89
+ serialized_name: 'StringElementType',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ },
96
+ account_endpoint: {
97
+ required: false,
98
+ serialized_name: 'properties.accountEndpoint',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ provisioning_state: {
104
+ required: false,
105
+ serialized_name: 'properties.provisioningState',
106
+ type: {
107
+ name: 'Enum',
108
+ module: 'AccountProvisioningState'
109
+ }
110
+ },
111
+ auto_storage: {
112
+ required: false,
113
+ serialized_name: 'properties.autoStorage',
114
+ type: {
115
+ name: 'Composite',
116
+ class_name: 'AutoStorageProperties'
117
+ }
118
+ },
119
+ core_quota: {
120
+ required: true,
121
+ serialized_name: 'properties.coreQuota',
122
+ type: {
123
+ name: 'Number'
124
+ }
125
+ },
126
+ pool_quota: {
127
+ required: true,
128
+ serialized_name: 'properties.poolQuota',
129
+ type: {
130
+ name: 'Number'
131
+ }
132
+ },
133
+ active_job_and_job_schedule_quota: {
134
+ required: true,
135
+ serialized_name: 'properties.activeJobAndJobScheduleQuota',
136
+ type: {
137
+ name: 'Number'
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,45 @@
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
+ module Models
8
+ #
9
+ # Parameters for an ApplicationOperations.ActivateApplicationPackage
10
+ # request.
11
+ #
12
+ class ActivateApplicationPackageParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The format of the application package binary file.
17
+ attr_accessor :format
18
+
19
+
20
+ #
21
+ # Mapper for ActivateApplicationPackageParameters class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'ActivateApplicationPackageParameters',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ActivateApplicationPackageParameters',
31
+ model_properties: {
32
+ format: {
33
+ required: true,
34
+ serialized_name: 'format',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,75 @@
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
+ module Models
8
+ #
9
+ # Response to an ApplicationOperations.AddApplicationPackage request.
10
+ #
11
+ class AddApplicationPackageResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The id of the application.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The version of the application.
19
+ attr_accessor :version
20
+
21
+ # @return [String] The URL to which the application package binary file
22
+ # should be uploaded.
23
+ attr_accessor :storage_url
24
+
25
+ # @return [DateTime] The UTC time at which the storage URL will expire.
26
+ attr_accessor :storage_url_expiry
27
+
28
+
29
+ #
30
+ # Mapper for AddApplicationPackageResult class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'AddApplicationPackageResult',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'AddApplicationPackageResult',
40
+ model_properties: {
41
+ id: {
42
+ required: false,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ version: {
49
+ required: false,
50
+ serialized_name: 'version',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ storage_url: {
56
+ required: false,
57
+ serialized_name: 'storageUrl',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ storage_url_expiry: {
63
+ required: false,
64
+ serialized_name: 'storageUrlExpiry',
65
+ type: {
66
+ name: 'DateTime'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,55 @@
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
+ module Models
8
+ #
9
+ # Parameters for an ApplicationOperations.AddApplication request.
10
+ #
11
+ class AddApplicationParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] A value indicating whether packages within the
16
+ # application may be overwritten using the same version string.
17
+ attr_accessor :allow_updates
18
+
19
+ # @return [String] The display name for the application.
20
+ attr_accessor :display_name
21
+
22
+
23
+ #
24
+ # Mapper for AddApplicationParameters class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'AddApplicationParameters',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'AddApplicationParameters',
34
+ model_properties: {
35
+ allow_updates: {
36
+ required: false,
37
+ serialized_name: 'allowUpdates',
38
+ type: {
39
+ name: 'Boolean'
40
+ }
41
+ },
42
+ display_name: {
43
+ required: false,
44
+ serialized_name: 'displayName',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,96 @@
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
+ module Models
8
+ #
9
+ # Contains information about an application in a Batch account.
10
+ #
11
+ class Application
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] A string that uniquely identifies the application
16
+ # within the account.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The display name for the application.
20
+ attr_accessor :display_name
21
+
22
+ # @return [Array<ApplicationPackage>] The list of packages under this
23
+ # application.
24
+ attr_accessor :packages
25
+
26
+ # @return [Boolean] A value indicating whether packages within the
27
+ # application may be overwritten using the same version string.
28
+ attr_accessor :allow_updates
29
+
30
+ # @return [String] The package to use if a client requests the
31
+ # application but does not specify a version.
32
+ attr_accessor :default_version
33
+
34
+
35
+ #
36
+ # Mapper for Application class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'Application',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Application',
46
+ model_properties: {
47
+ id: {
48
+ required: false,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ display_name: {
55
+ required: false,
56
+ serialized_name: 'displayName',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ packages: {
62
+ required: false,
63
+ serialized_name: 'packages',
64
+ type: {
65
+ name: 'Sequence',
66
+ element: {
67
+ required: false,
68
+ serialized_name: 'ApplicationPackageElementType',
69
+ type: {
70
+ name: 'Composite',
71
+ class_name: 'ApplicationPackage'
72
+ }
73
+ }
74
+ }
75
+ },
76
+ allow_updates: {
77
+ required: false,
78
+ serialized_name: 'allowUpdates',
79
+ type: {
80
+ name: 'Boolean'
81
+ }
82
+ },
83
+ default_version: {
84
+ required: false,
85
+ serialized_name: 'defaultVersion',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ end
94
+ end
95
+ end
96
+ end