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.
- checksums.yaml +4 -4
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
- data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +6 -5
- data/lib/2017-01-01/generated/azure_mgmt_batch.rb +52 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_operations.rb +657 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_package_operations.rb +445 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_account_operations.rb +1281 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_management_client.rb +143 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/location.rb +116 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +47 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account.rb +196 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +70 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
- data/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +12 -12
- data/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +15 -13
- data/lib/2017-09-01/generated/azure_mgmt_batch.rb +113 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_operations.rb +655 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_package_operations.rb +441 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_account_operations.rb +1273 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_management_client.rb +155 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/certificate_operations.rb +1009 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/location.rb +221 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application.rb +103 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +58 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +70 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account.rb +208 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate.rb +205 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_reference.rb +120 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +83 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/osdisk.rb +52 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool.rb +474 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb +79 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/start_task.rb +151 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_account.rb +89 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +138 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/operations.rb +215 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/pool_operations.rb +1132 -0
- data/lib/azure_mgmt_batch.rb +2 -0
- data/lib/profiles/latest/batch_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/batch_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/batch_profile_module.rb +357 -126
- data/lib/version.rb +1 -1
- metadata +119 -2
@@ -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_01_01
|
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,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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for PoolAllocationMode
|
10
|
+
#
|
11
|
+
module PoolAllocationMode
|
12
|
+
BatchService = "BatchService"
|
13
|
+
UserSubscription = "UserSubscription"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ProvisioningState
|
10
|
+
#
|
11
|
+
module ProvisioningState
|
12
|
+
Invalid = "Invalid"
|
13
|
+
Creating = "Creating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
Failed = "Failed"
|
17
|
+
Cancelled = "Cancelled"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,103 @@
|
|
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_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A definition of an Azure resource.
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The ID of the resource
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The name of the resource
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] The type of the resource
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [String] The location of the resource
|
25
|
+
attr_accessor :location
|
26
|
+
|
27
|
+
# @return [Hash{String => String}] The tags of the resource
|
28
|
+
attr_accessor :tags
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for Resource class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Resource',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'Resource',
|
43
|
+
model_properties: {
|
44
|
+
id: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'id',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
name: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'name',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
type: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'type',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
location: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'location',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
tags: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
read_only: true,
|
84
|
+
serialized_name: 'tags',
|
85
|
+
type: {
|
86
|
+
name: 'Dictionary',
|
87
|
+
value: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'StringElementType',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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_01_01
|
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
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'UpdateApplicationParameters',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'UpdateApplicationParameters',
|
39
|
+
model_properties: {
|
40
|
+
allow_updates: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'allowUpdates',
|
44
|
+
type: {
|
45
|
+
name: 'Boolean'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
default_version: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'defaultVersion',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
display_name: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'displayName',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::Batch end
|
8
|
+
module Azure::Batch::Mgmt end
|
9
|
+
module Azure::Batch::Mgmt::V2017_01_01 end
|
@@ -35,8 +35,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
35
35
|
#
|
36
36
|
# @return [Application] operation results.
|
37
37
|
#
|
38
|
-
def create(resource_group_name, account_name, application_id, parameters
|
39
|
-
response = create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
38
|
+
def create(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil)
|
39
|
+
response = create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value!
|
40
40
|
response.body unless response.nil?
|
41
41
|
end
|
42
42
|
|
@@ -54,8 +54,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
54
54
|
#
|
55
55
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
56
|
#
|
57
|
-
def create_with_http_info(resource_group_name, account_name, application_id, parameters
|
58
|
-
create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
57
|
+
def create_with_http_info(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil)
|
58
|
+
create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value!
|
59
59
|
end
|
60
60
|
|
61
61
|
#
|
@@ -72,7 +72,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
72
72
|
#
|
73
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
74
|
#
|
75
|
-
def create_async(resource_group_name, account_name, application_id, parameters
|
75
|
+
def create_async(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil)
|
76
76
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
77
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
78
78
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -85,13 +85,12 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
85
85
|
|
86
86
|
|
87
87
|
request_headers = {}
|
88
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
89
|
|
89
90
|
# Set Headers
|
90
91
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
91
92
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
92
93
|
|
93
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
94
|
-
|
95
94
|
# Serialize Request
|
96
95
|
request_mapper = Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationCreateParameters.mapper()
|
97
96
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -149,8 +148,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
149
148
|
# will be added to the HTTP request.
|
150
149
|
#
|
151
150
|
#
|
152
|
-
def delete(resource_group_name, account_name, application_id, custom_headers
|
153
|
-
response = delete_async(resource_group_name, account_name, application_id, custom_headers).value!
|
151
|
+
def delete(resource_group_name, account_name, application_id, custom_headers:nil)
|
152
|
+
response = delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
154
153
|
nil
|
155
154
|
end
|
156
155
|
|
@@ -166,8 +165,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
166
165
|
#
|
167
166
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
168
167
|
#
|
169
|
-
def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers
|
170
|
-
delete_async(resource_group_name, account_name, application_id, custom_headers).value!
|
168
|
+
def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil)
|
169
|
+
delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
171
170
|
end
|
172
171
|
|
173
172
|
#
|
@@ -182,7 +181,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
182
181
|
#
|
183
182
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
184
183
|
#
|
185
|
-
def delete_async(resource_group_name, account_name, application_id, custom_headers
|
184
|
+
def delete_async(resource_group_name, account_name, application_id, custom_headers:nil)
|
186
185
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
187
186
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
188
187
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -195,6 +194,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
195
194
|
|
196
195
|
|
197
196
|
request_headers = {}
|
197
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
198
198
|
|
199
199
|
# Set Headers
|
200
200
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -241,8 +241,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
241
241
|
#
|
242
242
|
# @return [Application] operation results.
|
243
243
|
#
|
244
|
-
def get(resource_group_name, account_name, application_id, custom_headers
|
245
|
-
response = get_async(resource_group_name, account_name, application_id, custom_headers).value!
|
244
|
+
def get(resource_group_name, account_name, application_id, custom_headers:nil)
|
245
|
+
response = get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
246
246
|
response.body unless response.nil?
|
247
247
|
end
|
248
248
|
|
@@ -258,8 +258,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
258
258
|
#
|
259
259
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
260
260
|
#
|
261
|
-
def get_with_http_info(resource_group_name, account_name, application_id, custom_headers
|
262
|
-
get_async(resource_group_name, account_name, application_id, custom_headers).value!
|
261
|
+
def get_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil)
|
262
|
+
get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
263
263
|
end
|
264
264
|
|
265
265
|
#
|
@@ -274,7 +274,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
274
274
|
#
|
275
275
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
276
276
|
#
|
277
|
-
def get_async(resource_group_name, account_name, application_id, custom_headers
|
277
|
+
def get_async(resource_group_name, account_name, application_id, custom_headers:nil)
|
278
278
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
279
279
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
280
280
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -287,6 +287,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
287
287
|
|
288
288
|
|
289
289
|
request_headers = {}
|
290
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
290
291
|
|
291
292
|
# Set Headers
|
292
293
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -344,8 +345,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
344
345
|
# will be added to the HTTP request.
|
345
346
|
#
|
346
347
|
#
|
347
|
-
def update(resource_group_name, account_name, application_id, parameters, custom_headers
|
348
|
-
response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
348
|
+
def update(resource_group_name, account_name, application_id, parameters, custom_headers:nil)
|
349
|
+
response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value!
|
349
350
|
nil
|
350
351
|
end
|
351
352
|
|
@@ -363,8 +364,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
363
364
|
#
|
364
365
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
365
366
|
#
|
366
|
-
def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers
|
367
|
-
update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
367
|
+
def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers:nil)
|
368
|
+
update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value!
|
368
369
|
end
|
369
370
|
|
370
371
|
#
|
@@ -381,7 +382,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
381
382
|
#
|
382
383
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
383
384
|
#
|
384
|
-
def update_async(resource_group_name, account_name, application_id, parameters, custom_headers
|
385
|
+
def update_async(resource_group_name, account_name, application_id, parameters, custom_headers:nil)
|
385
386
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
386
387
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
387
388
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -395,13 +396,12 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
395
396
|
|
396
397
|
|
397
398
|
request_headers = {}
|
399
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
398
400
|
|
399
401
|
# Set Headers
|
400
402
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
401
403
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
402
404
|
|
403
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
404
|
-
|
405
405
|
# Serialize Request
|
406
406
|
request_mapper = Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationUpdateParameters.mapper()
|
407
407
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -451,8 +451,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
451
451
|
#
|
452
452
|
# @return [Array<Application>] operation results.
|
453
453
|
#
|
454
|
-
def list(resource_group_name, account_name, maxresults
|
455
|
-
first_page = list_as_lazy(resource_group_name, account_name, maxresults, custom_headers)
|
454
|
+
def list(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
455
|
+
first_page = list_as_lazy(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers)
|
456
456
|
first_page.get_all_items
|
457
457
|
end
|
458
458
|
|
@@ -469,8 +469,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
469
469
|
#
|
470
470
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
471
471
|
#
|
472
|
-
def list_with_http_info(resource_group_name, account_name, maxresults
|
473
|
-
list_async(resource_group_name, account_name, maxresults, custom_headers).value!
|
472
|
+
def list_with_http_info(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
473
|
+
list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
|
474
474
|
end
|
475
475
|
|
476
476
|
#
|
@@ -486,7 +486,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
486
486
|
#
|
487
487
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
488
488
|
#
|
489
|
-
def list_async(resource_group_name, account_name, maxresults
|
489
|
+
def list_async(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
490
490
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
491
491
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
492
492
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -498,6 +498,7 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
498
498
|
|
499
499
|
|
500
500
|
request_headers = {}
|
501
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
501
502
|
|
502
503
|
# Set Headers
|
503
504
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -552,8 +553,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
552
553
|
#
|
553
554
|
# @return [ListApplicationsResult] operation results.
|
554
555
|
#
|
555
|
-
def list_next(next_page_link, custom_headers
|
556
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
556
|
+
def list_next(next_page_link, custom_headers:nil)
|
557
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
557
558
|
response.body unless response.nil?
|
558
559
|
end
|
559
560
|
|
@@ -567,8 +568,8 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
567
568
|
#
|
568
569
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
569
570
|
#
|
570
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
571
|
-
list_next_async(next_page_link, custom_headers).value!
|
571
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
572
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
572
573
|
end
|
573
574
|
|
574
575
|
#
|
@@ -581,11 +582,12 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
581
582
|
#
|
582
583
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
583
584
|
#
|
584
|
-
def list_next_async(next_page_link, custom_headers
|
585
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
585
586
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
586
587
|
|
587
588
|
|
588
589
|
request_headers = {}
|
590
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
589
591
|
|
590
592
|
# Set Headers
|
591
593
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -643,12 +645,12 @@ module Azure::Batch::Mgmt::V2017_05_01
|
|
643
645
|
# @return [ListApplicationsResult] which provide lazy access to pages of the
|
644
646
|
# response.
|
645
647
|
#
|
646
|
-
def list_as_lazy(resource_group_name, account_name, maxresults
|
647
|
-
response = list_async(resource_group_name, account_name, maxresults, custom_headers).value!
|
648
|
+
def list_as_lazy(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
649
|
+
response = list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
|
648
650
|
unless response.nil?
|
649
651
|
page = response.body
|
650
652
|
page.next_method = Proc.new do |next_page_link|
|
651
|
-
list_next_async(next_page_link, custom_headers)
|
653
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
652
654
|
end
|
653
655
|
page
|
654
656
|
end
|