google-cloud-recommendation_engine-v1beta1 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +10 -12
  4. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +14 -16
  5. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/client.rb +769 -0
  6. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/operations.rb +807 -0
  7. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/service_stub.rb +405 -0
  8. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest.rb +53 -0
  9. data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service.rb +7 -1
  10. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +6 -8
  11. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb +512 -0
  12. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/service_stub.rb +226 -0
  13. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest.rb +56 -0
  14. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry.rb +7 -1
  15. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +6 -8
  16. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/client.rb +440 -0
  17. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/service_stub.rb +108 -0
  18. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest.rb +52 -0
  19. data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service.rb +7 -1
  20. data/lib/google/cloud/recommendation_engine/v1beta1/rest.rb +40 -0
  21. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +14 -16
  22. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +14 -16
  23. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client.rb +765 -0
  24. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations.rb +807 -0
  25. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/service_stub.rb +346 -0
  26. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest.rb +53 -0
  27. data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service.rb +7 -1
  28. data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
  29. data/lib/google/cloud/recommendation_engine/v1beta1.rb +7 -2
  30. data/lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb +25 -49
  31. data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb +26 -26
  32. data/lib/google/cloud/recommendationengine/v1beta1/common_pb.rb +24 -11
  33. data/lib/google/cloud/recommendationengine/v1beta1/import_pb.rb +28 -55
  34. data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb.rb +24 -20
  35. data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_pb.rb +26 -23
  36. data/lib/google/cloud/recommendationengine/v1beta1/recommendationengine_resources_pb.rb +25 -2
  37. data/lib/google/cloud/recommendationengine/v1beta1/user_event_pb.rb +27 -55
  38. data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_pb.rb +26 -34
  39. data/proto_docs/google/api/client.rb +67 -4
  40. data/proto_docs/google/protobuf/any.rb +7 -4
  41. data/proto_docs/google/protobuf/struct.rb +1 -1
  42. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  43. data/proto_docs/google/rpc/status.rb +4 -2
  44. metadata +25 -8
@@ -451,13 +451,11 @@ module Google
451
451
  # # Call the list_user_events method.
452
452
  # result = client.list_user_events request
453
453
  #
454
- # # The returned object is of type Gapic::PagedEnumerable. You can
455
- # # iterate over all elements by calling #each, and the enumerable
456
- # # will lazily make API calls to fetch subsequent pages. Other
457
- # # methods are also available for managing paging directly.
458
- # result.each do |response|
454
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
455
+ # # over elements, and API calls will be issued to fetch pages as needed.
456
+ # result.each do |item|
459
457
  # # Each element is of type ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent.
460
- # p response
458
+ # p item
461
459
  # end
462
460
  #
463
461
  def list_user_events request, options = nil
@@ -571,14 +569,14 @@ module Google
571
569
  # # Call the purge_user_events method.
572
570
  # result = client.purge_user_events request
573
571
  #
574
- # # The returned object is of type Gapic::Operation. You can use this
575
- # # object to check the status of an operation, cancel it, or wait
576
- # # for results. Here is how to block until completion:
572
+ # # The returned object is of type Gapic::Operation. You can use it to
573
+ # # check the status of an operation, cancel it, or wait for results.
574
+ # # Here is how to wait for a response.
577
575
  # result.wait_until_done! timeout: 60
578
576
  # if result.response?
579
577
  # p result.response
580
578
  # else
581
- # puts "Error!"
579
+ # puts "No response received."
582
580
  # end
583
581
  #
584
582
  def purge_user_events request, options = nil
@@ -682,14 +680,14 @@ module Google
682
680
  # # Call the import_user_events method.
683
681
  # result = client.import_user_events request
684
682
  #
685
- # # The returned object is of type Gapic::Operation. You can use this
686
- # # object to check the status of an operation, cancel it, or wait
687
- # # for results. Here is how to block until completion:
683
+ # # The returned object is of type Gapic::Operation. You can use it to
684
+ # # check the status of an operation, cancel it, or wait for results.
685
+ # # Here is how to wait for a response.
688
686
  # result.wait_until_done! timeout: 60
689
687
  # if result.response?
690
688
  # p result.response
691
689
  # else
692
- # puts "Error!"
690
+ # puts "No response received."
693
691
  # end
694
692
  #
695
693
  def import_user_events request, options = nil
@@ -772,9 +770,9 @@ module Google
772
770
  # * (`String`) The path to a service account key file in JSON format
773
771
  # * (`Hash`) A service account key as a Hash
774
772
  # * (`Google::Auth::Credentials`) A googleauth credentials object
775
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
773
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
776
774
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
777
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
775
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
778
776
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
779
777
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
780
778
  # * (`nil`) indicating no credentials
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -622,9 +620,9 @@ module Google
622
620
  # * (`String`) The path to a service account key file in JSON format
623
621
  # * (`Hash`) A service account key as a Hash
624
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
625
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
626
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
627
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
628
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
629
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
630
628
  # * (`nil`) indicating no credentials