azure_mgmt_policy 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_policy.rb +3 -3
- data/lib/generated/azure_mgmt_policy/models/policy_assignment.rb +7 -8
- data/lib/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +3 -4
- data/lib/generated/azure_mgmt_policy/models/policy_definition.rb +11 -8
- data/lib/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +3 -4
- data/lib/generated/azure_mgmt_policy/models/policy_type.rb +1 -1
- data/lib/generated/azure_mgmt_policy/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_policy/policy_assignments.rb +295 -186
- data/lib/generated/azure_mgmt_policy/policy_client.rb +16 -5
- data/lib/generated/azure_mgmt_policy/policy_definitions.rb +60 -50
- data/lib/generated/azure_mgmt_policy/version.rb +2 -2
- metadata +4 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -17,12 +17,10 @@ module Azure::ARM::Policy
|
|
17
17
|
# @return Credentials needed for the client to connect to Azure.
|
18
18
|
attr_reader :credentials
|
19
19
|
|
20
|
-
# @return [String]
|
21
|
-
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
22
|
-
# for every service call.
|
20
|
+
# @return [String] The ID of the target subscription.
|
23
21
|
attr_accessor :subscription_id
|
24
22
|
|
25
|
-
# @return [String]
|
23
|
+
# @return [String] The API version to use for the operation.
|
26
24
|
attr_reader :api_version
|
27
25
|
|
28
26
|
# @return [String] Gets or sets the preferred language for the response.
|
@@ -62,6 +60,7 @@ module Azure::ARM::Policy
|
|
62
60
|
@accept_language = 'en-US'
|
63
61
|
@long_running_operation_retry_timeout = 30
|
64
62
|
@generate_client_request_id = true
|
63
|
+
add_telemetry
|
65
64
|
end
|
66
65
|
|
67
66
|
#
|
@@ -119,5 +118,17 @@ module Azure::ARM::Policy
|
|
119
118
|
super(request_url, method, path, options)
|
120
119
|
end
|
121
120
|
|
121
|
+
|
122
|
+
private
|
123
|
+
#
|
124
|
+
# Adds telemetry information.
|
125
|
+
#
|
126
|
+
def add_telemetry
|
127
|
+
sdk_information = 'azure_mgmt_policy'
|
128
|
+
if defined? Azure::ARM::Policy::VERSION
|
129
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Policy::VERSION}"
|
130
|
+
end
|
131
|
+
add_user_agent_information(sdk_information)
|
132
|
+
end
|
122
133
|
end
|
123
134
|
end
|
@@ -1,11 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Policy
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# To manage and control access to your resources, you can define customized
|
9
|
+
# policies and assign them at a scope.
|
9
10
|
#
|
10
11
|
class PolicyDefinitions
|
11
12
|
include Azure::ARM::Policy::Models
|
@@ -23,9 +24,10 @@ module Azure::ARM::Policy
|
|
23
24
|
attr_reader :client
|
24
25
|
|
25
26
|
#
|
26
|
-
#
|
27
|
+
# Creates or updates a policy definition.
|
27
28
|
#
|
28
|
-
# @param policy_definition_name [String] The policy definition
|
29
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
30
|
+
# create.
|
29
31
|
# @param parameters [PolicyDefinition] The policy definition properties.
|
30
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
33
|
# will be added to the HTTP request.
|
@@ -38,9 +40,10 @@ module Azure::ARM::Policy
|
|
38
40
|
end
|
39
41
|
|
40
42
|
#
|
41
|
-
#
|
43
|
+
# Creates or updates a policy definition.
|
42
44
|
#
|
43
|
-
# @param policy_definition_name [String] The policy definition
|
45
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
46
|
+
# create.
|
44
47
|
# @param parameters [PolicyDefinition] The policy definition properties.
|
45
48
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
49
|
# will be added to the HTTP request.
|
@@ -52,9 +55,10 @@ module Azure::ARM::Policy
|
|
52
55
|
end
|
53
56
|
|
54
57
|
#
|
55
|
-
#
|
58
|
+
# Creates or updates a policy definition.
|
56
59
|
#
|
57
|
-
# @param policy_definition_name [String] The policy definition
|
60
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
61
|
+
# create.
|
58
62
|
# @param parameters [PolicyDefinition] The policy definition properties.
|
59
63
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
64
|
# to the HTTP request.
|
@@ -123,9 +127,10 @@ module Azure::ARM::Policy
|
|
123
127
|
end
|
124
128
|
|
125
129
|
#
|
126
|
-
# Deletes
|
130
|
+
# Deletes a policy definition.
|
127
131
|
#
|
128
|
-
# @param policy_definition_name [String] The policy definition
|
132
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
133
|
+
# delete.
|
129
134
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
135
|
# will be added to the HTTP request.
|
131
136
|
#
|
@@ -136,9 +141,10 @@ module Azure::ARM::Policy
|
|
136
141
|
end
|
137
142
|
|
138
143
|
#
|
139
|
-
# Deletes
|
144
|
+
# Deletes a policy definition.
|
140
145
|
#
|
141
|
-
# @param policy_definition_name [String] The policy definition
|
146
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
147
|
+
# delete.
|
142
148
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
149
|
# will be added to the HTTP request.
|
144
150
|
#
|
@@ -149,9 +155,10 @@ module Azure::ARM::Policy
|
|
149
155
|
end
|
150
156
|
|
151
157
|
#
|
152
|
-
# Deletes
|
158
|
+
# Deletes a policy definition.
|
153
159
|
#
|
154
|
-
# @param policy_definition_name [String] The policy definition
|
160
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
161
|
+
# delete.
|
155
162
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
156
163
|
# to the HTTP request.
|
157
164
|
#
|
@@ -201,7 +208,8 @@ module Azure::ARM::Policy
|
|
201
208
|
#
|
202
209
|
# Gets the policy definition.
|
203
210
|
#
|
204
|
-
# @param policy_definition_name [String] The policy definition
|
211
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
212
|
+
# get.
|
205
213
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
206
214
|
# will be added to the HTTP request.
|
207
215
|
#
|
@@ -215,7 +223,8 @@ module Azure::ARM::Policy
|
|
215
223
|
#
|
216
224
|
# Gets the policy definition.
|
217
225
|
#
|
218
|
-
# @param policy_definition_name [String] The policy definition
|
226
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
227
|
+
# get.
|
219
228
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
220
229
|
# will be added to the HTTP request.
|
221
230
|
#
|
@@ -228,7 +237,8 @@ module Azure::ARM::Policy
|
|
228
237
|
#
|
229
238
|
# Gets the policy definition.
|
230
239
|
#
|
231
|
-
# @param policy_definition_name [String] The policy definition
|
240
|
+
# @param policy_definition_name [String] The name of the policy definition to
|
241
|
+
# get.
|
232
242
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
233
243
|
# to the HTTP request.
|
234
244
|
#
|
@@ -286,28 +296,7 @@ module Azure::ARM::Policy
|
|
286
296
|
end
|
287
297
|
|
288
298
|
#
|
289
|
-
# Gets all the policy definitions
|
290
|
-
#
|
291
|
-
# @param filter [String] The filter to apply on the operation.
|
292
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
293
|
-
# will be added to the HTTP request.
|
294
|
-
#
|
295
|
-
# @return [PolicyDefinitionListResult] which provide lazy access to pages of
|
296
|
-
# the response.
|
297
|
-
#
|
298
|
-
def list_as_lazy(filter = nil, custom_headers = nil)
|
299
|
-
response = list_async(filter, custom_headers).value!
|
300
|
-
unless response.nil?
|
301
|
-
page = response.body
|
302
|
-
page.next_method = Proc.new do |next_page_link|
|
303
|
-
list_next_async(next_page_link, custom_headers)
|
304
|
-
end
|
305
|
-
page
|
306
|
-
end
|
307
|
-
end
|
308
|
-
|
309
|
-
#
|
310
|
-
# Gets all the policy definitions of a subscription.
|
299
|
+
# Gets all the policy definitions for a subscription.
|
311
300
|
#
|
312
301
|
# @param filter [String] The filter to apply on the operation.
|
313
302
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -321,7 +310,7 @@ module Azure::ARM::Policy
|
|
321
310
|
end
|
322
311
|
|
323
312
|
#
|
324
|
-
# Gets all the policy definitions
|
313
|
+
# Gets all the policy definitions for a subscription.
|
325
314
|
#
|
326
315
|
# @param filter [String] The filter to apply on the operation.
|
327
316
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -334,7 +323,7 @@ module Azure::ARM::Policy
|
|
334
323
|
end
|
335
324
|
|
336
325
|
#
|
337
|
-
# Gets all the policy definitions
|
326
|
+
# Gets all the policy definitions for a subscription.
|
338
327
|
#
|
339
328
|
# @param filter [String] The filter to apply on the operation.
|
340
329
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -393,10 +382,10 @@ module Azure::ARM::Policy
|
|
393
382
|
end
|
394
383
|
|
395
384
|
#
|
396
|
-
# Gets all the policy definitions
|
385
|
+
# Gets all the policy definitions for a subscription.
|
397
386
|
#
|
398
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
399
|
-
#
|
387
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
388
|
+
# to List operation.
|
400
389
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
401
390
|
# will be added to the HTTP request.
|
402
391
|
#
|
@@ -408,10 +397,10 @@ module Azure::ARM::Policy
|
|
408
397
|
end
|
409
398
|
|
410
399
|
#
|
411
|
-
# Gets all the policy definitions
|
400
|
+
# Gets all the policy definitions for a subscription.
|
412
401
|
#
|
413
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
414
|
-
#
|
402
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
403
|
+
# to List operation.
|
415
404
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
416
405
|
# will be added to the HTTP request.
|
417
406
|
#
|
@@ -422,10 +411,10 @@ module Azure::ARM::Policy
|
|
422
411
|
end
|
423
412
|
|
424
413
|
#
|
425
|
-
# Gets all the policy definitions
|
414
|
+
# Gets all the policy definitions for a subscription.
|
426
415
|
#
|
427
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
428
|
-
#
|
416
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
417
|
+
# to List operation.
|
429
418
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
430
419
|
# to the HTTP request.
|
431
420
|
#
|
@@ -479,5 +468,26 @@ module Azure::ARM::Policy
|
|
479
468
|
promise.execute
|
480
469
|
end
|
481
470
|
|
471
|
+
#
|
472
|
+
# Gets all the policy definitions for a subscription.
|
473
|
+
#
|
474
|
+
# @param filter [String] The filter to apply on the operation.
|
475
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
476
|
+
# will be added to the HTTP request.
|
477
|
+
#
|
478
|
+
# @return [PolicyDefinitionListResult] which provide lazy access to pages of
|
479
|
+
# the response.
|
480
|
+
#
|
481
|
+
def list_as_lazy(filter = nil, custom_headers = nil)
|
482
|
+
response = list_async(filter, custom_headers).value!
|
483
|
+
unless response.nil?
|
484
|
+
page = response.body
|
485
|
+
page.next_method = Proc.new do |next_page_link|
|
486
|
+
list_next_async(next_page_link, custom_headers)
|
487
|
+
end
|
488
|
+
page
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
482
492
|
end
|
483
493
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Policy
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.8.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.6.
|
75
|
+
version: 0.6.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.6.
|
82
|
+
version: 0.6.2
|
83
83
|
description: Microsoft Azure Resource Policy Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|