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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0af3a526d9e688709f0056f7455673c01681ae1bc5b03e769825f37f5f00bc2
4
- data.tar.gz: 7daf72065fd5037a9956c50701d3b63a24d6b29291b3247e83b8cdab7a81c8a3
3
+ metadata.gz: ccbc6eb90c4dbaceb1a34310e189ad968213ba4399dab10d2b3a04483b74ae21
4
+ data.tar.gz: cc456df40e2987509f3b94134f425c8249864e7508bd23448cdae0d13357ee80
5
5
  SHA512:
6
- metadata.gz: 61870281c7214c9dcf4891abbd284e5082b51060764968afa75de83e23d56ca9a486a9816755f055537ab06aced9de173f7919f68146512b3ee3ab5acbb94734
7
- data.tar.gz: 10e362a00e083ae449f94edbbde7f4fdf7324bd49c646f1fc1eec2f8ee019f60ccaa6daf87af98dbcefe0bd8e2e29c18f380a3d5e607796de684698f571a1525
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
- 1. `RECOMMENDER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `RECOMMENDER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
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 placing them in
86
- environment variables. Either on an individual client initialization:
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 configured globally for all clients:
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 = my_create_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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all Recommender clients:
50
- #
51
- # ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
141
- #
142
- # To create a new Recommender client with the default
143
- # configuration:
127
+ # @example
144
128
  #
145
- # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
129
+ # # Create a client using the default configuration
130
+ # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new
146
131
  #
147
- # To create a new Recommender client with a custom
148
- # configuration:
149
- #
150
- # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- "parent" => request.parent
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
- options.apply_defaults metadata: @config.metadata,
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
- "name" => request.name
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
- options.apply_defaults metadata: @config.metadata,
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
- "name" => request.name
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
- options.apply_defaults metadata: @config.metadata,
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
- "parent" => request.parent
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
- options.apply_defaults metadata: @config.metadata,
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
- "name" => request.name
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
- options.apply_defaults metadata: @config.metadata,
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 /^[a-z0-9][a-z0-9_.-]\\{0,62}$/.
619
- # Values must match the regex /^[a-zA-Z0-9_./-]\\{0,255}$/.
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
- "name" => request.name
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
- options.apply_defaults metadata: @config.metadata,
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 /^[a-z0-9][a-z0-9_.-]\\{0,62}$/.
702
- # Values must match the regex /^[a-zA-Z0-9_./-]\\{0,255}$/.
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
- "name" => request.name
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
- options.apply_defaults metadata: @config.metadata,
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 /^[a-z0-9][a-z0-9_.-]\\{0,62}$/.
785
- # Values must match the regex /^[a-zA-Z0-9_./-]\\{0,255}$/.
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
- "name" => request.name
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
848
- #
849
- # To modify the global config, setting the timeout for list_insights
850
- # to 20 seconds, and all remaining timeouts to 10 seconds:
851
- #
852
- # ::Google::Cloud::Recommender::V1::Recommender::Client.configure do |config|
853
- # config.timeout = 10.0
854
- # config.rpcs.list_insights.timeout = 20.0
855
- # end
856
- #
857
- # To apply the above configuration only to a new client:
858
- #
859
- # client = ::Google::Cloud::Recommender::V1::Recommender::Client.new do |config|
860
- # config.timeout = 10.0
861
- # config.rpcs.list_insights.timeout = 20.0
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Recommender
23
23
  module V1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.8.4"
25
25
  end
26
26
  end
27
27
  end
@@ -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 order, rather than the order the user originally
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
- # * Example: {
166
+ # }
167
+ # ```
168
+ # * Example:
169
+ # ```
170
+ # {
166
171
  # "/bindings/*/role": "roles/owner"
167
172
  # "/bindings/*/condition" : null
168
- # }
169
- # * Example: {
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 /^[a-z0-9][a-z0-9_.-]\\{0,62}$/.
170
- # Values must match the regex /^[a-zA-Z0-9_./-]\\{0,255}$/.
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 /^[a-z0-9][a-z0-9_.-]\\{0,62}$/.
197
- # Values must match the regex /^[a-zA-Z0-9_./-]\\{0,255}$/.
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 /^[a-z0-9][a-z0-9_.-]\\{0,62}$/.
224
- # Values must match the regex /^[a-zA-Z0-9_./-]\\{0,255}$/.
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 3-letter currency code defined in ISO 4217.
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.0
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-03-09 00:00:00.000000000 Z
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: '0.3'
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: '0.3'
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.13
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