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.
- checksums.yaml +5 -5
- data/LICENSE.txt +20 -20
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_mode.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_mode.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/identity.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_mode.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/identity.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2019-01-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/error_response.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/identity.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_sku.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/policy_type.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/module_definition.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_assignments.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_definitions.rb +0 -0
- data/lib/2019-06-01/generated/azure_mgmt_policy/policy_set_definitions.rb +0 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy.rb +49 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/enforcement_mode.rb +16 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_additional_info.rb +59 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/error_response.rb +113 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/identity.rb +72 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value.rb +92 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_definitions_value_metadata.rb +76 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_type.rb +21 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/parameter_values_value.rb +47 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment.rb +220 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +98 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb +164 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_group.rb +91 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +98 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition_reference.rb +100 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition.rb +182 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb +99 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_sku.rb +59 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/policy_type.rb +18 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/models/resource_identity_type.rb +16 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_assignments.rb +1902 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_client.rb +139 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_definitions.rb +1391 -0
- data/lib/2019-09-01/generated/azure_mgmt_policy/policy_set_definitions.rb +1414 -0
- data/lib/azure_mgmt_policy.rb +4 -3
- data/lib/module_definition.rb +7 -7
- data/lib/profiles/latest/modules/policy_profile_module.rb +117 -117
- data/lib/profiles/latest/policy_latest_profile_client.rb +40 -40
- data/lib/profiles/latest/policy_module_definition.rb +8 -8
- data/lib/profiles/v2017_03_09/modules/policy_profile_module.rb +83 -83
- data/lib/profiles/v2017_03_09/policy_module_definition.rb +8 -8
- data/lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb +40 -40
- data/lib/profiles/v2018_03_01/modules/policy_profile_module.rb +87 -87
- data/lib/profiles/v2018_03_01/policy_module_definition.rb +8 -8
- data/lib/profiles/v2018_03_01/policy_v2018_03_01_profile_client.rb +40 -40
- data/lib/profiles/v2019_03_01_hybrid/modules/policy_profile_module.rb +87 -87
- data/lib/profiles/v2019_03_01_hybrid/policy_module_definition.rb +8 -8
- data/lib/profiles/v2019_03_01_hybrid/policy_v2019_03_01_hybrid_profile_client.rb +40 -40
- data/lib/version.rb +1 -1
- metadata +28 -3
data/lib/azure_mgmt_policy.rb
CHANGED
@@ -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 '
|
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 '
|
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'
|
data/lib/module_definition.rb
CHANGED
@@ -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
|