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,71 @@
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 set of Azure Batch account keys.
10
+ #
11
+ class BatchAccountKeys
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The Batch account name.
16
+ attr_accessor :account_name
17
+
18
+ # @return [String] The primary key associated with the account.
19
+ attr_accessor :primary
20
+
21
+ # @return [String] The secondary key associated with the account.
22
+ attr_accessor :secondary
23
+
24
+
25
+ #
26
+ # Mapper for BatchAccountKeys class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'BatchAccountKeys',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'BatchAccountKeys',
37
+ model_properties: {
38
+ account_name: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'accountName',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ primary: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'primary',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ secondary: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'secondary',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,99 @@
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
+ # Values returned by the List operation.
10
+ #
11
+ class BatchAccountListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<BatchAccount>] The collection of Batch accounts returned
17
+ # by the listing operation.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The continuation token.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<BatchAccount>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [BatchAccountListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for BatchAccountListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'BatchAccountListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'BatchAccountListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'BatchAccountElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'BatchAccount'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,48 @@
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 supplied to the RegenerateKey operation.
10
+ #
11
+ class BatchAccountRegenerateKeyParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [AccountKeyType] The type of account key to regenerate.
16
+ # Possible values include: 'Primary', 'Secondary'
17
+ attr_accessor :key_name
18
+
19
+
20
+ #
21
+ # Mapper for BatchAccountRegenerateKeyParameters class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'BatchAccountRegenerateKeyParameters',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'BatchAccountRegenerateKeyParameters',
32
+ model_properties: {
33
+ key_name: {
34
+ client_side_validation: true,
35
+ required: true,
36
+ serialized_name: 'keyName',
37
+ type: {
38
+ name: 'Enum',
39
+ module: 'AccountKeyType'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,68 @@
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 updating an Azure Batch account.
10
+ #
11
+ class BatchAccountUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] The user-specified tags associated
16
+ # with the account.
17
+ attr_accessor :tags
18
+
19
+ # @return [AutoStorageBaseProperties] The properties related to the
20
+ # auto-storage account.
21
+ attr_accessor :auto_storage
22
+
23
+
24
+ #
25
+ # Mapper for BatchAccountUpdateParameters class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'BatchAccountUpdateParameters',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'BatchAccountUpdateParameters',
36
+ model_properties: {
37
+ tags: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'tags',
41
+ type: {
42
+ name: 'Dictionary',
43
+ value: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'StringElementType',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ },
53
+ auto_storage: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'properties.autoStorage',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'AutoStorageBaseProperties'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,48 @@
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
+ # Quotas associated with a Batch region for a particular subscription.
10
+ #
11
+ class BatchLocationQuota
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The number of Batch accounts that may be created
16
+ # under the subscription in the specified region.
17
+ attr_accessor :account_quota
18
+
19
+
20
+ #
21
+ # Mapper for BatchLocationQuota class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'BatchLocationQuota',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'BatchLocationQuota',
32
+ model_properties: {
33
+ account_quota: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ read_only: true,
37
+ serialized_name: 'accountQuota',
38
+ type: {
39
+ name: 'Number'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -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_09_01
7
+ module Models
8
+ #
9
+ # Defines values for CachingType
10
+ #
11
+ module CachingType
12
+ None = "None"
13
+ ReadOnly = "ReadOnly"
14
+ ReadWrite = "ReadWrite"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,205 @@
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
+ # Contains information about a certificate.
10
+ #
11
+ class Certificate < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The algorithm of the certificate thumbprint. This must
16
+ # match the first portion of the certificate name. Currently required to
17
+ # be 'SHA1'.
18
+ attr_accessor :thumbprint_algorithm
19
+
20
+ # @return [String] The thumbprint of the certificate. This must match the
21
+ # thumbprint from the name.
22
+ attr_accessor :thumbprint
23
+
24
+ # @return [CertificateFormat] The format of the certificate - either Pfx
25
+ # or Cer. If omitted, the default is Pfx. Possible values include: 'Pfx',
26
+ # 'Cer'
27
+ attr_accessor :format
28
+
29
+ # @return [CertificateProvisioningState] The provisioned state of the
30
+ # resource. Values are:
31
+ #
32
+ # Succeeded - The certificate is available for use in pools.
33
+ # Deleting - The user has requested that the certificate be deleted, but
34
+ # the delete operation has not yet completed. You may not reference the
35
+ # certificate when creating or updating pools.
36
+ # Failed - The user requested that the certificate be deleted, but there
37
+ # are pools that still have references to the certificate, or it is still
38
+ # installed on one or more compute nodes. (The latter can occur if the
39
+ # certificate has been removed from the pool, but the node has not yet
40
+ # restarted. Nodes refresh their certificates only when they restart.)
41
+ # You may use the cancel certificate delete operation to cancel the
42
+ # delete, or the delete certificate operation to retry the delete.
43
+ # Possible values include: 'Succeeded', 'Deleting', 'Failed'
44
+ attr_accessor :provisioning_state
45
+
46
+ # @return [DateTime] The time at which the certificate entered its
47
+ # current state.
48
+ attr_accessor :provisioning_state_transition_time
49
+
50
+ # @return [CertificateProvisioningState] The previous provisioned state
51
+ # of the resource. Possible values include: 'Succeeded', 'Deleting',
52
+ # 'Failed'
53
+ attr_accessor :previous_provisioning_state
54
+
55
+ # @return [DateTime] The time at which the certificate entered its
56
+ # previous state.
57
+ attr_accessor :previous_provisioning_state_transition_time
58
+
59
+ # @return [String] The public key of the certificate.
60
+ attr_accessor :public_data
61
+
62
+ # @return [DeleteCertificateError] The error which occurred while
63
+ # deleting the certificate. This is only returned when the certificate
64
+ # provisioningState is 'Failed'.
65
+ attr_accessor :delete_certificate_error
66
+
67
+
68
+ #
69
+ # Mapper for Certificate class as Ruby Hash.
70
+ # This will be used for serialization/deserialization.
71
+ #
72
+ def self.mapper()
73
+ {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'Certificate',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'Certificate',
80
+ model_properties: {
81
+ id: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'id',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ name: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'name',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ type: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'type',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ etag: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'etag',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ thumbprint_algorithm: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ serialized_name: 'properties.thumbprintAlgorithm',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ },
125
+ thumbprint: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ serialized_name: 'properties.thumbprint',
129
+ type: {
130
+ name: 'String'
131
+ }
132
+ },
133
+ format: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ serialized_name: 'properties.format',
137
+ type: {
138
+ name: 'Enum',
139
+ module: 'CertificateFormat'
140
+ }
141
+ },
142
+ provisioning_state: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'properties.provisioningState',
147
+ type: {
148
+ name: 'Enum',
149
+ module: 'CertificateProvisioningState'
150
+ }
151
+ },
152
+ provisioning_state_transition_time: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'properties.provisioningStateTransitionTime',
157
+ type: {
158
+ name: 'DateTime'
159
+ }
160
+ },
161
+ previous_provisioning_state: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ read_only: true,
165
+ serialized_name: 'properties.previousProvisioningState',
166
+ type: {
167
+ name: 'Enum',
168
+ module: 'CertificateProvisioningState'
169
+ }
170
+ },
171
+ previous_provisioning_state_transition_time: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ read_only: true,
175
+ serialized_name: 'properties.previousProvisioningStateTransitionTime',
176
+ type: {
177
+ name: 'DateTime'
178
+ }
179
+ },
180
+ public_data: {
181
+ client_side_validation: true,
182
+ required: false,
183
+ read_only: true,
184
+ serialized_name: 'properties.publicData',
185
+ type: {
186
+ name: 'String'
187
+ }
188
+ },
189
+ delete_certificate_error: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ read_only: true,
193
+ serialized_name: 'properties.deleteCertificateError',
194
+ type: {
195
+ name: 'Composite',
196
+ class_name: 'DeleteCertificateError'
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
202
+ end
203
+ end
204
+ end
205
+ end