azure_mgmt_iot_central 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
2
  SHA1:
3
- metadata.gz: 8a1671b5c45d7b9781da5b91f731ea76ac6bed4f
4
- data.tar.gz: c0b6ed983c35249eec7428dda746c71872c76204
3
+ metadata.gz: fb3056287c716f2deb45bbada2e88f285365ad13
4
+ data.tar.gz: 982157f3f54fcc0c60f69406d5346cc1bbe581e1
5
5
  SHA512:
6
- metadata.gz: 0baf3b14f40fd5124437758e6f2e43a6fb6a17fc13e1a084e19ac4b06f89984b164a0ebe35ea2e22abd499f2792f206e544d21abc2affe34eeea36176cac1f15
7
- data.tar.gz: f68e44905fd95b2cdc55ad64af985868bba6786838d29ff188462f7a5961a3518241c40991a73e49218a2c5b378003e414911f2337a5e98682c63ce96c1da1a1
6
+ metadata.gz: 196a22a8f411b02cd030b4c8dfad03ca9f5d870a094011c7425967d5a08cdae9513064214394401b74f89375082a4811d1b3148adced6931d5446819676fa55e
7
+ data.tar.gz: 0aca4f79abcdcd85dec314459230c6c952bcbfede23cd95fb3218f46874e32ebc90736be80663658cd9574a48f7fc7335b54329c64ce96390c3c6ae84a385df7
@@ -128,7 +128,7 @@ module Azure::IotCentral::Mgmt::V2017_07_01_privatepreview
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_iot_central'
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
@@ -28,6 +28,15 @@ module Azure::IotCentral::Mgmt::V2017_07_01_privatepreview
28
28
  attr_accessor :tags
29
29
 
30
30
 
31
+ # @return [String] the name of the resource group of the resource.
32
+ def resource_group
33
+ unless self.id.nil?
34
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
35
+ groups.captures[0].strip if groups
36
+ end
37
+ end
38
+
39
+
31
40
  #
32
41
  # Mapper for Resource class as Ruby Hash.
33
42
  # This will be used for serialization/deserialization.
@@ -128,7 +128,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_iot_central'
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
@@ -28,6 +28,15 @@ module Azure::IotCentral::Mgmt::V2018_09_01
28
28
  attr_accessor :tags
29
29
 
30
30
 
31
+ # @return [String] the name of the resource group of the resource.
32
+ def resource_group
33
+ unless self.id.nil?
34
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
35
+ groups.captures[0].strip if groups
36
+ end
37
+ end
38
+
39
+
31
40
  #
32
41
  # Mapper for Resource class as Ruby Hash.
33
42
  # This will be used for serialization/deserialization.
data/lib/version.rb CHANGED
@@ -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::IotCentral::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_iot_central
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