azure_mgmt_relay 0.17.0 → 0.17.1

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
- SHA1:
3
- metadata.gz: 55fdb170202c0169e0b0f6ac36f597158b8bdb77
4
- data.tar.gz: f31fe6f38c78ce494bd3edb588daf0ef525a7036
2
+ SHA256:
3
+ metadata.gz: 1769243dec7669ec9111f3aa51f4c737c8e3ecc6af438178629bd4d1a401e6c3
4
+ data.tar.gz: 588ea59a9eb6e2860e2944b3d662140582c87c1a9bd750f55ba5c6992434af33
5
5
  SHA512:
6
- metadata.gz: e9c78fb1fbac911dad23924643d0ad3ccb2d95f31910e2618e0f42c684f4a098f5996cf8cae8ee723fe200db05b0e745c1427b69a497ca9f3fb4b49d4cebf75f
7
- data.tar.gz: 4678ef0ab0d3ffeed121d89c8910bc3423fad3bf1a03d7764fc90fd361ba1b82181d8166ba7f9d49c5c551634a334bf02f67286715ed4777ae7eaea47994c87c
6
+ metadata.gz: 5bcc0c13c32eb2404d4cc68d1d93dc089a57ef86d2223e5a6e54a2d3ab5600018876fb4d0a8e79bd76e07caebccc4bb4bb2d452cce77d837ddda27ae7d106e1a
7
+ data.tar.gz: 490677dde9ac56e50ad9e7d490e14d9b9f0a1e2df384de9d5392267143f58eca32d543d91261c92a2de5dbf72f34780c10341bd9a10da79662489a1e9e10ac8c
@@ -22,6 +22,15 @@ module Azure::Relay::Mgmt::V2016_07_01
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.
@@ -138,7 +138,7 @@ module Azure::Relay::Mgmt::V2016_07_01
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_relay'
141
- sdk_information = "#{sdk_information}/0.17.0"
141
+ sdk_information = "#{sdk_information}/0.17.1"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  end
@@ -22,6 +22,15 @@ module Azure::Relay::Mgmt::V2017_04_01
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.
@@ -138,7 +138,7 @@ module Azure::Relay::Mgmt::V2017_04_01
138
138
  #
139
139
  def add_telemetry
140
140
  sdk_information = 'azure_mgmt_relay'
141
- sdk_information = "#{sdk_information}/0.17.0"
141
+ sdk_information = "#{sdk_information}/0.17.1"
142
142
  add_user_agent_information(sdk_information)
143
143
  end
144
144
  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::Relay::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_relay
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
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.5.1
186
+ rubygems_version: 2.7.6
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Official Ruby client library to consume Microsoft Azure Relay.