google-ads-ad_manager-v1 1.1.0 → 2.0.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 (186) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/ads/ad_manager/v1/ad_break_service/credentials.rb +47 -0
  5. data/lib/google/ads/ad_manager/v1/ad_break_service/paths.rb +69 -0
  6. data/lib/google/ads/ad_manager/v1/ad_break_service/rest/client.rb +854 -0
  7. data/lib/google/ads/ad_manager/v1/ad_break_service/rest/service_stub.rb +432 -0
  8. data/lib/google/ads/ad_manager/v1/ad_break_service/rest.rb +52 -0
  9. data/lib/google/ads/ad_manager/v1/ad_break_service.rb +48 -0
  10. data/lib/google/ads/ad_manager/v1/ad_unit_service/credentials.rb +3 -0
  11. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/credentials.rb +47 -0
  12. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/paths.rb +64 -0
  13. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/client.rb +538 -0
  14. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest/service_stub.rb +203 -0
  15. data/lib/google/ads/ad_manager/v1/bandwidth_group_service/rest.rb +52 -0
  16. data/lib/google/ads/ad_manager/v1/bandwidth_group_service.rb +48 -0
  17. data/lib/google/ads/ad_manager/v1/company_service/credentials.rb +3 -0
  18. data/lib/google/ads/ad_manager/v1/custom_field_service/credentials.rb +3 -0
  19. data/lib/google/ads/ad_manager/v1/custom_targeting_key_service/credentials.rb +3 -0
  20. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/credentials.rb +3 -0
  21. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/paths.rb +9 -14
  22. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/client.rb +2 -2
  23. data/lib/google/ads/ad_manager/v1/custom_targeting_value_service/rest/service_stub.rb +14 -0
  24. data/lib/google/ads/ad_manager/v1/device_category_service/credentials.rb +47 -0
  25. data/lib/google/ads/ad_manager/v1/device_category_service/paths.rb +64 -0
  26. data/lib/google/ads/ad_manager/v1/device_category_service/rest/client.rb +538 -0
  27. data/lib/google/ads/ad_manager/v1/device_category_service/rest/service_stub.rb +203 -0
  28. data/lib/google/ads/ad_manager/v1/device_category_service/rest.rb +52 -0
  29. data/lib/google/ads/ad_manager/v1/device_category_service.rb +48 -0
  30. data/lib/google/ads/ad_manager/v1/entity_signals_mapping_service/credentials.rb +3 -0
  31. data/lib/google/ads/ad_manager/v1/geo_target_service/credentials.rb +47 -0
  32. data/lib/google/ads/ad_manager/v1/geo_target_service/paths.rb +64 -0
  33. data/lib/google/ads/ad_manager/v1/geo_target_service/rest/client.rb +538 -0
  34. data/lib/google/ads/ad_manager/v1/geo_target_service/rest/service_stub.rb +203 -0
  35. data/lib/google/ads/ad_manager/v1/geo_target_service/rest.rb +52 -0
  36. data/lib/google/ads/ad_manager/v1/geo_target_service.rb +48 -0
  37. data/lib/google/ads/ad_manager/v1/network_service/credentials.rb +3 -0
  38. data/lib/google/ads/ad_manager/v1/network_service/rest/client.rb +1 -1
  39. data/lib/google/ads/ad_manager/v1/network_service/rest.rb +1 -1
  40. data/lib/google/ads/ad_manager/v1/network_service.rb +1 -1
  41. data/lib/google/ads/ad_manager/v1/operating_system_service/credentials.rb +47 -0
  42. data/lib/google/ads/ad_manager/v1/operating_system_service/paths.rb +64 -0
  43. data/lib/google/ads/ad_manager/v1/operating_system_service/rest/client.rb +538 -0
  44. data/lib/google/ads/ad_manager/v1/operating_system_service/rest/service_stub.rb +203 -0
  45. data/lib/google/ads/ad_manager/v1/operating_system_service/rest.rb +52 -0
  46. data/lib/google/ads/ad_manager/v1/operating_system_service.rb +48 -0
  47. data/lib/google/ads/ad_manager/v1/operating_system_version_service/credentials.rb +47 -0
  48. data/lib/google/ads/ad_manager/v1/operating_system_version_service/paths.rb +64 -0
  49. data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/client.rb +541 -0
  50. data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest/service_stub.rb +203 -0
  51. data/lib/google/ads/ad_manager/v1/operating_system_version_service/rest.rb +52 -0
  52. data/lib/google/ads/ad_manager/v1/operating_system_version_service.rb +48 -0
  53. data/lib/google/ads/ad_manager/v1/order_service/credentials.rb +3 -0
  54. data/lib/google/ads/ad_manager/v1/placement_service/credentials.rb +3 -0
  55. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/credentials.rb +47 -0
  56. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/paths.rb +217 -0
  57. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/client.rb +719 -0
  58. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest/service_stub.rb +327 -0
  59. data/lib/google/ads/ad_manager/v1/private_auction_deal_service/rest.rb +52 -0
  60. data/lib/google/ads/ad_manager/v1/private_auction_deal_service.rb +48 -0
  61. data/lib/google/ads/ad_manager/v1/private_auction_service/credentials.rb +47 -0
  62. data/lib/google/ads/ad_manager/v1/private_auction_service/paths.rb +81 -0
  63. data/lib/google/ads/ad_manager/v1/private_auction_service/rest/client.rb +718 -0
  64. data/lib/google/ads/ad_manager/v1/private_auction_service/rest/service_stub.rb +327 -0
  65. data/lib/google/ads/ad_manager/v1/private_auction_service/rest.rb +52 -0
  66. data/lib/google/ads/ad_manager/v1/private_auction_service.rb +48 -0
  67. data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/credentials.rb +47 -0
  68. data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/paths.rb +64 -0
  69. data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/client.rb +539 -0
  70. data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest/service_stub.rb +203 -0
  71. data/lib/google/ads/ad_manager/v1/programmatic_buyer_service/rest.rb +52 -0
  72. data/lib/google/ads/ad_manager/v1/programmatic_buyer_service.rb +48 -0
  73. data/lib/google/ads/ad_manager/v1/report_service/credentials.rb +3 -0
  74. data/lib/google/ads/ad_manager/v1/report_service/rest/operations.rb +0 -7
  75. data/lib/google/ads/ad_manager/v1/rest.rb +10 -1
  76. data/lib/google/ads/ad_manager/v1/role_service/credentials.rb +3 -0
  77. data/lib/google/ads/ad_manager/v1/taxonomy_category_service/credentials.rb +3 -0
  78. data/lib/google/ads/ad_manager/v1/user_service/credentials.rb +3 -0
  79. data/lib/google/ads/ad_manager/v1/version.rb +1 -1
  80. data/lib/google/ads/ad_manager/v1.rb +10 -1
  81. data/lib/google/ads/admanager/v1/ad_break_messages_pb.rb +50 -0
  82. data/lib/google/ads/admanager/v1/ad_break_service_pb.rb +57 -0
  83. data/lib/google/ads/admanager/v1/ad_break_service_services_pb.rb +93 -0
  84. data/lib/google/ads/admanager/v1/ad_unit_messages_pb.rb +1 -1
  85. data/lib/google/ads/admanager/v1/ad_unit_service_pb.rb +1 -1
  86. data/lib/google/ads/admanager/v1/bandwidth_group_messages_pb.rb +45 -0
  87. data/lib/google/ads/admanager/v1/bandwidth_group_service_pb.rb +51 -0
  88. data/lib/google/ads/admanager/v1/bandwidth_group_service_services_pb.rb +47 -0
  89. data/lib/google/ads/admanager/v1/{company_credit_status_enum_pb.rb → company_enums_pb.rb} +4 -2
  90. data/lib/google/ads/admanager/v1/company_messages_pb.rb +2 -3
  91. data/lib/google/ads/admanager/v1/company_service_pb.rb +1 -1
  92. data/lib/google/ads/admanager/v1/contact_messages_pb.rb +1 -1
  93. data/lib/google/ads/admanager/v1/custom_field_messages_pb.rb +1 -1
  94. data/lib/google/ads/admanager/v1/custom_field_service_pb.rb +1 -1
  95. data/lib/google/ads/admanager/v1/custom_targeting_key_service_pb.rb +1 -1
  96. data/lib/google/ads/admanager/v1/custom_targeting_value_messages_pb.rb +1 -1
  97. data/lib/google/ads/admanager/v1/custom_targeting_value_service_pb.rb +1 -1
  98. data/lib/google/ads/admanager/v1/deal_buyer_permission_type_enum_pb.rb +43 -0
  99. data/lib/google/ads/admanager/v1/device_category_messages_pb.rb +45 -0
  100. data/lib/google/ads/admanager/v1/device_category_service_pb.rb +51 -0
  101. data/lib/google/ads/admanager/v1/device_category_service_services_pb.rb +47 -0
  102. data/lib/google/ads/admanager/v1/early_ad_break_notification_enums_pb.rb +43 -0
  103. data/lib/google/ads/admanager/v1/entity_signals_mapping_messages_pb.rb +1 -1
  104. data/lib/google/ads/admanager/v1/entity_signals_mapping_service_pb.rb +1 -1
  105. data/lib/google/ads/admanager/v1/geo_target_messages_pb.rb +45 -0
  106. data/lib/google/ads/admanager/v1/geo_target_service_pb.rb +51 -0
  107. data/lib/google/ads/admanager/v1/geo_target_service_services_pb.rb +47 -0
  108. data/lib/google/ads/admanager/v1/{company_type_enum_pb.rb → live_stream_event_messages_pb.rb} +6 -4
  109. data/lib/google/ads/admanager/v1/network_service_pb.rb +1 -1
  110. data/lib/google/ads/admanager/v1/network_service_services_pb.rb +1 -1
  111. data/lib/google/ads/admanager/v1/operating_system_messages_pb.rb +45 -0
  112. data/lib/google/ads/admanager/v1/operating_system_service_pb.rb +51 -0
  113. data/lib/google/ads/admanager/v1/operating_system_service_services_pb.rb +47 -0
  114. data/lib/google/ads/admanager/v1/operating_system_version_messages_pb.rb +45 -0
  115. data/lib/google/ads/admanager/v1/operating_system_version_service_pb.rb +51 -0
  116. data/lib/google/ads/admanager/v1/operating_system_version_service_services_pb.rb +47 -0
  117. data/lib/google/ads/admanager/v1/order_messages_pb.rb +1 -1
  118. data/lib/google/ads/admanager/v1/order_service_pb.rb +1 -1
  119. data/lib/google/ads/admanager/v1/placement_messages_pb.rb +1 -1
  120. data/lib/google/ads/admanager/v1/placement_service_pb.rb +1 -1
  121. data/lib/google/ads/admanager/v1/private_auction_deal_messages_pb.rb +56 -0
  122. data/lib/google/ads/admanager/v1/private_auction_deal_service_pb.rb +55 -0
  123. data/lib/google/ads/admanager/v1/private_auction_deal_service_services_pb.rb +51 -0
  124. data/lib/google/ads/admanager/v1/private_auction_messages_pb.rb +47 -0
  125. data/lib/google/ads/admanager/v1/private_auction_service_pb.rb +55 -0
  126. data/lib/google/ads/admanager/v1/private_auction_service_services_pb.rb +51 -0
  127. data/lib/google/ads/admanager/v1/private_marketplace_enums_pb.rb +43 -0
  128. data/lib/google/ads/admanager/v1/programmatic_buyer_messages_pb.rb +45 -0
  129. data/lib/google/ads/admanager/v1/programmatic_buyer_service_pb.rb +51 -0
  130. data/lib/google/ads/admanager/v1/programmatic_buyer_service_services_pb.rb +47 -0
  131. data/lib/google/ads/admanager/v1/report_messages_pb.rb +83 -0
  132. data/lib/google/ads/admanager/v1/report_service_pb.rb +4 -38
  133. data/lib/google/ads/admanager/v1/request_platform_enum_pb.rb +43 -0
  134. data/lib/google/ads/admanager/v1/role_messages_pb.rb +1 -1
  135. data/lib/google/ads/admanager/v1/role_service_pb.rb +1 -1
  136. data/lib/google/ads/admanager/v1/targeted_video_bumper_type_enum_pb.rb +43 -0
  137. data/lib/google/ads/admanager/v1/targeting_pb.rb +63 -0
  138. data/lib/google/ads/admanager/v1/taxonomy_category_messages_pb.rb +1 -1
  139. data/lib/google/ads/admanager/v1/taxonomy_category_service_pb.rb +1 -1
  140. data/lib/google/ads/admanager/v1/team_messages_pb.rb +1 -1
  141. data/lib/google/ads/admanager/v1/user_messages_pb.rb +1 -1
  142. data/lib/google/ads/admanager/v1/user_service_pb.rb +1 -1
  143. data/lib/google/ads/admanager/v1/video_position_enum_pb.rb +43 -0
  144. data/proto_docs/google/ads/admanager/v1/ad_break_messages.rb +112 -0
  145. data/proto_docs/google/ads/admanager/v1/ad_break_service.rb +150 -0
  146. data/proto_docs/google/ads/admanager/v1/ad_unit_messages.rb +10 -9
  147. data/proto_docs/google/ads/admanager/v1/bandwidth_group_messages.rb +40 -0
  148. data/proto_docs/google/ads/admanager/v1/bandwidth_group_service.rb +99 -0
  149. data/proto_docs/google/ads/admanager/v1/{company_credit_status_enum.rb → company_enums.rb} +30 -1
  150. data/proto_docs/google/ads/admanager/v1/company_messages.rb +3 -3
  151. data/proto_docs/google/ads/admanager/v1/contact_messages.rb +3 -4
  152. data/proto_docs/google/ads/admanager/v1/custom_field_messages.rb +3 -3
  153. data/proto_docs/google/ads/admanager/v1/custom_field_value.rb +0 -1
  154. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_messages.rb +6 -1
  155. data/proto_docs/google/ads/admanager/v1/custom_targeting_value_service.rb +2 -2
  156. data/proto_docs/google/ads/admanager/v1/deal_buyer_permission_type_enum.rb +45 -0
  157. data/proto_docs/google/ads/admanager/v1/device_category_messages.rb +39 -0
  158. data/proto_docs/google/ads/admanager/v1/device_category_service.rb +99 -0
  159. data/proto_docs/google/ads/admanager/v1/early_ad_break_notification_enums.rb +51 -0
  160. data/proto_docs/google/ads/admanager/v1/entity_signals_mapping_messages.rb +1 -1
  161. data/proto_docs/google/ads/admanager/v1/geo_target_messages.rb +59 -0
  162. data/proto_docs/google/ads/admanager/v1/geo_target_service.rb +99 -0
  163. data/proto_docs/google/ads/admanager/v1/live_stream_event_messages.rb +41 -0
  164. data/proto_docs/google/ads/admanager/v1/network_messages.rb +1 -1
  165. data/proto_docs/google/ads/admanager/v1/operating_system_messages.rb +39 -0
  166. data/proto_docs/google/ads/admanager/v1/operating_system_service.rb +99 -0
  167. data/proto_docs/google/ads/admanager/v1/operating_system_version_messages.rb +46 -0
  168. data/proto_docs/google/ads/admanager/v1/operating_system_version_service.rb +102 -0
  169. data/proto_docs/google/ads/admanager/v1/placement_messages.rb +7 -8
  170. data/proto_docs/google/ads/admanager/v1/private_auction_deal_messages.rb +98 -0
  171. data/proto_docs/google/ads/admanager/v1/private_auction_deal_service.rb +130 -0
  172. data/proto_docs/google/ads/admanager/v1/private_auction_messages.rb +61 -0
  173. data/proto_docs/google/ads/admanager/v1/private_auction_service.rb +129 -0
  174. data/proto_docs/google/ads/admanager/v1/{company_type_enum.rb → private_marketplace_enums.rb} +17 -18
  175. data/proto_docs/google/ads/admanager/v1/programmatic_buyer_messages.rb +61 -0
  176. data/proto_docs/google/ads/admanager/v1/programmatic_buyer_service.rb +100 -0
  177. data/proto_docs/google/ads/admanager/v1/report_messages.rb +3587 -0
  178. data/proto_docs/google/ads/admanager/v1/report_service.rb +0 -3300
  179. data/proto_docs/google/ads/admanager/v1/request_platform_enum.rb +53 -0
  180. data/proto_docs/google/ads/admanager/v1/size.rb +6 -10
  181. data/proto_docs/google/ads/admanager/v1/targeted_video_bumper_type_enum.rb +48 -0
  182. data/proto_docs/google/ads/admanager/v1/targeting.rb +279 -0
  183. data/proto_docs/google/ads/admanager/v1/team_messages.rb +0 -4
  184. data/proto_docs/google/ads/admanager/v1/video_position_enum.rb +51 -0
  185. data/proto_docs/google/type/money.rb +43 -0
  186. metadata +122 -6
@@ -0,0 +1,718 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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
+ require "google/cloud/errors"
20
+ require "google/ads/admanager/v1/private_auction_service_pb"
21
+ require "google/ads/ad_manager/v1/private_auction_service/rest/service_stub"
22
+
23
+ module Google
24
+ module Ads
25
+ module AdManager
26
+ module V1
27
+ module PrivateAuctionService
28
+ module Rest
29
+ ##
30
+ # REST client for the PrivateAuctionService service.
31
+ #
32
+ # Provides methods for handling `PrivateAuction` objects.
33
+ #
34
+ class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "admanager.$UNIVERSE_DOMAIN$"
40
+
41
+ include Paths
42
+
43
+ # @private
44
+ attr_reader :private_auction_service_stub
45
+
46
+ ##
47
+ # Configure the PrivateAuctionService Client class.
48
+ #
49
+ # See {::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client::Configuration}
50
+ # for a description of the configuration fields.
51
+ #
52
+ # @example
53
+ #
54
+ # # Modify the configuration for all PrivateAuctionService clients
55
+ # ::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
58
+ #
59
+ # @yield [config] Configure the Client client.
60
+ # @yieldparam config [Client::Configuration]
61
+ #
62
+ # @return [Client::Configuration]
63
+ #
64
+ def self.configure
65
+ @configure ||= begin
66
+ namespace = ["Google", "Ads", "AdManager", "V1"]
67
+ parent_config = while namespace.any?
68
+ parent_name = namespace.join "::"
69
+ parent_const = const_get parent_name
70
+ break parent_const.configure if parent_const.respond_to? :configure
71
+ namespace.pop
72
+ end
73
+ default_config = Client::Configuration.new parent_config
74
+
75
+ default_config
76
+ end
77
+ yield @configure if block_given?
78
+ @configure
79
+ end
80
+
81
+ ##
82
+ # Configure the PrivateAuctionService Client instance.
83
+ #
84
+ # The configuration is set to the derived mode, meaning that values can be changed,
85
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
86
+ # should be made on {Client.configure}.
87
+ #
88
+ # See {::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client::Configuration}
89
+ # for a description of the configuration fields.
90
+ #
91
+ # @yield [config] Configure the Client client.
92
+ # @yieldparam config [Client::Configuration]
93
+ #
94
+ # @return [Client::Configuration]
95
+ #
96
+ def configure
97
+ yield @config if block_given?
98
+ @config
99
+ end
100
+
101
+ ##
102
+ # The effective universe domain
103
+ #
104
+ # @return [String]
105
+ #
106
+ def universe_domain
107
+ @private_auction_service_stub.universe_domain
108
+ end
109
+
110
+ ##
111
+ # Create a new PrivateAuctionService REST client object.
112
+ #
113
+ # @example
114
+ #
115
+ # # Create a client using the default configuration
116
+ # client = ::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new
117
+ #
118
+ # # Create a client using a custom configuration
119
+ # client = ::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new do |config|
120
+ # config.timeout = 10.0
121
+ # end
122
+ #
123
+ # @yield [config] Configure the PrivateAuctionService client.
124
+ # @yieldparam config [Client::Configuration]
125
+ #
126
+ def initialize
127
+ # Create the configuration object
128
+ @config = Configuration.new Client.configure
129
+
130
+ # Yield the configuration if needed
131
+ yield @config if block_given?
132
+
133
+ # Create credentials
134
+ credentials = @config.credentials
135
+ # Use self-signed JWT if the endpoint is unchanged from default,
136
+ # but only if the default endpoint does not have a region prefix.
137
+ enable_self_signed_jwt = @config.endpoint.nil? ||
138
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
+ !@config.endpoint.split(".").first.include?("-"))
140
+ credentials ||= Credentials.default scope: @config.scope,
141
+ enable_self_signed_jwt: enable_self_signed_jwt
142
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
143
+ credentials = Credentials.new credentials, scope: @config.scope
144
+ end
145
+
146
+ @quota_project_id = @config.quota_project
147
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
148
+
149
+ @private_auction_service_stub = ::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::ServiceStub.new(
150
+ endpoint: @config.endpoint,
151
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
152
+ universe_domain: @config.universe_domain,
153
+ credentials: credentials,
154
+ logger: @config.logger
155
+ )
156
+
157
+ @private_auction_service_stub.logger(stub: true)&.info do |entry|
158
+ entry.set_system_name
159
+ entry.set_service
160
+ entry.message = "Created client for #{entry.service}"
161
+ entry.set_credentials_fields credentials
162
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
163
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
164
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
165
+ end
166
+ end
167
+
168
+ ##
169
+ # The logger used for request/response debug logging.
170
+ #
171
+ # @return [Logger]
172
+ #
173
+ def logger
174
+ @private_auction_service_stub.logger
175
+ end
176
+
177
+ # Service calls
178
+
179
+ ##
180
+ # API to retrieve a `PrivateAuction` object.
181
+ #
182
+ # @overload get_private_auction(request, options = nil)
183
+ # Pass arguments to `get_private_auction` via a request object, either of type
184
+ # {::Google::Ads::AdManager::V1::GetPrivateAuctionRequest} or an equivalent Hash.
185
+ #
186
+ # @param request [::Google::Ads::AdManager::V1::GetPrivateAuctionRequest, ::Hash]
187
+ # A request object representing the call parameters. Required. To specify no
188
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
189
+ # @param options [::Gapic::CallOptions, ::Hash]
190
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
191
+ #
192
+ # @overload get_private_auction(name: nil)
193
+ # Pass arguments to `get_private_auction` via keyword arguments. Note that at
194
+ # least one keyword argument is required. To specify no parameters, or to keep all
195
+ # the default parameter values, pass an empty Hash as a request object (see above).
196
+ #
197
+ # @param name [::String]
198
+ # Required. The resource name of the PrivateAuction.
199
+ # Format:
200
+ # `networks/{network_code}/privateAuctions/{private_auction_id}`
201
+ # @yield [result, operation] Access the result along with the TransportOperation object
202
+ # @yieldparam result [::Google::Ads::AdManager::V1::PrivateAuction]
203
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
204
+ #
205
+ # @return [::Google::Ads::AdManager::V1::PrivateAuction]
206
+ #
207
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
208
+ #
209
+ # @example Basic example
210
+ # require "google/ads/ad_manager/v1"
211
+ #
212
+ # # Create a client object. The client can be reused for multiple calls.
213
+ # client = Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new
214
+ #
215
+ # # Create a request. To set request fields, pass in keyword arguments.
216
+ # request = Google::Ads::AdManager::V1::GetPrivateAuctionRequest.new
217
+ #
218
+ # # Call the get_private_auction method.
219
+ # result = client.get_private_auction request
220
+ #
221
+ # # The returned object is of type Google::Ads::AdManager::V1::PrivateAuction.
222
+ # p result
223
+ #
224
+ def get_private_auction request, options = nil
225
+ raise ::ArgumentError, "request must be provided" if request.nil?
226
+
227
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::GetPrivateAuctionRequest
228
+
229
+ # Converts hash and nil to an options object
230
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
231
+
232
+ # Customize the options with defaults
233
+ call_metadata = @config.rpcs.get_private_auction.metadata.to_h
234
+
235
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
236
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
237
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
238
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
239
+ transports_version_send: [:rest]
240
+
241
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
242
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
243
+
244
+ options.apply_defaults timeout: @config.rpcs.get_private_auction.timeout,
245
+ metadata: call_metadata,
246
+ retry_policy: @config.rpcs.get_private_auction.retry_policy
247
+
248
+ options.apply_defaults timeout: @config.timeout,
249
+ metadata: @config.metadata,
250
+ retry_policy: @config.retry_policy
251
+
252
+ @private_auction_service_stub.get_private_auction request, options do |result, operation|
253
+ yield result, operation if block_given?
254
+ end
255
+ rescue ::Gapic::Rest::Error => e
256
+ raise ::Google::Cloud::Error.from_error(e)
257
+ end
258
+
259
+ ##
260
+ # API to retrieve a list of `PrivateAuction` objects.
261
+ #
262
+ # @overload list_private_auctions(request, options = nil)
263
+ # Pass arguments to `list_private_auctions` via a request object, either of type
264
+ # {::Google::Ads::AdManager::V1::ListPrivateAuctionsRequest} or an equivalent Hash.
265
+ #
266
+ # @param request [::Google::Ads::AdManager::V1::ListPrivateAuctionsRequest, ::Hash]
267
+ # A request object representing the call parameters. Required. To specify no
268
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
269
+ # @param options [::Gapic::CallOptions, ::Hash]
270
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
271
+ #
272
+ # @overload list_private_auctions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, skip: nil)
273
+ # Pass arguments to `list_private_auctions` via keyword arguments. Note that at
274
+ # least one keyword argument is required. To specify no parameters, or to keep all
275
+ # the default parameter values, pass an empty Hash as a request object (see above).
276
+ #
277
+ # @param parent [::String]
278
+ # Required. The parent, which owns this collection of PrivateAuctions.
279
+ # Format: `networks/{network_code}`
280
+ # @param page_size [::Integer]
281
+ # Optional. The maximum number of `PrivateAuctions` to return. The service
282
+ # may return fewer than this value. If unspecified, at most 50
283
+ # `PrivateAuctions` will be returned. The maximum value is 1000;
284
+ # values above 1000 will be coerced to 1000.
285
+ # @param page_token [::String]
286
+ # Optional. A page token, received from a previous `ListPrivateAuctions`
287
+ # call. Provide this to retrieve the subsequent page.
288
+ #
289
+ # When paginating, all other parameters provided to
290
+ # `ListPrivateAuctions` must match the call that provided the
291
+ # page token.
292
+ # @param filter [::String]
293
+ # Optional. Expression to filter the response.
294
+ # See syntax details at
295
+ # https://developers.google.com/ad-manager/api/beta/filters
296
+ # @param order_by [::String]
297
+ # Optional. Expression to specify sorting order.
298
+ # See syntax details at
299
+ # https://developers.google.com/ad-manager/api/beta/filters#order
300
+ # @param skip [::Integer]
301
+ # Optional. Number of individual resources to skip while paginating.
302
+ # @yield [result, operation] Access the result along with the TransportOperation object
303
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::PrivateAuction>]
304
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
305
+ #
306
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Ads::AdManager::V1::PrivateAuction>]
307
+ #
308
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
309
+ #
310
+ # @example Basic example
311
+ # require "google/ads/ad_manager/v1"
312
+ #
313
+ # # Create a client object. The client can be reused for multiple calls.
314
+ # client = Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new
315
+ #
316
+ # # Create a request. To set request fields, pass in keyword arguments.
317
+ # request = Google::Ads::AdManager::V1::ListPrivateAuctionsRequest.new
318
+ #
319
+ # # Call the list_private_auctions method.
320
+ # result = client.list_private_auctions request
321
+ #
322
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
323
+ # # over elements, and API calls will be issued to fetch pages as needed.
324
+ # result.each do |item|
325
+ # # Each element is of type ::Google::Ads::AdManager::V1::PrivateAuction.
326
+ # p item
327
+ # end
328
+ #
329
+ def list_private_auctions request, options = nil
330
+ raise ::ArgumentError, "request must be provided" if request.nil?
331
+
332
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::ListPrivateAuctionsRequest
333
+
334
+ # Converts hash and nil to an options object
335
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
336
+
337
+ # Customize the options with defaults
338
+ call_metadata = @config.rpcs.list_private_auctions.metadata.to_h
339
+
340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
341
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
343
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
344
+ transports_version_send: [:rest]
345
+
346
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
347
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
348
+
349
+ options.apply_defaults timeout: @config.rpcs.list_private_auctions.timeout,
350
+ metadata: call_metadata,
351
+ retry_policy: @config.rpcs.list_private_auctions.retry_policy
352
+
353
+ options.apply_defaults timeout: @config.timeout,
354
+ metadata: @config.metadata,
355
+ retry_policy: @config.retry_policy
356
+
357
+ @private_auction_service_stub.list_private_auctions request, options do |result, operation|
358
+ result = ::Gapic::Rest::PagedEnumerable.new @private_auction_service_stub, :list_private_auctions, "private_auctions", request, result, options
359
+ yield result, operation if block_given?
360
+ throw :response, result
361
+ end
362
+ rescue ::Gapic::Rest::Error => e
363
+ raise ::Google::Cloud::Error.from_error(e)
364
+ end
365
+
366
+ ##
367
+ # API to create a `PrivateAuction` object.
368
+ #
369
+ # @overload create_private_auction(request, options = nil)
370
+ # Pass arguments to `create_private_auction` via a request object, either of type
371
+ # {::Google::Ads::AdManager::V1::CreatePrivateAuctionRequest} or an equivalent Hash.
372
+ #
373
+ # @param request [::Google::Ads::AdManager::V1::CreatePrivateAuctionRequest, ::Hash]
374
+ # A request object representing the call parameters. Required. To specify no
375
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
376
+ # @param options [::Gapic::CallOptions, ::Hash]
377
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
378
+ #
379
+ # @overload create_private_auction(parent: nil, private_auction: nil)
380
+ # Pass arguments to `create_private_auction` via keyword arguments. Note that at
381
+ # least one keyword argument is required. To specify no parameters, or to keep all
382
+ # the default parameter values, pass an empty Hash as a request object (see above).
383
+ #
384
+ # @param parent [::String]
385
+ # Required. The parent resource where this `PrivateAuction` will be
386
+ # created. Format: `networks/{network_code}`
387
+ # @param private_auction [::Google::Ads::AdManager::V1::PrivateAuction, ::Hash]
388
+ # Required. The `PrivateAuction` to create.
389
+ # @yield [result, operation] Access the result along with the TransportOperation object
390
+ # @yieldparam result [::Google::Ads::AdManager::V1::PrivateAuction]
391
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
392
+ #
393
+ # @return [::Google::Ads::AdManager::V1::PrivateAuction]
394
+ #
395
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
396
+ #
397
+ # @example Basic example
398
+ # require "google/ads/ad_manager/v1"
399
+ #
400
+ # # Create a client object. The client can be reused for multiple calls.
401
+ # client = Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new
402
+ #
403
+ # # Create a request. To set request fields, pass in keyword arguments.
404
+ # request = Google::Ads::AdManager::V1::CreatePrivateAuctionRequest.new
405
+ #
406
+ # # Call the create_private_auction method.
407
+ # result = client.create_private_auction request
408
+ #
409
+ # # The returned object is of type Google::Ads::AdManager::V1::PrivateAuction.
410
+ # p result
411
+ #
412
+ def create_private_auction request, options = nil
413
+ raise ::ArgumentError, "request must be provided" if request.nil?
414
+
415
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::CreatePrivateAuctionRequest
416
+
417
+ # Converts hash and nil to an options object
418
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
419
+
420
+ # Customize the options with defaults
421
+ call_metadata = @config.rpcs.create_private_auction.metadata.to_h
422
+
423
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
424
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
425
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
426
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
427
+ transports_version_send: [:rest]
428
+
429
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
430
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
+
432
+ options.apply_defaults timeout: @config.rpcs.create_private_auction.timeout,
433
+ metadata: call_metadata,
434
+ retry_policy: @config.rpcs.create_private_auction.retry_policy
435
+
436
+ options.apply_defaults timeout: @config.timeout,
437
+ metadata: @config.metadata,
438
+ retry_policy: @config.retry_policy
439
+
440
+ @private_auction_service_stub.create_private_auction request, options do |result, operation|
441
+ yield result, operation if block_given?
442
+ end
443
+ rescue ::Gapic::Rest::Error => e
444
+ raise ::Google::Cloud::Error.from_error(e)
445
+ end
446
+
447
+ ##
448
+ # API to update a `PrivateAuction` object.
449
+ #
450
+ # @overload update_private_auction(request, options = nil)
451
+ # Pass arguments to `update_private_auction` via a request object, either of type
452
+ # {::Google::Ads::AdManager::V1::UpdatePrivateAuctionRequest} or an equivalent Hash.
453
+ #
454
+ # @param request [::Google::Ads::AdManager::V1::UpdatePrivateAuctionRequest, ::Hash]
455
+ # A request object representing the call parameters. Required. To specify no
456
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
457
+ # @param options [::Gapic::CallOptions, ::Hash]
458
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
459
+ #
460
+ # @overload update_private_auction(private_auction: nil, update_mask: nil)
461
+ # Pass arguments to `update_private_auction` via keyword arguments. Note that at
462
+ # least one keyword argument is required. To specify no parameters, or to keep all
463
+ # the default parameter values, pass an empty Hash as a request object (see above).
464
+ #
465
+ # @param private_auction [::Google::Ads::AdManager::V1::PrivateAuction, ::Hash]
466
+ # Required. The `PrivateAuction` to update.
467
+ #
468
+ # The `PrivateAuction`'s `name` is used to identify the
469
+ # `PrivateAuction` to update.
470
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
471
+ # Required. The list of fields to update.
472
+ # @yield [result, operation] Access the result along with the TransportOperation object
473
+ # @yieldparam result [::Google::Ads::AdManager::V1::PrivateAuction]
474
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
475
+ #
476
+ # @return [::Google::Ads::AdManager::V1::PrivateAuction]
477
+ #
478
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
479
+ #
480
+ # @example Basic example
481
+ # require "google/ads/ad_manager/v1"
482
+ #
483
+ # # Create a client object. The client can be reused for multiple calls.
484
+ # client = Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new
485
+ #
486
+ # # Create a request. To set request fields, pass in keyword arguments.
487
+ # request = Google::Ads::AdManager::V1::UpdatePrivateAuctionRequest.new
488
+ #
489
+ # # Call the update_private_auction method.
490
+ # result = client.update_private_auction request
491
+ #
492
+ # # The returned object is of type Google::Ads::AdManager::V1::PrivateAuction.
493
+ # p result
494
+ #
495
+ def update_private_auction request, options = nil
496
+ raise ::ArgumentError, "request must be provided" if request.nil?
497
+
498
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::AdManager::V1::UpdatePrivateAuctionRequest
499
+
500
+ # Converts hash and nil to an options object
501
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
502
+
503
+ # Customize the options with defaults
504
+ call_metadata = @config.rpcs.update_private_auction.metadata.to_h
505
+
506
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
507
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
508
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
509
+ gapic_version: ::Google::Ads::AdManager::V1::VERSION,
510
+ transports_version_send: [:rest]
511
+
512
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
513
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
+
515
+ options.apply_defaults timeout: @config.rpcs.update_private_auction.timeout,
516
+ metadata: call_metadata,
517
+ retry_policy: @config.rpcs.update_private_auction.retry_policy
518
+
519
+ options.apply_defaults timeout: @config.timeout,
520
+ metadata: @config.metadata,
521
+ retry_policy: @config.retry_policy
522
+
523
+ @private_auction_service_stub.update_private_auction request, options do |result, operation|
524
+ yield result, operation if block_given?
525
+ end
526
+ rescue ::Gapic::Rest::Error => e
527
+ raise ::Google::Cloud::Error.from_error(e)
528
+ end
529
+
530
+ ##
531
+ # Configuration class for the PrivateAuctionService REST API.
532
+ #
533
+ # This class represents the configuration for PrivateAuctionService REST,
534
+ # providing control over timeouts, retry behavior, logging, transport
535
+ # parameters, and other low-level controls. Certain parameters can also be
536
+ # applied individually to specific RPCs. See
537
+ # {::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client::Configuration::Rpcs}
538
+ # for a list of RPCs that can be configured independently.
539
+ #
540
+ # Configuration can be applied globally to all clients, or to a single client
541
+ # on construction.
542
+ #
543
+ # @example
544
+ #
545
+ # # Modify the global config, setting the timeout for
546
+ # # get_private_auction to 20 seconds,
547
+ # # and all remaining timeouts to 10 seconds.
548
+ # ::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.configure do |config|
549
+ # config.timeout = 10.0
550
+ # config.rpcs.get_private_auction.timeout = 20.0
551
+ # end
552
+ #
553
+ # # Apply the above configuration only to a new client.
554
+ # client = ::Google::Ads::AdManager::V1::PrivateAuctionService::Rest::Client.new do |config|
555
+ # config.timeout = 10.0
556
+ # config.rpcs.get_private_auction.timeout = 20.0
557
+ # end
558
+ #
559
+ # @!attribute [rw] endpoint
560
+ # A custom service endpoint, as a hostname or hostname:port. The default is
561
+ # nil, indicating to use the default endpoint in the current universe domain.
562
+ # @return [::String,nil]
563
+ # @!attribute [rw] credentials
564
+ # Credentials to send with calls. You may provide any of the following types:
565
+ # * (`String`) The path to a service account key file in JSON format
566
+ # * (`Hash`) A service account key as a Hash
567
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
568
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
569
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
570
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
571
+ # * (`nil`) indicating no credentials
572
+ #
573
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
574
+ # external source for authentication to Google Cloud, you must validate it before
575
+ # providing it to a Google API client library. Providing an unvalidated credential
576
+ # configuration to Google APIs can compromise the security of your systems and data.
577
+ # For more information, refer to [Validate credential configurations from external
578
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
579
+ # @return [::Object]
580
+ # @!attribute [rw] scope
581
+ # The OAuth scopes
582
+ # @return [::Array<::String>]
583
+ # @!attribute [rw] lib_name
584
+ # The library name as recorded in instrumentation and logging
585
+ # @return [::String]
586
+ # @!attribute [rw] lib_version
587
+ # The library version as recorded in instrumentation and logging
588
+ # @return [::String]
589
+ # @!attribute [rw] timeout
590
+ # The call timeout in seconds.
591
+ # @return [::Numeric]
592
+ # @!attribute [rw] metadata
593
+ # Additional headers to be sent with the call.
594
+ # @return [::Hash{::Symbol=>::String}]
595
+ # @!attribute [rw] retry_policy
596
+ # The retry policy. The value is a hash with the following keys:
597
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
598
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
599
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
600
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
601
+ # trigger a retry.
602
+ # @return [::Hash]
603
+ # @!attribute [rw] quota_project
604
+ # A separate project against which to charge quota.
605
+ # @return [::String]
606
+ # @!attribute [rw] universe_domain
607
+ # The universe domain within which to make requests. This determines the
608
+ # default endpoint URL. The default value of nil uses the environment
609
+ # universe (usually the default "googleapis.com" universe).
610
+ # @return [::String,nil]
611
+ # @!attribute [rw] logger
612
+ # A custom logger to use for request/response debug logging, or the value
613
+ # `:default` (the default) to construct a default logger, or `nil` to
614
+ # explicitly disable logging.
615
+ # @return [::Logger,:default,nil]
616
+ #
617
+ class Configuration
618
+ extend ::Gapic::Config
619
+
620
+ # @private
621
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
622
+ DEFAULT_ENDPOINT = "admanager.googleapis.com"
623
+
624
+ config_attr :endpoint, nil, ::String, nil
625
+ config_attr :credentials, nil do |value|
626
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
627
+ allowed.any? { |klass| klass === value }
628
+ end
629
+ config_attr :scope, nil, ::String, ::Array, nil
630
+ config_attr :lib_name, nil, ::String, nil
631
+ config_attr :lib_version, nil, ::String, nil
632
+ config_attr :timeout, nil, ::Numeric, nil
633
+ config_attr :metadata, nil, ::Hash, nil
634
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
635
+ config_attr :quota_project, nil, ::String, nil
636
+ config_attr :universe_domain, nil, ::String, nil
637
+ config_attr :logger, :default, ::Logger, nil, :default
638
+
639
+ # @private
640
+ def initialize parent_config = nil
641
+ @parent_config = parent_config unless parent_config.nil?
642
+
643
+ yield self if block_given?
644
+ end
645
+
646
+ ##
647
+ # Configurations for individual RPCs
648
+ # @return [Rpcs]
649
+ #
650
+ def rpcs
651
+ @rpcs ||= begin
652
+ parent_rpcs = nil
653
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
654
+ Rpcs.new parent_rpcs
655
+ end
656
+ end
657
+
658
+ ##
659
+ # Configuration RPC class for the PrivateAuctionService API.
660
+ #
661
+ # Includes fields providing the configuration for each RPC in this service.
662
+ # Each configuration object is of type `Gapic::Config::Method` and includes
663
+ # the following configuration fields:
664
+ #
665
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
666
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
667
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
668
+ # include the following keys:
669
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
670
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
671
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
672
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
673
+ # trigger a retry.
674
+ #
675
+ class Rpcs
676
+ ##
677
+ # RPC-specific configuration for `get_private_auction`
678
+ # @return [::Gapic::Config::Method]
679
+ #
680
+ attr_reader :get_private_auction
681
+ ##
682
+ # RPC-specific configuration for `list_private_auctions`
683
+ # @return [::Gapic::Config::Method]
684
+ #
685
+ attr_reader :list_private_auctions
686
+ ##
687
+ # RPC-specific configuration for `create_private_auction`
688
+ # @return [::Gapic::Config::Method]
689
+ #
690
+ attr_reader :create_private_auction
691
+ ##
692
+ # RPC-specific configuration for `update_private_auction`
693
+ # @return [::Gapic::Config::Method]
694
+ #
695
+ attr_reader :update_private_auction
696
+
697
+ # @private
698
+ def initialize parent_rpcs = nil
699
+ get_private_auction_config = parent_rpcs.get_private_auction if parent_rpcs.respond_to? :get_private_auction
700
+ @get_private_auction = ::Gapic::Config::Method.new get_private_auction_config
701
+ list_private_auctions_config = parent_rpcs.list_private_auctions if parent_rpcs.respond_to? :list_private_auctions
702
+ @list_private_auctions = ::Gapic::Config::Method.new list_private_auctions_config
703
+ create_private_auction_config = parent_rpcs.create_private_auction if parent_rpcs.respond_to? :create_private_auction
704
+ @create_private_auction = ::Gapic::Config::Method.new create_private_auction_config
705
+ update_private_auction_config = parent_rpcs.update_private_auction if parent_rpcs.respond_to? :update_private_auction
706
+ @update_private_auction = ::Gapic::Config::Method.new update_private_auction_config
707
+
708
+ yield self if block_given?
709
+ end
710
+ end
711
+ end
712
+ end
713
+ end
714
+ end
715
+ end
716
+ end
717
+ end
718
+ end