azure_mgmt_policy 0.17.6 → 0.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2015-10-01-preview/generated/azure_mgmt_policy.rb +0 -0
  4. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  5. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  6. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  7. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  8. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  9. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb +0 -0
  10. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  11. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
  12. data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  13. data/lib/2016-04-01/generated/azure_mgmt_policy.rb +0 -0
  14. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  15. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  16. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  17. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  18. data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  19. data/lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
  20. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  21. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  22. data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  23. data/lib/2016-12-01/generated/azure_mgmt_policy.rb +0 -0
  24. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  25. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  26. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  27. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  28. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_mode.rb +0 -0
  29. data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  30. data/lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
  31. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  32. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  33. data/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  34. data/lib/2017-06-01-preview/generated/azure_mgmt_policy.rb +0 -0
  35. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb +0 -0
  36. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  37. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  38. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
  39. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
  40. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
  41. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
  42. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  43. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb +0 -0
  44. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  45. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
  46. data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
  47. data/lib/2018-03-01/generated/azure_mgmt_policy.rb +0 -0
  48. data/lib/2018-03-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
  49. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  50. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  51. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  52. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  53. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
  54. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_mode.rb +0 -0
  55. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
  56. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
  57. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
  58. data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  59. data/lib/2018-03-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
  60. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  61. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  62. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  63. data/lib/2018-03-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
  64. data/lib/2018-05-01/generated/azure_mgmt_policy.rb +0 -0
  65. data/lib/2018-05-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
  66. data/lib/2018-05-01/generated/azure_mgmt_policy/models/identity.rb +0 -0
  67. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  68. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  69. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  70. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  71. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
  72. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_mode.rb +0 -0
  73. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
  74. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
  75. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
  76. data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  77. data/lib/2018-05-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +0 -0
  78. data/lib/2018-05-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
  79. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  80. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  81. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  82. data/lib/2018-05-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
  83. data/lib/2019-01-01/generated/azure_mgmt_policy.rb +0 -0
  84. data/lib/2019-01-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
  85. data/lib/2019-01-01/generated/azure_mgmt_policy/models/identity.rb +0 -0
  86. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  87. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  88. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  89. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  90. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
  91. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
  92. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
  93. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
  94. data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  95. data/lib/2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +0 -0
  96. data/lib/2019-01-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
  97. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  98. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  99. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  100. data/lib/2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
  101. data/lib/2019-06-01/generated/azure_mgmt_policy.rb +0 -0
  102. data/lib/2019-06-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +0 -0
  103. data/lib/2019-06-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
  104. data/lib/2019-06-01/generated/azure_mgmt_policy/models/identity.rb +0 -0
  105. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
  106. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
  107. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
  108. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
  109. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
  110. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
  111. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
  112. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
  113. data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
  114. data/lib/2019-06-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +0 -0
  115. data/lib/2019-06-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
  116. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
  117. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
  118. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
  119. data/lib/2019-06-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
  120. data/lib/2019-09-01/generated/azure_mgmt_policy.rb +49 -0
  121. data/lib/2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -0
  122. data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb +59 -0
  123. data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_response.rb +113 -0
  124. data/lib/2019-09-01/generated/azure_mgmt_policy/models/identity.rb +72 -0
  125. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb +92 -0
  126. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb +76 -0
  127. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb +21 -0
  128. data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb +47 -0
  129. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb +220 -0
  130. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
  131. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb +164 -0
  132. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb +91 -0
  133. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
  134. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +100 -0
  135. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +182 -0
  136. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
  137. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
  138. data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb +18 -0
  139. data/lib/2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
  140. data/lib/2019-09-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
  141. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -0
  142. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
  143. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
  144. data/lib/2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
  145. data/lib/azure_mgmt_policy.rb +4 -3
  146. data/lib/module_definition.rb +7 -7
  147. data/lib/profiles/latest/modules/policy_profile_module.rb +117 -117
  148. data/lib/profiles/latest/policy_latest_profile_client.rb +40 -40
  149. data/lib/profiles/latest/policy_module_definition.rb +8 -8
  150. data/lib/profiles/v2017_03_09/modules/policy_profile_module.rb +83 -83
  151. data/lib/profiles/v2017_03_09/policy_module_definition.rb +8 -8
  152. data/lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb +40 -40
  153. data/lib/profiles/v2018_03_01/modules/policy_profile_module.rb +87 -87
  154. data/lib/profiles/v2018_03_01/policy_module_definition.rb +8 -8
  155. data/lib/profiles/v2018_03_01/policy_v2018_03_01_profile_client.rb +40 -40
  156. data/lib/profiles/v2019_03_01_hybrid/modules/policy_profile_module.rb +87 -87
  157. data/lib/profiles/v2019_03_01_hybrid/policy_module_definition.rb +8 -8
  158. data/lib/profiles/v2019_03_01_hybrid/policy_v2019_03_01_hybrid_profile_client.rb +40 -40
  159. data/lib/version.rb +1 -1
  160. metadata +28 -3
@@ -2,14 +2,15 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require '2017-06-01-preview/generated/azure_mgmt_policy'
5
+ require '2015-10-01-preview/generated/azure_mgmt_policy'
6
6
  require '2016-04-01/generated/azure_mgmt_policy'
7
7
  require '2016-12-01/generated/azure_mgmt_policy'
8
+ require '2017-06-01-preview/generated/azure_mgmt_policy'
8
9
  require '2018-03-01/generated/azure_mgmt_policy'
9
- require '2019-01-01/generated/azure_mgmt_policy'
10
10
  require '2018-05-01/generated/azure_mgmt_policy'
11
+ require '2019-01-01/generated/azure_mgmt_policy'
11
12
  require '2019-06-01/generated/azure_mgmt_policy'
12
- require '2015-10-01-preview/generated/azure_mgmt_policy'
13
+ require '2019-09-01/generated/azure_mgmt_policy'
13
14
  require 'profiles/latest/policy_latest_profile_client'
14
15
  require 'profiles/v2017_03_09/policy_v2017_03_09_profile_client'
15
16
  require 'profiles/v2018_03_01/policy_v2018_03_01_profile_client'
@@ -1,7 +1,7 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure end
6
- module Azure::Policy end
7
- module Azure::Policy::Mgmt end
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Policy end
7
+ module Azure::Policy::Mgmt end
@@ -1,117 +1,117 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- require 'azure_mgmt_policy'
6
-
7
- module Azure::Policy::Profiles::Latest
8
- module Mgmt
9
- PolicyAssignments = Azure::Policy::Mgmt::V2019_06_01::PolicyAssignments
10
- PolicyDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicyDefinitions
11
- PolicySetDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicySetDefinitions
12
-
13
- module Models
14
- PolicyDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
15
- PolicySku = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
16
- PolicyDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
17
- PolicyAssignment = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
18
- PolicyDefinitionReference = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
19
- ErrorResponse = Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
20
- PolicySetDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
21
- PolicyAssignmentListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
22
- PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
23
- Identity = Azure::Policy::Mgmt::V2019_06_01::Models::Identity
24
- EnforcementMode = Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
25
- ResourceIdentityType = Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
26
- PolicyType = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
27
- end
28
-
29
- #
30
- # PolicyManagementClass
31
- #
32
- class PolicyManagementClass
33
- attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes
34
-
35
- def initialize(options = {})
36
- if options.is_a?(Hash) && options.length == 0
37
- @options = setup_default_options
38
- else
39
- @options = options
40
- end
41
-
42
- reset!(options)
43
-
44
- @configurable = self
45
- @base_url = options[:base_url].nil? ? nil:options[:base_url]
46
- @options = options[:options].nil? ? nil:options[:options]
47
-
48
- @client_0 = Azure::Policy::Mgmt::V2019_06_01::PolicyClient.new(configurable.credentials, base_url, options)
49
- if(@client_0.respond_to?(:subscription_id))
50
- @client_0.subscription_id = configurable.subscription_id
51
- end
52
- add_telemetry(@client_0)
53
- @policy_assignments = @client_0.policy_assignments
54
- @policy_definitions = @client_0.policy_definitions
55
- @policy_set_definitions = @client_0.policy_set_definitions
56
-
57
- @model_classes = ModelClasses.new
58
- end
59
-
60
- def add_telemetry(client)
61
- profile_information = 'Profiles/Latest/Policy/Mgmt'
62
- client.add_user_agent_information(profile_information)
63
- end
64
-
65
- def method_missing(method, *args)
66
- if @client_0.respond_to?method
67
- @client_0.send(method, *args)
68
- else
69
- super
70
- end
71
- end
72
-
73
- end
74
-
75
- class ModelClasses
76
- def policy_definition
77
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
78
- end
79
- def policy_sku
80
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
81
- end
82
- def policy_definition_list_result
83
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
84
- end
85
- def policy_assignment
86
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
87
- end
88
- def policy_definition_reference
89
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
90
- end
91
- def error_response
92
- Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
93
- end
94
- def policy_set_definition
95
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
96
- end
97
- def policy_assignment_list_result
98
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
99
- end
100
- def policy_set_definition_list_result
101
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
102
- end
103
- def identity
104
- Azure::Policy::Mgmt::V2019_06_01::Models::Identity
105
- end
106
- def enforcement_mode
107
- Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
108
- end
109
- def resource_identity_type
110
- Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
111
- end
112
- def policy_type
113
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
114
- end
115
- end
116
- end
117
- end
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_policy'
6
+
7
+ module Azure::Policy::Profiles::Latest
8
+ module Mgmt
9
+ PolicyAssignments = Azure::Policy::Mgmt::V2019_06_01::PolicyAssignments
10
+ PolicyDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicyDefinitions
11
+ PolicySetDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicySetDefinitions
12
+
13
+ module Models
14
+ PolicyDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
15
+ PolicySku = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
16
+ PolicyDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
17
+ PolicyAssignment = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
18
+ PolicyDefinitionReference = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
19
+ ErrorResponse = Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
20
+ PolicySetDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
21
+ PolicyAssignmentListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
22
+ PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
23
+ Identity = Azure::Policy::Mgmt::V2019_06_01::Models::Identity
24
+ EnforcementMode = Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
25
+ ResourceIdentityType = Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
26
+ PolicyType = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
27
+ end
28
+
29
+ #
30
+ # PolicyManagementClass
31
+ #
32
+ class PolicyManagementClass
33
+ attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes
34
+
35
+ def initialize(options = {})
36
+ if options.is_a?(Hash) && options.length == 0
37
+ @options = setup_default_options
38
+ else
39
+ @options = options
40
+ end
41
+
42
+ reset!(options)
43
+
44
+ @configurable = self
45
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
46
+ @options = options[:options].nil? ? nil:options[:options]
47
+
48
+ @client_0 = Azure::Policy::Mgmt::V2019_06_01::PolicyClient.new(configurable.credentials, base_url, options)
49
+ if(@client_0.respond_to?(:subscription_id))
50
+ @client_0.subscription_id = configurable.subscription_id
51
+ end
52
+ add_telemetry(@client_0)
53
+ @policy_assignments = @client_0.policy_assignments
54
+ @policy_definitions = @client_0.policy_definitions
55
+ @policy_set_definitions = @client_0.policy_set_definitions
56
+
57
+ @model_classes = ModelClasses.new
58
+ end
59
+
60
+ def add_telemetry(client)
61
+ profile_information = 'Profiles/Latest/Policy/Mgmt'
62
+ client.add_user_agent_information(profile_information)
63
+ end
64
+
65
+ def method_missing(method, *args)
66
+ if @client_0.respond_to?method
67
+ @client_0.send(method, *args)
68
+ else
69
+ super
70
+ end
71
+ end
72
+
73
+ end
74
+
75
+ class ModelClasses
76
+ def policy_definition
77
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
78
+ end
79
+ def policy_sku
80
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
81
+ end
82
+ def policy_definition_list_result
83
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
84
+ end
85
+ def policy_assignment
86
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
87
+ end
88
+ def policy_definition_reference
89
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
90
+ end
91
+ def error_response
92
+ Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
93
+ end
94
+ def policy_set_definition
95
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
96
+ end
97
+ def policy_assignment_list_result
98
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
99
+ end
100
+ def policy_set_definition_list_result
101
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
102
+ end
103
+ def identity
104
+ Azure::Policy::Mgmt::V2019_06_01::Models::Identity
105
+ end
106
+ def enforcement_mode
107
+ Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
108
+ end
109
+ def resource_identity_type
110
+ Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
111
+ end
112
+ def policy_type
113
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
114
+ end
115
+ end
116
+ end
117
+ end
@@ -1,40 +1,40 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- require 'profiles/latest/policy_module_definition'
6
- require 'profiles/latest/modules/policy_profile_module'
7
-
8
- module Azure::Policy::Profiles::Latest
9
- module Mgmt
10
- #
11
- # Client class for the Latest profile SDK.
12
- #
13
- class Client < PolicyManagementClass
14
- include MsRestAzure::Common::Configurable
15
-
16
- #
17
- # Initializes a new instance of the Client class.
18
- # @param options [Hash] hash of client options.
19
- # options = {
20
- # tenant_id: 'YOUR TENANT ID',
21
- # client_id: 'YOUR CLIENT ID',
22
- # client_secret: 'YOUR CLIENT SECRET',
23
- # subscription_id: 'YOUR SUBSCRIPTION ID',
24
- # credentials: credentials,
25
- # active_directory_settings: active_directory_settings,
26
- # base_url: 'YOUR BASE URL',
27
- # options: options
28
- # }
29
- # 'credentials' are optional and if not passed in the hash, will be obtained
30
- # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
- #
32
- # Also, base_url, active_directory_settings & options are optional.
33
- #
34
- def initialize(options = {})
35
- super(options)
36
- end
37
-
38
- end
39
- end
40
- end
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/policy_module_definition'
6
+ require 'profiles/latest/modules/policy_profile_module'
7
+
8
+ module Azure::Policy::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < PolicyManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -1,8 +1,8 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure end
6
- module Azure::Policy end
7
- module Azure::Policy::Profiles end
8
- module Azure::Policy::Profiles::Latest end
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Policy end
7
+ module Azure::Policy::Profiles end
8
+ module Azure::Policy::Profiles::Latest end
@@ -1,83 +1,83 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- require 'azure_mgmt_policy'
6
-
7
- module Azure::Policy::Profiles::V2017_03_09
8
- module Mgmt
9
- PolicyAssignments = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyAssignments
10
- PolicyDefinitions = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyDefinitions
11
-
12
- module Models
13
- PolicyAssignment = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment
14
- PolicyDefinition = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinition
15
- PolicyAssignmentListResult = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignmentListResult
16
- PolicyDefinitionListResult = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinitionListResult
17
- PolicyType = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyType
18
- end
19
-
20
- #
21
- # PolicyManagementClass
22
- #
23
- class PolicyManagementClass
24
- attr_reader :policy_assignments, :policy_definitions, :configurable, :base_url, :options, :model_classes
25
-
26
- def initialize(options = {})
27
- if options.is_a?(Hash) && options.length == 0
28
- @options = setup_default_options
29
- else
30
- @options = options
31
- end
32
-
33
- reset!(options)
34
-
35
- @configurable = self
36
- @base_url = options[:base_url].nil? ? nil:options[:base_url]
37
- @options = options[:options].nil? ? nil:options[:options]
38
-
39
- @client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
40
- if(@client_0.respond_to?(:subscription_id))
41
- @client_0.subscription_id = configurable.subscription_id
42
- end
43
- add_telemetry(@client_0)
44
- @policy_assignments = @client_0.policy_assignments
45
- @policy_definitions = @client_0.policy_definitions
46
-
47
- @model_classes = ModelClasses.new
48
- end
49
-
50
- def add_telemetry(client)
51
- profile_information = 'Profiles/V2017_03_09/Policy/Mgmt'
52
- client.add_user_agent_information(profile_information)
53
- end
54
-
55
- def method_missing(method, *args)
56
- if @client_0.respond_to?method
57
- @client_0.send(method, *args)
58
- else
59
- super
60
- end
61
- end
62
-
63
- end
64
-
65
- class ModelClasses
66
- def policy_assignment
67
- Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment
68
- end
69
- def policy_definition
70
- Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinition
71
- end
72
- def policy_assignment_list_result
73
- Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignmentListResult
74
- end
75
- def policy_definition_list_result
76
- Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinitionListResult
77
- end
78
- def policy_type
79
- Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyType
80
- end
81
- end
82
- end
83
- end
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_policy'
6
+
7
+ module Azure::Policy::Profiles::V2017_03_09
8
+ module Mgmt
9
+ PolicyAssignments = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyAssignments
10
+ PolicyDefinitions = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyDefinitions
11
+
12
+ module Models
13
+ PolicyAssignment = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment
14
+ PolicyDefinition = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinition
15
+ PolicyAssignmentListResult = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignmentListResult
16
+ PolicyDefinitionListResult = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinitionListResult
17
+ PolicyType = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyType
18
+ end
19
+
20
+ #
21
+ # PolicyManagementClass
22
+ #
23
+ class PolicyManagementClass
24
+ attr_reader :policy_assignments, :policy_definitions, :configurable, :base_url, :options, :model_classes
25
+
26
+ def initialize(options = {})
27
+ if options.is_a?(Hash) && options.length == 0
28
+ @options = setup_default_options
29
+ else
30
+ @options = options
31
+ end
32
+
33
+ reset!(options)
34
+
35
+ @configurable = self
36
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
37
+ @options = options[:options].nil? ? nil:options[:options]
38
+
39
+ @client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
40
+ if(@client_0.respond_to?(:subscription_id))
41
+ @client_0.subscription_id = configurable.subscription_id
42
+ end
43
+ add_telemetry(@client_0)
44
+ @policy_assignments = @client_0.policy_assignments
45
+ @policy_definitions = @client_0.policy_definitions
46
+
47
+ @model_classes = ModelClasses.new
48
+ end
49
+
50
+ def add_telemetry(client)
51
+ profile_information = 'Profiles/V2017_03_09/Policy/Mgmt'
52
+ client.add_user_agent_information(profile_information)
53
+ end
54
+
55
+ def method_missing(method, *args)
56
+ if @client_0.respond_to?method
57
+ @client_0.send(method, *args)
58
+ else
59
+ super
60
+ end
61
+ end
62
+
63
+ end
64
+
65
+ class ModelClasses
66
+ def policy_assignment
67
+ Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment
68
+ end
69
+ def policy_definition
70
+ Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinition
71
+ end
72
+ def policy_assignment_list_result
73
+ Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignmentListResult
74
+ end
75
+ def policy_definition_list_result
76
+ Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinitionListResult
77
+ end
78
+ def policy_type
79
+ Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyType
80
+ end
81
+ end
82
+ end
83
+ end