google-cloud-ids-v1 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/ids/v1/ids/client.rb +12 -14
- data/lib/google/cloud/ids/v1/ids/operations.rb +12 -14
- data/lib/google/cloud/ids/v1/ids/rest/client.rb +633 -0
- data/lib/google/cloud/ids/v1/ids/rest/operations.rb +793 -0
- data/lib/google/cloud/ids/v1/ids/rest/service_stub.rb +285 -0
- data/lib/google/cloud/ids/v1/ids/rest.rb +53 -0
- data/lib/google/cloud/ids/v1/ids.rb +7 -1
- data/lib/google/cloud/ids/v1/ids_pb.rb +0 -1
- data/lib/google/cloud/ids/v1/rest.rb +37 -0
- data/lib/google/cloud/ids/v1/version.rb +1 -1
- data/lib/google/cloud/ids/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +18 -9
- data/proto_docs/google/protobuf/field_mask.rb +0 -229
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a0ef223bf71434790028e92d51cc1ba260cff7ffe235d8fc7f54c249b8c86c
|
4
|
+
data.tar.gz: 6d7bf52832cc8957f0a688d99b4c909aa5a91db8175c9ea8cf8a2759231dc9d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d1950684f8dc9325632c21f1b39d8e2503a1647295e7ef568c106d5f8201ec0dcd522a743cb0d1ee6142bcae62f8ab32aadbadf4cac377aad05d2369dcb1b4
|
7
|
+
data.tar.gz: 36b59be1c5470eef9b90d665f2ea42712bd91d5f444161e1213d42bfe63435849bd2dde0d140681ea3a6f53ddad655b1eb52a1c11fd4e1ba8e079616f1344e6c
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud IDS V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Cloud IDS (Cloud Intrusion Detection System) detects malware, spyware, command-and-control attacks, and other network-based threats. Its security efficacy is industry leading, built with Palo Alto Networks technologies. When you use this product, your organization name and consumption levels will be shared with Palo Alto Networks.
|
4
4
|
|
5
5
|
Cloud IDS is an intrusion detection service that provides threat detection for intrusions, malware, spyware, and command-and-control attacks on your network. Cloud IDS works by creating a Google-managed peered network with mirrored VMs. Traffic in the peered network is mirrored, and then inspected by Palo Alto Networks threat protection technologies to provide advanced threat detection. You can mirror all traffic or you can mirror filtered traffic, based on protocol, IP address range, or ingress and egress.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -227,13 +227,11 @@ module Google
|
|
227
227
|
# # Call the list_endpoints method.
|
228
228
|
# result = client.list_endpoints request
|
229
229
|
#
|
230
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
231
|
-
# #
|
232
|
-
#
|
233
|
-
# # methods are also available for managing paging directly.
|
234
|
-
# result.each do |response|
|
230
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
231
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
232
|
+
# result.each do |item|
|
235
233
|
# # Each element is of type ::Google::Cloud::IDS::V1::Endpoint.
|
236
|
-
# p
|
234
|
+
# p item
|
237
235
|
# end
|
238
236
|
#
|
239
237
|
def list_endpoints request, options = nil
|
@@ -428,14 +426,14 @@ module Google
|
|
428
426
|
# # Call the create_endpoint method.
|
429
427
|
# result = client.create_endpoint request
|
430
428
|
#
|
431
|
-
# # The returned object is of type Gapic::Operation. You can use
|
432
|
-
# #
|
433
|
-
# #
|
429
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
430
|
+
# # check the status of an operation, cancel it, or wait for results.
|
431
|
+
# # Here is how to wait for a response.
|
434
432
|
# result.wait_until_done! timeout: 60
|
435
433
|
# if result.response?
|
436
434
|
# p result.response
|
437
435
|
# else
|
438
|
-
# puts "
|
436
|
+
# puts "No response received."
|
439
437
|
# end
|
440
438
|
#
|
441
439
|
def create_endpoint request, options = nil
|
@@ -535,14 +533,14 @@ module Google
|
|
535
533
|
# # Call the delete_endpoint method.
|
536
534
|
# result = client.delete_endpoint request
|
537
535
|
#
|
538
|
-
# # The returned object is of type Gapic::Operation. You can use
|
539
|
-
# #
|
540
|
-
# #
|
536
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
537
|
+
# # check the status of an operation, cancel it, or wait for results.
|
538
|
+
# # Here is how to wait for a response.
|
541
539
|
# result.wait_until_done! timeout: 60
|
542
540
|
# if result.response?
|
543
541
|
# p result.response
|
544
542
|
# else
|
545
|
-
# puts "
|
543
|
+
# puts "No response received."
|
546
544
|
# end
|
547
545
|
#
|
548
546
|
def delete_endpoint request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|