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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
  3. data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
  4. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
  5. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
  6. data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +6 -5
  7. data/lib/2017-01-01/generated/azure_mgmt_batch.rb +52 -0
  8. data/lib/2017-01-01/generated/azure_mgmt_batch/application_operations.rb +657 -0
  9. data/lib/2017-01-01/generated/azure_mgmt_batch/application_package_operations.rb +445 -0
  10. data/lib/2017-01-01/generated/azure_mgmt_batch/batch_account_operations.rb +1281 -0
  11. data/lib/2017-01-01/generated/azure_mgmt_batch/batch_management_client.rb +143 -0
  12. data/lib/2017-01-01/generated/azure_mgmt_batch/location.rb +116 -0
  13. data/lib/2017-01-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  14. data/lib/2017-01-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +47 -0
  15. data/lib/2017-01-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +58 -0
  16. data/lib/2017-01-01/generated/azure_mgmt_batch/models/application.rb +103 -0
  17. data/lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
  18. data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
  19. data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +60 -0
  20. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account.rb +196 -0
  21. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
  22. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +59 -0
  23. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
  24. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
  25. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
  26. data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
  27. data/lib/2017-01-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
  28. data/lib/2017-01-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
  29. data/lib/2017-01-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
  30. data/lib/2017-01-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
  31. data/lib/2017-01-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  32. data/lib/2017-01-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
  33. data/lib/2017-01-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +70 -0
  34. data/lib/2017-01-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  35. data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
  36. data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
  37. data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
  38. data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
  39. data/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +12 -12
  40. data/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +15 -13
  41. data/lib/2017-09-01/generated/azure_mgmt_batch.rb +113 -0
  42. data/lib/2017-09-01/generated/azure_mgmt_batch/application_operations.rb +655 -0
  43. data/lib/2017-09-01/generated/azure_mgmt_batch/application_package_operations.rb +441 -0
  44. data/lib/2017-09-01/generated/azure_mgmt_batch/batch_account_operations.rb +1273 -0
  45. data/lib/2017-09-01/generated/azure_mgmt_batch/batch_management_client.rb +155 -0
  46. data/lib/2017-09-01/generated/azure_mgmt_batch/certificate_operations.rb +1009 -0
  47. data/lib/2017-09-01/generated/azure_mgmt_batch/location.rb +221 -0
  48. data/lib/2017-09-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  49. data/lib/2017-09-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
  50. data/lib/2017-09-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
  51. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application.rb +103 -0
  52. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +58 -0
  53. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
  54. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
  55. data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +70 -0
  56. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
  57. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
  58. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
  59. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
  60. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
  61. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
  62. data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +69 -0
  63. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account.rb +208 -0
  64. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
  65. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
  66. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
  67. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
  68. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
  69. data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
  70. data/lib/2017-09-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
  71. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate.rb +205 -0
  72. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
  73. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
  74. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
  75. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
  76. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_reference.rb +120 -0
  77. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
  78. data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
  79. data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
  80. data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
  81. data/lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +83 -0
  82. data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
  83. data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
  84. data/lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
  85. data/lib/2017-09-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
  86. data/lib/2017-09-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
  87. data/lib/2017-09-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
  88. data/lib/2017-09-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
  89. data/lib/2017-09-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
  90. data/lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
  91. data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
  92. data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
  93. data/lib/2017-09-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
  94. data/lib/2017-09-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
  95. data/lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
  96. data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
  97. data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
  98. data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
  99. data/lib/2017-09-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
  100. data/lib/2017-09-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
  101. data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
  102. data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
  103. data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
  104. data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
  105. data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
  106. data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
  107. data/lib/2017-09-01/generated/azure_mgmt_batch/models/osdisk.rb +52 -0
  108. data/lib/2017-09-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
  109. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool.rb +474 -0
  110. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
  111. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
  112. data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
  113. data/lib/2017-09-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  114. data/lib/2017-09-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
  115. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
  116. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
  117. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
  118. data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb +79 -0
  119. data/lib/2017-09-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
  120. data/lib/2017-09-01/generated/azure_mgmt_batch/models/start_task.rb +151 -0
  121. data/lib/2017-09-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
  122. data/lib/2017-09-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
  123. data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_account.rb +89 -0
  124. data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
  125. data/lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +138 -0
  126. data/lib/2017-09-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
  127. data/lib/2017-09-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  128. data/lib/2017-09-01/generated/azure_mgmt_batch/operations.rb +215 -0
  129. data/lib/2017-09-01/generated/azure_mgmt_batch/pool_operations.rb +1132 -0
  130. data/lib/azure_mgmt_batch.rb +2 -0
  131. data/lib/profiles/latest/batch_latest_profile_client.rb +28 -9
  132. data/lib/profiles/latest/batch_module_definition.rb +0 -1
  133. data/lib/profiles/latest/modules/batch_profile_module.rb +357 -126
  134. data/lib/version.rb +1 -1
  135. metadata +119 -2
@@ -0,0 +1,16 @@
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
+ # Defines values for ElevationLevel
10
+ #
11
+ module ElevationLevel
12
+ NonAdmin = "NonAdmin"
13
+ Admin = "Admin"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,58 @@
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 environment variable to be set on a task process.
10
+ #
11
+ #
12
+ class EnvironmentSetting
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The name of the environment variable.
17
+ attr_accessor :name
18
+
19
+ # @return [String] The value of the environment variable.
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for EnvironmentSetting class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'EnvironmentSetting',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'EnvironmentSetting',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'value',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,93 @@
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
+ # Fixed scale settings for the pool.
10
+ #
11
+ #
12
+ class FixedScaleSettings
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Duration] The timeout for allocation of compute nodes to the
17
+ # pool. The default value is 15 minutes. Timeout values use ISO 8601
18
+ # format. For example, use PT10M for 10 minutes. The minimum value is 5
19
+ # minutes. If you specify a value less than 5 minutes, the Batch service
20
+ # rejects the request with an error; if you are calling the REST API
21
+ # directly, the HTTP status code is 400 (Bad Request).
22
+ attr_accessor :resize_timeout
23
+
24
+ # @return [Integer] The desired number of dedicated compute nodes in the
25
+ # pool. At least one of targetDedicatedNodes, targetLowPriority nodes
26
+ # must be set.
27
+ attr_accessor :target_dedicated_nodes
28
+
29
+ # @return [Integer] The desired number of low-priority compute nodes in
30
+ # the pool. At least one of targetDedicatedNodes, targetLowPriority nodes
31
+ # must be set.
32
+ attr_accessor :target_low_priority_nodes
33
+
34
+ # @return [ComputeNodeDeallocationOption] Determines what to do with a
35
+ # node and its running task(s) if the pool size is decreasing. If
36
+ # omitted, the default value is Requeue. Possible values include:
37
+ # 'Requeue', 'Terminate', 'TaskCompletion', 'RetainedData'
38
+ attr_accessor :node_deallocation_option
39
+
40
+
41
+ #
42
+ # Mapper for FixedScaleSettings class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'FixedScaleSettings',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'FixedScaleSettings',
53
+ model_properties: {
54
+ resize_timeout: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'resizeTimeout',
58
+ type: {
59
+ name: 'TimeSpan'
60
+ }
61
+ },
62
+ target_dedicated_nodes: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'targetDedicatedNodes',
66
+ type: {
67
+ name: 'Number'
68
+ }
69
+ },
70
+ target_low_priority_nodes: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'targetLowPriorityNodes',
74
+ type: {
75
+ name: 'Number'
76
+ }
77
+ },
78
+ node_deallocation_option: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'nodeDeallocationOption',
82
+ type: {
83
+ name: 'Enum',
84
+ module: 'ComputeNodeDeallocationOption'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,108 @@
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
+ # A reference to an Azure Virtual Machines Marketplace image or the Azure
10
+ # Image resource of a custom Virtual Machine. To get the list of all
11
+ # imageReferences verified by Azure Batch, see the 'List supported node
12
+ # agent SKUs' operation.
13
+ #
14
+ #
15
+ class ImageReference
16
+
17
+ include MsRestAzure
18
+
19
+ # @return [String] The publisher of the Azure Virtual Machines
20
+ # Marketplace image. For example, Canonical or MicrosoftWindowsServer.
21
+ attr_accessor :publisher
22
+
23
+ # @return [String] The offer type of the Azure Virtual Machines
24
+ # Marketplace image. For example, UbuntuServer or WindowsServer.
25
+ attr_accessor :offer
26
+
27
+ # @return [String] The SKU of the Azure Virtual Machines Marketplace
28
+ # image. For example, 14.04.0-LTS or 2012-R2-Datacenter.
29
+ attr_accessor :sku
30
+
31
+ # @return [String] The version of the Azure Virtual Machines Marketplace
32
+ # image. A value of 'latest' can be specified to select the latest
33
+ # version of an image. If omitted, the default is 'latest'.
34
+ attr_accessor :version
35
+
36
+ # @return [String] The ARM resource identifier of the virtual machine
37
+ # image. Computes nodes of the pool will be created using this custom
38
+ # image. This is of the form
39
+ # /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}.
40
+ # This property is mutually exclusive with other properties. The virtual
41
+ # machine image must be in the same region and subscription as the Azure
42
+ # Batch account. For information about the firewall settings for Batch
43
+ # node agent to communicate with Batch service see
44
+ # https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
45
+ # .
46
+ attr_accessor :id
47
+
48
+
49
+ #
50
+ # Mapper for ImageReference class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'ImageReference',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'ImageReference',
61
+ model_properties: {
62
+ publisher: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'publisher',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ offer: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'offer',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ sku: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'sku',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ version: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'version',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ id: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'id',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,16 @@
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
+ # Defines values for InboundEndpointProtocol
10
+ #
11
+ module InboundEndpointProtocol
12
+ TCP = "TCP"
13
+ UDP = "UDP"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,141 @@
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
+ # A inbound NAT pool that can be used to address specific ports on compute
10
+ # nodes in a Batch pool externally.
11
+ #
12
+ #
13
+ class InboundNatPool
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [String] The name of the endpoint. The name must be unique
18
+ # within a Batch pool, can contain letters, numbers, underscores,
19
+ # periods, and hyphens. Names must start with a letter or number, must
20
+ # end with a letter, number, or underscore, and cannot exceed 77
21
+ # characters. If any invalid values are provided the request fails with
22
+ # HTTP status code 400.
23
+ attr_accessor :name
24
+
25
+ # @return [InboundEndpointProtocol] The protocol of the endpoint.
26
+ # Possible values include: 'TCP', 'UDP'
27
+ attr_accessor :protocol
28
+
29
+ # @return [Integer] The port number on the compute node. This must be
30
+ # unique within a Batch pool. Acceptable values are between 1 and 65535
31
+ # except for 22, 3389, 29876 and 29877 as these are reserved. If any
32
+ # reserved values are provided the request fails with HTTP status code
33
+ # 400.
34
+ attr_accessor :backend_port
35
+
36
+ # @return [Integer] The first port number in the range of external ports
37
+ # that will be used to provide inbound access to the backendPort on
38
+ # individual compute nodes. Acceptable values range between 1 and 65534
39
+ # except ports from 50000 to 55000 which are reserved. All ranges within
40
+ # a pool must be distinct and cannot overlap. If any reserved or
41
+ # overlapping values are provided the request fails with HTTP status code
42
+ # 400.
43
+ attr_accessor :frontend_port_range_start
44
+
45
+ # @return [Integer] The last port number in the range of external ports
46
+ # that will be used to provide inbound access to the backendPort on
47
+ # individual compute nodes. Acceptable values range between 1 and 65534
48
+ # except ports from 50000 to 55000 which are reserved by the Batch
49
+ # service. All ranges within a pool must be distinct and cannot overlap.
50
+ # If any reserved or overlapping values are provided the request fails
51
+ # with HTTP status code 400.
52
+ attr_accessor :frontend_port_range_end
53
+
54
+ # @return [Array<NetworkSecurityGroupRule>] A list of network security
55
+ # group rules that will be applied to the endpoint. The maximum number of
56
+ # rules that can be specified across all the endpoints on a Batch pool is
57
+ # 25. If no network security group rules are specified, a default rule
58
+ # will be created to allow inbound access to the specified backendPort.
59
+ # If the maximum number of network security group rules is exceeded the
60
+ # request fails with HTTP status code 400.
61
+ attr_accessor :network_security_group_rules
62
+
63
+
64
+ #
65
+ # Mapper for InboundNatPool class as Ruby Hash.
66
+ # This will be used for serialization/deserialization.
67
+ #
68
+ def self.mapper()
69
+ {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'InboundNatPool',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'InboundNatPool',
76
+ model_properties: {
77
+ name: {
78
+ client_side_validation: true,
79
+ required: true,
80
+ serialized_name: 'name',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ protocol: {
86
+ client_side_validation: true,
87
+ required: true,
88
+ serialized_name: 'protocol',
89
+ type: {
90
+ name: 'Enum',
91
+ module: 'InboundEndpointProtocol'
92
+ }
93
+ },
94
+ backend_port: {
95
+ client_side_validation: true,
96
+ required: true,
97
+ serialized_name: 'backendPort',
98
+ type: {
99
+ name: 'Number'
100
+ }
101
+ },
102
+ frontend_port_range_start: {
103
+ client_side_validation: true,
104
+ required: true,
105
+ serialized_name: 'frontendPortRangeStart',
106
+ type: {
107
+ name: 'Number'
108
+ }
109
+ },
110
+ frontend_port_range_end: {
111
+ client_side_validation: true,
112
+ required: true,
113
+ serialized_name: 'frontendPortRangeEnd',
114
+ type: {
115
+ name: 'Number'
116
+ }
117
+ },
118
+ network_security_group_rules: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'networkSecurityGroupRules',
122
+ type: {
123
+ name: 'Sequence',
124
+ element: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'NetworkSecurityGroupRuleElementType',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'NetworkSecurityGroupRule'
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ end
139
+ end
140
+ end
141
+ end
@@ -0,0 +1,16 @@
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
+ # Defines values for InterNodeCommunicationState
10
+ #
11
+ module InterNodeCommunicationState
12
+ Enabled = "Enabled"
13
+ Disabled = "Disabled"
14
+ end
15
+ end
16
+ end