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.
- checksums.yaml +4 -4
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy.rb +34 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb +94 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +94 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb +98 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +94 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +1318 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb +133 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +492 -0
- data/lib/2015-10-01-preview/generated/azure_mgmt_policy/version.rb +8 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy.rb +34 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb +94 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/models/policy_assignment_list_result.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb +98 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/models/policy_definition_list_result.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/models/policy_type.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +1318 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/policy_client.rb +7 -7
- data/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +492 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_policy/version.rb +2 -2
- data/lib/2016-12-01/generated/azure_mgmt_policy.rb +35 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb +116 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +94 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_policy/models/policy_definition.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb +94 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_policy/models/policy_mode.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +1318 -0
- data/lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb +133 -0
- data/lib/{generated → 2016-12-01/generated}/azure_mgmt_policy/policy_definitions.rb +34 -34
- data/lib/{generated/azure_mgmt_policy/module_definition.rb → 2016-12-01/generated/azure_mgmt_policy/version.rb} +3 -3
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy.rb +37 -0
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/error_response.rb +1 -1
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_assignment.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb +94 -0
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_definition_reference.rb +1 -1
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_set_definition.rb +1 -1
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_set_definition_list_result.rb +1 -1
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/models/policy_sku.rb +1 -1
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb +17 -0
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb +9 -0
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/policy_assignments.rb +33 -33
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb +133 -0
- data/lib/{generated → 2017-06-01-preview/generated}/azure_mgmt_policy/policy_set_definitions.rb +36 -36
- data/lib/2017-06-01-preview/generated/azure_mgmt_policy/version.rb +8 -0
- data/lib/azure_mgmt_policy.rb +6 -1
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/policy_profile_module.rb +95 -0
- data/lib/profiles/latest/policy_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/policy_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/modules/policy_profile_module.rb +64 -0
- data/lib/profiles/v2017_03_09/policy_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb +33 -0
- data/lib/version.rb +7 -0
- metadata +60 -20
- data/lib/generated/azure_mgmt_policy.rb +0 -41
data/lib/azure_mgmt_policy.rb
CHANGED
@@ -2,4 +2,9 @@
|
|
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 'generated/azure_mgmt_policy'
|
5
|
+
require '2015-10-01-preview/generated/azure_mgmt_policy'
|
6
|
+
require '2016-04-01/generated/azure_mgmt_policy'
|
7
|
+
require '2016-12-01/generated/azure_mgmt_policy'
|
8
|
+
require '2017-06-01-preview/generated/azure_mgmt_policy'
|
9
|
+
require 'profiles/latest/policy_latest_profile_client'
|
10
|
+
require 'profiles/v2017_03_09/policy_v2017_03_09_profile_client'
|
@@ -0,0 +1,73 @@
|
|
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::ARM
|
6
|
+
# The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
|
7
|
+
module Configurable
|
8
|
+
# @return [String] Azure tenant id (also known as domain).
|
9
|
+
attr_accessor :tenant_id
|
10
|
+
|
11
|
+
# @return [String] Azure client id.
|
12
|
+
attr_accessor :client_id
|
13
|
+
|
14
|
+
# @return [String] Azure secret key.
|
15
|
+
attr_accessor :client_secret
|
16
|
+
|
17
|
+
# @return [String] Azure subscription id.
|
18
|
+
attr_accessor :subscription_id
|
19
|
+
|
20
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
+
attr_accessor :active_directory_settings
|
22
|
+
|
23
|
+
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
+
attr_accessor :credentials
|
25
|
+
|
26
|
+
class << self
|
27
|
+
#
|
28
|
+
# List of configurable keys for {Azure::ARM::Client}.
|
29
|
+
# @return [Array] of option keys.
|
30
|
+
#
|
31
|
+
def keys
|
32
|
+
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
# Set configuration options using a block.
|
38
|
+
#
|
39
|
+
def configure
|
40
|
+
yield self
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Resets the configurable options to provided options or defaults.
|
45
|
+
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
+
#
|
47
|
+
def reset!(options = {})
|
48
|
+
Azure::ARM::Configurable.keys.each do |key|
|
49
|
+
default_value = Azure::ARM::Default.options[key]
|
50
|
+
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
+
end
|
52
|
+
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
def config
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
#
|
63
|
+
# configures configurable options to default values
|
64
|
+
#
|
65
|
+
def setup_options
|
66
|
+
opts = {}
|
67
|
+
Azure::ARM::Configurable.keys.map do |key|
|
68
|
+
opts[key] = Azure::ARM::Default.options[key]
|
69
|
+
end
|
70
|
+
opts
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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::ARM
|
6
|
+
# Default configuration options for {Azure::ARM.Client}
|
7
|
+
module Default
|
8
|
+
class << self
|
9
|
+
#
|
10
|
+
# Default Azure Tenant Id.
|
11
|
+
# @return [String] Azure Tenant Id.
|
12
|
+
#
|
13
|
+
def tenant_id
|
14
|
+
ENV['AZURE_TENANT_ID']
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
# Default Azure Client Id.
|
19
|
+
# @return [String] Azure Client Id.
|
20
|
+
#
|
21
|
+
def client_id
|
22
|
+
ENV['AZURE_CLIENT_ID']
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Default Azure Client Secret.
|
27
|
+
# @return [String] Azure Client Secret.
|
28
|
+
#
|
29
|
+
def client_secret
|
30
|
+
ENV['AZURE_CLIENT_SECRET']
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# Default Azure Subscription Id.
|
35
|
+
# @return [String] Azure Subscription Id.
|
36
|
+
#
|
37
|
+
def subscription_id
|
38
|
+
ENV['AZURE_SUBSCRIPTION_ID']
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Default Azure credentials to authorize HTTP requests made by the service client.
|
43
|
+
# @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
|
44
|
+
#
|
45
|
+
def credentials
|
46
|
+
MsRest::TokenCredentials.new(
|
47
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
48
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Default Azure Active Directory Service Settings.
|
53
|
+
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
54
|
+
#
|
55
|
+
def active_directory_settings
|
56
|
+
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Configuration options.
|
61
|
+
# @return [Hash] Configuration options.
|
62
|
+
#
|
63
|
+
def options
|
64
|
+
Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,95 @@
|
|
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::Mgmt
|
8
|
+
PolicyDefinitions = Azure::Policy::Mgmt::V2016_12_01::PolicyDefinitions
|
9
|
+
PolicyAssignments = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyAssignments
|
10
|
+
PolicySetDefinitions = Azure::Policy::Mgmt::V2017_06_01_preview::PolicySetDefinitions
|
11
|
+
|
12
|
+
module Models
|
13
|
+
PolicyDefinition = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition
|
14
|
+
PolicyDefinitionListResult = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinitionListResult
|
15
|
+
PolicyMode = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyMode
|
16
|
+
ErrorResponse = Azure::Policy::Mgmt::V2017_06_01_preview::Models::ErrorResponse
|
17
|
+
PolicyDefinitionReference = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyDefinitionReference
|
18
|
+
PolicyAssignment = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyAssignment
|
19
|
+
PolicySetDefinition = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySetDefinition
|
20
|
+
PolicySku = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySku
|
21
|
+
PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySetDefinitionListResult
|
22
|
+
PolicyAssignmentListResult = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyAssignmentListResult
|
23
|
+
PolicyType = Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyType
|
24
|
+
end
|
25
|
+
|
26
|
+
#
|
27
|
+
# Policy
|
28
|
+
#
|
29
|
+
class PolicyClass
|
30
|
+
attr_reader :policy_definitions, :policy_assignments, :policy_set_definitions, :configurable, :base_url, :options, :model_classes
|
31
|
+
|
32
|
+
def initialize(options = {})
|
33
|
+
if options.is_a?(Hash) && options.length == 0
|
34
|
+
@options = setup_options
|
35
|
+
else
|
36
|
+
@options = options
|
37
|
+
end
|
38
|
+
|
39
|
+
reset!(options)
|
40
|
+
|
41
|
+
@configurable, @base_url, @options = self, nil, nil
|
42
|
+
|
43
|
+
client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options)
|
44
|
+
if(client_0.respond_to?(:subscription_id))
|
45
|
+
client_0.subscription_id = configurable.subscription_id
|
46
|
+
end
|
47
|
+
@policy_definitions = client_0.policy_definitions
|
48
|
+
|
49
|
+
client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
|
50
|
+
if(client_1.respond_to?(:subscription_id))
|
51
|
+
client_1.subscription_id = configurable.subscription_id
|
52
|
+
end
|
53
|
+
@policy_assignments = client_1.policy_assignments
|
54
|
+
@policy_set_definitions = client_1.policy_set_definitions
|
55
|
+
|
56
|
+
@model_classes = ModelClasses.new
|
57
|
+
end
|
58
|
+
|
59
|
+
class ModelClasses
|
60
|
+
def policy_definition
|
61
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition
|
62
|
+
end
|
63
|
+
def policy_definition_list_result
|
64
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinitionListResult
|
65
|
+
end
|
66
|
+
def policy_mode
|
67
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyMode
|
68
|
+
end
|
69
|
+
def error_response
|
70
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::ErrorResponse
|
71
|
+
end
|
72
|
+
def policy_definition_reference
|
73
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyDefinitionReference
|
74
|
+
end
|
75
|
+
def policy_assignment
|
76
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyAssignment
|
77
|
+
end
|
78
|
+
def policy_set_definition
|
79
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySetDefinition
|
80
|
+
end
|
81
|
+
def policy_sku
|
82
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySku
|
83
|
+
end
|
84
|
+
def policy_set_definition_list_result
|
85
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicySetDefinitionListResult
|
86
|
+
end
|
87
|
+
def policy_assignment_list_result
|
88
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyAssignmentListResult
|
89
|
+
end
|
90
|
+
def policy_type
|
91
|
+
Azure::Policy::Mgmt::V2017_06_01_preview::Models::PolicyType
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::Policy::Profiles::Latest::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the Latest profile SDK.
|
13
|
+
#
|
14
|
+
class Client < PolicyClass
|
15
|
+
include Azure::ARM::Configurable
|
16
|
+
|
17
|
+
|
18
|
+
def initialize(options = {})
|
19
|
+
super(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def credentials
|
23
|
+
if @credentials.nil?
|
24
|
+
self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
|
25
|
+
|
26
|
+
@credentials = MsRest::TokenCredentials.new(
|
27
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
28
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
29
|
+
end
|
30
|
+
@credentials
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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
|
9
|
+
module Azure::Policy::Profiles::Latest::Mgmt end
|
@@ -0,0 +1,64 @@
|
|
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::Mgmt
|
8
|
+
PolicyAssignments = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyAssignments
|
9
|
+
PolicyDefinitions = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyDefinitions
|
10
|
+
|
11
|
+
module Models
|
12
|
+
PolicyAssignment = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment
|
13
|
+
PolicyDefinition = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinition
|
14
|
+
PolicyAssignmentListResult = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignmentListResult
|
15
|
+
PolicyDefinitionListResult = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinitionListResult
|
16
|
+
PolicyType = Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyType
|
17
|
+
end
|
18
|
+
|
19
|
+
#
|
20
|
+
# Policy
|
21
|
+
#
|
22
|
+
class PolicyClass
|
23
|
+
attr_reader :policy_assignments, :policy_definitions, :configurable, :base_url, :options, :model_classes
|
24
|
+
|
25
|
+
def initialize(options = {})
|
26
|
+
if options.is_a?(Hash) && options.length == 0
|
27
|
+
@options = setup_options
|
28
|
+
else
|
29
|
+
@options = options
|
30
|
+
end
|
31
|
+
|
32
|
+
reset!(options)
|
33
|
+
|
34
|
+
@configurable, @base_url, @options = self, nil, nil
|
35
|
+
|
36
|
+
client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options)
|
37
|
+
if(client_0.respond_to?(:subscription_id))
|
38
|
+
client_0.subscription_id = configurable.subscription_id
|
39
|
+
end
|
40
|
+
@policy_assignments = client_0.policy_assignments
|
41
|
+
@policy_definitions = client_0.policy_definitions
|
42
|
+
|
43
|
+
@model_classes = ModelClasses.new
|
44
|
+
end
|
45
|
+
|
46
|
+
class ModelClasses
|
47
|
+
def policy_assignment
|
48
|
+
Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment
|
49
|
+
end
|
50
|
+
def policy_definition
|
51
|
+
Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinition
|
52
|
+
end
|
53
|
+
def policy_assignment_list_result
|
54
|
+
Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignmentListResult
|
55
|
+
end
|
56
|
+
def policy_definition_list_result
|
57
|
+
Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyDefinitionListResult
|
58
|
+
end
|
59
|
+
def policy_type
|
60
|
+
Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyType
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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::V2017_03_09 end
|
9
|
+
module Azure::Policy::Profiles::V2017_03_09::Mgmt end
|
@@ -0,0 +1,33 @@
|
|
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/v2017_03_09/policy_module_definition'
|
6
|
+
require 'profiles/v2017_03_09/modules/policy_profile_module'
|
7
|
+
require 'profiles/common/configurable'
|
8
|
+
require 'profiles/common/default'
|
9
|
+
|
10
|
+
module Azure::Policy::Profiles::V2017_03_09::Mgmt
|
11
|
+
#
|
12
|
+
# Client class for the V2017_03_09 profile SDK.
|
13
|
+
#
|
14
|
+
class Client < PolicyClass
|
15
|
+
include Azure::ARM::Configurable
|
16
|
+
|
17
|
+
|
18
|
+
def initialize(options = {})
|
19
|
+
super(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
def credentials
|
23
|
+
if @credentials.nil?
|
24
|
+
self.active_directory_settings ||= Azure::ARM::Default.active_directory_settings
|
25
|
+
|
26
|
+
@credentials = MsRest::TokenCredentials.new(
|
27
|
+
MsRestAzure::ApplicationTokenProvider.new(
|
28
|
+
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
29
|
+
end
|
30
|
+
@credentials
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/version.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,25 +87,65 @@ extensions: []
|
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
89
|
- LICENSE.txt
|
90
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy.rb
|
91
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb
|
92
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb
|
93
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb
|
94
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition_list_result.rb
|
95
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_type.rb
|
96
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/module_definition.rb
|
97
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb
|
98
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_client.rb
|
99
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb
|
100
|
+
- lib/2015-10-01-preview/generated/azure_mgmt_policy/version.rb
|
101
|
+
- lib/2016-04-01/generated/azure_mgmt_policy.rb
|
102
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment.rb
|
103
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb
|
104
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition.rb
|
105
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb
|
106
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/models/policy_type.rb
|
107
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/module_definition.rb
|
108
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb
|
109
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/policy_client.rb
|
110
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb
|
111
|
+
- lib/2016-04-01/generated/azure_mgmt_policy/version.rb
|
112
|
+
- lib/2016-12-01/generated/azure_mgmt_policy.rb
|
113
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment.rb
|
114
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb
|
115
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition.rb
|
116
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_definition_list_result.rb
|
117
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_mode.rb
|
118
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/models/policy_type.rb
|
119
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/module_definition.rb
|
120
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb
|
121
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/policy_client.rb
|
122
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb
|
123
|
+
- lib/2016-12-01/generated/azure_mgmt_policy/version.rb
|
124
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy.rb
|
125
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/error_response.rb
|
126
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment.rb
|
127
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_assignment_list_result.rb
|
128
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_definition_reference.rb
|
129
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition.rb
|
130
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_set_definition_list_result.rb
|
131
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_sku.rb
|
132
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/models/policy_type.rb
|
133
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/module_definition.rb
|
134
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb
|
135
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_client.rb
|
136
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb
|
137
|
+
- lib/2017-06-01-preview/generated/azure_mgmt_policy/version.rb
|
90
138
|
- lib/azure_mgmt_policy.rb
|
91
|
-
- lib/
|
92
|
-
- lib/
|
93
|
-
- lib/
|
94
|
-
- lib/
|
95
|
-
- lib/
|
96
|
-
- lib/
|
97
|
-
- lib/
|
98
|
-
- lib/
|
99
|
-
- lib/
|
100
|
-
- lib/
|
101
|
-
- lib/generated/azure_mgmt_policy/models/policy_sku.rb
|
102
|
-
- lib/generated/azure_mgmt_policy/models/policy_type.rb
|
103
|
-
- lib/generated/azure_mgmt_policy/module_definition.rb
|
104
|
-
- lib/generated/azure_mgmt_policy/policy_assignments.rb
|
105
|
-
- lib/generated/azure_mgmt_policy/policy_client.rb
|
106
|
-
- lib/generated/azure_mgmt_policy/policy_definitions.rb
|
107
|
-
- lib/generated/azure_mgmt_policy/policy_set_definitions.rb
|
108
|
-
- lib/generated/azure_mgmt_policy/version.rb
|
139
|
+
- lib/module_definition.rb
|
140
|
+
- lib/profiles/common/configurable.rb
|
141
|
+
- lib/profiles/common/default.rb
|
142
|
+
- lib/profiles/latest/modules/policy_profile_module.rb
|
143
|
+
- lib/profiles/latest/policy_latest_profile_client.rb
|
144
|
+
- lib/profiles/latest/policy_module_definition.rb
|
145
|
+
- lib/profiles/v2017_03_09/modules/policy_profile_module.rb
|
146
|
+
- lib/profiles/v2017_03_09/policy_module_definition.rb
|
147
|
+
- lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb
|
148
|
+
- lib/version.rb
|
109
149
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
110
150
|
licenses:
|
111
151
|
- MIT
|