azure_mgmt_policy 0.17.3 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_policy/policy_client.rb +1 -1
- data/lib/azure_mgmt_policy.rb +1 -0
- data/lib/profiles/v2019_03_01_hybrid/modules/policy_profile_module.rb +87 -0
- data/lib/profiles/v2019_03_01_hybrid/policy_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/policy_v2019_03_01_hybrid_profile_client.rb +40 -0
- data/lib/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8baee2feedb1f5434d95d1f724b5a26a60799a4d4a7ef1ec5342a8e4933e6ec
|
4
|
+
data.tar.gz: d213081b1995d08784ea8de6b348b87e5e6963e23a840c90e01f3d84c0d41868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1245494a31642a6dd2a1deb08d77f2a3082a568a881fb24889793d6f2b07c95c6796857ce461e038092b7533d4a449f16d8b8c6697b25173facb69d30cdb39d1
|
7
|
+
data.tar.gz: 52a9472d288e83745c28eb68d49ba4ca386915baf8287a6126e4903a3e16d975a900efc7b02bb8e8c31000aa0ded004fc0e9d1a642c6738a2359bafe1f3e01d0
|
@@ -128,7 +128,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview
|
|
128
128
|
#
|
129
129
|
def add_telemetry
|
130
130
|
sdk_information = 'azure_mgmt_policy'
|
131
|
-
sdk_information = "#{sdk_information}/0.17.
|
131
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
132
132
|
add_user_agent_information(sdk_information)
|
133
133
|
end
|
134
134
|
end
|
@@ -128,7 +128,7 @@ module Azure::Policy::Mgmt::V2016_04_01
|
|
128
128
|
#
|
129
129
|
def add_telemetry
|
130
130
|
sdk_information = 'azure_mgmt_policy'
|
131
|
-
sdk_information = "#{sdk_information}/0.17.
|
131
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
132
132
|
add_user_agent_information(sdk_information)
|
133
133
|
end
|
134
134
|
end
|
@@ -128,7 +128,7 @@ module Azure::Policy::Mgmt::V2016_12_01
|
|
128
128
|
#
|
129
129
|
def add_telemetry
|
130
130
|
sdk_information = 'azure_mgmt_policy'
|
131
|
-
sdk_information = "#{sdk_information}/0.17.
|
131
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
132
132
|
add_user_agent_information(sdk_information)
|
133
133
|
end
|
134
134
|
end
|
@@ -128,7 +128,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview
|
|
128
128
|
#
|
129
129
|
def add_telemetry
|
130
130
|
sdk_information = 'azure_mgmt_policy'
|
131
|
-
sdk_information = "#{sdk_information}/0.17.
|
131
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
132
132
|
add_user_agent_information(sdk_information)
|
133
133
|
end
|
134
134
|
end
|
@@ -132,7 +132,7 @@ module Azure::Policy::Mgmt::V2018_03_01
|
|
132
132
|
#
|
133
133
|
def add_telemetry
|
134
134
|
sdk_information = 'azure_mgmt_policy'
|
135
|
-
sdk_information = "#{sdk_information}/0.17.
|
135
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
136
136
|
add_user_agent_information(sdk_information)
|
137
137
|
end
|
138
138
|
end
|
@@ -132,7 +132,7 @@ module Azure::Policy::Mgmt::V2018_05_01
|
|
132
132
|
#
|
133
133
|
def add_telemetry
|
134
134
|
sdk_information = 'azure_mgmt_policy'
|
135
|
-
sdk_information = "#{sdk_information}/0.17.
|
135
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
136
136
|
add_user_agent_information(sdk_information)
|
137
137
|
end
|
138
138
|
end
|
data/lib/azure_mgmt_policy.rb
CHANGED
@@ -10,4 +10,5 @@ require '2017-06-01-preview/generated/azure_mgmt_policy'
|
|
10
10
|
require '2018-05-01/generated/azure_mgmt_policy'
|
11
11
|
require 'profiles/v2017_03_09/policy_v2017_03_09_profile_client'
|
12
12
|
require 'profiles/latest/policy_latest_profile_client'
|
13
|
+
require 'profiles/v2019_03_01_hybrid/policy_v2019_03_01_hybrid_profile_client'
|
13
14
|
require 'profiles/v2018_03_01/policy_v2018_03_01_profile_client'
|
@@ -0,0 +1,87 @@
|
|
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::V2019_03_01_Hybrid
|
8
|
+
module Mgmt
|
9
|
+
PolicyDefinitions = Azure::Policy::Mgmt::V2016_12_01::PolicyDefinitions
|
10
|
+
PolicyAssignments = Azure::Policy::Mgmt::V2016_12_01::PolicyAssignments
|
11
|
+
|
12
|
+
module Models
|
13
|
+
PolicyAssignment = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
|
14
|
+
PolicyDefinition = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition
|
15
|
+
PolicyAssignmentListResult = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignmentListResult
|
16
|
+
PolicyDefinitionListResult = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinitionListResult
|
17
|
+
PolicyType = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyType
|
18
|
+
PolicyMode = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyMode
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# PolicyManagementClass
|
23
|
+
#
|
24
|
+
class PolicyManagementClass
|
25
|
+
attr_reader :policy_definitions, :policy_assignments, :configurable, :base_url, :options, :model_classes
|
26
|
+
|
27
|
+
def initialize(options = {})
|
28
|
+
if options.is_a?(Hash) && options.length == 0
|
29
|
+
@options = setup_default_options
|
30
|
+
else
|
31
|
+
@options = options
|
32
|
+
end
|
33
|
+
|
34
|
+
reset!(options)
|
35
|
+
|
36
|
+
@configurable = self
|
37
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
38
|
+
@options = options[:options].nil? ? nil:options[:options]
|
39
|
+
|
40
|
+
@client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options)
|
41
|
+
if(@client_0.respond_to?(:subscription_id))
|
42
|
+
@client_0.subscription_id = configurable.subscription_id
|
43
|
+
end
|
44
|
+
add_telemetry(@client_0)
|
45
|
+
@policy_definitions = @client_0.policy_definitions
|
46
|
+
@policy_assignments = @client_0.policy_assignments
|
47
|
+
|
48
|
+
@model_classes = ModelClasses.new
|
49
|
+
end
|
50
|
+
|
51
|
+
def add_telemetry(client)
|
52
|
+
profile_information = 'Profiles/V2019_03_01_Hybrid/Policy/Mgmt'
|
53
|
+
client.add_user_agent_information(profile_information)
|
54
|
+
end
|
55
|
+
|
56
|
+
def method_missing(method, *args)
|
57
|
+
if @client_0.respond_to?method
|
58
|
+
@client_0.send(method, *args)
|
59
|
+
else
|
60
|
+
super
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
class ModelClasses
|
67
|
+
def policy_assignment
|
68
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
|
69
|
+
end
|
70
|
+
def policy_definition
|
71
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition
|
72
|
+
end
|
73
|
+
def policy_assignment_list_result
|
74
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignmentListResult
|
75
|
+
end
|
76
|
+
def policy_definition_list_result
|
77
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinitionListResult
|
78
|
+
end
|
79
|
+
def policy_type
|
80
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyType
|
81
|
+
end
|
82
|
+
def policy_mode
|
83
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyMode
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +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::V2019_03_01_Hybrid end
|
@@ -0,0 +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/v2019_03_01_hybrid/policy_module_definition'
|
6
|
+
require 'profiles/v2019_03_01_hybrid/modules/policy_profile_module'
|
7
|
+
|
8
|
+
module Azure::Policy::Profiles::V2019_03_01_Hybrid
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2019_03_01_Hybrid 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
|
data/lib/version.rb
CHANGED
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.17.
|
4
|
+
version: 0.17.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -178,6 +178,9 @@ files:
|
|
178
178
|
- lib/profiles/v2018_03_01/modules/policy_profile_module.rb
|
179
179
|
- lib/profiles/v2018_03_01/policy_module_definition.rb
|
180
180
|
- lib/profiles/v2018_03_01/policy_v2018_03_01_profile_client.rb
|
181
|
+
- lib/profiles/v2019_03_01_hybrid/modules/policy_profile_module.rb
|
182
|
+
- lib/profiles/v2019_03_01_hybrid/policy_module_definition.rb
|
183
|
+
- lib/profiles/v2019_03_01_hybrid/policy_v2019_03_01_hybrid_profile_client.rb
|
181
184
|
- lib/version.rb
|
182
185
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
183
186
|
licenses:
|