azure_mgmt_policy 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17a2ddd5c080a8789f4d32c25811518389e5f57f
4
- data.tar.gz: 86e9be123b5c83be3e47871a5641851ca41449ee
3
+ metadata.gz: 1e26478d2e3801dfac28404d1feed8fe959d92ba
4
+ data.tar.gz: 320c69fbd0f636457c97e9f2627bcf07f19feb13
5
5
  SHA512:
6
- metadata.gz: 42358ce53b2ebddb54ffbc672861afabd18bfd174c281e0ab6a96e6f592efdb65b0f41872eee08f9e3239dc9b3ce5eaf3c8a85457c30e860c789fe4aa3c7d845
7
- data.tar.gz: ce4cb193697fe8767955cc65a3f0333eeba2e8e9867e683f2e094ef57b949069390babfdde4bfbada291510cd618426ef7f8caa341ebb3eb6b642fffab5114b7
6
+ metadata.gz: c59cf455452b111cd160b708737af9f241c6c8e2388c68d84794c15dcc01491913ad4772dd4974eb35ca8c06bbade257de2306ad5c85e693cefd56b68d95f77a
7
+ data.tar.gz: bed1bfd271dad36b1dd6b8b339c4699061f65438cbe1ca068dee5ae93f8d60524922605f038623660bdb3787a4363df2001e6603926372e8a78d26e2043c1b8b
@@ -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.0"
131
+ sdk_information = "#{sdk_information}/0.17.1"
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.0"
131
+ sdk_information = "#{sdk_information}/0.17.1"
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.0"
131
+ sdk_information = "#{sdk_information}/0.17.1"
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.0"
131
+ sdk_information = "#{sdk_information}/0.17.1"
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.0"
135
+ sdk_information = "#{sdk_information}/0.17.1"
136
136
  add_user_agent_information(sdk_information)
137
137
  end
138
138
  end
@@ -9,3 +9,4 @@ require '2016-12-01/generated/azure_mgmt_policy'
9
9
  require '2017-06-01-preview/generated/azure_mgmt_policy'
10
10
  require 'profiles/v2017_03_09/policy_v2017_03_09_profile_client'
11
11
  require 'profiles/latest/policy_latest_profile_client'
12
+ 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::V2018_03_01
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/V2018_03_01/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::V2018_03_01 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/v2018_03_01/policy_module_definition'
6
+ require 'profiles/v2018_03_01/modules/policy_profile_module'
7
+
8
+ module Azure::Policy::Profiles::V2018_03_01
9
+ module Mgmt
10
+ #
11
+ # Client class for the V2018_03_01 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
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Policy::Mgmt
6
- VERSION = '0.17.0'
6
+ VERSION = '0.17.1'
7
7
  end
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.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,6 +156,9 @@ files:
156
156
  - lib/profiles/v2017_03_09/modules/policy_profile_module.rb
157
157
  - lib/profiles/v2017_03_09/policy_module_definition.rb
158
158
  - lib/profiles/v2017_03_09/policy_v2017_03_09_profile_client.rb
159
+ - lib/profiles/v2018_03_01/modules/policy_profile_module.rb
160
+ - lib/profiles/v2018_03_01/policy_module_definition.rb
161
+ - lib/profiles/v2018_03_01/policy_v2018_03_01_profile_client.rb
159
162
  - lib/version.rb
160
163
  homepage: https://aka.ms/azure-sdk-for-ruby
161
164
  licenses: