azure_mgmt_batch 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_batch.gemspec +34 -0
- data/lib/azure_mgmt_batch.rb +5 -0
- data/lib/generated/azure_mgmt_batch.rb +51 -0
- data/lib/generated/azure_mgmt_batch/account.rb +1263 -0
- data/lib/generated/azure_mgmt_batch/application_operations.rb +1068 -0
- data/lib/generated/azure_mgmt_batch/batch_management_client.rb +75 -0
- data/lib/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/generated/azure_mgmt_batch/models/account_provisioning_state.rb +20 -0
- data/lib/generated/azure_mgmt_batch/models/account_resource.rb +146 -0
- data/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +45 -0
- data/lib/generated/azure_mgmt_batch/models/add_application_package_result.rb +75 -0
- data/lib/generated/azure_mgmt_batch/models/add_application_parameters.rb +55 -0
- data/lib/generated/azure_mgmt_batch/models/application.rb +96 -0
- data/lib/generated/azure_mgmt_batch/models/application_package.rb +78 -0
- data/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +45 -0
- data/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb +57 -0
- data/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +74 -0
- data/lib/generated/azure_mgmt_batch/models/batch_account_list_key_result.rb +54 -0
- data/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_result.rb +54 -0
- data/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +64 -0
- data/lib/generated/azure_mgmt_batch/models/get_application_package_result.rb +109 -0
- data/lib/generated/azure_mgmt_batch/models/list_applications_result.rb +93 -0
- data/lib/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/generated/azure_mgmt_batch/models/subscription_quotas_get_result.rb +45 -0
- data/lib/generated/azure_mgmt_batch/models/update_application_parameters.rb +66 -0
- data/lib/generated/azure_mgmt_batch/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_batch/subscription.rb +116 -0
- data/lib/generated/azure_mgmt_batch/version.rb +8 -0
- metadata +147 -0
@@ -0,0 +1,78 @@
|
|
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
|
+
# Contains information about an application package.
|
10
|
+
#
|
11
|
+
class ApplicationPackage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The version of the application package.
|
16
|
+
attr_accessor :version
|
17
|
+
|
18
|
+
# @return [PackageState] The current state of the application package.
|
19
|
+
# Possible values include: 'pending', 'active', 'unmapped'
|
20
|
+
attr_accessor :state
|
21
|
+
|
22
|
+
# @return [String] The format of the application package, if the package
|
23
|
+
# has been activated.
|
24
|
+
attr_accessor :format
|
25
|
+
|
26
|
+
# @return [DateTime] The time at which the package was last activated,
|
27
|
+
# if the package is active.
|
28
|
+
attr_accessor :last_activation_time
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ApplicationPackage class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'ApplicationPackage',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'ApplicationPackage',
|
42
|
+
model_properties: {
|
43
|
+
version: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'version',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
state: {
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'state',
|
53
|
+
type: {
|
54
|
+
name: 'Enum',
|
55
|
+
module: 'PackageState'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
format: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'format',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
last_activation_time: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'lastActivationTime',
|
68
|
+
type: {
|
69
|
+
name: 'DateTime'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
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
|
+
# 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 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
|
+
# 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,74 @@
|
|
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 Create operation.
|
10
|
+
#
|
11
|
+
class BatchAccountCreateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The region in which the account is created.
|
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: false,
|
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 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 GetKeys operation.
|
10
|
+
#
|
11
|
+
class BatchAccountListKeyResult
|
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 BatchAccountListKeyResult class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'BatchAccountListKeyResult',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'BatchAccountListKeyResult',
|
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,94 @@
|
|
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 List operation.
|
10
|
+
#
|
11
|
+
class BatchAccountListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<AccountResource>] The collection of returned account
|
16
|
+
# resources.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The continuation token.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<AccountResource>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [BatchAccountListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for BatchAccountListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'BatchAccountListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'BatchAccountListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'AccountResourceElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'AccountResource'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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 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
|
+
required: false,
|
27
|
+
serialized_name: 'BatchAccountRegenerateKeyParameters',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'BatchAccountRegenerateKeyParameters',
|
31
|
+
model_properties: {
|
32
|
+
key_name: {
|
33
|
+
required: true,
|
34
|
+
serialized_name: 'keyName',
|
35
|
+
type: {
|
36
|
+
name: 'Enum',
|
37
|
+
module: 'AccountKeyType'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|