google-cloud-webrisk 0.4.1 → 0.6.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: 864bcc254e495e5974401583d794f87e0080f79673500e771e2485662536c171
4
- data.tar.gz: b636359247b516329759811e605a6e3b4eeeab07d3df286c3d44158985c75ee9
3
+ metadata.gz: 0b07ada1b78bc56db6ee4389eb156d1aad2f4e7640200df6ad55bfdd72a2f478
4
+ data.tar.gz: a0112bd9a049ac0a9550794e6dbed4bec311637d3b58fcc8f9c972c8c8db5b1b
5
5
  SHA512:
6
- metadata.gz: ef33868d9087e5c0cc9fea9744458b61267e53015af26da02e569a50d2bc5dad86bc4e19f88be41b61ee6542dd76077b3f72e765b5f331459d06e59149fb6674
7
- data.tar.gz: 12ff506ff4a88af53d1335b07762742cfc77f37d3a13904ba1e1aa88209228115c881732885ce602a48a97a0a6f04dcad4a52339808fd81f4a43fc7f7fa8c85f
6
+ metadata.gz: 84672fd8d2b13586cbb65b08177a890d0978fb1ca53cecba92775184d7adeaba9341f111260a1bfc9833ac62848ce4e8de1cdf18ff2cb4c384470606fd2ffd22
7
+ data.tar.gz: 8f2c25f32dece08b526f1eb4d66f06b76a10777a6b0f276220b55776fc36cd4ab1bbec6d056ac1f079262833abfbd1492ed1ecfa2ce7e4b05a2ec2a63eeb8de7
data/AUTHENTICATION.md CHANGED
@@ -95,7 +95,8 @@ client = Google::Cloud::Webrisk.new
95
95
 
96
96
  ### Configuration
97
97
 
98
- The **Project ID** and **Credentials JSON** can be configured instead of placing them in environment variables or providing them as arguments.
98
+ The **Project ID** and the path to the **Credentials JSON** file can be configured
99
+ instead of placing them in environment variables or providing them as arguments.
99
100
 
100
101
  ```ruby
101
102
  require "google/cloud/webrisk"
@@ -170,8 +171,3 @@ Developers service account.
170
171
 
171
172
  The key file you download will be used by this library to authenticate API
172
173
  requests and should be stored in a secure location.
173
-
174
- ## Troubleshooting
175
-
176
- If you're having trouble authenticating you can ask for help by following the
177
- {file:TROUBLESHOOTING.md Troubleshooting Guide}.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Apache License
1
+ Apache License
2
2
  Version 2.0, January 2004
3
3
  https://www.apache.org/licenses/
4
4
 
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # Ruby Client for Web Risk API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Web Risk API
2
+
3
+ **This library is deprecated, and will no longer receive updates. Please use the
4
+ [`google-cloud-web_risk`](https://rubygems.org/gems/google-cloud-web_risk)
5
+ library instead. For detailed information on the differences, see the
6
+ [migration guide](https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html).**
2
7
 
3
8
  [Web Risk API][Product Documentation]:
4
9
 
@@ -24,7 +29,7 @@ $ gem install google-cloud-webrisk
24
29
  to see other available methods on the client.
25
30
  - Read the [Web Risk API Product documentation][Product Documentation]
26
31
  to learn more about the product and see How-to Guides.
27
- - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
32
+ - View this {file:https://github.com/googleapis/google-cloud-ruby/blob/master/README.md repository's main README}
28
33
  to see the full list of Cloud APIs that we cover.
29
34
 
30
35
  [Client Library Documentation]: https://googleapis.dev/ruby/google-cloud-webrisk/latest
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -21,7 +21,12 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Web Risk API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Web Risk API
25
+ #
26
+ # **This library is deprecated, and will no longer receive updates. Please use the
27
+ # [`google-cloud-web_risk`](https://rubygems.org/gems/google-cloud-web_risk)
28
+ # library instead. For detailed information on the differences, see the
29
+ # [migration guide](https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html).**
25
30
  #
26
31
  # [Web Risk API][Product Documentation]:
27
32
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Web Risk API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Web Risk API
25
25
  #
26
26
  # [Web Risk API][Product Documentation]:
27
27
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2019 Google LLC
1
+ # Copyright 2020 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -137,6 +137,9 @@ module Google
137
137
  google_api_client.freeze
138
138
 
139
139
  headers = { :"x-goog-api-client" => google_api_client }
140
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
141
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
142
+ end
140
143
  headers.merge!(metadata) unless metadata.nil?
141
144
  client_config_file = Pathname.new(__dir__).join(
142
145
  "web_risk_service_v1_beta1_client_config.json"
@@ -93,29 +93,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
93
93
  end
94
94
  end
95
95
 
96
- module Google
97
- module Cloud
98
- module Webrisk
99
- module V1beta1
100
- ComputeThreatListDiffRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest").msgclass
101
- ComputeThreatListDiffRequest::Constraints = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints").msgclass
102
- ComputeThreatListDiffResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse").msgclass
103
- ComputeThreatListDiffResponse::Checksum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum").msgclass
104
- ComputeThreatListDiffResponse::ResponseType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType").enummodule
105
- SearchUrisRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisRequest").msgclass
106
- SearchUrisResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisResponse").msgclass
107
- SearchUrisResponse::ThreatUri = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri").msgclass
108
- SearchHashesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesRequest").msgclass
109
- SearchHashesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesResponse").msgclass
110
- SearchHashesResponse::ThreatHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash").msgclass
111
- ThreatEntryAdditions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatEntryAdditions").msgclass
112
- ThreatEntryRemovals = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatEntryRemovals").msgclass
113
- RawIndices = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RawIndices").msgclass
114
- RawHashes = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RawHashes").msgclass
115
- RiceDeltaEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RiceDeltaEncoding").msgclass
116
- ThreatType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatType").enummodule
117
- CompressionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.CompressionType").enummodule
118
- end
119
- end
120
- end
96
+ module Google::Cloud::Webrisk::V1beta1
97
+ ComputeThreatListDiffRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest").msgclass
98
+ ComputeThreatListDiffRequest::Constraints = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints").msgclass
99
+ ComputeThreatListDiffResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse").msgclass
100
+ ComputeThreatListDiffResponse::Checksum = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum").msgclass
101
+ ComputeThreatListDiffResponse::ResponseType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType").enummodule
102
+ SearchUrisRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisRequest").msgclass
103
+ SearchUrisResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisResponse").msgclass
104
+ SearchUrisResponse::ThreatUri = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri").msgclass
105
+ SearchHashesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesRequest").msgclass
106
+ SearchHashesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesResponse").msgclass
107
+ SearchHashesResponse::ThreatHash = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash").msgclass
108
+ ThreatEntryAdditions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatEntryAdditions").msgclass
109
+ ThreatEntryRemovals = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatEntryRemovals").msgclass
110
+ RawIndices = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RawIndices").msgclass
111
+ RawHashes = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RawHashes").msgclass
112
+ RiceDeltaEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.RiceDeltaEncoding").msgclass
113
+ ThreatType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.ThreatType").enummodule
114
+ CompressionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.webrisk.v1beta1.CompressionType").enummodule
121
115
  end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/webrisk/v1beta1/webrisk.proto for package 'google.cloud.webrisk.v1beta1'
2
+ # Source: google/cloud/webrisk/v1beta1/webrisk.proto for package 'Google::Cloud::WebRisk::V1beta1'
3
3
  # Original file comments:
4
4
  # Copyright 2019 Google LLC.
5
5
  #
@@ -21,36 +21,30 @@
21
21
  require 'grpc'
22
22
  require 'google/cloud/webrisk/v1beta1/webrisk_pb'
23
23
 
24
- module Google
25
- module Cloud
26
- module Webrisk
27
- module V1beta1
28
- module WebRiskServiceV1Beta1
29
- # Web Risk v1beta1 API defines an interface to detect malicious URLs on your
30
- # website and in client applications.
31
- class Service
24
+ module Google::Cloud::Webrisk::V1beta1
25
+ module WebRiskServiceV1Beta1
26
+ # Web Risk v1beta1 API defines an interface to detect malicious URLs on your
27
+ # website and in client applications.
28
+ class Service
32
29
 
33
- include GRPC::GenericService
30
+ include GRPC::GenericService
34
31
 
35
- self.marshal_class_method = :encode
36
- self.unmarshal_class_method = :decode
37
- self.service_name = 'google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1'
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1'
38
35
 
39
- # Gets the most recent threat list diffs.
40
- rpc :ComputeThreatListDiff, ComputeThreatListDiffRequest, ComputeThreatListDiffResponse
41
- # This method is used to check whether a URI is on a given threatList.
42
- rpc :SearchUris, SearchUrisRequest, SearchUrisResponse
43
- # Gets the full hashes that match the requested hash prefix.
44
- # This is used after a hash prefix is looked up in a threatList
45
- # and there is a match. The client side threatList only holds partial hashes
46
- # so the client must query this method to determine if there is a full
47
- # hash match of a threat.
48
- rpc :SearchHashes, SearchHashesRequest, SearchHashesResponse
49
- end
50
-
51
- Stub = Service.rpc_stub_class
52
- end
53
- end
36
+ # Gets the most recent threat list diffs.
37
+ rpc :ComputeThreatListDiff, ComputeThreatListDiffRequest, ComputeThreatListDiffResponse
38
+ # This method is used to check whether a URI is on a given threatList.
39
+ rpc :SearchUris, SearchUrisRequest, SearchUrisResponse
40
+ # Gets the full hashes that match the requested hash prefix.
41
+ # This is used after a hash prefix is looked up in a threatList
42
+ # and there is a match. The client side threatList only holds partial hashes
43
+ # so the client must query this method to determine if there is a full
44
+ # hash match of a threat.
45
+ rpc :SearchHashes, SearchHashesRequest, SearchHashesResponse
54
46
  end
47
+
48
+ Stub = Service.rpc_stub_class
55
49
  end
56
50
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Webrisk
19
- VERSION = "0.4.1".freeze
19
+ VERSION = "0.6.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-webrisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.6.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: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '5.10'
73
+ version: '5.14'
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '5.10'
80
+ version: '5.14'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: redcarpet
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,8 @@ dependencies:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0.9'
137
- description: google-cloud-webrisk is the official library for Web Risk API.
137
+ description: This library is deprecated, and will no longer receive updates. Please
138
+ use google-cloud-web_risk instead.
138
139
  email: googleapis-packages@google.com
139
140
  executables: []
140
141
  extensions: []
@@ -158,7 +159,9 @@ homepage: https://github.com/googleapis/googleapis
158
159
  licenses:
159
160
  - Apache-2.0
160
161
  metadata: {}
161
- post_install_message:
162
+ post_install_message: The google-cloud-webrisk library is deprecated. Please use google-cloud-web_risk
163
+ instead. See https://googleapis.dev/ruby/google-cloud-web_risk/latest/file.MIGRATING.html
164
+ for detailed information on the differences.
162
165
  rdoc_options: []
163
166
  require_paths:
164
167
  - lib
@@ -173,8 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
176
  - !ruby/object:Gem::Version
174
177
  version: '0'
175
178
  requirements: []
176
- rubygems_version: 3.0.6
179
+ rubygems_version: 3.2.17
177
180
  signing_key:
178
181
  specification_version: 4
179
- summary: API Client library for Web Risk API
182
+ summary: Obsolete API Client library for Web Risk API
180
183
  test_files: []