google-cloud-asset 1.0.1 → 1.0.2
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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/MIGRATING.md +5 -5
- data/lib/google-cloud-asset.rb +1 -1
- data/lib/google/cloud/asset.rb +18 -13
- data/lib/google/cloud/asset/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8da15ab8be4f6216d68c64f5a3a68c06d4697b423e83bcb9de45f4042a7e2e23
|
4
|
+
data.tar.gz: b81753e643df39e3631cc037c4772b9a3c58bebeb5dc9fc54634c9cdf9d0ff97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43ce8138ed4cf94514705432c2ccdfd108f708adc4b4dba7df0bb252a94be1d5d948558be39e3ea0f69ece729d8b877fa563b165a1afe9a4a24b03ec3e6b6be8
|
7
|
+
data.tar.gz: 0262abb2047d3afa99d9eb0fdd51c6ead8ce0748aa53d20c32bfbae5859c821757e233061e21c064ab69f96945f2873e9f3e9b23bb84eef324668bcc3d712d12
|
data/AUTHENTICATION.md
CHANGED
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-asset
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
|
67
|
+
`::Google::Cloud::Asset::V1::AssetService::Credentials`):
|
68
68
|
|
69
69
|
1. `ASSET_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `ASSET_KEYFILE` - Path to JSON file, or JSON contents
|
data/MIGRATING.md
CHANGED
@@ -74,7 +74,7 @@ timeout for all Asset V1 clients:
|
|
74
74
|
```
|
75
75
|
Google::Cloud::Asset::V1::AssetService::Client.configure do |config|
|
76
76
|
config.credentials = "/path/to/credentials.json"
|
77
|
-
config.timeout =
|
77
|
+
config.timeout = 10.0
|
78
78
|
end
|
79
79
|
```
|
80
80
|
|
@@ -83,7 +83,7 @@ timeout for the `create_feed` call:
|
|
83
83
|
|
84
84
|
```
|
85
85
|
Google::Cloud::Asset::V1::AssetService::Client.configure do |config|
|
86
|
-
config.rpcs.create_feed.timeout =
|
86
|
+
config.rpcs.create_feed.timeout = 20.0
|
87
87
|
end
|
88
88
|
```
|
89
89
|
|
@@ -93,7 +93,7 @@ services globally:
|
|
93
93
|
```
|
94
94
|
Google::Cloud::Asset.configure do |config|
|
95
95
|
config.credentials = "/path/to/credentials.json"
|
96
|
-
config.timeout =
|
96
|
+
config.timeout = 10.0
|
97
97
|
end
|
98
98
|
```
|
99
99
|
|
@@ -181,7 +181,7 @@ client = Google::Cloud::Asset.new
|
|
181
181
|
|
182
182
|
name = "projects/my-project/feeds/my-feed"
|
183
183
|
|
184
|
-
options = Google::Gax::CallOptions.new timeout:
|
184
|
+
options = Google::Gax::CallOptions.new timeout: 10.0
|
185
185
|
|
186
186
|
response = client.get_feed name, options: options
|
187
187
|
```
|
@@ -194,7 +194,7 @@ name = "projects/my-project/feeds/my-feed"
|
|
194
194
|
|
195
195
|
# Use a hash to wrap the normal call arguments (or pass a request object), and
|
196
196
|
# then add further keyword arguments for the call options.
|
197
|
-
response = client.get_feed({ name: name }, timeout:
|
197
|
+
response = client.get_feed({ name: name }, timeout: 10.0)
|
198
198
|
```
|
199
199
|
|
200
200
|
### Resource Path Helpers
|
data/lib/google-cloud-asset.rb
CHANGED
data/lib/google/cloud/asset.rb
CHANGED
@@ -16,21 +16,26 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
+
# Require this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
19
23
|
require "google/cloud/asset/version"
|
24
|
+
|
20
25
|
require "googleauth"
|
21
26
|
gem "google-cloud-core"
|
22
|
-
require "google/cloud" unless defined? Google::Cloud.new
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
23
28
|
require "google/cloud/config"
|
24
29
|
|
25
30
|
# Set the default configuration
|
26
|
-
Google::Cloud.configure.add_config! :asset do |config|
|
27
|
-
config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
|
28
|
-
config.add_field! :lib_name, nil, match: String
|
29
|
-
config.add_field! :lib_version, nil, match: String
|
30
|
-
config.add_field! :interceptors, nil, match: Array
|
31
|
-
config.add_field! :timeout, nil, match: Numeric
|
32
|
-
config.add_field! :metadata, nil, match: Hash
|
33
|
-
config.add_field! :retry_policy, nil, match: [Hash, Proc]
|
31
|
+
::Google::Cloud.configure.add_config! :asset do |config|
|
32
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
33
|
+
config.add_field! :lib_name, nil, match: ::String
|
34
|
+
config.add_field! :lib_version, nil, match: ::String
|
35
|
+
config.add_field! :interceptors, nil, match: ::Array
|
36
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
37
|
+
config.add_field! :metadata, nil, match: ::Hash
|
38
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
34
39
|
end
|
35
40
|
|
36
41
|
module Google
|
@@ -51,7 +56,7 @@ module Google
|
|
51
56
|
#
|
52
57
|
# Asset service definition.
|
53
58
|
#
|
54
|
-
# @param version [String, Symbol] The API version to connect to. Optional.
|
59
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
55
60
|
# Defaults to `:v1`.
|
56
61
|
# @return [AssetService::Client] A client object for the specified version.
|
57
62
|
#
|
@@ -92,12 +97,12 @@ module Google
|
|
92
97
|
# * `:retry_codes` (*type:* `Array<String>`) -
|
93
98
|
# The error codes that should trigger a retry.
|
94
99
|
#
|
95
|
-
# @return [Google::Cloud::Config] The default configuration used by this library
|
100
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
96
101
|
#
|
97
102
|
def self.configure
|
98
|
-
yield Google::Cloud.configure.asset if block_given?
|
103
|
+
yield ::Google::Cloud.configure.asset if block_given?
|
99
104
|
|
100
|
-
Google::Cloud.configure.asset
|
105
|
+
::Google::Cloud.configure.asset
|
101
106
|
end
|
102
107
|
end
|
103
108
|
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.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '5.
|
89
|
+
version: '5.14'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '5.
|
96
|
+
version: '5.14'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest-autotest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '5.2'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '12.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '12.0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: redcarpet
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|