azure_mgmt_billing 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: b80d141708a512a75fb2a369dbac0422b476a8ee
4
- data.tar.gz: 7d54cccd848ce29aca050910df66b9e7729b2211
3
+ metadata.gz: 12cbf1219c0bd95bc30031a9999435e6994c7eac
4
+ data.tar.gz: 974a18f14a8b927e8b42ad6254309289d3e9c76a
5
5
  SHA512:
6
- metadata.gz: 1af5089a438712ed839097ba51e54d106158874fbd1d6e6a3965728cefb812e0451c0db5d812225a922ef55b8538d423c009a61573735d2e940e3da6b22c8675
7
- data.tar.gz: 26e116c2be96ceb1899c56330e8ba9fe00e3e98ae023b486b7b9cbef1e6b0890740f836a1bf6113e81572e348f8941c29b5074ee1865f40717146d6111095b3b
6
+ metadata.gz: f3a99faca397e74246828e2330c4b5b463790ecf0fa1401173613c525ab209e80d1fb520f3e20ad73d92f4cfd19ac7fb8223762bb84836fdde946e1d40848130
7
+ data.tar.gz: a4e12fe4a7b6d9682820b73ca794f313f24d2673b46618e89e53e3c7f82d790ab0a8e8cd2b0d8801b894be91a8ded92414c7e55117c4c7b31e96d999c74bdee8
@@ -129,7 +129,7 @@ module Azure::Billing::Mgmt::V2017_02_27_preview
129
129
  #
130
130
  def add_telemetry
131
131
  sdk_information = 'azure_mgmt_billing'
132
- sdk_information = "#{sdk_information}/0.17.0"
132
+ sdk_information = "#{sdk_information}/0.17.1"
133
133
  add_user_agent_information(sdk_information)
134
134
  end
135
135
  end
@@ -22,6 +22,15 @@ module Azure::Billing::Mgmt::V2017_02_27_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.
@@ -133,7 +133,7 @@ module Azure::Billing::Mgmt::V2017_04_24_preview
133
133
  #
134
134
  def add_telemetry
135
135
  sdk_information = 'azure_mgmt_billing'
136
- sdk_information = "#{sdk_information}/0.17.0"
136
+ sdk_information = "#{sdk_information}/0.17.1"
137
137
  add_user_agent_information(sdk_information)
138
138
  end
139
139
  end
@@ -22,6 +22,15 @@ module Azure::Billing::Mgmt::V2017_04_24_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.
@@ -137,7 +137,7 @@ module Azure::Billing::Mgmt::V2018_03_01_preview
137
137
  #
138
138
  def add_telemetry
139
139
  sdk_information = 'azure_mgmt_billing'
140
- sdk_information = "#{sdk_information}/0.17.0"
140
+ sdk_information = "#{sdk_information}/0.17.1"
141
141
  add_user_agent_information(sdk_information)
142
142
  end
143
143
  end
@@ -22,6 +22,15 @@ module Azure::Billing::Mgmt::V2018_03_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.
@@ -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::Billing::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_billing
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