google-cloud-asset 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIGRATING.md +17 -1
- data/lib/google/cloud/asset/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29e702811f82a0ea477ba28161c3cf6063d2393a19b25d550b471e6b91a3816c
|
4
|
+
data.tar.gz: 2b8f600325d6ee47f384fb1c0aa0a6abc10fc6aa034e0bc7cfb955e84671c7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a8fd339972e156b34db55f4f8c4a098a2be31edc8521308a7430206432f74b00d81412a3095d67470439a74fd2408b120e57579479cbf3ab1e251ba507c31a
|
7
|
+
data.tar.gz: 32513676f70b8ce758d205059366186e0f4ec401328c5d98358175dd6f59c76552acdb5f98c0abaf6264d871f6a2b2051985927f4026e744989aefc78013e730
|
data/MIGRATING.md
CHANGED
@@ -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
|
-
|
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
|
```
|
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.
|
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-
|
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
|