google-cloud-asset 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: b1326f3bb22f3ef57697020d4f2be2fc411c036b12746b90b88c9e91b531f0d1
4
- data.tar.gz: a49e38dd8b599b7dc54cd9652fc4e5d824437c3db24eeaa999ed5d6072cb38df
3
+ metadata.gz: 29e702811f82a0ea477ba28161c3cf6063d2393a19b25d550b471e6b91a3816c
4
+ data.tar.gz: 2b8f600325d6ee47f384fb1c0aa0a6abc10fc6aa034e0bc7cfb955e84671c7c9
5
5
  SHA512:
6
- metadata.gz: '029240682af7151bf6e3e9cfe249bb6b2e13e817c56389bb91abc2800d87d3e5d4e81ebce3779d2ef67b9e14f7196ed3fd81437ad1a2d6c2cba718f165245aab'
7
- data.tar.gz: 3b8147d31606ade4c5ea06879758b27a0bc45cf85694a92816aad49b84e500f2b6e1486ac054abec913e4d2356f32ed4c04755872ded0fcd6fe8ee60bfb999ce
6
+ metadata.gz: 34a8fd339972e156b34db55f4f8c4a098a2be31edc8521308a7430206432f74b00d81412a3095d67470439a74fd2408b120e57579479cbf3ab1e251ba507c31a
7
+ data.tar.gz: 32513676f70b8ce758d205059366186e0f4ec401328c5d98358175dd6f59c76552acdb5f98c0abaf6264d871f6a2b2051985927f4026e744989aefc78013e730
@@ -234,7 +234,23 @@ name = client.feed_path project: "my-project", feed: "my-feed"
234
234
  response = client.get_feed name: name
235
235
  ```
236
236
 
237
- In the 1.0 client, you can also use the paths module as a convenience module.
237
+ Because helpers take keyword arguments, some can now generate several different
238
+ variations on the path that were not available under earlier versions of the
239
+ library. For example, `feed_path` can generate paths with either a folder or
240
+ organziation as the parent resource.
241
+
242
+ New:
243
+ ```
244
+ client = Google::Cloud::Asset.asset_service
245
+
246
+ # Create paths with different parent resource types
247
+ name2 = client.feed_path folder: "my-folder", feed: "my-feed"
248
+ # => "folders/my-folder/feeds/my-feed"
249
+ name3 = client.feed_path organization: "my-org", feed: "my-feed"
250
+ # => "organizations/my-org/feeds/my-feed"
251
+ ```
252
+
253
+ Finally, in the 1.0 client, you can also use the paths module as a convenience module.
238
254
 
239
255
  New:
240
256
  ```
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Asset
19
- VERSION = "1.0.0".freeze
19
+ VERSION = "1.0.1".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-16 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core