azure_mgmt_batch 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-12-01/generated/azure_mgmt_batch.rb +50 -0
  3. data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +635 -0
  4. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/application_package_operations.rb +4 -4
  5. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +1229 -0
  6. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +142 -0
  7. data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +115 -0
  8. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/account_key_type.rb +1 -1
  9. data/lib/2015-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +45 -0
  10. data/lib/2015-12-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +55 -0
  11. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/application.rb +1 -1
  12. data/lib/2015-12-01/generated/azure_mgmt_batch/models/application_package.rb +110 -0
  13. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +45 -0
  14. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +57 -0
  15. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account.rb +147 -0
  16. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +74 -0
  17. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +54 -0
  18. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +95 -0
  19. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +1 -1
  20. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +64 -0
  21. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +45 -0
  22. data/lib/2015-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +94 -0
  23. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/package_state.rb +1 -1
  24. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/models/provisioning_state.rb +1 -1
  25. data/lib/2015-12-01/generated/azure_mgmt_batch/models/resource.rb +94 -0
  26. data/lib/2015-12-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +66 -0
  27. data/lib/2015-12-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  28. data/lib/{generated → 2015-12-01/generated}/azure_mgmt_batch/version.rb +2 -2
  29. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch.rb +35 -35
  30. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/application_operations.rb +7 -7
  31. data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +427 -0
  32. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/batch_account_operations.rb +14 -14
  33. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/batch_management_client.rb +3 -3
  34. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/location.rb +4 -4
  35. data/lib/2017-05-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  36. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/activate_application_package_parameters.rb +1 -1
  37. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application.rb +96 -0
  38. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/application_create_parameters.rb +1 -1
  39. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/application_package.rb +1 -1
  40. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/application_update_parameters.rb +1 -1
  41. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/auto_storage_base_properties.rb +1 -1
  42. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/auto_storage_properties.rb +1 -1
  43. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account.rb +1 -1
  44. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_create_parameters.rb +1 -1
  45. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_keys.rb +1 -1
  46. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_list_result.rb +1 -1
  47. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +46 -0
  48. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_account_update_parameters.rb +1 -1
  49. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/batch_location_quota.rb +1 -1
  50. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/check_name_availability_parameters.rb +1 -1
  51. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/check_name_availability_result.rb +1 -1
  52. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/key_vault_reference.rb +1 -1
  53. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/list_applications_result.rb +1 -1
  54. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/name_availability_reason.rb +1 -1
  55. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/operation.rb +1 -1
  56. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/operation_display.rb +1 -1
  57. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/operation_list_result.rb +1 -1
  58. data/lib/2017-05-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
  59. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/pool_allocation_mode.rb +1 -1
  60. data/lib/2017-05-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
  61. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/models/resource.rb +1 -1
  62. data/lib/2017-05-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
  63. data/lib/{generated → 2017-05-01/generated}/azure_mgmt_batch/operations.rb +3 -3
  64. data/lib/{generated/azure_mgmt_batch/module_definition.rb → 2017-05-01/generated/azure_mgmt_batch/version.rb} +3 -3
  65. data/lib/azure_mgmt_batch.rb +3 -1
  66. data/lib/module_definition.rb +7 -0
  67. data/lib/profiles/common/configurable.rb +73 -0
  68. data/lib/profiles/common/default.rb +68 -0
  69. data/lib/profiles/latest/batch_latest_profile_client.rb +33 -0
  70. data/lib/profiles/latest/batch_module_definition.rb +9 -0
  71. data/lib/profiles/latest/modules/batch_profile_module.rb +158 -0
  72. data/lib/version.rb +7 -0
  73. metadata +72 -38
@@ -0,0 +1,45 @@
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::V2015_12_01
7
+ module Models
8
+ #
9
+ # The properties related to auto storage account.
10
+ #
11
+ class AutoStorageBaseProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource ID of the storage account to be used for
16
+ # auto storage account.
17
+ attr_accessor :storage_account_id
18
+
19
+
20
+ #
21
+ # Mapper for AutoStorageBaseProperties class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'AutoStorageBaseProperties',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AutoStorageBaseProperties',
31
+ model_properties: {
32
+ storage_account_id: {
33
+ required: true,
34
+ serialized_name: 'storageAccountId',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,57 @@
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::V2015_12_01
7
+ module Models
8
+ #
9
+ # Contains information about the auto storage account associated with a
10
+ # Batch account.
11
+ #
12
+ class AutoStorageProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The resource ID of the storage account to be used for
17
+ # auto storage account.
18
+ attr_accessor :storage_account_id
19
+
20
+ # @return [DateTime] The UTC time at which storage keys were last
21
+ # synchronized with the Batch account.
22
+ attr_accessor :last_key_sync
23
+
24
+
25
+ #
26
+ # Mapper for AutoStorageProperties class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'AutoStorageProperties',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'AutoStorageProperties',
36
+ model_properties: {
37
+ storage_account_id: {
38
+ required: true,
39
+ serialized_name: 'storageAccountId',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ last_key_sync: {
45
+ required: true,
46
+ serialized_name: 'lastKeySync',
47
+ type: {
48
+ name: 'DateTime'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,147 @@
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::V2015_12_01
7
+ module Models
8
+ #
9
+ # Contains information about an Azure Batch account.
10
+ #
11
+ class BatchAccount < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The endpoint used by this account to interact with the
16
+ # Batch services.
17
+ attr_accessor :account_endpoint
18
+
19
+ # @return [ProvisioningState] The provisioned state of the resource.
20
+ # Possible values include: 'Invalid', 'Creating', 'Deleting',
21
+ # 'Succeeded', 'Failed', 'Cancelled'
22
+ attr_accessor :provisioning_state
23
+
24
+ # @return [AutoStorageProperties] The properties and status of any auto
25
+ # storage account associated with the account.
26
+ attr_accessor :auto_storage
27
+
28
+ # @return [Integer] The core quota for this Batch account.
29
+ attr_accessor :core_quota
30
+
31
+ # @return [Integer] The pool quota for this Batch account.
32
+ attr_accessor :pool_quota
33
+
34
+ # @return [Integer] The active job and job schedule quota for this Batch
35
+ # account.
36
+ attr_accessor :active_job_and_job_schedule_quota
37
+
38
+
39
+ #
40
+ # Mapper for BatchAccount class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ required: false,
46
+ serialized_name: 'BatchAccount',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'BatchAccount',
50
+ model_properties: {
51
+ id: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ name: {
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ type: {
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'type',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ location: {
76
+ required: false,
77
+ serialized_name: 'location',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ tags: {
83
+ required: false,
84
+ serialized_name: 'tags',
85
+ type: {
86
+ name: 'Dictionary',
87
+ value: {
88
+ required: false,
89
+ serialized_name: 'StringElementType',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ },
96
+ account_endpoint: {
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'properties.accountEndpoint',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ provisioning_state: {
105
+ required: false,
106
+ serialized_name: 'properties.provisioningState',
107
+ type: {
108
+ name: 'Enum',
109
+ module: 'ProvisioningState'
110
+ }
111
+ },
112
+ auto_storage: {
113
+ required: false,
114
+ serialized_name: 'properties.autoStorage',
115
+ type: {
116
+ name: 'Composite',
117
+ class_name: 'AutoStorageProperties'
118
+ }
119
+ },
120
+ core_quota: {
121
+ required: true,
122
+ serialized_name: 'properties.coreQuota',
123
+ type: {
124
+ name: 'Number'
125
+ }
126
+ },
127
+ pool_quota: {
128
+ required: true,
129
+ serialized_name: 'properties.poolQuota',
130
+ type: {
131
+ name: 'Number'
132
+ }
133
+ },
134
+ active_job_and_job_schedule_quota: {
135
+ required: true,
136
+ serialized_name: 'properties.activeJobAndJobScheduleQuota',
137
+ type: {
138
+ name: 'Number'
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ end
145
+ end
146
+ end
147
+ 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::V2015_12_01
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Create operation.
10
+ #
11
+ class BatchAccountCreateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The region in which to create the account.
16
+ attr_accessor :location
17
+
18
+ # @return [Hash{String => String}] The user specified tags associated
19
+ # with the account.
20
+ attr_accessor :tags
21
+
22
+ # @return [AutoStorageBaseProperties] The properties related to auto
23
+ # storage account.
24
+ attr_accessor :auto_storage
25
+
26
+
27
+ #
28
+ # Mapper for BatchAccountCreateParameters class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'BatchAccountCreateParameters',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'BatchAccountCreateParameters',
38
+ model_properties: {
39
+ location: {
40
+ required: true,
41
+ serialized_name: 'location',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ tags: {
47
+ required: false,
48
+ serialized_name: 'tags',
49
+ type: {
50
+ name: 'Dictionary',
51
+ value: {
52
+ required: false,
53
+ serialized_name: 'StringElementType',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ }
58
+ }
59
+ },
60
+ auto_storage: {
61
+ required: false,
62
+ serialized_name: 'properties.autoStorage',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'AutoStorageBaseProperties'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,54 @@
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::V2015_12_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 primary key associated with the account.
16
+ attr_accessor :primary
17
+
18
+ # @return [String] The secondary key associated with the account.
19
+ attr_accessor :secondary
20
+
21
+
22
+ #
23
+ # Mapper for BatchAccountKeys class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'BatchAccountKeys',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'BatchAccountKeys',
33
+ model_properties: {
34
+ primary: {
35
+ required: false,
36
+ serialized_name: 'primary',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ secondary: {
42
+ required: false,
43
+ serialized_name: 'secondary',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,95 @@
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::V2015_12_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 returned Batch
17
+ # accounts.
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
+ required: false,
62
+ serialized_name: 'BatchAccountListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'BatchAccountListResult',
66
+ model_properties: {
67
+ value: {
68
+ required: false,
69
+ serialized_name: 'value',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'BatchAccountElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'BatchAccount'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end