google-cloud-commerce-consumer-procurement-v1 0.a → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/client.rb +680 -0
  6. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/credentials.rb +51 -0
  7. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/operations.rb +783 -0
  8. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/paths.rb +90 -0
  9. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/client.rb +630 -0
  10. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/operations.rb +874 -0
  11. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/service_stub.rb +230 -0
  12. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest.rb +65 -0
  13. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service.rb +68 -0
  14. data/lib/google/cloud/commerce/consumer/procurement/v1/order_pb.rb +60 -0
  15. data/lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_pb.rb +58 -0
  16. data/lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_services_pb.rb +74 -0
  17. data/lib/google/cloud/commerce/consumer/procurement/v1/rest.rb +41 -0
  18. data/lib/google/cloud/commerce/consumer/procurement/v1/version.rb +7 -2
  19. data/lib/google/cloud/commerce/consumer/procurement/v1.rb +49 -0
  20. data/lib/google-cloud-commerce-consumer-procurement-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +381 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/cloud/commerce/consumer/procurement/v1/order.rb +262 -0
  27. data/proto_docs/google/cloud/commerce/consumer/procurement/v1/procurement_service.rb +122 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +144 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +34 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. metadata +188 -13
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Commerce
23
+ module Consumer
24
+ module Procurement
25
+ module V1
26
+ module ConsumerProcurementService
27
+ # Path helper methods for the ConsumerProcurementService API.
28
+ module Paths
29
+ ##
30
+ # Create a fully-qualified BillingAccount resource string.
31
+ #
32
+ # The resource will be in the following format:
33
+ #
34
+ # `billingAccounts/{billing_account}`
35
+ #
36
+ # @param billing_account [String]
37
+ #
38
+ # @return [::String]
39
+ def billing_account_path billing_account:
40
+ "billingAccounts/#{billing_account}"
41
+ end
42
+
43
+ ##
44
+ # Create a fully-qualified Offer resource string.
45
+ #
46
+ # @overload offer_path(service:, offer:)
47
+ # The resource will be in the following format:
48
+ #
49
+ # `services/{service}/standardOffers/{offer}`
50
+ #
51
+ # @param service [String]
52
+ # @param offer [String]
53
+ #
54
+ # @overload offer_path(consumer_billing_account:, offer:)
55
+ # The resource will be in the following format:
56
+ #
57
+ # `billingAccounts/{consumer_billing_account}/offers/{offer}`
58
+ #
59
+ # @param consumer_billing_account [String]
60
+ # @param offer [String]
61
+ #
62
+ # @return [::String]
63
+ def offer_path **args
64
+ resources = {
65
+ "offer:service" => (proc do |service:, offer:|
66
+ raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
67
+
68
+ "services/#{service}/standardOffers/#{offer}"
69
+ end),
70
+ "consumer_billing_account:offer" => (proc do |consumer_billing_account:, offer:|
71
+ raise ::ArgumentError, "consumer_billing_account cannot contain /" if consumer_billing_account.to_s.include? "/"
72
+
73
+ "billingAccounts/#{consumer_billing_account}/offers/#{offer}"
74
+ end)
75
+ }
76
+
77
+ resource = resources[args.keys.sort.join(":")]
78
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
79
+ resource.call(**args)
80
+ end
81
+
82
+ extend self
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end