azure_mgmt_batch 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_batch.gemspec +34 -0
  6. data/lib/azure_mgmt_batch.rb +5 -0
  7. data/lib/generated/azure_mgmt_batch.rb +51 -0
  8. data/lib/generated/azure_mgmt_batch/account.rb +1263 -0
  9. data/lib/generated/azure_mgmt_batch/application_operations.rb +1068 -0
  10. data/lib/generated/azure_mgmt_batch/batch_management_client.rb +75 -0
  11. data/lib/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
  12. data/lib/generated/azure_mgmt_batch/models/account_provisioning_state.rb +20 -0
  13. data/lib/generated/azure_mgmt_batch/models/account_resource.rb +146 -0
  14. data/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +45 -0
  15. data/lib/generated/azure_mgmt_batch/models/add_application_package_result.rb +75 -0
  16. data/lib/generated/azure_mgmt_batch/models/add_application_parameters.rb +55 -0
  17. data/lib/generated/azure_mgmt_batch/models/application.rb +96 -0
  18. data/lib/generated/azure_mgmt_batch/models/application_package.rb +78 -0
  19. data/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +45 -0
  20. data/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb +57 -0
  21. data/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +74 -0
  22. data/lib/generated/azure_mgmt_batch/models/batch_account_list_key_result.rb +54 -0
  23. data/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb +94 -0
  24. data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +46 -0
  25. data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_result.rb +54 -0
  26. data/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +64 -0
  27. data/lib/generated/azure_mgmt_batch/models/get_application_package_result.rb +109 -0
  28. data/lib/generated/azure_mgmt_batch/models/list_applications_result.rb +93 -0
  29. data/lib/generated/azure_mgmt_batch/models/package_state.rb +17 -0
  30. data/lib/generated/azure_mgmt_batch/models/subscription_quotas_get_result.rb +45 -0
  31. data/lib/generated/azure_mgmt_batch/models/update_application_parameters.rb +66 -0
  32. data/lib/generated/azure_mgmt_batch/module_definition.rb +8 -0
  33. data/lib/generated/azure_mgmt_batch/subscription.rb +116 -0
  34. data/lib/generated/azure_mgmt_batch/version.rb +8 -0
  35. metadata +147 -0
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Values returned by the RegenerateKey operation.
10
+ #
11
+ class BatchAccountRegenerateKeyResult
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 BatchAccountRegenerateKeyResult class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'BatchAccountRegenerateKeyResult',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'BatchAccountRegenerateKeyResult',
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,64 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Parameters supplied to the Update operation.
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 auto
20
+ # 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
+ required: false,
31
+ serialized_name: 'BatchAccountUpdateParameters',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'BatchAccountUpdateParameters',
35
+ model_properties: {
36
+ tags: {
37
+ required: false,
38
+ serialized_name: 'tags',
39
+ type: {
40
+ name: 'Dictionary',
41
+ value: {
42
+ required: false,
43
+ serialized_name: 'StringElementType',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ },
50
+ auto_storage: {
51
+ required: false,
52
+ serialized_name: 'properties.autoStorage',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'AutoStorageBaseProperties'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,109 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Response to an ApplicationOperations.GetApplicationPackage request.
10
+ #
11
+ class GetApplicationPackageResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The id of the application.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The version of the application package.
19
+ attr_accessor :version
20
+
21
+ # @return [PackageState] The current state of the application package.
22
+ # Possible values include: 'pending', 'active', 'unmapped'
23
+ attr_accessor :state
24
+
25
+ # @return [String] The format of the application package, if the package
26
+ # is active.
27
+ attr_accessor :format
28
+
29
+ # @return [String] The storage URL at which the application package is
30
+ # stored.
31
+ attr_accessor :storage_url
32
+
33
+ # @return [DateTime] The UTC time at which the storage URL will expire.
34
+ attr_accessor :storage_url_expiry
35
+
36
+ # @return [DateTime] The time at which the package was last activated,
37
+ # if the package is active.
38
+ attr_accessor :last_activation_time
39
+
40
+
41
+ #
42
+ # Mapper for GetApplicationPackageResult class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ required: false,
48
+ serialized_name: 'GetApplicationPackageResult',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'GetApplicationPackageResult',
52
+ model_properties: {
53
+ id: {
54
+ required: false,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ version: {
61
+ required: false,
62
+ serialized_name: 'version',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ state: {
68
+ required: false,
69
+ serialized_name: 'state',
70
+ type: {
71
+ name: 'Enum',
72
+ module: 'PackageState'
73
+ }
74
+ },
75
+ format: {
76
+ required: false,
77
+ serialized_name: 'format',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ storage_url: {
83
+ required: false,
84
+ serialized_name: 'storageUrl',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ storage_url_expiry: {
90
+ required: false,
91
+ serialized_name: 'storageUrlExpiry',
92
+ type: {
93
+ name: 'DateTime'
94
+ }
95
+ },
96
+ last_activation_time: {
97
+ required: false,
98
+ serialized_name: 'lastActivationTime',
99
+ type: {
100
+ name: 'DateTime'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,93 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Response to an ApplicationOperations.ListApplications request.
10
+ #
11
+ class ListApplicationsResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Application>] The list of applications.
16
+ attr_accessor :value
17
+
18
+ # @return [String] The URL to get the next set of results.
19
+ attr_accessor :next_link
20
+
21
+ # return [Proc] with next page method call.
22
+ attr_accessor :next_method
23
+
24
+ #
25
+ # Gets the rest of the items for the request, enabling auto-pagination.
26
+ #
27
+ # @return [Array<Application>] operation results.
28
+ #
29
+ def get_all_items
30
+ items = @value
31
+ page = self
32
+ while page.next_link != nil do
33
+ page = page.get_next_page
34
+ items.concat(page.value)
35
+ end
36
+ items
37
+ end
38
+
39
+ #
40
+ # Gets the next page of results.
41
+ #
42
+ # @return [ListApplicationsResult] with next page content.
43
+ #
44
+ def get_next_page
45
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
46
+ unless response.nil?
47
+ @next_link = response.body.next_link
48
+ @value = response.body.value
49
+ self
50
+ end
51
+ end
52
+
53
+ #
54
+ # Mapper for ListApplicationsResult class as Ruby Hash.
55
+ # This will be used for serialization/deserialization.
56
+ #
57
+ def self.mapper()
58
+ {
59
+ required: false,
60
+ serialized_name: 'ListApplicationsResult',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'ListApplicationsResult',
64
+ model_properties: {
65
+ value: {
66
+ required: false,
67
+ serialized_name: 'value',
68
+ type: {
69
+ name: 'Sequence',
70
+ element: {
71
+ required: false,
72
+ serialized_name: 'ApplicationElementType',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'Application'
76
+ }
77
+ }
78
+ }
79
+ },
80
+ next_link: {
81
+ required: false,
82
+ serialized_name: 'nextLink',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Defines values for PackageState
10
+ #
11
+ module PackageState
12
+ Pending = "pending"
13
+ Active = "active"
14
+ Unmapped = "unmapped"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,45 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Values returned by the Get Subscription Quotas operation.
10
+ #
11
+ class SubscriptionQuotasGetResult
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 SubscriptionQuotasGetResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'SubscriptionQuotasGetResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'SubscriptionQuotasGetResult',
31
+ model_properties: {
32
+ account_quota: {
33
+ required: false,
34
+ serialized_name: 'accountQuota',
35
+ type: {
36
+ name: 'Number'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,66 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Parameters for an ApplicationOperations.UpdateApplication request.
10
+ #
11
+ class UpdateApplicationParameters
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 UpdateApplicationParameters class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'UpdateApplicationParameters',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'UpdateApplicationParameters',
38
+ model_properties: {
39
+ allow_updates: {
40
+ required: false,
41
+ serialized_name: 'allowUpdates',
42
+ type: {
43
+ name: 'Boolean'
44
+ }
45
+ },
46
+ default_version: {
47
+ required: false,
48
+ serialized_name: 'defaultVersion',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ display_name: {
54
+ required: false,
55
+ serialized_name: 'displayName',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end