azure_mgmt_deployment_manager 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager.rb +70 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/artifact_sources.rb +339 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/azure_deployment_manager.rb +157 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source.rb +130 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source_properties_model.rb +79 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/authentication.rb +46 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/azure_entity_resource.rb +75 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/cloud_error_body.rb +90 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/deployment_mode.rb +16 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/identity.rb +65 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/message.rb +59 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/operation.rb +80 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/operation_detail.rb +80 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/pre_post_step.rb +46 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/proxy_resource.rb +63 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/resource.rb +83 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/resource_operation.rb +111 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout.rb +214 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_operation_info.rb +102 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_properties_model.rb +95 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_request.rb +154 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_step.rb +127 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/sas_authentication.rb +64 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service.rb +83 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_properties.rb +59 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_resource.rb +110 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_properties.rb +47 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_resource.rb +98 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit.rb +92 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_artifacts.rb +83 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_properties.rb +73 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_resource.rb +124 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step.rb +121 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step_operation_info.rb +109 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step_properties.rb +46 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/step_resource.rb +100 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/tracked_resource.rb +92 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_attributes.rb +47 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_properties.rb +62 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/module_definition.rb +9 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/operations.rb +130 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/rollouts.rb +626 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/service_topologies.rb +340 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/service_units.rb +419 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/services.rb +346 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_deployment_manager/steps.rb +333 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager.rb +84 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/artifact_sources.rb +451 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/azure_deployment_manager.rb +157 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/api_key_authentication.rb +86 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source.rb +130 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/artifact_source_properties_model.rb +79 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/authentication.rb +46 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/azure_entity_resource.rb +75 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/cloud_error_body.rb +90 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/deployment_mode.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/health_check_step_attributes.rb +86 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/health_check_step_properties.rb +64 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/identity.rb +65 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/message.rb +59 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/operation.rb +80 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/operation_detail.rb +80 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/operations_list.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/pre_post_step.rb +46 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/proxy_resource.rb +63 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/resource.rb +83 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/resource_operation.rb +111 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_auth_location.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_health_check.rb +72 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_health_check_step_attributes.rb +95 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_match_quantifier.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_request.rb +74 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_request_authentication.rb +48 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_request_method.rb +16 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_response.rb +70 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rest_response_regex.rb +68 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout.rb +214 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_identity_authentication.rb +51 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_operation_info.rb +102 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_properties_model.rb +95 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_request.rb +154 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/rollout_step.rb +127 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/sas_authentication.rb +64 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service.rb +83 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_properties.rb +59 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_resource.rb +110 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_properties.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_topology_resource.rb +98 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit.rb +92 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_artifacts.rb +83 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_properties.rb +73 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/service_unit_resource.rb +124 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_group.rb +121 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_operation_info.rb +109 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_properties.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/step_resource.rb +100 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/tracked_resource.rb +92 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_attributes.rb +47 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_properties.rb +62 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/module_definition.rb +9 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/operations.rb +112 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/rollouts.rb +738 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/service_topologies.rb +452 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/service_units.rb +539 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/services.rb +462 -0
- data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/steps.rb +445 -0
- data/lib/azure_mgmt_deployment_manager.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/deploymentmanager_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/deploymentmanager_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/deploymentmanager_profile_module.rb +273 -0
- data/lib/version.rb +7 -0
- metadata +230 -0
@@ -0,0 +1,100 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource representation of a rollout step.
|
10
|
+
#
|
11
|
+
class StepResource < TrackedResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [StepProperties] The properties that define the step.
|
16
|
+
attr_accessor :properties
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for StepResource class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'StepResource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'StepResource',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'id',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
name: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'type',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
tags: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'tags',
|
63
|
+
type: {
|
64
|
+
name: 'Dictionary',
|
65
|
+
value: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'StringElementType',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
},
|
75
|
+
location: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: true,
|
78
|
+
serialized_name: 'location',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
properties: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: true,
|
86
|
+
serialized_name: 'properties',
|
87
|
+
type: {
|
88
|
+
name: 'Composite',
|
89
|
+
polymorphic_discriminator: 'stepType',
|
90
|
+
uber_parent: 'StepProperties',
|
91
|
+
class_name: 'StepProperties'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/tracked_resource.rb
ADDED
@@ -0,0 +1,92 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource model definition for a ARM tracked top level resource
|
10
|
+
#
|
11
|
+
class TrackedResource < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Resource tags.
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
# @return [String] The geo-location where the resource lives
|
19
|
+
attr_accessor :location
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for TrackedResource class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'TrackedResource',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'TrackedResource',
|
34
|
+
model_properties: {
|
35
|
+
id: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'name',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
type: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'type',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
tags: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'tags',
|
66
|
+
type: {
|
67
|
+
name: 'Dictionary',
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'StringElementType',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
location: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: true,
|
81
|
+
serialized_name: 'location',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_attributes.rb
ADDED
@@ -0,0 +1,47 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The parameters for the wait step.
|
10
|
+
#
|
11
|
+
class WaitStepAttributes
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The duration in ISO 8601 format of how long the wait
|
16
|
+
# should be.
|
17
|
+
attr_accessor :duration
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for WaitStepAttributes 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: 'WaitStepAttributes',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'WaitStepAttributes',
|
32
|
+
model_properties: {
|
33
|
+
duration: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: true,
|
36
|
+
serialized_name: 'duration',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/2019-11-01-preview/generated/azure_mgmt_deployment_manager/models/wait_step_properties.rb
ADDED
@@ -0,0 +1,62 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines the properties of a Wait step.
|
10
|
+
#
|
11
|
+
class WaitStepProperties < StepProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@stepType = "Wait"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :stepType
|
21
|
+
|
22
|
+
# @return [WaitStepAttributes] The Wait attributes
|
23
|
+
attr_accessor :attributes
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for WaitStepProperties class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Wait',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'WaitStepProperties',
|
38
|
+
model_properties: {
|
39
|
+
stepType: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'stepType',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
attributes: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'attributes',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'WaitStepAttributes'
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
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::DeploymentManager end
|
8
|
+
module Azure::DeploymentManager::Mgmt end
|
9
|
+
module Azure::DeploymentManager::Mgmt::V2019_11_01_preview end
|
@@ -0,0 +1,112 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
#
|
8
|
+
# REST APIs for orchestrating deployments using the Azure Deployment Manager
|
9
|
+
# (ADM). See
|
10
|
+
# https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview
|
11
|
+
# for more information.
|
12
|
+
#
|
13
|
+
class Operations
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the Operations class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [AzureDeploymentManager] reference to the AzureDeploymentManager
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Lists the supported operations.
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [OperationsList] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
response = list_async(custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Lists the supported operations.
|
42
|
+
#
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
|
+
# will be added to the HTTP request.
|
45
|
+
#
|
46
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
|
+
#
|
48
|
+
def list_with_http_info(custom_headers:nil)
|
49
|
+
list_async(custom_headers:custom_headers).value!
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists the supported operations.
|
54
|
+
#
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_async(custom_headers:nil)
|
61
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
|
+
|
63
|
+
|
64
|
+
request_headers = {}
|
65
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
66
|
+
|
67
|
+
# Set Headers
|
68
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
69
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
70
|
+
path_template = 'providers/Microsoft.DeploymentManager/operations'
|
71
|
+
|
72
|
+
request_url = @base_url || @client.base_url
|
73
|
+
|
74
|
+
options = {
|
75
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
76
|
+
query_params: {'api-version' => @client.api_version},
|
77
|
+
headers: request_headers.merge(custom_headers || {}),
|
78
|
+
base_url: request_url
|
79
|
+
}
|
80
|
+
promise = @client.make_request_async(:get, path_template, options)
|
81
|
+
|
82
|
+
promise = promise.then do |result|
|
83
|
+
http_response = result.response
|
84
|
+
status_code = http_response.status
|
85
|
+
response_content = http_response.body
|
86
|
+
unless status_code == 200
|
87
|
+
error_model = JSON.load(response_content)
|
88
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
89
|
+
end
|
90
|
+
|
91
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
92
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
93
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
94
|
+
# Deserialize Response
|
95
|
+
if status_code == 200
|
96
|
+
begin
|
97
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
98
|
+
result_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::OperationsList.mapper()
|
99
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
100
|
+
rescue Exception => e
|
101
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
result
|
106
|
+
end
|
107
|
+
|
108
|
+
promise.execute
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,738 @@
|
|
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::DeploymentManager::Mgmt::V2019_11_01_preview
|
7
|
+
#
|
8
|
+
# REST APIs for orchestrating deployments using the Azure Deployment Manager
|
9
|
+
# (ADM). See
|
10
|
+
# https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview
|
11
|
+
# for more information.
|
12
|
+
#
|
13
|
+
class Rollouts
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
#
|
17
|
+
# Creates and initializes a new instance of the Rollouts class.
|
18
|
+
# @param client service class for accessing basic functionality.
|
19
|
+
#
|
20
|
+
def initialize(client)
|
21
|
+
@client = client
|
22
|
+
end
|
23
|
+
|
24
|
+
# @return [AzureDeploymentManager] reference to the AzureDeploymentManager
|
25
|
+
attr_reader :client
|
26
|
+
|
27
|
+
#
|
28
|
+
# Creates or updates a rollout.
|
29
|
+
#
|
30
|
+
# This is an asynchronous operation and can be polled to completion using the
|
31
|
+
# location header returned by this operation.
|
32
|
+
#
|
33
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
34
|
+
# is case insensitive.
|
35
|
+
# @param rollout_name [String] The rollout name.
|
36
|
+
# @param rollout_request [RolloutRequest] Source rollout request object that
|
37
|
+
# defines the rollout.
|
38
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
|
+
# will be added to the HTTP request.
|
40
|
+
#
|
41
|
+
# @return [RolloutRequest] operation results.
|
42
|
+
#
|
43
|
+
def create_or_update(resource_group_name, rollout_name, rollout_request:nil, custom_headers:nil)
|
44
|
+
response = create_or_update_async(resource_group_name, rollout_name, rollout_request:rollout_request, custom_headers:custom_headers).value!
|
45
|
+
response.body unless response.nil?
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
50
|
+
# is case insensitive.
|
51
|
+
# @param rollout_name [String] The rollout name.
|
52
|
+
# @param rollout_request [RolloutRequest] Source rollout request object that
|
53
|
+
# defines the rollout.
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
55
|
+
# will be added to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
58
|
+
# response.
|
59
|
+
#
|
60
|
+
def create_or_update_async(resource_group_name, rollout_name, rollout_request:nil, custom_headers:nil)
|
61
|
+
# Send request
|
62
|
+
promise = begin_create_or_update_async(resource_group_name, rollout_name, rollout_request:rollout_request, custom_headers:custom_headers)
|
63
|
+
|
64
|
+
promise = promise.then do |response|
|
65
|
+
# Defining deserialization method.
|
66
|
+
deserialize_method = lambda do |parsed_response|
|
67
|
+
result_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::RolloutRequest.mapper()
|
68
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Waiting for response.
|
72
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
73
|
+
end
|
74
|
+
|
75
|
+
promise
|
76
|
+
end
|
77
|
+
|
78
|
+
#
|
79
|
+
# Gets detailed information of a rollout.
|
80
|
+
#
|
81
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
82
|
+
# is case insensitive.
|
83
|
+
# @param rollout_name [String] The rollout name.
|
84
|
+
# @param retry_attempt [Integer] Rollout retry attempt ordinal to get the
|
85
|
+
# result of. If not specified, result of the latest attempt will be returned.
|
86
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
87
|
+
# will be added to the HTTP request.
|
88
|
+
#
|
89
|
+
# @return [Rollout] operation results.
|
90
|
+
#
|
91
|
+
def get(resource_group_name, rollout_name, retry_attempt:nil, custom_headers:nil)
|
92
|
+
response = get_async(resource_group_name, rollout_name, retry_attempt:retry_attempt, custom_headers:custom_headers).value!
|
93
|
+
response.body unless response.nil?
|
94
|
+
end
|
95
|
+
|
96
|
+
#
|
97
|
+
# Gets detailed information of a rollout.
|
98
|
+
#
|
99
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
100
|
+
# is case insensitive.
|
101
|
+
# @param rollout_name [String] The rollout name.
|
102
|
+
# @param retry_attempt [Integer] Rollout retry attempt ordinal to get the
|
103
|
+
# result of. If not specified, result of the latest attempt will be returned.
|
104
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
105
|
+
# will be added to the HTTP request.
|
106
|
+
#
|
107
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
108
|
+
#
|
109
|
+
def get_with_http_info(resource_group_name, rollout_name, retry_attempt:nil, custom_headers:nil)
|
110
|
+
get_async(resource_group_name, rollout_name, retry_attempt:retry_attempt, custom_headers:custom_headers).value!
|
111
|
+
end
|
112
|
+
|
113
|
+
#
|
114
|
+
# Gets detailed information of a rollout.
|
115
|
+
#
|
116
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
117
|
+
# is case insensitive.
|
118
|
+
# @param rollout_name [String] The rollout name.
|
119
|
+
# @param retry_attempt [Integer] Rollout retry attempt ordinal to get the
|
120
|
+
# result of. If not specified, result of the latest attempt will be returned.
|
121
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
122
|
+
# to the HTTP request.
|
123
|
+
#
|
124
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
125
|
+
#
|
126
|
+
def get_async(resource_group_name, rollout_name, retry_attempt:nil, custom_headers:nil)
|
127
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
128
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
129
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
130
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
131
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
132
|
+
fail ArgumentError, 'rollout_name is nil' if rollout_name.nil?
|
133
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
134
|
+
|
135
|
+
|
136
|
+
request_headers = {}
|
137
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
138
|
+
|
139
|
+
# Set Headers
|
140
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
141
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
142
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}'
|
143
|
+
|
144
|
+
request_url = @base_url || @client.base_url
|
145
|
+
|
146
|
+
options = {
|
147
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
148
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'rolloutName' => rollout_name},
|
149
|
+
query_params: {'api-version' => @client.api_version,'retryAttempt' => retry_attempt},
|
150
|
+
headers: request_headers.merge(custom_headers || {}),
|
151
|
+
base_url: request_url
|
152
|
+
}
|
153
|
+
promise = @client.make_request_async(:get, path_template, options)
|
154
|
+
|
155
|
+
promise = promise.then do |result|
|
156
|
+
http_response = result.response
|
157
|
+
status_code = http_response.status
|
158
|
+
response_content = http_response.body
|
159
|
+
unless status_code == 200
|
160
|
+
error_model = JSON.load(response_content)
|
161
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
162
|
+
end
|
163
|
+
|
164
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
165
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
166
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
167
|
+
# Deserialize Response
|
168
|
+
if status_code == 200
|
169
|
+
begin
|
170
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
171
|
+
result_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::Rollout.mapper()
|
172
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
173
|
+
rescue Exception => e
|
174
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
result
|
179
|
+
end
|
180
|
+
|
181
|
+
promise.execute
|
182
|
+
end
|
183
|
+
|
184
|
+
#
|
185
|
+
# Deletes a rollout resource.
|
186
|
+
#
|
187
|
+
# Only rollouts in terminal state can be deleted.
|
188
|
+
#
|
189
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
190
|
+
# is case insensitive.
|
191
|
+
# @param rollout_name [String] The rollout name.
|
192
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
193
|
+
# will be added to the HTTP request.
|
194
|
+
#
|
195
|
+
#
|
196
|
+
def delete(resource_group_name, rollout_name, custom_headers:nil)
|
197
|
+
response = delete_async(resource_group_name, rollout_name, custom_headers:custom_headers).value!
|
198
|
+
nil
|
199
|
+
end
|
200
|
+
|
201
|
+
#
|
202
|
+
# Deletes a rollout resource.
|
203
|
+
#
|
204
|
+
# Only rollouts in terminal state can be deleted.
|
205
|
+
#
|
206
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
207
|
+
# is case insensitive.
|
208
|
+
# @param rollout_name [String] The rollout name.
|
209
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
210
|
+
# will be added to the HTTP request.
|
211
|
+
#
|
212
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
213
|
+
#
|
214
|
+
def delete_with_http_info(resource_group_name, rollout_name, custom_headers:nil)
|
215
|
+
delete_async(resource_group_name, rollout_name, custom_headers:custom_headers).value!
|
216
|
+
end
|
217
|
+
|
218
|
+
#
|
219
|
+
# Deletes a rollout resource.
|
220
|
+
#
|
221
|
+
# Only rollouts in terminal state can be deleted.
|
222
|
+
#
|
223
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
224
|
+
# is case insensitive.
|
225
|
+
# @param rollout_name [String] The rollout name.
|
226
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
227
|
+
# to the HTTP request.
|
228
|
+
#
|
229
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
230
|
+
#
|
231
|
+
def delete_async(resource_group_name, rollout_name, custom_headers:nil)
|
232
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
233
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
234
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
235
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
236
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
237
|
+
fail ArgumentError, 'rollout_name is nil' if rollout_name.nil?
|
238
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
239
|
+
|
240
|
+
|
241
|
+
request_headers = {}
|
242
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
243
|
+
|
244
|
+
# Set Headers
|
245
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
246
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
247
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}'
|
248
|
+
|
249
|
+
request_url = @base_url || @client.base_url
|
250
|
+
|
251
|
+
options = {
|
252
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
253
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'rolloutName' => rollout_name},
|
254
|
+
query_params: {'api-version' => @client.api_version},
|
255
|
+
headers: request_headers.merge(custom_headers || {}),
|
256
|
+
base_url: request_url
|
257
|
+
}
|
258
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
259
|
+
|
260
|
+
promise = promise.then do |result|
|
261
|
+
http_response = result.response
|
262
|
+
status_code = http_response.status
|
263
|
+
response_content = http_response.body
|
264
|
+
unless status_code == 200 || status_code == 204
|
265
|
+
error_model = JSON.load(response_content)
|
266
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
267
|
+
end
|
268
|
+
|
269
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
270
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
271
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
272
|
+
|
273
|
+
result
|
274
|
+
end
|
275
|
+
|
276
|
+
promise.execute
|
277
|
+
end
|
278
|
+
|
279
|
+
#
|
280
|
+
# Stops a running rollout.
|
281
|
+
#
|
282
|
+
# Only running rollouts can be canceled.
|
283
|
+
#
|
284
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
285
|
+
# is case insensitive.
|
286
|
+
# @param rollout_name [String] The rollout name.
|
287
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
288
|
+
# will be added to the HTTP request.
|
289
|
+
#
|
290
|
+
# @return [Rollout] operation results.
|
291
|
+
#
|
292
|
+
def cancel(resource_group_name, rollout_name, custom_headers:nil)
|
293
|
+
response = cancel_async(resource_group_name, rollout_name, custom_headers:custom_headers).value!
|
294
|
+
response.body unless response.nil?
|
295
|
+
end
|
296
|
+
|
297
|
+
#
|
298
|
+
# Stops a running rollout.
|
299
|
+
#
|
300
|
+
# Only running rollouts can be canceled.
|
301
|
+
#
|
302
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
303
|
+
# is case insensitive.
|
304
|
+
# @param rollout_name [String] The rollout name.
|
305
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
306
|
+
# will be added to the HTTP request.
|
307
|
+
#
|
308
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
309
|
+
#
|
310
|
+
def cancel_with_http_info(resource_group_name, rollout_name, custom_headers:nil)
|
311
|
+
cancel_async(resource_group_name, rollout_name, custom_headers:custom_headers).value!
|
312
|
+
end
|
313
|
+
|
314
|
+
#
|
315
|
+
# Stops a running rollout.
|
316
|
+
#
|
317
|
+
# Only running rollouts can be canceled.
|
318
|
+
#
|
319
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
320
|
+
# is case insensitive.
|
321
|
+
# @param rollout_name [String] The rollout name.
|
322
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
323
|
+
# to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
326
|
+
#
|
327
|
+
def cancel_async(resource_group_name, rollout_name, custom_headers:nil)
|
328
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
329
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
330
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
331
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
332
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
333
|
+
fail ArgumentError, 'rollout_name is nil' if rollout_name.nil?
|
334
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
335
|
+
|
336
|
+
|
337
|
+
request_headers = {}
|
338
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
339
|
+
|
340
|
+
# Set Headers
|
341
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
342
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
343
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}/cancel'
|
344
|
+
|
345
|
+
request_url = @base_url || @client.base_url
|
346
|
+
|
347
|
+
options = {
|
348
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
349
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'rolloutName' => rollout_name},
|
350
|
+
query_params: {'api-version' => @client.api_version},
|
351
|
+
headers: request_headers.merge(custom_headers || {}),
|
352
|
+
base_url: request_url
|
353
|
+
}
|
354
|
+
promise = @client.make_request_async(:post, path_template, options)
|
355
|
+
|
356
|
+
promise = promise.then do |result|
|
357
|
+
http_response = result.response
|
358
|
+
status_code = http_response.status
|
359
|
+
response_content = http_response.body
|
360
|
+
unless status_code == 200
|
361
|
+
error_model = JSON.load(response_content)
|
362
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
363
|
+
end
|
364
|
+
|
365
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
366
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
367
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
368
|
+
# Deserialize Response
|
369
|
+
if status_code == 200
|
370
|
+
begin
|
371
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
372
|
+
result_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::Rollout.mapper()
|
373
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
374
|
+
rescue Exception => e
|
375
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
result
|
380
|
+
end
|
381
|
+
|
382
|
+
promise.execute
|
383
|
+
end
|
384
|
+
|
385
|
+
#
|
386
|
+
# Restarts a failed rollout and optionally skips all succeeded steps.
|
387
|
+
#
|
388
|
+
# Only failed rollouts can be restarted.
|
389
|
+
#
|
390
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
391
|
+
# is case insensitive.
|
392
|
+
# @param rollout_name [String] The rollout name.
|
393
|
+
# @param skip_succeeded [Boolean] If true, will skip all succeeded steps so far
|
394
|
+
# in the rollout. If false, will execute the entire rollout again regardless of
|
395
|
+
# the current state of individual resources. Defaults to false if not
|
396
|
+
# specified.
|
397
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
398
|
+
# will be added to the HTTP request.
|
399
|
+
#
|
400
|
+
# @return [Rollout] operation results.
|
401
|
+
#
|
402
|
+
def restart(resource_group_name, rollout_name, skip_succeeded:nil, custom_headers:nil)
|
403
|
+
response = restart_async(resource_group_name, rollout_name, skip_succeeded:skip_succeeded, custom_headers:custom_headers).value!
|
404
|
+
response.body unless response.nil?
|
405
|
+
end
|
406
|
+
|
407
|
+
#
|
408
|
+
# Restarts a failed rollout and optionally skips all succeeded steps.
|
409
|
+
#
|
410
|
+
# Only failed rollouts can be restarted.
|
411
|
+
#
|
412
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
413
|
+
# is case insensitive.
|
414
|
+
# @param rollout_name [String] The rollout name.
|
415
|
+
# @param skip_succeeded [Boolean] If true, will skip all succeeded steps so far
|
416
|
+
# in the rollout. If false, will execute the entire rollout again regardless of
|
417
|
+
# the current state of individual resources. Defaults to false if not
|
418
|
+
# specified.
|
419
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
420
|
+
# will be added to the HTTP request.
|
421
|
+
#
|
422
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
423
|
+
#
|
424
|
+
def restart_with_http_info(resource_group_name, rollout_name, skip_succeeded:nil, custom_headers:nil)
|
425
|
+
restart_async(resource_group_name, rollout_name, skip_succeeded:skip_succeeded, custom_headers:custom_headers).value!
|
426
|
+
end
|
427
|
+
|
428
|
+
#
|
429
|
+
# Restarts a failed rollout and optionally skips all succeeded steps.
|
430
|
+
#
|
431
|
+
# Only failed rollouts can be restarted.
|
432
|
+
#
|
433
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
434
|
+
# is case insensitive.
|
435
|
+
# @param rollout_name [String] The rollout name.
|
436
|
+
# @param skip_succeeded [Boolean] If true, will skip all succeeded steps so far
|
437
|
+
# in the rollout. If false, will execute the entire rollout again regardless of
|
438
|
+
# the current state of individual resources. Defaults to false if not
|
439
|
+
# specified.
|
440
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
441
|
+
# to the HTTP request.
|
442
|
+
#
|
443
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
444
|
+
#
|
445
|
+
def restart_async(resource_group_name, rollout_name, skip_succeeded:nil, custom_headers:nil)
|
446
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
447
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
448
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
449
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
450
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
451
|
+
fail ArgumentError, 'rollout_name is nil' if rollout_name.nil?
|
452
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
453
|
+
|
454
|
+
|
455
|
+
request_headers = {}
|
456
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
457
|
+
|
458
|
+
# Set Headers
|
459
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
460
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
461
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}/restart'
|
462
|
+
|
463
|
+
request_url = @base_url || @client.base_url
|
464
|
+
|
465
|
+
options = {
|
466
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
467
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'rolloutName' => rollout_name},
|
468
|
+
query_params: {'skipSucceeded' => skip_succeeded,'api-version' => @client.api_version},
|
469
|
+
headers: request_headers.merge(custom_headers || {}),
|
470
|
+
base_url: request_url
|
471
|
+
}
|
472
|
+
promise = @client.make_request_async(:post, path_template, options)
|
473
|
+
|
474
|
+
promise = promise.then do |result|
|
475
|
+
http_response = result.response
|
476
|
+
status_code = http_response.status
|
477
|
+
response_content = http_response.body
|
478
|
+
unless status_code == 200
|
479
|
+
error_model = JSON.load(response_content)
|
480
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
481
|
+
end
|
482
|
+
|
483
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
484
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
485
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
486
|
+
# Deserialize Response
|
487
|
+
if status_code == 200
|
488
|
+
begin
|
489
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
490
|
+
result_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::Rollout.mapper()
|
491
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
492
|
+
rescue Exception => e
|
493
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
result
|
498
|
+
end
|
499
|
+
|
500
|
+
promise.execute
|
501
|
+
end
|
502
|
+
|
503
|
+
#
|
504
|
+
# Lists the rollouts in a resource group.
|
505
|
+
#
|
506
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
507
|
+
# is case insensitive.
|
508
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
509
|
+
# will be added to the HTTP request.
|
510
|
+
#
|
511
|
+
# @return [Array] operation results.
|
512
|
+
#
|
513
|
+
def list(resource_group_name, custom_headers:nil)
|
514
|
+
response = list_async(resource_group_name, custom_headers:custom_headers).value!
|
515
|
+
response.body unless response.nil?
|
516
|
+
end
|
517
|
+
|
518
|
+
#
|
519
|
+
# Lists the rollouts in a resource group.
|
520
|
+
#
|
521
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
522
|
+
# is case insensitive.
|
523
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
524
|
+
# will be added to the HTTP request.
|
525
|
+
#
|
526
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
527
|
+
#
|
528
|
+
def list_with_http_info(resource_group_name, custom_headers:nil)
|
529
|
+
list_async(resource_group_name, custom_headers:custom_headers).value!
|
530
|
+
end
|
531
|
+
|
532
|
+
#
|
533
|
+
# Lists the rollouts in a resource group.
|
534
|
+
#
|
535
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
536
|
+
# is case insensitive.
|
537
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
538
|
+
# to the HTTP request.
|
539
|
+
#
|
540
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
541
|
+
#
|
542
|
+
def list_async(resource_group_name, custom_headers:nil)
|
543
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
544
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
545
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
546
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
547
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
548
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
549
|
+
|
550
|
+
|
551
|
+
request_headers = {}
|
552
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
553
|
+
|
554
|
+
# Set Headers
|
555
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
556
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
557
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts'
|
558
|
+
|
559
|
+
request_url = @base_url || @client.base_url
|
560
|
+
|
561
|
+
options = {
|
562
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
563
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
564
|
+
query_params: {'api-version' => @client.api_version},
|
565
|
+
headers: request_headers.merge(custom_headers || {}),
|
566
|
+
base_url: request_url
|
567
|
+
}
|
568
|
+
promise = @client.make_request_async(:get, path_template, options)
|
569
|
+
|
570
|
+
promise = promise.then do |result|
|
571
|
+
http_response = result.response
|
572
|
+
status_code = http_response.status
|
573
|
+
response_content = http_response.body
|
574
|
+
unless status_code == 200
|
575
|
+
error_model = JSON.load(response_content)
|
576
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
577
|
+
end
|
578
|
+
|
579
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
580
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
581
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
582
|
+
# Deserialize Response
|
583
|
+
if status_code == 200
|
584
|
+
begin
|
585
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
586
|
+
result_mapper = {
|
587
|
+
client_side_validation: true,
|
588
|
+
required: false,
|
589
|
+
serialized_name: 'parsed_response',
|
590
|
+
type: {
|
591
|
+
name: 'Sequence',
|
592
|
+
element: {
|
593
|
+
client_side_validation: true,
|
594
|
+
required: false,
|
595
|
+
serialized_name: 'RolloutElementType',
|
596
|
+
type: {
|
597
|
+
name: 'Composite',
|
598
|
+
class_name: 'Rollout'
|
599
|
+
}
|
600
|
+
}
|
601
|
+
}
|
602
|
+
}
|
603
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
604
|
+
rescue Exception => e
|
605
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
609
|
+
result
|
610
|
+
end
|
611
|
+
|
612
|
+
promise.execute
|
613
|
+
end
|
614
|
+
|
615
|
+
#
|
616
|
+
# Creates or updates a rollout.
|
617
|
+
#
|
618
|
+
# This is an asynchronous operation and can be polled to completion using the
|
619
|
+
# location header returned by this operation.
|
620
|
+
#
|
621
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
622
|
+
# is case insensitive.
|
623
|
+
# @param rollout_name [String] The rollout name.
|
624
|
+
# @param rollout_request [RolloutRequest] Source rollout request object that
|
625
|
+
# defines the rollout.
|
626
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
627
|
+
# will be added to the HTTP request.
|
628
|
+
#
|
629
|
+
# @return [RolloutRequest] operation results.
|
630
|
+
#
|
631
|
+
def begin_create_or_update(resource_group_name, rollout_name, rollout_request:nil, custom_headers:nil)
|
632
|
+
response = begin_create_or_update_async(resource_group_name, rollout_name, rollout_request:rollout_request, custom_headers:custom_headers).value!
|
633
|
+
response.body unless response.nil?
|
634
|
+
end
|
635
|
+
|
636
|
+
#
|
637
|
+
# Creates or updates a rollout.
|
638
|
+
#
|
639
|
+
# This is an asynchronous operation and can be polled to completion using the
|
640
|
+
# location header returned by this operation.
|
641
|
+
#
|
642
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
643
|
+
# is case insensitive.
|
644
|
+
# @param rollout_name [String] The rollout name.
|
645
|
+
# @param rollout_request [RolloutRequest] Source rollout request object that
|
646
|
+
# defines the rollout.
|
647
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
648
|
+
# will be added to the HTTP request.
|
649
|
+
#
|
650
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
651
|
+
#
|
652
|
+
def begin_create_or_update_with_http_info(resource_group_name, rollout_name, rollout_request:nil, custom_headers:nil)
|
653
|
+
begin_create_or_update_async(resource_group_name, rollout_name, rollout_request:rollout_request, custom_headers:custom_headers).value!
|
654
|
+
end
|
655
|
+
|
656
|
+
#
|
657
|
+
# Creates or updates a rollout.
|
658
|
+
#
|
659
|
+
# This is an asynchronous operation and can be polled to completion using the
|
660
|
+
# location header returned by this operation.
|
661
|
+
#
|
662
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
663
|
+
# is case insensitive.
|
664
|
+
# @param rollout_name [String] The rollout name.
|
665
|
+
# @param rollout_request [RolloutRequest] Source rollout request object that
|
666
|
+
# defines the rollout.
|
667
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
668
|
+
# to the HTTP request.
|
669
|
+
#
|
670
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
671
|
+
#
|
672
|
+
def begin_create_or_update_async(resource_group_name, rollout_name, rollout_request:nil, custom_headers:nil)
|
673
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
674
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
675
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
676
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
677
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
678
|
+
fail ArgumentError, 'rollout_name is nil' if rollout_name.nil?
|
679
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
680
|
+
|
681
|
+
|
682
|
+
request_headers = {}
|
683
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
684
|
+
|
685
|
+
# Set Headers
|
686
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
687
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
688
|
+
|
689
|
+
# Serialize Request
|
690
|
+
request_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::RolloutRequest.mapper()
|
691
|
+
request_content = @client.serialize(request_mapper, rollout_request)
|
692
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
693
|
+
|
694
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}'
|
695
|
+
|
696
|
+
request_url = @base_url || @client.base_url
|
697
|
+
|
698
|
+
options = {
|
699
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
700
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'rolloutName' => rollout_name},
|
701
|
+
query_params: {'api-version' => @client.api_version},
|
702
|
+
body: request_content,
|
703
|
+
headers: request_headers.merge(custom_headers || {}),
|
704
|
+
base_url: request_url
|
705
|
+
}
|
706
|
+
promise = @client.make_request_async(:put, path_template, options)
|
707
|
+
|
708
|
+
promise = promise.then do |result|
|
709
|
+
http_response = result.response
|
710
|
+
status_code = http_response.status
|
711
|
+
response_content = http_response.body
|
712
|
+
unless status_code == 201
|
713
|
+
error_model = JSON.load(response_content)
|
714
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
715
|
+
end
|
716
|
+
|
717
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
718
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
719
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
720
|
+
# Deserialize Response
|
721
|
+
if status_code == 201
|
722
|
+
begin
|
723
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
724
|
+
result_mapper = Azure::DeploymentManager::Mgmt::V2019_11_01_preview::Models::RolloutRequest.mapper()
|
725
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
726
|
+
rescue Exception => e
|
727
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
731
|
+
result
|
732
|
+
end
|
733
|
+
|
734
|
+
promise.execute
|
735
|
+
end
|
736
|
+
|
737
|
+
end
|
738
|
+
end
|