google-cloud-recommender-v1 0.8.0 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/recommender/v1/insight_pb.rb +2 -2
- data/lib/google/cloud/recommender/v1/recommendation_pb.rb +2 -2
- data/lib/google/cloud/recommender/v1/recommender/client.rb +104 -91
- data/lib/google/cloud/recommender/v1/recommender_service_pb.rb +2 -2
- data/lib/google/cloud/recommender/v1/recommender_service_services_pb.rb +1 -1
- data/lib/google/cloud/recommender/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/recommender/v1/recommendation.rb +15 -6
- data/proto_docs/google/cloud/recommender/v1/recommender_service.rb +6 -6
- data/proto_docs/google/type/money.rb +1 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccbc6eb90c4dbaceb1a34310e189ad968213ba4399dab10d2b3a04483b74ae21
|
4
|
+
data.tar.gz: cc456df40e2987509f3b94134f425c8249864e7508bd23448cdae0d13357ee80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e308c4383e767085449ae835fdd62faf15761e4221f1f82a7fd2327333f00727cb6b14275e01c0a95d0a4f4264c029added016fdbedd436d58f2dd5a1b2a573d
|
7
|
+
data.tar.gz: 3873a0a480ff1d304ba0be2bd537b188b0ea0ff04769294c4da98cad9e847bb3efc79fd314975176833b603fa5e79b9851296d1b2337c0ca8bff764a9117826d
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-recommender-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Recommender::V1::Recommender::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `RECOMMENDER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `RECOMMENDER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/recommender/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/recommender/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/recommender/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/recommender/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Recommender::V1::ListInsightsRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_insights request
|
38
38
|
```
|
39
39
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/recommender/v1/insight.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/protobuf/duration_pb'
|
8
6
|
require 'google/protobuf/struct_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/recommender/v1/insight.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.recommender.v1.Insight" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/recommender/v1/recommendation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/protobuf/duration_pb'
|
8
6
|
require 'google/protobuf/struct_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/type/money_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/recommender/v1/recommendation.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.recommender.v1.Recommendation" do
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Recommender::V1::Recommender::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all Recommender clients
|
50
|
+
# ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -70,36 +69,24 @@ module Google
|
|
70
69
|
|
71
70
|
default_config.rpcs.list_insights.timeout = 60.0
|
72
71
|
default_config.rpcs.list_insights.retry_policy = {
|
73
|
-
initial_delay: 0.1,
|
74
|
-
max_delay: 60.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [4, 14]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
77
73
|
}
|
78
74
|
|
79
75
|
default_config.rpcs.get_insight.timeout = 60.0
|
80
76
|
default_config.rpcs.get_insight.retry_policy = {
|
81
|
-
initial_delay: 0.1,
|
82
|
-
max_delay: 60.0,
|
83
|
-
multiplier: 1.3,
|
84
|
-
retry_codes: [4, 14]
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
85
78
|
}
|
86
79
|
|
87
80
|
default_config.rpcs.mark_insight_accepted.timeout = 60.0
|
88
81
|
|
89
82
|
default_config.rpcs.list_recommendations.timeout = 60.0
|
90
83
|
default_config.rpcs.list_recommendations.retry_policy = {
|
91
|
-
initial_delay: 0.1,
|
92
|
-
max_delay: 60.0,
|
93
|
-
multiplier: 1.3,
|
94
|
-
retry_codes: [4, 14]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
95
85
|
}
|
96
86
|
|
97
87
|
default_config.rpcs.get_recommendation.timeout = 60.0
|
98
88
|
default_config.rpcs.get_recommendation.retry_policy = {
|
99
|
-
initial_delay: 0.1,
|
100
|
-
max_delay: 60.0,
|
101
|
-
multiplier: 1.3,
|
102
|
-
retry_codes: [4, 14]
|
89
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
103
90
|
}
|
104
91
|
|
105
92
|
default_config.rpcs.mark_recommendation_claimed.timeout = 60.0
|
@@ -137,19 +124,15 @@ module Google
|
|
137
124
|
##
|
138
125
|
# Create a new Recommender client object.
|
139
126
|
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
# To create a new Recommender client with the default
|
143
|
-
# configuration:
|
127
|
+
# @example
|
144
128
|
#
|
145
|
-
#
|
129
|
+
# # Create a client using the default configuration
|
130
|
+
# client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
|
146
131
|
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
# config.timeout = 10.0
|
152
|
-
# end
|
132
|
+
# # Create a client using a custom configuration
|
133
|
+
# client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
|
134
|
+
# config.timeout = 10.0
|
135
|
+
# end
|
153
136
|
#
|
154
137
|
# @yield [config] Configure the Recommender client.
|
155
138
|
# @yieldparam config [Client::Configuration]
|
@@ -169,14 +152,13 @@ module Google
|
|
169
152
|
|
170
153
|
# Create credentials
|
171
154
|
credentials = @config.credentials
|
172
|
-
# Use self-signed JWT if the
|
155
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
173
156
|
# but only if the default endpoint does not have a region prefix.
|
174
|
-
enable_self_signed_jwt = @config.
|
175
|
-
@config.endpoint == Client.configure.endpoint &&
|
157
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
176
158
|
!@config.endpoint.split(".").first.include?("-")
|
177
159
|
credentials ||= Credentials.default scope: @config.scope,
|
178
160
|
enable_self_signed_jwt: enable_self_signed_jwt
|
179
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
161
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
180
162
|
credentials = Credentials.new credentials, scope: @config.scope
|
181
163
|
end
|
182
164
|
@quota_project_id = @config.quota_project
|
@@ -262,16 +244,20 @@ module Google
|
|
262
244
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
263
245
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
264
246
|
|
265
|
-
header_params = {
|
266
|
-
|
267
|
-
|
247
|
+
header_params = {}
|
248
|
+
if request.parent
|
249
|
+
header_params["parent"] = request.parent
|
250
|
+
end
|
251
|
+
|
268
252
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
269
253
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
270
254
|
|
271
255
|
options.apply_defaults timeout: @config.rpcs.list_insights.timeout,
|
272
256
|
metadata: metadata,
|
273
257
|
retry_policy: @config.rpcs.list_insights.retry_policy
|
274
|
-
|
258
|
+
|
259
|
+
options.apply_defaults timeout: @config.timeout,
|
260
|
+
metadata: @config.metadata,
|
275
261
|
retry_policy: @config.retry_policy
|
276
262
|
|
277
263
|
@recommender_stub.call_rpc :list_insights, request, options: options do |response, operation|
|
@@ -330,16 +316,20 @@ module Google
|
|
330
316
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
331
317
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
332
318
|
|
333
|
-
header_params = {
|
334
|
-
|
335
|
-
|
319
|
+
header_params = {}
|
320
|
+
if request.name
|
321
|
+
header_params["name"] = request.name
|
322
|
+
end
|
323
|
+
|
336
324
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
337
325
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
338
326
|
|
339
327
|
options.apply_defaults timeout: @config.rpcs.get_insight.timeout,
|
340
328
|
metadata: metadata,
|
341
329
|
retry_policy: @config.rpcs.get_insight.retry_policy
|
342
|
-
|
330
|
+
|
331
|
+
options.apply_defaults timeout: @config.timeout,
|
332
|
+
metadata: @config.metadata,
|
343
333
|
retry_policy: @config.retry_policy
|
344
334
|
|
345
335
|
@recommender_stub.call_rpc :get_insight, request, options: options do |response, operation|
|
@@ -406,16 +396,20 @@ module Google
|
|
406
396
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
407
397
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
408
398
|
|
409
|
-
header_params = {
|
410
|
-
|
411
|
-
|
399
|
+
header_params = {}
|
400
|
+
if request.name
|
401
|
+
header_params["name"] = request.name
|
402
|
+
end
|
403
|
+
|
412
404
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
413
405
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
414
406
|
|
415
407
|
options.apply_defaults timeout: @config.rpcs.mark_insight_accepted.timeout,
|
416
408
|
metadata: metadata,
|
417
409
|
retry_policy: @config.rpcs.mark_insight_accepted.retry_policy
|
418
|
-
|
410
|
+
|
411
|
+
options.apply_defaults timeout: @config.timeout,
|
412
|
+
metadata: @config.metadata,
|
419
413
|
retry_policy: @config.retry_policy
|
420
414
|
|
421
415
|
@recommender_stub.call_rpc :mark_insight_accepted, request, options: options do |response, operation|
|
@@ -495,16 +489,20 @@ module Google
|
|
495
489
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
496
490
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
497
491
|
|
498
|
-
header_params = {
|
499
|
-
|
500
|
-
|
492
|
+
header_params = {}
|
493
|
+
if request.parent
|
494
|
+
header_params["parent"] = request.parent
|
495
|
+
end
|
496
|
+
|
501
497
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
502
498
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
503
499
|
|
504
500
|
options.apply_defaults timeout: @config.rpcs.list_recommendations.timeout,
|
505
501
|
metadata: metadata,
|
506
502
|
retry_policy: @config.rpcs.list_recommendations.retry_policy
|
507
|
-
|
503
|
+
|
504
|
+
options.apply_defaults timeout: @config.timeout,
|
505
|
+
metadata: @config.metadata,
|
508
506
|
retry_policy: @config.retry_policy
|
509
507
|
|
510
508
|
@recommender_stub.call_rpc :list_recommendations, request, options: options do |response, operation|
|
@@ -563,16 +561,20 @@ module Google
|
|
563
561
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
564
562
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
565
563
|
|
566
|
-
header_params = {
|
567
|
-
|
568
|
-
|
564
|
+
header_params = {}
|
565
|
+
if request.name
|
566
|
+
header_params["name"] = request.name
|
567
|
+
end
|
568
|
+
|
569
569
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
570
570
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
571
571
|
|
572
572
|
options.apply_defaults timeout: @config.rpcs.get_recommendation.timeout,
|
573
573
|
metadata: metadata,
|
574
574
|
retry_policy: @config.rpcs.get_recommendation.retry_policy
|
575
|
-
|
575
|
+
|
576
|
+
options.apply_defaults timeout: @config.timeout,
|
577
|
+
metadata: @config.metadata,
|
576
578
|
retry_policy: @config.retry_policy
|
577
579
|
|
578
580
|
@recommender_stub.call_rpc :get_recommendation, request, options: options do |response, operation|
|
@@ -615,8 +617,8 @@ module Google
|
|
615
617
|
# @param state_metadata [::Hash{::String => ::String}]
|
616
618
|
# State properties to include with this state. Overwrites any existing
|
617
619
|
# `state_metadata`.
|
618
|
-
# Keys must match the regex
|
619
|
-
# Values must match the regex
|
620
|
+
# Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
|
621
|
+
# Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
620
622
|
# @param etag [::String]
|
621
623
|
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
622
624
|
#
|
@@ -645,16 +647,20 @@ module Google
|
|
645
647
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
646
648
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
647
649
|
|
648
|
-
header_params = {
|
649
|
-
|
650
|
-
|
650
|
+
header_params = {}
|
651
|
+
if request.name
|
652
|
+
header_params["name"] = request.name
|
653
|
+
end
|
654
|
+
|
651
655
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
652
656
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
653
657
|
|
654
658
|
options.apply_defaults timeout: @config.rpcs.mark_recommendation_claimed.timeout,
|
655
659
|
metadata: metadata,
|
656
660
|
retry_policy: @config.rpcs.mark_recommendation_claimed.retry_policy
|
657
|
-
|
661
|
+
|
662
|
+
options.apply_defaults timeout: @config.timeout,
|
663
|
+
metadata: @config.metadata,
|
658
664
|
retry_policy: @config.retry_policy
|
659
665
|
|
660
666
|
@recommender_stub.call_rpc :mark_recommendation_claimed, request, options: options do |response, operation|
|
@@ -698,8 +704,8 @@ module Google
|
|
698
704
|
# @param state_metadata [::Hash{::String => ::String}]
|
699
705
|
# State properties to include with this state. Overwrites any existing
|
700
706
|
# `state_metadata`.
|
701
|
-
# Keys must match the regex
|
702
|
-
# Values must match the regex
|
707
|
+
# Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
|
708
|
+
# Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
703
709
|
# @param etag [::String]
|
704
710
|
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
705
711
|
#
|
@@ -728,16 +734,20 @@ module Google
|
|
728
734
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
729
735
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
730
736
|
|
731
|
-
header_params = {
|
732
|
-
|
733
|
-
|
737
|
+
header_params = {}
|
738
|
+
if request.name
|
739
|
+
header_params["name"] = request.name
|
740
|
+
end
|
741
|
+
|
734
742
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
735
743
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
736
744
|
|
737
745
|
options.apply_defaults timeout: @config.rpcs.mark_recommendation_succeeded.timeout,
|
738
746
|
metadata: metadata,
|
739
747
|
retry_policy: @config.rpcs.mark_recommendation_succeeded.retry_policy
|
740
|
-
|
748
|
+
|
749
|
+
options.apply_defaults timeout: @config.timeout,
|
750
|
+
metadata: @config.metadata,
|
741
751
|
retry_policy: @config.retry_policy
|
742
752
|
|
743
753
|
@recommender_stub.call_rpc :mark_recommendation_succeeded, request, options: options do |response, operation|
|
@@ -781,8 +791,8 @@ module Google
|
|
781
791
|
# @param state_metadata [::Hash{::String => ::String}]
|
782
792
|
# State properties to include with this state. Overwrites any existing
|
783
793
|
# `state_metadata`.
|
784
|
-
# Keys must match the regex
|
785
|
-
# Values must match the regex
|
794
|
+
# Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
|
795
|
+
# Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
786
796
|
# @param etag [::String]
|
787
797
|
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
788
798
|
#
|
@@ -811,16 +821,20 @@ module Google
|
|
811
821
|
gapic_version: ::Google::Cloud::Recommender::V1::VERSION
|
812
822
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
813
823
|
|
814
|
-
header_params = {
|
815
|
-
|
816
|
-
|
824
|
+
header_params = {}
|
825
|
+
if request.name
|
826
|
+
header_params["name"] = request.name
|
827
|
+
end
|
828
|
+
|
817
829
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
818
830
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
819
831
|
|
820
832
|
options.apply_defaults timeout: @config.rpcs.mark_recommendation_failed.timeout,
|
821
833
|
metadata: metadata,
|
822
834
|
retry_policy: @config.rpcs.mark_recommendation_failed.retry_policy
|
823
|
-
|
835
|
+
|
836
|
+
options.apply_defaults timeout: @config.timeout,
|
837
|
+
metadata: @config.metadata,
|
824
838
|
retry_policy: @config.retry_policy
|
825
839
|
|
826
840
|
@recommender_stub.call_rpc :mark_recommendation_failed, request, options: options do |response, operation|
|
@@ -844,22 +858,21 @@ module Google
|
|
844
858
|
# Configuration can be applied globally to all clients, or to a single client
|
845
859
|
# on construction.
|
846
860
|
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
#
|
850
|
-
# to 20 seconds,
|
851
|
-
#
|
852
|
-
#
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
#
|
857
|
-
#
|
858
|
-
#
|
859
|
-
#
|
860
|
-
#
|
861
|
-
#
|
862
|
-
# end
|
861
|
+
# @example
|
862
|
+
#
|
863
|
+
# # Modify the global config, setting the timeout for
|
864
|
+
# # list_insights to 20 seconds,
|
865
|
+
# # and all remaining timeouts to 10 seconds.
|
866
|
+
# ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
|
867
|
+
# config.timeout = 10.0
|
868
|
+
# config.rpcs.list_insights.timeout = 20.0
|
869
|
+
# end
|
870
|
+
#
|
871
|
+
# # Apply the above configuration only to a new client.
|
872
|
+
# client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
|
873
|
+
# config.timeout = 10.0
|
874
|
+
# config.rpcs.list_insights.timeout = 20.0
|
875
|
+
# end
|
863
876
|
#
|
864
877
|
# @!attribute [rw] endpoint
|
865
878
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/recommender/v1/recommender_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/cloud/recommender/v1/insight_pb'
|
11
9
|
require 'google/cloud/recommender/v1/recommendation_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/recommender/v1/recommender_service.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.recommender.v1.ListInsightsRequest" do
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# based on analysis of user resources, configuration and monitoring metrics.
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include GRPC::GenericService
|
33
|
+
include ::GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -158,18 +158,27 @@ module Google
|
|
158
158
|
# This is intended to be an exact match per filter. To perform advanced
|
159
159
|
# matching, use path_value_matchers.
|
160
160
|
#
|
161
|
-
# * Example:
|
161
|
+
# * Example:
|
162
|
+
# ```
|
163
|
+
# {
|
162
164
|
# "/versions/*/name" : "it-123"
|
163
165
|
# "/versions/*/targetSize/percent": 20
|
164
|
-
#
|
165
|
-
#
|
166
|
+
# }
|
167
|
+
# ```
|
168
|
+
# * Example:
|
169
|
+
# ```
|
170
|
+
# {
|
166
171
|
# "/bindings/*/role": "roles/owner"
|
167
172
|
# "/bindings/*/condition" : null
|
168
|
-
#
|
169
|
-
#
|
173
|
+
# }
|
174
|
+
# ```
|
175
|
+
# * Example:
|
176
|
+
# ```
|
177
|
+
# {
|
170
178
|
# "/bindings/*/role": "roles/owner"
|
171
179
|
# "/bindings/*/members/*" : ["x@example.com", "y@example.com"]
|
172
|
-
#
|
180
|
+
# }
|
181
|
+
# ```
|
173
182
|
# When both path_filters and path_value_matchers are set, an implicit AND
|
174
183
|
# must be performed.
|
175
184
|
# @!attribute [rw] path_value_matchers
|
@@ -166,8 +166,8 @@ module Google
|
|
166
166
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
167
167
|
# State properties to include with this state. Overwrites any existing
|
168
168
|
# `state_metadata`.
|
169
|
-
# Keys must match the regex
|
170
|
-
# Values must match the regex
|
169
|
+
# Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
|
170
|
+
# Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
171
171
|
# @!attribute [rw] etag
|
172
172
|
# @return [::String]
|
173
173
|
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
@@ -193,8 +193,8 @@ module Google
|
|
193
193
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
194
194
|
# State properties to include with this state. Overwrites any existing
|
195
195
|
# `state_metadata`.
|
196
|
-
# Keys must match the regex
|
197
|
-
# Values must match the regex
|
196
|
+
# Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
|
197
|
+
# Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
198
198
|
# @!attribute [rw] etag
|
199
199
|
# @return [::String]
|
200
200
|
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
@@ -220,8 +220,8 @@ module Google
|
|
220
220
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
221
|
# State properties to include with this state. Overwrites any existing
|
222
222
|
# `state_metadata`.
|
223
|
-
# Keys must match the regex
|
224
|
-
# Values must match the regex
|
223
|
+
# Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
|
224
|
+
# Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
|
225
225
|
# @!attribute [rw] etag
|
226
226
|
# @return [::String]
|
227
227
|
# Required. Fingerprint of the Recommendation. Provides optimistic locking.
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# Represents an amount of money with its currency type.
|
23
23
|
# @!attribute [rw] currency_code
|
24
24
|
# @return [::String]
|
25
|
-
# The
|
25
|
+
# The three-letter currency code defined in ISO 4217.
|
26
26
|
# @!attribute [rw] units
|
27
27
|
# @return [::Integer]
|
28
28
|
# The whole units of the amount.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recommender-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
209
|
- !ruby/object:Gem::Version
|
204
210
|
version: '0'
|
205
211
|
requirements: []
|
206
|
-
rubygems_version: 3.2.
|
212
|
+
rubygems_version: 3.2.17
|
207
213
|
signing_key:
|
208
214
|
specification_version: 4
|
209
215
|
summary: API Client library for the Recommender V1 API
|