azure_mgmt_automation 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation.rb +54 -53
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +27 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +18 -24
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +54 -50
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +7 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +54 -66
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +9 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +81 -99
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +27 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +13 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +21 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +16 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +16 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +36 -42
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +18 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +53 -70
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +63 -79
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +27 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +45 -57
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +63 -79
- data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/automation_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/automation_profile_module.rb +494 -471
- data/lib/version.rb +1 -1
- metadata +3 -2
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve a list of fields of a given type identified by module name.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String] The resource group name.
|
28
27
|
# @param automation_account_name [String] The automation account name.
|
29
28
|
# @param module_name [String] The name of module.
|
30
29
|
# @param type_name [String] The name of type.
|
@@ -33,15 +32,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
33
32
|
#
|
34
33
|
# @return [TypeFieldListResult] operation results.
|
35
34
|
#
|
36
|
-
def list_fields_by_module_and_type(
|
37
|
-
response = list_fields_by_module_and_type_async(
|
35
|
+
def list_fields_by_module_and_type(automation_account_name, module_name, type_name, custom_headers:nil)
|
36
|
+
response = list_fields_by_module_and_type_async(automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
|
38
37
|
response.body unless response.nil?
|
39
38
|
end
|
40
39
|
|
41
40
|
#
|
42
41
|
# Retrieve a list of fields of a given type identified by module name.
|
43
42
|
#
|
44
|
-
# @param resource_group_name [String] The resource group name.
|
45
43
|
# @param automation_account_name [String] The automation account name.
|
46
44
|
# @param module_name [String] The name of module.
|
47
45
|
# @param type_name [String] The name of type.
|
@@ -50,14 +48,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
50
48
|
#
|
51
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
50
|
#
|
53
|
-
def list_fields_by_module_and_type_with_http_info(
|
54
|
-
list_fields_by_module_and_type_async(
|
51
|
+
def list_fields_by_module_and_type_with_http_info(automation_account_name, module_name, type_name, custom_headers:nil)
|
52
|
+
list_fields_by_module_and_type_async(automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
|
55
53
|
end
|
56
54
|
|
57
55
|
#
|
58
56
|
# Retrieve a list of fields of a given type identified by module name.
|
59
57
|
#
|
60
|
-
# @param resource_group_name [String] The resource group name.
|
61
58
|
# @param automation_account_name [String] The automation account name.
|
62
59
|
# @param module_name [String] The name of module.
|
63
60
|
# @param type_name [String] The name of type.
|
@@ -66,9 +63,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
66
63
|
#
|
67
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
65
|
#
|
69
|
-
def list_fields_by_module_and_type_async(
|
70
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
66
|
+
def list_fields_by_module_and_type_async(automation_account_name, module_name, type_name, custom_headers:nil)
|
67
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
68
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
72
69
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
73
70
|
fail ArgumentError, 'module_name is nil' if module_name.nil?
|
74
71
|
fail ArgumentError, 'type_name is nil' if type_name.nil?
|
@@ -77,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
77
74
|
|
78
75
|
|
79
76
|
request_headers = {}
|
77
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
78
|
|
81
79
|
# Set Headers
|
82
80
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -87,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
87
85
|
|
88
86
|
options = {
|
89
87
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
90
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
|
88
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
|
91
89
|
query_params: {'api-version' => @client.api_version},
|
92
90
|
headers: request_headers.merge(custom_headers || {}),
|
93
91
|
base_url: request_url
|
@@ -124,7 +122,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
124
122
|
#
|
125
123
|
# Retrieve a list of fields of a given type across all accessible modules.
|
126
124
|
#
|
127
|
-
# @param resource_group_name [String] The resource group name.
|
128
125
|
# @param automation_account_name [String] The automation account name.
|
129
126
|
# @param type_name [String] The name of type.
|
130
127
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -132,15 +129,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
132
129
|
#
|
133
130
|
# @return [TypeFieldListResult] operation results.
|
134
131
|
#
|
135
|
-
def list_fields_by_type(
|
136
|
-
response = list_fields_by_type_async(
|
132
|
+
def list_fields_by_type(automation_account_name, type_name, custom_headers:nil)
|
133
|
+
response = list_fields_by_type_async(automation_account_name, type_name, custom_headers:custom_headers).value!
|
137
134
|
response.body unless response.nil?
|
138
135
|
end
|
139
136
|
|
140
137
|
#
|
141
138
|
# Retrieve a list of fields of a given type across all accessible modules.
|
142
139
|
#
|
143
|
-
# @param resource_group_name [String] The resource group name.
|
144
140
|
# @param automation_account_name [String] The automation account name.
|
145
141
|
# @param type_name [String] The name of type.
|
146
142
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -148,14 +144,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
148
144
|
#
|
149
145
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
150
146
|
#
|
151
|
-
def list_fields_by_type_with_http_info(
|
152
|
-
list_fields_by_type_async(
|
147
|
+
def list_fields_by_type_with_http_info(automation_account_name, type_name, custom_headers:nil)
|
148
|
+
list_fields_by_type_async(automation_account_name, type_name, custom_headers:custom_headers).value!
|
153
149
|
end
|
154
150
|
|
155
151
|
#
|
156
152
|
# Retrieve a list of fields of a given type across all accessible modules.
|
157
153
|
#
|
158
|
-
# @param resource_group_name [String] The resource group name.
|
159
154
|
# @param automation_account_name [String] The automation account name.
|
160
155
|
# @param type_name [String] The name of type.
|
161
156
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -163,9 +158,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
163
158
|
#
|
164
159
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
165
160
|
#
|
166
|
-
def list_fields_by_type_async(
|
167
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
168
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
161
|
+
def list_fields_by_type_async(automation_account_name, type_name, custom_headers:nil)
|
162
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
163
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
169
164
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
170
165
|
fail ArgumentError, 'type_name is nil' if type_name.nil?
|
171
166
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -173,6 +168,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
173
168
|
|
174
169
|
|
175
170
|
request_headers = {}
|
171
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
176
172
|
|
177
173
|
# Set Headers
|
178
174
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -183,7 +179,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
183
179
|
|
184
180
|
options = {
|
185
181
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
186
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
|
182
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
|
187
183
|
query_params: {'api-version' => @client.api_version},
|
188
184
|
headers: request_headers.merge(custom_headers || {}),
|
189
185
|
base_url: request_url
|
@@ -29,8 +29,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
29
29
|
#
|
30
30
|
# @return [OperationListResult] operation results.
|
31
31
|
#
|
32
|
-
def list(custom_headers
|
33
|
-
response = list_async(custom_headers).value!
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
34
|
response.body unless response.nil?
|
35
35
|
end
|
36
36
|
|
@@ -42,8 +42,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
42
42
|
#
|
43
43
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
44
|
#
|
45
|
-
def list_with_http_info(custom_headers
|
46
|
-
list_async(custom_headers).value!
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
@@ -54,11 +54,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
54
54
|
#
|
55
55
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
56
|
#
|
57
|
-
def list_async(custom_headers
|
57
|
+
def list_async(custom_headers:nil)
|
58
58
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
59
|
|
60
60
|
|
61
61
|
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
62
63
|
|
63
64
|
# Set Headers
|
64
65
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve the content of runbook draft identified by runbook name.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String] The resource group name.
|
28
27
|
# @param automation_account_name [String] The automation account name.
|
29
28
|
# @param runbook_name [String] The runbook name.
|
30
29
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -32,15 +31,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
32
31
|
#
|
33
32
|
# @return [NOT_IMPLEMENTED] operation results.
|
34
33
|
#
|
35
|
-
def get_content(
|
36
|
-
response = get_content_async(
|
34
|
+
def get_content(automation_account_name, runbook_name, custom_headers:nil)
|
35
|
+
response = get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
37
36
|
response.body unless response.nil?
|
38
37
|
end
|
39
38
|
|
40
39
|
#
|
41
40
|
# Retrieve the content of runbook draft identified by runbook name.
|
42
41
|
#
|
43
|
-
# @param resource_group_name [String] The resource group name.
|
44
42
|
# @param automation_account_name [String] The automation account name.
|
45
43
|
# @param runbook_name [String] The runbook name.
|
46
44
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -48,14 +46,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
48
46
|
#
|
49
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
48
|
#
|
51
|
-
def get_content_with_http_info(
|
52
|
-
get_content_async(
|
49
|
+
def get_content_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
50
|
+
get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
53
51
|
end
|
54
52
|
|
55
53
|
#
|
56
54
|
# Retrieve the content of runbook draft identified by runbook name.
|
57
55
|
#
|
58
|
-
# @param resource_group_name [String] The resource group name.
|
59
56
|
# @param automation_account_name [String] The automation account name.
|
60
57
|
# @param runbook_name [String] The runbook name.
|
61
58
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -63,9 +60,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
63
60
|
#
|
64
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
62
|
#
|
66
|
-
def get_content_async(
|
67
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
63
|
+
def get_content_async(automation_account_name, runbook_name, custom_headers:nil)
|
64
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
65
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
69
66
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
70
67
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
71
68
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -73,6 +70,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
73
70
|
|
74
71
|
|
75
72
|
request_headers = {}
|
73
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
76
74
|
|
77
75
|
# Set Headers
|
78
76
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -83,7 +81,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
83
81
|
|
84
82
|
options = {
|
85
83
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
84
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
87
85
|
query_params: {'api-version' => @client.api_version},
|
88
86
|
headers: request_headers.merge(custom_headers || {}),
|
89
87
|
base_url: request_url
|
@@ -127,20 +125,18 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
127
125
|
#
|
128
126
|
# Updates the runbook draft with runbookStream as its content.
|
129
127
|
#
|
130
|
-
# @param resource_group_name [String] The resource group name.
|
131
128
|
# @param automation_account_name [String] The automation account name.
|
132
129
|
# @param runbook_name [String] The runbook name.
|
133
130
|
# @param runbook_content The runbook draft content.
|
134
131
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
135
132
|
# will be added to the HTTP request.
|
136
133
|
#
|
137
|
-
def create_or_update(
|
138
|
-
response = create_or_update_async(
|
134
|
+
def create_or_update(automation_account_name, runbook_name, runbook_content, custom_headers:nil)
|
135
|
+
response = create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value!
|
139
136
|
nil
|
140
137
|
end
|
141
138
|
|
142
139
|
#
|
143
|
-
# @param resource_group_name [String] The resource group name.
|
144
140
|
# @param automation_account_name [String] The automation account name.
|
145
141
|
# @param runbook_name [String] The runbook name.
|
146
142
|
# @param runbook_content The runbook draft content.
|
@@ -150,9 +146,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
150
146
|
# @return [Concurrent::Promise] promise which provides async access to http
|
151
147
|
# response.
|
152
148
|
#
|
153
|
-
def create_or_update_async(
|
149
|
+
def create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:nil)
|
154
150
|
# Send request
|
155
|
-
promise = begin_create_or_update_async(
|
151
|
+
promise = begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers)
|
156
152
|
|
157
153
|
promise = promise.then do |response|
|
158
154
|
# Defining deserialization method.
|
@@ -169,7 +165,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
169
165
|
#
|
170
166
|
# Retrieve the runbook draft identified by runbook name.
|
171
167
|
#
|
172
|
-
# @param resource_group_name [String] The resource group name.
|
173
168
|
# @param automation_account_name [String] The automation account name.
|
174
169
|
# @param runbook_name [String] The runbook name.
|
175
170
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -177,15 +172,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
177
172
|
#
|
178
173
|
# @return [RunbookDraft] operation results.
|
179
174
|
#
|
180
|
-
def get(
|
181
|
-
response = get_async(
|
175
|
+
def get(automation_account_name, runbook_name, custom_headers:nil)
|
176
|
+
response = get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
182
177
|
response.body unless response.nil?
|
183
178
|
end
|
184
179
|
|
185
180
|
#
|
186
181
|
# Retrieve the runbook draft identified by runbook name.
|
187
182
|
#
|
188
|
-
# @param resource_group_name [String] The resource group name.
|
189
183
|
# @param automation_account_name [String] The automation account name.
|
190
184
|
# @param runbook_name [String] The runbook name.
|
191
185
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -193,14 +187,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
193
187
|
#
|
194
188
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
195
189
|
#
|
196
|
-
def get_with_http_info(
|
197
|
-
get_async(
|
190
|
+
def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
191
|
+
get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
198
192
|
end
|
199
193
|
|
200
194
|
#
|
201
195
|
# Retrieve the runbook draft identified by runbook name.
|
202
196
|
#
|
203
|
-
# @param resource_group_name [String] The resource group name.
|
204
197
|
# @param automation_account_name [String] The automation account name.
|
205
198
|
# @param runbook_name [String] The runbook name.
|
206
199
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -208,9 +201,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
208
201
|
#
|
209
202
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
210
203
|
#
|
211
|
-
def get_async(
|
212
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
213
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
204
|
+
def get_async(automation_account_name, runbook_name, custom_headers:nil)
|
205
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
206
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
214
207
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
215
208
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
216
209
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -218,6 +211,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
218
211
|
|
219
212
|
|
220
213
|
request_headers = {}
|
214
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
221
215
|
|
222
216
|
# Set Headers
|
223
217
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -228,7 +222,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
228
222
|
|
229
223
|
options = {
|
230
224
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
231
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
225
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
232
226
|
query_params: {'api-version' => @client.api_version},
|
233
227
|
headers: request_headers.merge(custom_headers || {}),
|
234
228
|
base_url: request_url
|
@@ -265,7 +259,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
265
259
|
#
|
266
260
|
# Publish runbook draft.
|
267
261
|
#
|
268
|
-
# @param resource_group_name [String] The resource group name.
|
269
262
|
# @param automation_account_name [String] The automation account name.
|
270
263
|
# @param runbook_name [String] The parameters supplied to the publish runbook
|
271
264
|
# operation.
|
@@ -274,13 +267,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
274
267
|
#
|
275
268
|
# @return [Runbook] operation results.
|
276
269
|
#
|
277
|
-
def publish(
|
278
|
-
response = publish_async(
|
270
|
+
def publish(automation_account_name, runbook_name, custom_headers:nil)
|
271
|
+
response = publish_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
279
272
|
response.body unless response.nil?
|
280
273
|
end
|
281
274
|
|
282
275
|
#
|
283
|
-
# @param resource_group_name [String] The resource group name.
|
284
276
|
# @param automation_account_name [String] The automation account name.
|
285
277
|
# @param runbook_name [String] The parameters supplied to the publish runbook
|
286
278
|
# operation.
|
@@ -290,9 +282,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
290
282
|
# @return [Concurrent::Promise] promise which provides async access to http
|
291
283
|
# response.
|
292
284
|
#
|
293
|
-
def publish_async(
|
285
|
+
def publish_async(automation_account_name, runbook_name, custom_headers:nil)
|
294
286
|
# Send request
|
295
|
-
promise = begin_publish_async(
|
287
|
+
promise = begin_publish_async(automation_account_name, runbook_name, custom_headers:custom_headers)
|
296
288
|
|
297
289
|
promise = promise.then do |response|
|
298
290
|
# Defining deserialization method.
|
@@ -311,7 +303,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
311
303
|
#
|
312
304
|
# Retrieve the runbook identified by runbook name.
|
313
305
|
#
|
314
|
-
# @param resource_group_name [String] The resource group name.
|
315
306
|
# @param automation_account_name [String] The automation account name.
|
316
307
|
# @param runbook_name [String] The runbook name.
|
317
308
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -319,15 +310,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
319
310
|
#
|
320
311
|
# @return [RunbookDraftUndoEditResult] operation results.
|
321
312
|
#
|
322
|
-
def undo_edit(
|
323
|
-
response = undo_edit_async(
|
313
|
+
def undo_edit(automation_account_name, runbook_name, custom_headers:nil)
|
314
|
+
response = undo_edit_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
324
315
|
response.body unless response.nil?
|
325
316
|
end
|
326
317
|
|
327
318
|
#
|
328
319
|
# Retrieve the runbook identified by runbook name.
|
329
320
|
#
|
330
|
-
# @param resource_group_name [String] The resource group name.
|
331
321
|
# @param automation_account_name [String] The automation account name.
|
332
322
|
# @param runbook_name [String] The runbook name.
|
333
323
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -335,14 +325,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
335
325
|
#
|
336
326
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
337
327
|
#
|
338
|
-
def undo_edit_with_http_info(
|
339
|
-
undo_edit_async(
|
328
|
+
def undo_edit_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
329
|
+
undo_edit_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
340
330
|
end
|
341
331
|
|
342
332
|
#
|
343
333
|
# Retrieve the runbook identified by runbook name.
|
344
334
|
#
|
345
|
-
# @param resource_group_name [String] The resource group name.
|
346
335
|
# @param automation_account_name [String] The automation account name.
|
347
336
|
# @param runbook_name [String] The runbook name.
|
348
337
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -350,9 +339,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
350
339
|
#
|
351
340
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
352
341
|
#
|
353
|
-
def undo_edit_async(
|
354
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
355
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
342
|
+
def undo_edit_async(automation_account_name, runbook_name, custom_headers:nil)
|
343
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
344
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
356
345
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
357
346
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
358
347
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -360,6 +349,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
360
349
|
|
361
350
|
|
362
351
|
request_headers = {}
|
352
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
363
353
|
|
364
354
|
# Set Headers
|
365
355
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -370,7 +360,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
370
360
|
|
371
361
|
options = {
|
372
362
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
373
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
363
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
374
364
|
query_params: {'api-version' => @client.api_version},
|
375
365
|
headers: request_headers.merge(custom_headers || {}),
|
376
366
|
base_url: request_url
|
@@ -407,7 +397,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
407
397
|
#
|
408
398
|
# Updates the runbook draft with runbookStream as its content.
|
409
399
|
#
|
410
|
-
# @param resource_group_name [String] The resource group name.
|
411
400
|
# @param automation_account_name [String] The automation account name.
|
412
401
|
# @param runbook_name [String] The runbook name.
|
413
402
|
# @param runbook_content The runbook draft content.
|
@@ -415,15 +404,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
415
404
|
# will be added to the HTTP request.
|
416
405
|
#
|
417
406
|
#
|
418
|
-
def begin_create_or_update(
|
419
|
-
response = begin_create_or_update_async(
|
407
|
+
def begin_create_or_update(automation_account_name, runbook_name, runbook_content, custom_headers:nil)
|
408
|
+
response = begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value!
|
420
409
|
nil
|
421
410
|
end
|
422
411
|
|
423
412
|
#
|
424
413
|
# Updates the runbook draft with runbookStream as its content.
|
425
414
|
#
|
426
|
-
# @param resource_group_name [String] The resource group name.
|
427
415
|
# @param automation_account_name [String] The automation account name.
|
428
416
|
# @param runbook_name [String] The runbook name.
|
429
417
|
# @param runbook_content The runbook draft content.
|
@@ -432,14 +420,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
432
420
|
#
|
433
421
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
434
422
|
#
|
435
|
-
def begin_create_or_update_with_http_info(
|
436
|
-
begin_create_or_update_async(
|
423
|
+
def begin_create_or_update_with_http_info(automation_account_name, runbook_name, runbook_content, custom_headers:nil)
|
424
|
+
begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value!
|
437
425
|
end
|
438
426
|
|
439
427
|
#
|
440
428
|
# Updates the runbook draft with runbookStream as its content.
|
441
429
|
#
|
442
|
-
# @param resource_group_name [String] The resource group name.
|
443
430
|
# @param automation_account_name [String] The automation account name.
|
444
431
|
# @param runbook_name [String] The runbook name.
|
445
432
|
# @param runbook_content The runbook draft content.
|
@@ -448,9 +435,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
448
435
|
#
|
449
436
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
450
437
|
#
|
451
|
-
def begin_create_or_update_async(
|
452
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
453
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
438
|
+
def begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:nil)
|
439
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
440
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
454
441
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
455
442
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
456
443
|
fail ArgumentError, 'runbook_content is nil' if runbook_content.nil?
|
@@ -459,13 +446,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
459
446
|
|
460
447
|
|
461
448
|
request_headers = {}
|
449
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
462
450
|
|
463
451
|
# Set Headers
|
464
452
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
465
453
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
466
454
|
|
467
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
468
|
-
|
469
455
|
# Serialize Request
|
470
456
|
request_mapper = {
|
471
457
|
client_side_validation: true,
|
@@ -476,7 +462,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
476
462
|
}
|
477
463
|
}
|
478
464
|
request_content = @client.serialize(request_mapper, runbook_content)
|
479
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
480
465
|
|
481
466
|
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content'
|
482
467
|
|
@@ -484,7 +469,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
484
469
|
|
485
470
|
options = {
|
486
471
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
487
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
472
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
488
473
|
query_params: {'api-version' => @client.api_version},
|
489
474
|
body: request_content,
|
490
475
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -512,7 +497,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
512
497
|
#
|
513
498
|
# Publish runbook draft.
|
514
499
|
#
|
515
|
-
# @param resource_group_name [String] The resource group name.
|
516
500
|
# @param automation_account_name [String] The automation account name.
|
517
501
|
# @param runbook_name [String] The parameters supplied to the publish runbook
|
518
502
|
# operation.
|
@@ -521,15 +505,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
521
505
|
#
|
522
506
|
# @return [Runbook] operation results.
|
523
507
|
#
|
524
|
-
def begin_publish(
|
525
|
-
response = begin_publish_async(
|
508
|
+
def begin_publish(automation_account_name, runbook_name, custom_headers:nil)
|
509
|
+
response = begin_publish_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
526
510
|
response.body unless response.nil?
|
527
511
|
end
|
528
512
|
|
529
513
|
#
|
530
514
|
# Publish runbook draft.
|
531
515
|
#
|
532
|
-
# @param resource_group_name [String] The resource group name.
|
533
516
|
# @param automation_account_name [String] The automation account name.
|
534
517
|
# @param runbook_name [String] The parameters supplied to the publish runbook
|
535
518
|
# operation.
|
@@ -538,14 +521,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
538
521
|
#
|
539
522
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
540
523
|
#
|
541
|
-
def begin_publish_with_http_info(
|
542
|
-
begin_publish_async(
|
524
|
+
def begin_publish_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
525
|
+
begin_publish_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
543
526
|
end
|
544
527
|
|
545
528
|
#
|
546
529
|
# Publish runbook draft.
|
547
530
|
#
|
548
|
-
# @param resource_group_name [String] The resource group name.
|
549
531
|
# @param automation_account_name [String] The automation account name.
|
550
532
|
# @param runbook_name [String] The parameters supplied to the publish runbook
|
551
533
|
# operation.
|
@@ -554,9 +536,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
554
536
|
#
|
555
537
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
556
538
|
#
|
557
|
-
def begin_publish_async(
|
558
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
559
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
539
|
+
def begin_publish_async(automation_account_name, runbook_name, custom_headers:nil)
|
540
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
541
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
560
542
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
561
543
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
562
544
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -564,6 +546,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
564
546
|
|
565
547
|
|
566
548
|
request_headers = {}
|
549
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
567
550
|
|
568
551
|
# Set Headers
|
569
552
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -574,7 +557,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
574
557
|
|
575
558
|
options = {
|
576
559
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
577
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
560
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
|
578
561
|
query_params: {'api-version' => @client.api_version},
|
579
562
|
headers: request_headers.merge(custom_headers || {}),
|
580
563
|
base_url: request_url
|