google-cloud-ids-v1 0.1.1 → 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 +13 -8
- data/lib/google/cloud/ids/v1/ids/client.rb +12 -14
- data/lib/google/cloud/ids/v1/ids/operations.rb +15 -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 +2 -2
- 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 +8 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +23 -14
- 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
|
|
@@ -37,7 +37,7 @@ request = ::Google::Cloud::IDS::V1::ListEndpointsRequest.new # (request fields a
|
|
37
37
|
response = client.list_endpoints request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-ids-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/intrusion-detection-system/)
|
@@ -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.
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -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
|
@@ -95,6 +95,9 @@ module Google
|
|
95
95
|
channel_args: @config.channel_args,
|
96
96
|
interceptors: @config.interceptors
|
97
97
|
)
|
98
|
+
|
99
|
+
# Used by an LRO wrapper for some methods of this service
|
100
|
+
@operations_client = self
|
98
101
|
end
|
99
102
|
|
100
103
|
# Service calls
|
@@ -155,13 +158,11 @@ module Google
|
|
155
158
|
# # Call the list_operations method.
|
156
159
|
# result = client.list_operations request
|
157
160
|
#
|
158
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
-
# #
|
160
|
-
#
|
161
|
-
# # methods are also available for managing paging directly.
|
162
|
-
# 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|
|
163
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
-
# p
|
165
|
+
# p item
|
165
166
|
# end
|
166
167
|
#
|
167
168
|
def list_operations request, options = nil
|
@@ -250,14 +251,14 @@ module Google
|
|
250
251
|
# # Call the get_operation method.
|
251
252
|
# result = client.get_operation request
|
252
253
|
#
|
253
|
-
# # The returned object is of type Gapic::Operation. You can use
|
254
|
-
# #
|
255
|
-
# #
|
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.
|
256
257
|
# result.wait_until_done! timeout: 60
|
257
258
|
# if result.response?
|
258
259
|
# p result.response
|
259
260
|
# else
|
260
|
-
# puts "
|
261
|
+
# puts "No response received."
|
261
262
|
# end
|
262
263
|
#
|
263
264
|
def get_operation request, options = nil
|
@@ -537,14 +538,14 @@ module Google
|
|
537
538
|
# # Call the wait_operation method.
|
538
539
|
# result = client.wait_operation request
|
539
540
|
#
|
540
|
-
# # The returned object is of type Gapic::Operation. You can use
|
541
|
-
# #
|
542
|
-
# #
|
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.
|
543
544
|
# result.wait_until_done! timeout: 60
|
544
545
|
# if result.response?
|
545
546
|
# p result.response
|
546
547
|
# else
|
547
|
-
# puts "
|
548
|
+
# puts "No response received."
|
548
549
|
# end
|
549
550
|
#
|
550
551
|
def wait_operation request, options = nil
|