azure_mgmt_batch 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
- data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +6 -5
- data/lib/2017-01-01/generated/azure_mgmt_batch.rb +52 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_operations.rb +657 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_package_operations.rb +445 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_account_operations.rb +1281 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_management_client.rb +143 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/location.rb +116 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +47 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account.rb +196 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +70 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
- data/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +12 -12
- data/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +15 -13
- data/lib/2017-09-01/generated/azure_mgmt_batch.rb +113 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_operations.rb +655 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_package_operations.rb +441 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_account_operations.rb +1273 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_management_client.rb +155 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/certificate_operations.rb +1009 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/location.rb +221 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application.rb +103 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +58 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +70 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account.rb +208 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate.rb +205 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_reference.rb +120 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +83 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/osdisk.rb +52 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool.rb +474 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb +79 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/start_task.rb +151 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_account.rb +89 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +138 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/operations.rb +215 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/pool_operations.rb +1132 -0
- data/lib/azure_mgmt_batch.rb +2 -0
- data/lib/profiles/latest/batch_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/batch_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/batch_profile_module.rb +357 -126
- data/lib/version.rb +1 -1
- metadata +119 -2
@@ -0,0 +1,125 @@
|
|
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_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An application package which represents a particular version of an
|
10
|
+
# application.
|
11
|
+
#
|
12
|
+
class ApplicationPackage
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The ID of the application.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] The version of the application package.
|
20
|
+
attr_accessor :version
|
21
|
+
|
22
|
+
# @return [PackageState] The current state of the application package.
|
23
|
+
# Possible values include: 'Pending', 'Active', 'Unmapped'
|
24
|
+
attr_accessor :state
|
25
|
+
|
26
|
+
# @return [String] The format of the application package, if the package
|
27
|
+
# is active.
|
28
|
+
attr_accessor :format
|
29
|
+
|
30
|
+
# @return [String] The URL for the application package in Azure Storage.
|
31
|
+
attr_accessor :storage_url
|
32
|
+
|
33
|
+
# @return [DateTime] The UTC time at which the Azure Storage URL will
|
34
|
+
# expire.
|
35
|
+
attr_accessor :storage_url_expiry
|
36
|
+
|
37
|
+
# @return [DateTime] The time at which the package was last activated, if
|
38
|
+
# the package is active.
|
39
|
+
attr_accessor :last_activation_time
|
40
|
+
|
41
|
+
|
42
|
+
#
|
43
|
+
# Mapper for ApplicationPackage class as Ruby Hash.
|
44
|
+
# This will be used for serialization/deserialization.
|
45
|
+
#
|
46
|
+
def self.mapper()
|
47
|
+
{
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'ApplicationPackage',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'ApplicationPackage',
|
54
|
+
model_properties: {
|
55
|
+
id: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'id',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
version: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'version',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
state: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'state',
|
78
|
+
type: {
|
79
|
+
name: 'Enum',
|
80
|
+
module: 'PackageState'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
format: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
read_only: true,
|
87
|
+
serialized_name: 'format',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
storage_url: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
read_only: true,
|
96
|
+
serialized_name: 'storageUrl',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
storage_url_expiry: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
read_only: true,
|
105
|
+
serialized_name: 'storageUrlExpiry',
|
106
|
+
type: {
|
107
|
+
name: 'DateTime'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
last_activation_time: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
read_only: true,
|
114
|
+
serialized_name: 'lastActivationTime',
|
115
|
+
type: {
|
116
|
+
name: 'DateTime'
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -0,0 +1,64 @@
|
|
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_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Link to an application package inside the batch account
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ApplicationPackageReference
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The ID of the application package to install. This
|
17
|
+
# must be inside the same batch account as the pool. This can either be a
|
18
|
+
# reference to a specific version or the default version if one exists.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# @return [String] The version of the application to deploy. If omitted,
|
22
|
+
# the default version is deployed. If this is omitted, and no default
|
23
|
+
# version is specified for this application, the request fails with the
|
24
|
+
# error code InvalidApplicationPackageReferences. If you are calling the
|
25
|
+
# REST API directly, the HTTP status code is 409.
|
26
|
+
attr_accessor :version
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for ApplicationPackageReference class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'ApplicationPackageReference',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'ApplicationPackageReference',
|
41
|
+
model_properties: {
|
42
|
+
id: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
version: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'version',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters for an update application request.
|
10
|
+
#
|
11
|
+
class ApplicationUpdateParameters
|
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 package to use if a client requests the
|
20
|
+
# application but does not specify a version.
|
21
|
+
attr_accessor :default_version
|
22
|
+
|
23
|
+
# @return [String] The display name for the application.
|
24
|
+
attr_accessor :display_name
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for ApplicationUpdateParameters class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ApplicationUpdateParameters',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ApplicationUpdateParameters',
|
39
|
+
model_properties: {
|
40
|
+
allow_updates: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'allowUpdates',
|
44
|
+
type: {
|
45
|
+
name: 'Boolean'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
default_version: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'defaultVersion',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
display_name: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'displayName',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The results and errors from an execution of a pool autoscale formula.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class AutoScaleRun
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [DateTime] The time at which the autoscale formula was last
|
17
|
+
# evaluated.
|
18
|
+
attr_accessor :evaluation_time
|
19
|
+
|
20
|
+
# @return [String] The final values of all variables used in the
|
21
|
+
# evaluation of the autoscale formula. Each variable value is returned in
|
22
|
+
# the form $variable=value, and variables are separated by semicolons.
|
23
|
+
attr_accessor :results
|
24
|
+
|
25
|
+
# @return [AutoScaleRunError] Details of the error encountered evaluating
|
26
|
+
# the autoscale formula on the pool, if the evaluation was unsuccessful.
|
27
|
+
attr_accessor :error
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for AutoScaleRun class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'AutoScaleRun',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'AutoScaleRun',
|
42
|
+
model_properties: {
|
43
|
+
evaluation_time: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'evaluationTime',
|
47
|
+
type: {
|
48
|
+
name: 'DateTime'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
results: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'results',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
error: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'error',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'AutoScaleRunError'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An error that occurred when autoscaling a pool.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class AutoScaleRunError
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] An identifier for the error. Codes are invariant and
|
17
|
+
# are intended to be consumed programmatically.
|
18
|
+
attr_accessor :code
|
19
|
+
|
20
|
+
# @return [String] A message describing the error, intended to be
|
21
|
+
# suitable for display in a user interface.
|
22
|
+
attr_accessor :message
|
23
|
+
|
24
|
+
# @return [Array<AutoScaleRunError>] Additional details about the error.
|
25
|
+
attr_accessor :details
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for AutoScaleRunError class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'AutoScaleRunError',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'AutoScaleRunError',
|
40
|
+
model_properties: {
|
41
|
+
code: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: true,
|
44
|
+
serialized_name: 'code',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
message: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: true,
|
52
|
+
serialized_name: 'message',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
details: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'details',
|
61
|
+
type: {
|
62
|
+
name: 'Sequence',
|
63
|
+
element: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'AutoScaleRunErrorElementType',
|
67
|
+
type: {
|
68
|
+
name: 'Composite',
|
69
|
+
class_name: 'AutoScaleRunError'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# AutoScale settings for the pool.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class AutoScaleSettings
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] A formula for the desired number of compute nodes in
|
17
|
+
# the pool.
|
18
|
+
attr_accessor :formula
|
19
|
+
|
20
|
+
# @return [Duration] The time interval at which to automatically adjust
|
21
|
+
# the pool size according to the autoscale formula. If omitted, the
|
22
|
+
# default value is 15 minutes (PT15M).
|
23
|
+
attr_accessor :evaluation_interval
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for AutoScaleSettings class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'AutoScaleSettings',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'AutoScaleSettings',
|
38
|
+
model_properties: {
|
39
|
+
formula: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'formula',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
evaluation_interval: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'evaluationInterval',
|
51
|
+
type: {
|
52
|
+
name: 'TimeSpan'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|