google-cloud-recommender-v1 0.10.0 → 0.12.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 +6 -6
- data/lib/google/cloud/recommender/v1/recommender/client.rb +8 -12
- data/lib/google/cloud/recommender/v1/recommender/rest/client.rb +1324 -0
- data/lib/google/cloud/recommender/v1/recommender/rest/service_stub.rb +972 -0
- data/lib/google/cloud/recommender/v1/recommender/rest.rb +55 -0
- data/lib/google/cloud/recommender/v1/recommender.rb +7 -1
- data/lib/google/cloud/recommender/v1/rest.rb +37 -0
- data/lib/google/cloud/recommender/v1/version.rb +1 -1
- data/lib/google/cloud/recommender/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- metadata +18 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea5701092e7b367aa20ae5ae3c2b099dc0f8d29c6dc3590a7d100fc8939b602
|
4
|
+
data.tar.gz: f2f473f478a8eb6c479c2e42a2bc38f378d4196ba66b8e04e8c774171adca64a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f823ce69fa1786994ef7eca91f4b4fbd0203571f795808e1653e5e63e5a65c4d14706e589d6e0d211afb2f4542330bb975204960efcf6e214aa6b5211fec99c
|
7
|
+
data.tar.gz: 7ef6efeb64b14189e8324b2a10a73dd2eb659098f8715daf8cfbbefa6b68608bd39314062df03a3121e27bf39a3aa46e1714e63b03bf4d1bb97332c14768bb6b
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -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.
|
@@ -76,14 +76,14 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
83
|
-
in security maintenance, and not end of life.
|
84
|
-
|
85
|
-
|
86
|
-
|
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.
|
87
87
|
|
88
88
|
## Which client should I use?
|
89
89
|
|
@@ -264,13 +264,11 @@ module Google
|
|
264
264
|
# # Call the list_insights method.
|
265
265
|
# result = client.list_insights request
|
266
266
|
#
|
267
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
268
|
-
# #
|
269
|
-
#
|
270
|
-
# # methods are also available for managing paging directly.
|
271
|
-
# result.each do |response|
|
267
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
268
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
269
|
+
# result.each do |item|
|
272
270
|
# # Each element is of type ::Google::Cloud::Recommender::V1::Insight.
|
273
|
-
# p
|
271
|
+
# p item
|
274
272
|
# end
|
275
273
|
#
|
276
274
|
def list_insights request, options = nil
|
@@ -585,13 +583,11 @@ module Google
|
|
585
583
|
# # Call the list_recommendations method.
|
586
584
|
# result = client.list_recommendations request
|
587
585
|
#
|
588
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
589
|
-
# #
|
590
|
-
#
|
591
|
-
# # methods are also available for managing paging directly.
|
592
|
-
# result.each do |response|
|
586
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
587
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
588
|
+
# result.each do |item|
|
593
589
|
# # Each element is of type ::Google::Cloud::Recommender::V1::Recommendation.
|
594
|
-
# p
|
590
|
+
# p item
|
595
591
|
# end
|
596
592
|
#
|
597
593
|
def list_recommendations request, options = nil
|