azure_mgmt_security 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
- SHA1:
3
- metadata.gz: 1396f9504974f581fd5f7ac0e12eca1b5d07b42d
4
- data.tar.gz: fff87efec2fc7ac9be7af6eca978e516e5a55bb5
2
+ SHA256:
3
+ metadata.gz: 14a8317173c0c93a91f2ab8cf52dc76f28ed8bf427a61d8ec7f706e3b690c917
4
+ data.tar.gz: 80242d13e2aa0cbdddb45f8f51a955b2cea09c5266ddd5610fbf741c638d0bc3
5
5
  SHA512:
6
- metadata.gz: 9f620ed3ae1b9f9050ec0eff77be617ee8738d27afcc883dc64f9fa0e757d89aa8f25f34906645b060572c8030cb2b75a6765a64b2e06b82e747aec13bf04ca9
7
- data.tar.gz: 5d68f4426c4c277e811b4f39c0689780ba8c8a7442108e332847d3b65b48ef8513681236bd1c8d0a95eeab8dd802fe8290111656103eab19d60e90017d1bdd77
6
+ metadata.gz: dac56c1da32af66e14d9eb36d4a04f042fe1a12fc9a3f0d1d146f0411840219c91322c4e6c29ac38453eaf6e4b5f5d697860294b19652cff95f3121e011d82d1
7
+ data.tar.gz: cb5e90a21f9d3bd7574bfccdcbc8717082460aef5f6d0d3cef601555adda3378f1488bc6aaf1e4d1bb61e5787e3e32ab04410b0737aa606fef24e8994062d39c
@@ -22,6 +22,15 @@ module Azure::Security::Mgmt::V2017_08_01_preview
22
22
  attr_accessor :type
23
23
 
24
24
 
25
+ # @return [String] the name of the resource group of the resource.
26
+ def resource_group
27
+ unless self.id.nil?
28
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
29
+ groups.captures[0].strip if groups
30
+ end
31
+ end
32
+
33
+
25
34
  #
26
35
  # Mapper for Resource class as Ruby Hash.
27
36
  # This will be used for serialization/deserialization.
@@ -140,7 +140,7 @@ module Azure::Security::Mgmt::V2017_08_01_preview
140
140
  #
141
141
  def add_telemetry
142
142
  sdk_information = 'azure_mgmt_security'
143
- sdk_information = "#{sdk_information}/0.17.0"
143
+ sdk_information = "#{sdk_information}/0.17.1"
144
144
  add_user_agent_information(sdk_information)
145
145
  end
146
146
  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::Security::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_security
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-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.5.1
145
+ rubygems_version: 2.7.6
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Official Ruby client library to consume Microsoft Azure Security Management