azure_mgmt_policy 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-01-preview/generated/azure_mgmt_policy.rb +34 -0
  3. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +94 -0
  4. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +94 -0
  5. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb +98 -0
  6. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +94 -0
  7. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
  8. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -0
  9. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +1318 -0
  10. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +133 -0
  11. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +492 -0
  12. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/version.rb +8 -0
  13. data/lib/2016-04-01/generated/azure_mgmt_policy.rb +34 -0
  14. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb +94 -0
  15. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/models/policy_assignment_list_result.rb +1 -1
  16. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb +98 -0
  17. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/models/policy_definition_list_result.rb +1 -1
  18. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/models/policy_type.rb +1 -1
  19. data/lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
  20. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +1318 -0
  21. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/policy_client.rb +7 -7
  22. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +492 -0
  23. data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/version.rb +2 -2
  24. data/lib/2016-12-01/generated/azure_mgmt_policy.rb +35 -0
  25. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb +116 -0
  26. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +94 -0
  27. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_policy/models/policy_definition.rb +1 -1
  28. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +94 -0
  29. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_policy/models/policy_mode.rb +1 -1
  30. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
  31. data/lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
  32. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +1318 -0
  33. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +133 -0
  34. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_policy/policy_definitions.rb +34 -34
  35. data/lib/{generated/azure_mgmt_policy/module_definition.rb → 2016-12-01/generated/azure_mgmt_policy/version.rb} +3 -3
  36. data/lib/2017-06-01-preview/generated/azure_mgmt_policy.rb +37 -0
  37. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/error_response.rb +1 -1
  38. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_assignment.rb +1 -1
  39. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +94 -0
  40. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_definition_reference.rb +1 -1
  41. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_set_definition.rb +1 -1
  42. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_set_definition_list_result.rb +1 -1
  43. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_sku.rb +1 -1
  44. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
  45. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -0
  46. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/policy_assignments.rb +33 -33
  47. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +133 -0
  48. data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/policy_set_definitions.rb +36 -36
  49. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/version.rb +8 -0
  50. data/lib/azure_mgmt_policy.rb +6 -1
  51. data/lib/module_definition.rb +7 -0
  52. data/lib/profiles/common/configurable.rb +73 -0
  53. data/lib/profiles/common/default.rb +68 -0
  54. data/lib/profiles/latest/modules/policy_profile_module.rb +95 -0
  55. data/lib/profiles/latest/policy_latest_profile_client.rb +33 -0
  56. data/lib/profiles/latest/policy_module_definition.rb +9 -0
  57. data/lib/profiles/v2017_03_09/modules/policy_profile_module.rb +64 -0
  58. data/lib/profiles/v2017_03_09/policy_module_definition.rb +9 -0
  59. data/lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb +33 -0
  60. data/lib/version.rb +7 -0
  61. metadata +60 -20
  62. data/lib/generated/azure_mgmt_policy.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce6819415ad27cd3a642c78a7f764ea4d7207ae0
4
- data.tar.gz: cf6f949d7465de7bee2255db86c86b3070edb587
3
+ metadata.gz: b8f3d26a3d7f3e0a63cfd44f4d6499df741e1687
4
+ data.tar.gz: f6e989cb1a508b83bb78e110c2dfc4690f2b72bb
5
5
  SHA512:
6
- metadata.gz: a7715e3d9e624101724e03f131d0d99c9ebed91e918d22f044b443cec62f1d475b8898e030ec431dd142986725ff85935d0b10e483ef87f0e942237e61295ca5
7
- data.tar.gz: 248f8137e558c2d0746edb85b3a391adf3244cd151db6d162ace601382e8d75ddd00be52c32a1449265dc1c6e3a273cc06fe829c2cecb700b186e3f3eef075b8
6
+ metadata.gz: 77b82c66c85d8b20514bdce360fbe78ac4d03e2a9dc154809b5a4595a42628fcc9c35ea0934523a1af9be75ddc44d76b33bd1787200a442509039369cd0d4df3
7
+ data.tar.gz: 88542286877e5a7649c2de4620fd44001b748c5b604e1b504efb775c5bfe8c1cd39832168c5813bc93707dc60f6b744c1b671f75d7e98a075a3d68169048b0c0
@@ -0,0 +1,34 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2015-10-01-preview/generated/azure_mgmt_policy/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Policy::Mgmt::V2015_10_01_preview
23
+ autoload :PolicyAssignments, '2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb'
24
+ autoload :PolicyDefinitions, '2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb'
25
+ autoload :PolicyClient, '2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb'
26
+
27
+ module Models
28
+ autoload :PolicyAssignment, '2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb'
29
+ autoload :PolicyDefinition, '2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb'
30
+ autoload :PolicyAssignmentListResult, '2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb'
31
+ autoload :PolicyDefinitionListResult, '2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb'
32
+ autoload :PolicyType, '2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb'
33
+ end
34
+ end
@@ -0,0 +1,94 @@
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::Policy::Mgmt::V2015_10_01_preview
7
+ module Models
8
+ #
9
+ # The policy assignment.
10
+ #
11
+ class PolicyAssignment
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The display name of the policy assignment.
16
+ attr_accessor :display_name
17
+
18
+ # @return [String] The ID of the policy definition.
19
+ attr_accessor :policy_definition_id
20
+
21
+ # @return [String] The scope for the policy assignment.
22
+ attr_accessor :scope
23
+
24
+ # @return [String] The ID of the policy assignment.
25
+ attr_accessor :id
26
+
27
+ # @return [String] The type of the policy assignment.
28
+ attr_accessor :type
29
+
30
+ # @return [String] The name of the policy assignment.
31
+ attr_accessor :name
32
+
33
+
34
+ #
35
+ # Mapper for PolicyAssignment class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'PolicyAssignment',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'PolicyAssignment',
45
+ model_properties: {
46
+ display_name: {
47
+ required: false,
48
+ serialized_name: 'properties.displayName',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ policy_definition_id: {
54
+ required: false,
55
+ serialized_name: 'properties.policyDefinitionId',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ scope: {
61
+ required: false,
62
+ serialized_name: 'properties.scope',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ id: {
68
+ required: false,
69
+ serialized_name: 'id',
70
+ type: {
71
+ name: 'String'
72
+ }
73
+ },
74
+ type: {
75
+ required: false,
76
+ serialized_name: 'type',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ name: {
82
+ required: false,
83
+ serialized_name: 'name',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,94 @@
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::Policy::Mgmt::V2015_10_01_preview
7
+ module Models
8
+ #
9
+ # List of policy assignments.
10
+ #
11
+ class PolicyAssignmentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<PolicyAssignment>] An array of policy assignments.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to use for getting the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<PolicyAssignment>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [PolicyAssignmentListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for PolicyAssignmentListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'PolicyAssignmentListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'PolicyAssignmentListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'PolicyAssignmentElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'PolicyAssignment'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,98 @@
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::Policy::Mgmt::V2015_10_01_preview
7
+ module Models
8
+ #
9
+ # The policy definition.
10
+ #
11
+ class PolicyDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [PolicyType] The type of policy definition. Possible values are
16
+ # NotSpecified, BuiltIn, and Custom. Possible values include:
17
+ # 'NotSpecified', 'BuiltIn', 'Custom'
18
+ attr_accessor :policy_type
19
+
20
+ # @return [String] The display name of the policy definition.
21
+ attr_accessor :display_name
22
+
23
+ # @return [String] The policy definition description.
24
+ attr_accessor :description
25
+
26
+ # @return The policy rule.
27
+ attr_accessor :policy_rule
28
+
29
+ # @return [String] The ID of the policy definition.
30
+ attr_accessor :id
31
+
32
+ # @return [String] The name of the policy definition. If you do not
33
+ # specify a value for name, the value is inferred from the name value in
34
+ # the request URI.
35
+ attr_accessor :name
36
+
37
+
38
+ #
39
+ # Mapper for PolicyDefinition class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'PolicyDefinition',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'PolicyDefinition',
49
+ model_properties: {
50
+ policy_type: {
51
+ required: false,
52
+ serialized_name: 'properties.policyType',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ display_name: {
58
+ required: false,
59
+ serialized_name: 'properties.displayName',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ description: {
65
+ required: false,
66
+ serialized_name: 'properties.description',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ policy_rule: {
72
+ required: false,
73
+ serialized_name: 'properties.policyRule',
74
+ type: {
75
+ name: 'Object'
76
+ }
77
+ },
78
+ id: {
79
+ required: false,
80
+ serialized_name: 'id',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ name: {
86
+ required: false,
87
+ serialized_name: 'name',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,94 @@
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::Policy::Mgmt::V2015_10_01_preview
7
+ module Models
8
+ #
9
+ # List of policy definitions.
10
+ #
11
+ class PolicyDefinitionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<PolicyDefinition>] An array of policy definitions.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URL to use for getting the next set of results.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<PolicyDefinition>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [PolicyDefinitionListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for PolicyDefinitionListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'PolicyDefinitionListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'PolicyDefinitionListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'PolicyDefinitionElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'PolicyDefinition'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Policy::Mgmt::V2015_10_01_preview
7
+ module Models
8
+ #
9
+ # Defines values for PolicyType
10
+ #
11
+ module PolicyType
12
+ NotSpecified = "NotSpecified"
13
+ BuiltIn = "BuiltIn"
14
+ Custom = "Custom"
15
+ end
16
+ end
17
+ end