azure_mgmt_policy 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa9377dc0a374ce297b44ec3310bf3a0302afd1e
|
4
|
+
data.tar.gz: 92be88dbf7f93ad7f31e2a57ff24597fd720d340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 585fb123d7fcdf6ec7fa0029375192696f9914b670c37a1d33a08872bd76a7f05cc835c188190836fad437e7bc593d8d7bd3952ed534adca742ef607f049e843
|
7
|
+
data.tar.gz: 77464ff2db8f4d061d30ad68bf0ab38ccc280a9e9a7a09960e675bae2f2748dc8ef5d470453affc55e70599af6d0a92e7a6c2e78279c63771b6ad6db0c6721ef
|
@@ -21,6 +21,13 @@ module Azure::ARM::Policy
|
|
21
21
|
# @return [String] The scope for the policy assignment.
|
22
22
|
attr_accessor :scope
|
23
23
|
|
24
|
+
# @return Required if a parameter is used in policy rule.
|
25
|
+
attr_accessor :parameters
|
26
|
+
|
27
|
+
# @return [String] This message will be part of response in case of
|
28
|
+
# policy violation.
|
29
|
+
attr_accessor :description
|
30
|
+
|
24
31
|
# @return [String] The ID of the policy assignment.
|
25
32
|
attr_accessor :id
|
26
33
|
|
@@ -64,6 +71,20 @@ module Azure::ARM::Policy
|
|
64
71
|
name: 'String'
|
65
72
|
}
|
66
73
|
},
|
74
|
+
parameters: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'properties.parameters',
|
77
|
+
type: {
|
78
|
+
name: 'Object'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
description: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties.description',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
67
88
|
id: {
|
68
89
|
required: false,
|
69
90
|
serialized_name: 'id',
|
@@ -26,6 +26,9 @@ module Azure::ARM::Policy
|
|
26
26
|
# @return The policy rule.
|
27
27
|
attr_accessor :policy_rule
|
28
28
|
|
29
|
+
# @return Required if a parameter is used in policy rule.
|
30
|
+
attr_accessor :parameters
|
31
|
+
|
29
32
|
# @return [String] The ID of the policy definition.
|
30
33
|
attr_accessor :id
|
31
34
|
|
@@ -75,6 +78,13 @@ module Azure::ARM::Policy
|
|
75
78
|
name: 'Object'
|
76
79
|
}
|
77
80
|
},
|
81
|
+
parameters: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties.parameters',
|
84
|
+
type: {
|
85
|
+
name: 'Object'
|
86
|
+
}
|
87
|
+
},
|
78
88
|
id: {
|
79
89
|
required: false,
|
80
90
|
serialized_name: 'id',
|
@@ -46,17 +46,16 @@ module Azure::ARM::Policy
|
|
46
46
|
# @param base_url [String] the base URI of the service.
|
47
47
|
# @param options [Array] filters to be applied to the HTTP requests.
|
48
48
|
#
|
49
|
-
def initialize(credentials, base_url = nil, options = nil)
|
49
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
50
50
|
super(credentials, options)
|
51
51
|
@base_url = base_url || 'https://management.azure.com'
|
52
52
|
|
53
|
-
fail ArgumentError, 'credentials
|
54
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
53
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
55
54
|
@credentials = credentials
|
56
55
|
|
57
56
|
@policy_assignments = PolicyAssignments.new(self)
|
58
57
|
@policy_definitions = PolicyDefinitions.new(self)
|
59
|
-
@api_version = '2016-
|
58
|
+
@api_version = '2016-12-01'
|
60
59
|
@accept_language = 'en-US'
|
61
60
|
@long_running_operation_retry_timeout = 30
|
62
61
|
@generate_client_request_id = true
|
@@ -65,7 +64,7 @@ module Azure::ARM::Policy
|
|
65
64
|
|
66
65
|
#
|
67
66
|
# Makes a request and returns the body of the response.
|
68
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
67
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
69
68
|
# @param path [String] the path, relative to {base_url}.
|
70
69
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
71
70
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -126,7 +125,7 @@ module Azure::ARM::Policy
|
|
126
125
|
def add_telemetry
|
127
126
|
sdk_information = 'azure_mgmt_policy'
|
128
127
|
if defined? Azure::ARM::Policy::VERSION
|
129
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::Policy::VERSION}"
|
128
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Policy::VERSION}"
|
130
129
|
end
|
131
130
|
add_user_agent_information(sdk_information)
|
132
131
|
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.
|
4
|
+
version: 0.9.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:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.7.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.7.0
|
83
83
|
description: Microsoft Azure Resource Policy Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|