azure_mgmt_batch 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_batch.rb +15 -11
- data/lib/generated/azure_mgmt_batch/application_operations.rb +27 -25
- data/lib/generated/azure_mgmt_batch/application_package_operations.rb +11 -12
- data/lib/generated/azure_mgmt_batch/batch_account_operations.rb +82 -83
- data/lib/generated/azure_mgmt_batch/batch_management_client.rb +8 -4
- data/lib/generated/azure_mgmt_batch/location.rb +10 -8
- data/lib/generated/azure_mgmt_batch/models/account_key_type.rb +1 -1
- data/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +3 -3
- data/lib/generated/azure_mgmt_batch/models/application.rb +2 -1
- data/lib/generated/azure_mgmt_batch/models/{add_application_parameters.rb → application_create_parameters.rb} +7 -6
- data/lib/generated/azure_mgmt_batch/models/application_package.rb +5 -4
- data/lib/generated/azure_mgmt_batch/models/{update_application_parameters.rb → application_update_parameters.rb} +7 -6
- data/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +4 -3
- data/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb +4 -7
- data/lib/generated/azure_mgmt_batch/models/batch_account.rb +21 -9
- data/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +5 -4
- data/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb +13 -1
- data/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb +4 -3
- data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +6 -34
- data/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb +2 -1
- data/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb +3 -2
- data/lib/generated/azure_mgmt_batch/models/list_applications_result.rb +3 -2
- data/lib/generated/azure_mgmt_batch/models/operation.rb +78 -0
- data/lib/generated/azure_mgmt_batch/models/operation_display.rb +77 -0
- data/lib/generated/azure_mgmt_batch/models/operation_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_batch/models/package_state.rb +1 -1
- data/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +1 -1
- data/lib/generated/azure_mgmt_batch/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_batch/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_batch/operations.rb +213 -0
- data/lib/generated/azure_mgmt_batch/version.rb +2 -2
- metadata +10 -6
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -17,8 +17,8 @@ module Azure::ARM::Batch
|
|
17
17
|
# @return Credentials needed for the client to connect to Azure.
|
18
18
|
attr_reader :credentials
|
19
19
|
|
20
|
-
# @return [String]
|
21
|
-
#
|
20
|
+
# @return [String] The Azure subscription ID. This is a GUID-formatted
|
21
|
+
# string (e.g. 00000000-0000-0000-0000-000000000000)
|
22
22
|
attr_accessor :subscription_id
|
23
23
|
|
24
24
|
# @return [String] The API version to be used with the HTTP request.
|
@@ -47,6 +47,9 @@ module Azure::ARM::Batch
|
|
47
47
|
# @return [Location] location
|
48
48
|
attr_reader :location
|
49
49
|
|
50
|
+
# @return [Operations] operations
|
51
|
+
attr_reader :operations
|
52
|
+
|
50
53
|
#
|
51
54
|
# Creates initializes a new instance of the BatchManagementClient class.
|
52
55
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
@@ -64,7 +67,8 @@ module Azure::ARM::Batch
|
|
64
67
|
@application_package_operations = ApplicationPackageOperations.new(self)
|
65
68
|
@application_operations = ApplicationOperations.new(self)
|
66
69
|
@location = Location.new(self)
|
67
|
-
@
|
70
|
+
@operations = Operations.new(self)
|
71
|
+
@api_version = '2017-05-01'
|
68
72
|
@accept_language = 'en-US'
|
69
73
|
@long_running_operation_retry_timeout = 30
|
70
74
|
@generate_client_request_id = true
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Batch
|
|
8
8
|
# Location
|
9
9
|
#
|
10
10
|
class Location
|
11
|
-
include Azure::ARM::Batch::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -26,7 +25,8 @@ module Azure::ARM::Batch
|
|
26
25
|
# Gets the Batch service quotas for the specified subscription at the given
|
27
26
|
# location.
|
28
27
|
#
|
29
|
-
# @param location_name [String] The
|
28
|
+
# @param location_name [String] The region for which to retrieve Batch service
|
29
|
+
# quotas.
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
@@ -41,7 +41,8 @@ module Azure::ARM::Batch
|
|
41
41
|
# Gets the Batch service quotas for the specified subscription at the given
|
42
42
|
# location.
|
43
43
|
#
|
44
|
-
# @param location_name [String] The
|
44
|
+
# @param location_name [String] The region for which to retrieve Batch service
|
45
|
+
# quotas.
|
45
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
47
|
# will be added to the HTTP request.
|
47
48
|
#
|
@@ -55,7 +56,8 @@ module Azure::ARM::Batch
|
|
55
56
|
# Gets the Batch service quotas for the specified subscription at the given
|
56
57
|
# location.
|
57
58
|
#
|
58
|
-
# @param location_name [String] The
|
59
|
+
# @param location_name [String] The region for which to retrieve Batch service
|
60
|
+
# quotas.
|
59
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
62
|
# to the HTTP request.
|
61
63
|
#
|
@@ -72,7 +74,7 @@ module Azure::ARM::Batch
|
|
72
74
|
# Set Headers
|
73
75
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
74
76
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
75
|
-
path_template = '
|
77
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas'
|
76
78
|
|
77
79
|
request_url = @base_url || @client.base_url
|
78
80
|
|
@@ -99,8 +101,8 @@ module Azure::ARM::Batch
|
|
99
101
|
if status_code == 200
|
100
102
|
begin
|
101
103
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
102
|
-
result_mapper = BatchLocationQuota.mapper()
|
103
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
104
|
+
result_mapper = Azure::ARM::Batch::Models::BatchLocationQuota.mapper()
|
105
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
104
106
|
rescue Exception => e
|
105
107
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
106
108
|
end
|
@@ -1,18 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Batch
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Parameters for an
|
10
|
-
# request.
|
9
|
+
# Parameters for an activating an application package.
|
11
10
|
#
|
12
11
|
class ActivateApplicationPackageParameters
|
13
12
|
|
14
13
|
include MsRestAzure
|
15
14
|
|
15
|
+
include MsRest::JSONable
|
16
16
|
# @return [String] The format of the application package binary file.
|
17
17
|
attr_accessor :format
|
18
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Batch
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] A string that uniquely identifies the application
|
16
17
|
# within the account.
|
17
18
|
attr_accessor :id
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Batch
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Parameters for an
|
9
|
+
# Parameters for adding an Application.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class ApplicationCreateParameters
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Boolean] A value indicating whether packages within the
|
16
17
|
# application may be overwritten using the same version string.
|
17
18
|
attr_accessor :allow_updates
|
@@ -21,16 +22,16 @@ module Azure::ARM::Batch
|
|
21
22
|
|
22
23
|
|
23
24
|
#
|
24
|
-
# Mapper for
|
25
|
+
# Mapper for ApplicationCreateParameters class as Ruby Hash.
|
25
26
|
# This will be used for serialization/deserialization.
|
26
27
|
#
|
27
28
|
def self.mapper()
|
28
29
|
{
|
29
30
|
required: false,
|
30
|
-
serialized_name: '
|
31
|
+
serialized_name: 'ApplicationCreateParameters',
|
31
32
|
type: {
|
32
33
|
name: 'Composite',
|
33
|
-
class_name: '
|
34
|
+
class_name: 'ApplicationCreateParameters',
|
34
35
|
model_properties: {
|
35
36
|
allow_updates: {
|
36
37
|
required: false,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -13,6 +13,7 @@ module Azure::ARM::Batch
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
+
include MsRest::JSONable
|
16
17
|
# @return [String] The ID of the application.
|
17
18
|
attr_accessor :id
|
18
19
|
|
@@ -27,11 +28,11 @@ module Azure::ARM::Batch
|
|
27
28
|
# is active.
|
28
29
|
attr_accessor :format
|
29
30
|
|
30
|
-
# @return [String] The
|
31
|
-
# stored.
|
31
|
+
# @return [String] The URL for the application package in Azure Storage.
|
32
32
|
attr_accessor :storage_url
|
33
33
|
|
34
|
-
# @return [DateTime] The UTC time at which the
|
34
|
+
# @return [DateTime] The UTC time at which the Azure Storage URL will
|
35
|
+
# expire.
|
35
36
|
attr_accessor :storage_url_expiry
|
36
37
|
|
37
38
|
# @return [DateTime] The time at which the package was last activated, if
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Batch
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Parameters for an
|
9
|
+
# Parameters for an update application request.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class ApplicationUpdateParameters
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Boolean] A value indicating whether packages within the
|
16
17
|
# application may be overwritten using the same version string.
|
17
18
|
attr_accessor :allow_updates
|
@@ -25,16 +26,16 @@ module Azure::ARM::Batch
|
|
25
26
|
|
26
27
|
|
27
28
|
#
|
28
|
-
# Mapper for
|
29
|
+
# Mapper for ApplicationUpdateParameters class as Ruby Hash.
|
29
30
|
# This will be used for serialization/deserialization.
|
30
31
|
#
|
31
32
|
def self.mapper()
|
32
33
|
{
|
33
34
|
required: false,
|
34
|
-
serialized_name: '
|
35
|
+
serialized_name: 'ApplicationUpdateParameters',
|
35
36
|
type: {
|
36
37
|
name: 'Composite',
|
37
|
-
class_name: '
|
38
|
+
class_name: 'ApplicationUpdateParameters',
|
38
39
|
model_properties: {
|
39
40
|
allow_updates: {
|
40
41
|
required: false,
|
@@ -1,19 +1,20 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Batch
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# The properties related to auto
|
9
|
+
# The properties related to the auto-storage account.
|
10
10
|
#
|
11
11
|
class AutoStorageBaseProperties
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The resource ID of the storage account to be used for
|
16
|
-
# auto
|
17
|
+
# auto-storage account.
|
17
18
|
attr_accessor :storage_account_id
|
18
19
|
|
19
20
|
|
@@ -1,22 +1,19 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Batch
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Contains information about the auto
|
9
|
+
# Contains information about the auto-storage account associated with a
|
10
10
|
# Batch account.
|
11
11
|
#
|
12
|
-
class AutoStorageProperties
|
12
|
+
class AutoStorageProperties < AutoStorageBaseProperties
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
-
|
17
|
-
# auto storage account.
|
18
|
-
attr_accessor :storage_account_id
|
19
|
-
|
16
|
+
include MsRest::JSONable
|
20
17
|
# @return [DateTime] The UTC time at which storage keys were last
|
21
18
|
# synchronized with the Batch account.
|
22
19
|
attr_accessor :last_key_sync
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,8 +12,9 @@ module Azure::ARM::Batch
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
|
16
|
-
# Batch
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The account endpoint used to interact with the Batch
|
17
|
+
# service.
|
17
18
|
attr_accessor :account_endpoint
|
18
19
|
|
19
20
|
# @return [ProvisioningState] The provisioned state of the resource.
|
@@ -30,12 +31,15 @@ module Azure::ARM::Batch
|
|
30
31
|
# associated with the Batch account.
|
31
32
|
attr_accessor :key_vault_reference
|
32
33
|
|
33
|
-
# @return [AutoStorageProperties] The properties and status of any
|
34
|
-
# storage account associated with the Batch account.
|
34
|
+
# @return [AutoStorageProperties] The properties and status of any
|
35
|
+
# auto-storage account associated with the Batch account.
|
35
36
|
attr_accessor :auto_storage
|
36
37
|
|
37
|
-
# @return [Integer] The core quota for this Batch account.
|
38
|
-
attr_accessor :
|
38
|
+
# @return [Integer] The dedicated core quota for this Batch account.
|
39
|
+
attr_accessor :dedicated_core_quota
|
40
|
+
|
41
|
+
# @return [Integer] The low-priority core quota for this Batch account.
|
42
|
+
attr_accessor :low_priority_core_quota
|
39
43
|
|
40
44
|
# @return [Integer] The pool quota for this Batch account.
|
41
45
|
attr_accessor :pool_quota
|
@@ -148,10 +152,18 @@ module Azure::ARM::Batch
|
|
148
152
|
class_name: 'AutoStorageProperties'
|
149
153
|
}
|
150
154
|
},
|
151
|
-
|
155
|
+
dedicated_core_quota: {
|
156
|
+
required: false,
|
157
|
+
read_only: true,
|
158
|
+
serialized_name: 'properties.dedicatedCoreQuota',
|
159
|
+
type: {
|
160
|
+
name: 'Number'
|
161
|
+
}
|
162
|
+
},
|
163
|
+
low_priority_core_quota: {
|
152
164
|
required: false,
|
153
165
|
read_only: true,
|
154
|
-
serialized_name: 'properties.
|
166
|
+
serialized_name: 'properties.lowPriorityCoreQuota',
|
155
167
|
type: {
|
156
168
|
name: 'Number'
|
157
169
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,15 +12,16 @@ module Azure::ARM::Batch
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] The region in which to create the account.
|
16
17
|
attr_accessor :location
|
17
18
|
|
18
|
-
# @return [Hash{String => String}] The user
|
19
|
+
# @return [Hash{String => String}] The user-specified tags associated
|
19
20
|
# with the account.
|
20
21
|
attr_accessor :tags
|
21
22
|
|
22
|
-
# @return [AutoStorageBaseProperties] The properties related to
|
23
|
-
# storage account.
|
23
|
+
# @return [AutoStorageBaseProperties] The properties related to the
|
24
|
+
# auto-storage account.
|
24
25
|
attr_accessor :auto_storage
|
25
26
|
|
26
27
|
# @return [PoolAllocationMode] The allocation mode to use for creating
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,10 @@ module Azure::ARM::Batch
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The Batch account name.
|
17
|
+
attr_accessor :account_name
|
18
|
+
|
15
19
|
# @return [String] The primary key associated with the account.
|
16
20
|
attr_accessor :primary
|
17
21
|
|
@@ -31,6 +35,14 @@ module Azure::ARM::Batch
|
|
31
35
|
name: 'Composite',
|
32
36
|
class_name: 'BatchAccountKeys',
|
33
37
|
model_properties: {
|
38
|
+
account_name: {
|
39
|
+
required: false,
|
40
|
+
read_only: true,
|
41
|
+
serialized_name: 'accountName',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
34
46
|
primary: {
|
35
47
|
required: false,
|
36
48
|
read_only: true,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,8 +12,9 @@ module Azure::ARM::Batch
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
|
16
|
-
# accounts
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<BatchAccount>] The collection of Batch accounts returned
|
17
|
+
# by the listing operation.
|
17
18
|
attr_accessor :value
|
18
19
|
|
19
20
|
# @return [String] The continuation token.
|