google-analytics-admin-v1alpha 0.1.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.
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/analytics/admin/v1alpha"
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/analytics/admin/v1alpha/analytics_admin_service"
20
+ require "google/analytics/admin/v1alpha/version"
21
+
22
+ module Google
23
+ module Analytics
24
+ module Admin
25
+ ##
26
+ # To load this package, including all its services, and instantiate a client:
27
+ #
28
+ # require "google/analytics/admin/v1alpha"
29
+ # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
30
+ #
31
+ module V1alpha
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,311 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/analytics/admin/v1alpha/analytics_admin.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/analytics/admin/v1alpha/resources_pb'
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/analytics/admin/v1alpha/analytics_admin.proto", :syntax => :proto3) do
15
+ add_message "google.analytics.admin.v1alpha.GetAccountRequest" do
16
+ optional :name, :string, 1
17
+ end
18
+ add_message "google.analytics.admin.v1alpha.ListAccountsRequest" do
19
+ optional :page_size, :int32, 1
20
+ optional :page_token, :string, 2
21
+ optional :show_deleted, :bool, 3
22
+ end
23
+ add_message "google.analytics.admin.v1alpha.ListAccountsResponse" do
24
+ repeated :accounts, :message, 1, "google.analytics.admin.v1alpha.Account"
25
+ optional :next_page_token, :string, 2
26
+ end
27
+ add_message "google.analytics.admin.v1alpha.DeleteAccountRequest" do
28
+ optional :name, :string, 1
29
+ end
30
+ add_message "google.analytics.admin.v1alpha.UpdateAccountRequest" do
31
+ optional :account, :message, 1, "google.analytics.admin.v1alpha.Account"
32
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
33
+ end
34
+ add_message "google.analytics.admin.v1alpha.ProvisionAccountTicketRequest" do
35
+ optional :account, :message, 1, "google.analytics.admin.v1alpha.Account"
36
+ optional :redirect_uri, :string, 2
37
+ end
38
+ add_message "google.analytics.admin.v1alpha.ProvisionAccountTicketResponse" do
39
+ optional :account_ticket_id, :string, 1
40
+ end
41
+ add_message "google.analytics.admin.v1alpha.GetPropertyRequest" do
42
+ optional :name, :string, 1
43
+ end
44
+ add_message "google.analytics.admin.v1alpha.ListPropertiesRequest" do
45
+ optional :filter, :string, 1
46
+ optional :page_size, :int32, 2
47
+ optional :page_token, :string, 3
48
+ optional :show_deleted, :bool, 4
49
+ end
50
+ add_message "google.analytics.admin.v1alpha.ListPropertiesResponse" do
51
+ repeated :properties, :message, 1, "google.analytics.admin.v1alpha.Property"
52
+ optional :next_page_token, :string, 2
53
+ end
54
+ add_message "google.analytics.admin.v1alpha.UpdatePropertyRequest" do
55
+ optional :property, :message, 1, "google.analytics.admin.v1alpha.Property"
56
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
57
+ end
58
+ add_message "google.analytics.admin.v1alpha.CreatePropertyRequest" do
59
+ optional :property, :message, 1, "google.analytics.admin.v1alpha.Property"
60
+ end
61
+ add_message "google.analytics.admin.v1alpha.DeletePropertyRequest" do
62
+ optional :name, :string, 1
63
+ end
64
+ add_message "google.analytics.admin.v1alpha.GetUserLinkRequest" do
65
+ optional :name, :string, 1
66
+ end
67
+ add_message "google.analytics.admin.v1alpha.BatchGetUserLinksRequest" do
68
+ optional :parent, :string, 1
69
+ repeated :names, :string, 2
70
+ end
71
+ add_message "google.analytics.admin.v1alpha.BatchGetUserLinksResponse" do
72
+ repeated :user_links, :message, 1, "google.analytics.admin.v1alpha.UserLink"
73
+ end
74
+ add_message "google.analytics.admin.v1alpha.ListUserLinksRequest" do
75
+ optional :parent, :string, 1
76
+ optional :page_size, :int32, 2
77
+ optional :page_token, :string, 3
78
+ end
79
+ add_message "google.analytics.admin.v1alpha.ListUserLinksResponse" do
80
+ repeated :user_links, :message, 1, "google.analytics.admin.v1alpha.UserLink"
81
+ optional :next_page_token, :string, 2
82
+ end
83
+ add_message "google.analytics.admin.v1alpha.AuditUserLinksRequest" do
84
+ optional :parent, :string, 1
85
+ optional :page_size, :int32, 2
86
+ optional :page_token, :string, 3
87
+ end
88
+ add_message "google.analytics.admin.v1alpha.AuditUserLinksResponse" do
89
+ repeated :user_links, :message, 1, "google.analytics.admin.v1alpha.AuditUserLink"
90
+ optional :next_page_token, :string, 2
91
+ end
92
+ add_message "google.analytics.admin.v1alpha.CreateUserLinkRequest" do
93
+ optional :parent, :string, 1
94
+ optional :notify_new_user, :bool, 2
95
+ optional :user_link, :message, 3, "google.analytics.admin.v1alpha.UserLink"
96
+ end
97
+ add_message "google.analytics.admin.v1alpha.BatchCreateUserLinksRequest" do
98
+ optional :parent, :string, 1
99
+ optional :notify_new_users, :bool, 2
100
+ repeated :requests, :message, 3, "google.analytics.admin.v1alpha.CreateUserLinkRequest"
101
+ end
102
+ add_message "google.analytics.admin.v1alpha.BatchCreateUserLinksResponse" do
103
+ repeated :user_links, :message, 1, "google.analytics.admin.v1alpha.UserLink"
104
+ end
105
+ add_message "google.analytics.admin.v1alpha.UpdateUserLinkRequest" do
106
+ optional :user_link, :message, 1, "google.analytics.admin.v1alpha.UserLink"
107
+ end
108
+ add_message "google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest" do
109
+ optional :parent, :string, 1
110
+ repeated :requests, :message, 2, "google.analytics.admin.v1alpha.UpdateUserLinkRequest"
111
+ end
112
+ add_message "google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse" do
113
+ repeated :user_links, :message, 1, "google.analytics.admin.v1alpha.UserLink"
114
+ end
115
+ add_message "google.analytics.admin.v1alpha.DeleteUserLinkRequest" do
116
+ optional :name, :string, 1
117
+ end
118
+ add_message "google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest" do
119
+ optional :parent, :string, 1
120
+ repeated :requests, :message, 2, "google.analytics.admin.v1alpha.DeleteUserLinkRequest"
121
+ end
122
+ add_message "google.analytics.admin.v1alpha.GetWebDataStreamRequest" do
123
+ optional :name, :string, 1
124
+ end
125
+ add_message "google.analytics.admin.v1alpha.DeleteWebDataStreamRequest" do
126
+ optional :name, :string, 1
127
+ end
128
+ add_message "google.analytics.admin.v1alpha.UpdateWebDataStreamRequest" do
129
+ optional :web_data_stream, :message, 1, "google.analytics.admin.v1alpha.WebDataStream"
130
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
131
+ end
132
+ add_message "google.analytics.admin.v1alpha.CreateWebDataStreamRequest" do
133
+ optional :web_data_stream, :message, 1, "google.analytics.admin.v1alpha.WebDataStream"
134
+ optional :parent, :string, 2
135
+ end
136
+ add_message "google.analytics.admin.v1alpha.ListWebDataStreamsRequest" do
137
+ optional :parent, :string, 1
138
+ optional :page_size, :int32, 2
139
+ optional :page_token, :string, 3
140
+ end
141
+ add_message "google.analytics.admin.v1alpha.ListWebDataStreamsResponse" do
142
+ repeated :web_data_streams, :message, 1, "google.analytics.admin.v1alpha.WebDataStream"
143
+ optional :next_page_token, :string, 2
144
+ end
145
+ add_message "google.analytics.admin.v1alpha.GetIosAppDataStreamRequest" do
146
+ optional :name, :string, 1
147
+ end
148
+ add_message "google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest" do
149
+ optional :name, :string, 1
150
+ end
151
+ add_message "google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest" do
152
+ optional :ios_app_data_stream, :message, 1, "google.analytics.admin.v1alpha.IosAppDataStream"
153
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
154
+ end
155
+ add_message "google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest" do
156
+ optional :ios_app_data_stream, :message, 1, "google.analytics.admin.v1alpha.IosAppDataStream"
157
+ optional :parent, :string, 2
158
+ end
159
+ add_message "google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest" do
160
+ optional :parent, :string, 1
161
+ optional :page_size, :int32, 2
162
+ optional :page_token, :string, 3
163
+ end
164
+ add_message "google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse" do
165
+ repeated :ios_app_data_streams, :message, 1, "google.analytics.admin.v1alpha.IosAppDataStream"
166
+ optional :next_page_token, :string, 2
167
+ end
168
+ add_message "google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest" do
169
+ optional :name, :string, 1
170
+ end
171
+ add_message "google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest" do
172
+ optional :name, :string, 1
173
+ end
174
+ add_message "google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest" do
175
+ optional :android_app_data_stream, :message, 1, "google.analytics.admin.v1alpha.AndroidAppDataStream"
176
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
177
+ end
178
+ add_message "google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest" do
179
+ optional :android_app_data_stream, :message, 1, "google.analytics.admin.v1alpha.AndroidAppDataStream"
180
+ optional :parent, :string, 2
181
+ end
182
+ add_message "google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest" do
183
+ optional :parent, :string, 1
184
+ optional :page_size, :int32, 2
185
+ optional :page_token, :string, 3
186
+ end
187
+ add_message "google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse" do
188
+ repeated :android_app_data_streams, :message, 1, "google.analytics.admin.v1alpha.AndroidAppDataStream"
189
+ optional :next_page_token, :string, 2
190
+ end
191
+ add_message "google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest" do
192
+ optional :name, :string, 1
193
+ end
194
+ add_message "google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest" do
195
+ optional :enhanced_measurement_settings, :message, 1, "google.analytics.admin.v1alpha.EnhancedMeasurementSettings"
196
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
197
+ end
198
+ add_message "google.analytics.admin.v1alpha.CreateFirebaseLinkRequest" do
199
+ optional :parent, :string, 1
200
+ optional :firebase_link, :message, 2, "google.analytics.admin.v1alpha.FirebaseLink"
201
+ end
202
+ add_message "google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest" do
203
+ optional :firebase_link, :message, 1, "google.analytics.admin.v1alpha.FirebaseLink"
204
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
205
+ end
206
+ add_message "google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest" do
207
+ optional :name, :string, 1
208
+ end
209
+ add_message "google.analytics.admin.v1alpha.ListFirebaseLinksRequest" do
210
+ optional :parent, :string, 1
211
+ end
212
+ add_message "google.analytics.admin.v1alpha.ListFirebaseLinksResponse" do
213
+ repeated :firebase_links, :message, 1, "google.analytics.admin.v1alpha.FirebaseLink"
214
+ end
215
+ add_message "google.analytics.admin.v1alpha.GetGlobalSiteTagRequest" do
216
+ optional :name, :string, 1
217
+ end
218
+ add_message "google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest" do
219
+ optional :parent, :string, 1
220
+ optional :google_ads_link, :message, 2, "google.analytics.admin.v1alpha.GoogleAdsLink"
221
+ end
222
+ add_message "google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest" do
223
+ optional :google_ads_link, :message, 1, "google.analytics.admin.v1alpha.GoogleAdsLink"
224
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
225
+ end
226
+ add_message "google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest" do
227
+ optional :name, :string, 1
228
+ end
229
+ add_message "google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest" do
230
+ optional :parent, :string, 1
231
+ optional :page_size, :int32, 2
232
+ optional :page_token, :string, 3
233
+ end
234
+ add_message "google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse" do
235
+ repeated :google_ads_links, :message, 1, "google.analytics.admin.v1alpha.GoogleAdsLink"
236
+ optional :next_page_token, :string, 2
237
+ end
238
+ add_message "google.analytics.admin.v1alpha.GetDataSharingSettingsRequest" do
239
+ optional :name, :string, 1
240
+ end
241
+ end
242
+ end
243
+
244
+ module Google
245
+ module Analytics
246
+ module Admin
247
+ module V1alpha
248
+ GetAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAccountRequest").msgclass
249
+ ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountsRequest").msgclass
250
+ ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountsResponse").msgclass
251
+ DeleteAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAccountRequest").msgclass
252
+ UpdateAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAccountRequest").msgclass
253
+ ProvisionAccountTicketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionAccountTicketRequest").msgclass
254
+ ProvisionAccountTicketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionAccountTicketResponse").msgclass
255
+ GetPropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetPropertyRequest").msgclass
256
+ ListPropertiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListPropertiesRequest").msgclass
257
+ ListPropertiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListPropertiesResponse").msgclass
258
+ UpdatePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdatePropertyRequest").msgclass
259
+ CreatePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreatePropertyRequest").msgclass
260
+ DeletePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeletePropertyRequest").msgclass
261
+ GetUserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetUserLinkRequest").msgclass
262
+ BatchGetUserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchGetUserLinksRequest").msgclass
263
+ BatchGetUserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchGetUserLinksResponse").msgclass
264
+ ListUserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListUserLinksRequest").msgclass
265
+ ListUserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListUserLinksResponse").msgclass
266
+ AuditUserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AuditUserLinksRequest").msgclass
267
+ AuditUserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AuditUserLinksResponse").msgclass
268
+ CreateUserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateUserLinkRequest").msgclass
269
+ BatchCreateUserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchCreateUserLinksRequest").msgclass
270
+ BatchCreateUserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchCreateUserLinksResponse").msgclass
271
+ UpdateUserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateUserLinkRequest").msgclass
272
+ BatchUpdateUserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest").msgclass
273
+ BatchUpdateUserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse").msgclass
274
+ DeleteUserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteUserLinkRequest").msgclass
275
+ BatchDeleteUserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest").msgclass
276
+ GetWebDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetWebDataStreamRequest").msgclass
277
+ DeleteWebDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteWebDataStreamRequest").msgclass
278
+ UpdateWebDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateWebDataStreamRequest").msgclass
279
+ CreateWebDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateWebDataStreamRequest").msgclass
280
+ ListWebDataStreamsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListWebDataStreamsRequest").msgclass
281
+ ListWebDataStreamsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListWebDataStreamsResponse").msgclass
282
+ GetIosAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetIosAppDataStreamRequest").msgclass
283
+ DeleteIosAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest").msgclass
284
+ UpdateIosAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest").msgclass
285
+ CreateIosAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest").msgclass
286
+ ListIosAppDataStreamsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest").msgclass
287
+ ListIosAppDataStreamsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse").msgclass
288
+ GetAndroidAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest").msgclass
289
+ DeleteAndroidAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest").msgclass
290
+ UpdateAndroidAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest").msgclass
291
+ CreateAndroidAppDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest").msgclass
292
+ ListAndroidAppDataStreamsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest").msgclass
293
+ ListAndroidAppDataStreamsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse").msgclass
294
+ GetEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest").msgclass
295
+ UpdateEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest").msgclass
296
+ CreateFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateFirebaseLinkRequest").msgclass
297
+ UpdateFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest").msgclass
298
+ DeleteFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest").msgclass
299
+ ListFirebaseLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksRequest").msgclass
300
+ ListFirebaseLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksResponse").msgclass
301
+ GetGlobalSiteTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetGlobalSiteTagRequest").msgclass
302
+ CreateGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest").msgclass
303
+ UpdateGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest").msgclass
304
+ DeleteGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest").msgclass
305
+ ListGoogleAdsLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest").msgclass
306
+ ListGoogleAdsLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse").msgclass
307
+ GetDataSharingSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataSharingSettingsRequest").msgclass
308
+ end
309
+ end
310
+ end
311
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/analytics/admin/v1alpha/version"
24
+
25
+ require "google/analytics/admin/v1alpha/analytics_admin_service/credentials"
26
+ require "google/analytics/admin/v1alpha/analytics_admin_service/paths"
27
+ require "google/analytics/admin/v1alpha/analytics_admin_service/client"
28
+
29
+ module Google
30
+ module Analytics
31
+ module Admin
32
+ module V1alpha
33
+ ##
34
+ # Service Interface for the Analytics Admin API (App+Web).
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/analytics/admin/v1alpha/analytics_admin_service"
39
+ # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
40
+ #
41
+ module AnalyticsAdminService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "analytics_admin_service", "helpers.rb"
49
+ require "google/analytics/admin/v1alpha/analytics_admin_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,4090 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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/analytics/admin/v1alpha/analytics_admin_pb"
21
+
22
+ module Google
23
+ module Analytics
24
+ module Admin
25
+ module V1alpha
26
+ module AnalyticsAdminService
27
+ ##
28
+ # Client for the AnalyticsAdminService service.
29
+ #
30
+ # Service Interface for the Analytics Admin API (App+Web).
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :analytics_admin_service_stub
37
+
38
+ ##
39
+ # Configure the AnalyticsAdminService Client class.
40
+ #
41
+ # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all AnalyticsAdminService clients:
47
+ #
48
+ # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Analytics", "Admin", "V1alpha"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const&.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config.timeout = 60.0
69
+ default_config.retry_policy = {
70
+ initial_delay: 1.0,
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14, 2]
74
+ }
75
+
76
+ default_config.rpcs.get_account.timeout = 60.0
77
+
78
+ default_config.rpcs.list_accounts.timeout = 60.0
79
+
80
+ default_config.rpcs.delete_account.timeout = 60.0
81
+
82
+ default_config.rpcs.update_account.timeout = 60.0
83
+
84
+ default_config.rpcs.provision_account_ticket.timeout = 60.0
85
+
86
+ default_config.rpcs.get_property.timeout = 60.0
87
+
88
+ default_config.rpcs.list_properties.timeout = 60.0
89
+
90
+ default_config.rpcs.create_property.timeout = 60.0
91
+
92
+ default_config.rpcs.delete_property.timeout = 60.0
93
+
94
+ default_config.rpcs.update_property.timeout = 60.0
95
+
96
+ default_config.rpcs.get_user_link.timeout = 60.0
97
+
98
+ default_config.rpcs.batch_get_user_links.timeout = 60.0
99
+
100
+ default_config.rpcs.list_user_links.timeout = 60.0
101
+
102
+ default_config.rpcs.audit_user_links.timeout = 60.0
103
+
104
+ default_config.rpcs.create_user_link.timeout = 60.0
105
+
106
+ default_config.rpcs.batch_create_user_links.timeout = 60.0
107
+
108
+ default_config.rpcs.update_user_link.timeout = 60.0
109
+
110
+ default_config.rpcs.batch_update_user_links.timeout = 60.0
111
+
112
+ default_config.rpcs.delete_user_link.timeout = 60.0
113
+
114
+ default_config.rpcs.batch_delete_user_links.timeout = 60.0
115
+
116
+ default_config.rpcs.get_web_data_stream.timeout = 60.0
117
+
118
+ default_config.rpcs.update_web_data_stream.timeout = 60.0
119
+
120
+ default_config.rpcs.create_web_data_stream.timeout = 60.0
121
+
122
+ default_config.rpcs.list_web_data_streams.timeout = 60.0
123
+
124
+ default_config.rpcs.get_ios_app_data_stream.timeout = 60.0
125
+
126
+ default_config.rpcs.delete_ios_app_data_stream.timeout = 60.0
127
+
128
+ default_config.rpcs.update_ios_app_data_stream.timeout = 60.0
129
+
130
+ default_config.rpcs.create_ios_app_data_stream.timeout = 60.0
131
+
132
+ default_config.rpcs.list_ios_app_data_streams.timeout = 60.0
133
+
134
+ default_config.rpcs.get_android_app_data_stream.timeout = 60.0
135
+
136
+ default_config.rpcs.delete_android_app_data_stream.timeout = 60.0
137
+
138
+ default_config.rpcs.update_android_app_data_stream.timeout = 60.0
139
+
140
+ default_config.rpcs.create_android_app_data_stream.timeout = 60.0
141
+
142
+ default_config.rpcs.list_android_app_data_streams.timeout = 60.0
143
+
144
+ default_config.rpcs.get_enhanced_measurement_settings.timeout = 60.0
145
+
146
+ default_config.rpcs.update_enhanced_measurement_settings.timeout = 60.0
147
+
148
+ default_config.rpcs.create_firebase_link.timeout = 60.0
149
+
150
+ default_config.rpcs.update_firebase_link.timeout = 60.0
151
+
152
+ default_config.rpcs.delete_firebase_link.timeout = 60.0
153
+
154
+ default_config.rpcs.list_firebase_links.timeout = 60.0
155
+
156
+ default_config.rpcs.get_global_site_tag.timeout = 60.0
157
+
158
+ default_config.rpcs.create_google_ads_link.timeout = 60.0
159
+
160
+ default_config.rpcs.update_google_ads_link.timeout = 60.0
161
+
162
+ default_config.rpcs.delete_google_ads_link.timeout = 60.0
163
+
164
+ default_config.rpcs.list_google_ads_links.timeout = 60.0
165
+
166
+ default_config
167
+ end
168
+ yield @configure if block_given?
169
+ @configure
170
+ end
171
+
172
+ ##
173
+ # Configure the AnalyticsAdminService Client instance.
174
+ #
175
+ # The configuration is set to the derived mode, meaning that values can be changed,
176
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
177
+ # should be made on {Client.configure}.
178
+ #
179
+ # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration}
180
+ # for a description of the configuration fields.
181
+ #
182
+ # @yield [config] Configure the Client client.
183
+ # @yieldparam config [Client::Configuration]
184
+ #
185
+ # @return [Client::Configuration]
186
+ #
187
+ def configure
188
+ yield @config if block_given?
189
+ @config
190
+ end
191
+
192
+ ##
193
+ # Create a new AnalyticsAdminService client object.
194
+ #
195
+ # ## Examples
196
+ #
197
+ # To create a new AnalyticsAdminService client with the default
198
+ # configuration:
199
+ #
200
+ # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
201
+ #
202
+ # To create a new AnalyticsAdminService client with a custom
203
+ # configuration:
204
+ #
205
+ # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
206
+ # config.timeout = 10.0
207
+ # end
208
+ #
209
+ # @yield [config] Configure the AnalyticsAdminService client.
210
+ # @yieldparam config [Client::Configuration]
211
+ #
212
+ def initialize
213
+ # These require statements are intentionally placed here to initialize
214
+ # the gRPC module only when it's required.
215
+ # See https://github.com/googleapis/toolkit/issues/446
216
+ require "gapic/grpc"
217
+ require "google/analytics/admin/v1alpha/analytics_admin_services_pb"
218
+
219
+ # Create the configuration object
220
+ @config = Configuration.new Client.configure
221
+
222
+ # Yield the configuration if needed
223
+ yield @config if block_given?
224
+
225
+ # Create credentials
226
+ credentials = @config.credentials
227
+ credentials ||= Credentials.default scope: @config.scope
228
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
229
+ credentials = Credentials.new credentials, scope: @config.scope
230
+ end
231
+ @quota_project_id = @config.quota_project
232
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
233
+
234
+ @analytics_admin_service_stub = ::Gapic::ServiceStub.new(
235
+ ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Stub,
236
+ credentials: credentials,
237
+ endpoint: @config.endpoint,
238
+ channel_args: @config.channel_args,
239
+ interceptors: @config.interceptors
240
+ )
241
+ end
242
+
243
+ # Service calls
244
+
245
+ ##
246
+ # Lookup for a single Account.
247
+ # Throws "Target not found" if no such account found, or if caller does not
248
+ # have permissions to access it.
249
+ #
250
+ # @overload get_account(request, options = nil)
251
+ # Pass arguments to `get_account` via a request object, either of type
252
+ # {::Google::Analytics::Admin::V1alpha::GetAccountRequest} or an equivalent Hash.
253
+ #
254
+ # @param request [::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Hash]
255
+ # A request object representing the call parameters. Required. To specify no
256
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
257
+ # @param options [::Gapic::CallOptions, ::Hash]
258
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
259
+ #
260
+ # @overload get_account(name: nil)
261
+ # Pass arguments to `get_account` via keyword arguments. Note that at
262
+ # least one keyword argument is required. To specify no parameters, or to keep all
263
+ # the default parameter values, pass an empty Hash as a request object (see above).
264
+ #
265
+ # @param name [::String]
266
+ # Required. The name of the account to lookup.
267
+ # Format: accounts/\\{account}
268
+ # Example: "accounts/100"
269
+ #
270
+ # @yield [response, operation] Access the result along with the RPC operation
271
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::Account]
272
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
273
+ #
274
+ # @return [::Google::Analytics::Admin::V1alpha::Account]
275
+ #
276
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
277
+ #
278
+ def get_account request, options = nil
279
+ raise ::ArgumentError, "request must be provided" if request.nil?
280
+
281
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccountRequest
282
+
283
+ # Converts hash and nil to an options object
284
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
285
+
286
+ # Customize the options with defaults
287
+ metadata = @config.rpcs.get_account.metadata.to_h
288
+
289
+ # Set x-goog-api-client and x-goog-user-project headers
290
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
291
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
292
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
293
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
+
295
+ header_params = {
296
+ "name" => request.name
297
+ }
298
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
299
+ metadata[:"x-goog-request-params"] ||= request_params_header
300
+
301
+ options.apply_defaults timeout: @config.rpcs.get_account.timeout,
302
+ metadata: metadata,
303
+ retry_policy: @config.rpcs.get_account.retry_policy
304
+ options.apply_defaults metadata: @config.metadata,
305
+ retry_policy: @config.retry_policy
306
+
307
+ @analytics_admin_service_stub.call_rpc :get_account, request, options: options do |response, operation|
308
+ yield response, operation if block_given?
309
+ return response
310
+ end
311
+ rescue ::GRPC::BadStatus => e
312
+ raise ::Google::Cloud::Error.from_error(e)
313
+ end
314
+
315
+ ##
316
+ # Returns all accounts accessible by the caller.
317
+ #
318
+ # Note that these accounts might not currently have App+Web properties.
319
+ # Soft-deleted (ie: "trashed") accounts are excluded by default.
320
+ # Returns an empty list if no relevant accounts are found.
321
+ #
322
+ # @overload list_accounts(request, options = nil)
323
+ # Pass arguments to `list_accounts` via a request object, either of type
324
+ # {::Google::Analytics::Admin::V1alpha::ListAccountsRequest} or an equivalent Hash.
325
+ #
326
+ # @param request [::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Hash]
327
+ # A request object representing the call parameters. Required. To specify no
328
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
329
+ # @param options [::Gapic::CallOptions, ::Hash]
330
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
331
+ #
332
+ # @overload list_accounts(page_size: nil, page_token: nil, show_deleted: nil)
333
+ # Pass arguments to `list_accounts` via keyword arguments. Note that at
334
+ # least one keyword argument is required. To specify no parameters, or to keep all
335
+ # the default parameter values, pass an empty Hash as a request object (see above).
336
+ #
337
+ # @param page_size [::Integer]
338
+ # The maximum number of resources to return. The service may return
339
+ # fewer than this value, even if there are additional pages.
340
+ # If unspecified, at most 50 resources will be returned.
341
+ # The maximum value is 200; (higher values will be coerced to the maximum)
342
+ # @param page_token [::String]
343
+ # A page token, received from a previous `ListAccounts` call.
344
+ # Provide this to retrieve the subsequent page.
345
+ # When paginating, all other parameters provided to `ListAccounts` must
346
+ # match the call that provided the page token.
347
+ # @param show_deleted [::Boolean]
348
+ # Whether to include soft-deleted (ie: "trashed") Accounts in the
349
+ # results. Accounts can be inspected to determine whether they are deleted or
350
+ # not.
351
+ #
352
+ # @yield [response, operation] Access the result along with the RPC operation
353
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>]
354
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
355
+ #
356
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>]
357
+ #
358
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
359
+ #
360
+ def list_accounts request, options = nil
361
+ raise ::ArgumentError, "request must be provided" if request.nil?
362
+
363
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountsRequest
364
+
365
+ # Converts hash and nil to an options object
366
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
367
+
368
+ # Customize the options with defaults
369
+ metadata = @config.rpcs.list_accounts.metadata.to_h
370
+
371
+ # Set x-goog-api-client and x-goog-user-project headers
372
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
374
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
375
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
+
377
+ options.apply_defaults timeout: @config.rpcs.list_accounts.timeout,
378
+ metadata: metadata,
379
+ retry_policy: @config.rpcs.list_accounts.retry_policy
380
+ options.apply_defaults metadata: @config.metadata,
381
+ retry_policy: @config.retry_policy
382
+
383
+ @analytics_admin_service_stub.call_rpc :list_accounts, request, options: options do |response, operation|
384
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, request, response, operation, options
385
+ yield response, operation if block_given?
386
+ return response
387
+ end
388
+ rescue ::GRPC::BadStatus => e
389
+ raise ::Google::Cloud::Error.from_error(e)
390
+ end
391
+
392
+ ##
393
+ # Marks target Account as soft-deleted (ie: "trashed") and returns it.
394
+ #
395
+ # This API does not have a method to restore soft-deleted accounts.
396
+ # However, they can be restored using the Trash Can UI.
397
+ #
398
+ # If the accounts are not restored before the expiration time, the account
399
+ # and all child resources (eg: Properties, GoogleAdsLinks, Streams,
400
+ # UserLinks) will be permanently purged.
401
+ # https://support.google.com/analytics/answer/6154772
402
+ #
403
+ # Returns an error if the target is not found.
404
+ #
405
+ # @overload delete_account(request, options = nil)
406
+ # Pass arguments to `delete_account` via a request object, either of type
407
+ # {::Google::Analytics::Admin::V1alpha::DeleteAccountRequest} or an equivalent Hash.
408
+ #
409
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Hash]
410
+ # A request object representing the call parameters. Required. To specify no
411
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
412
+ # @param options [::Gapic::CallOptions, ::Hash]
413
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
414
+ #
415
+ # @overload delete_account(name: nil)
416
+ # Pass arguments to `delete_account` via keyword arguments. Note that at
417
+ # least one keyword argument is required. To specify no parameters, or to keep all
418
+ # the default parameter values, pass an empty Hash as a request object (see above).
419
+ #
420
+ # @param name [::String]
421
+ # Required. The name of the Account to soft-delete.
422
+ # Format: accounts/\\{account}
423
+ # Example: "accounts/100"
424
+ #
425
+ # @yield [response, operation] Access the result along with the RPC operation
426
+ # @yieldparam response [::Google::Protobuf::Empty]
427
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
428
+ #
429
+ # @return [::Google::Protobuf::Empty]
430
+ #
431
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
432
+ #
433
+ def delete_account request, options = nil
434
+ raise ::ArgumentError, "request must be provided" if request.nil?
435
+
436
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest
437
+
438
+ # Converts hash and nil to an options object
439
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
440
+
441
+ # Customize the options with defaults
442
+ metadata = @config.rpcs.delete_account.metadata.to_h
443
+
444
+ # Set x-goog-api-client and x-goog-user-project headers
445
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
446
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
447
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
448
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
+
450
+ header_params = {
451
+ "name" => request.name
452
+ }
453
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
454
+ metadata[:"x-goog-request-params"] ||= request_params_header
455
+
456
+ options.apply_defaults timeout: @config.rpcs.delete_account.timeout,
457
+ metadata: metadata,
458
+ retry_policy: @config.rpcs.delete_account.retry_policy
459
+ options.apply_defaults metadata: @config.metadata,
460
+ retry_policy: @config.retry_policy
461
+
462
+ @analytics_admin_service_stub.call_rpc :delete_account, request, options: options do |response, operation|
463
+ yield response, operation if block_given?
464
+ return response
465
+ end
466
+ rescue ::GRPC::BadStatus => e
467
+ raise ::Google::Cloud::Error.from_error(e)
468
+ end
469
+
470
+ ##
471
+ # Updates an account.
472
+ #
473
+ # @overload update_account(request, options = nil)
474
+ # Pass arguments to `update_account` via a request object, either of type
475
+ # {::Google::Analytics::Admin::V1alpha::UpdateAccountRequest} or an equivalent Hash.
476
+ #
477
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Hash]
478
+ # A request object representing the call parameters. Required. To specify no
479
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
480
+ # @param options [::Gapic::CallOptions, ::Hash]
481
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
482
+ #
483
+ # @overload update_account(account: nil, update_mask: nil)
484
+ # Pass arguments to `update_account` via keyword arguments. Note that at
485
+ # least one keyword argument is required. To specify no parameters, or to keep all
486
+ # the default parameter values, pass an empty Hash as a request object (see above).
487
+ #
488
+ # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash]
489
+ # Required. The account to update.
490
+ # The account's `name` field is used to identify the account.
491
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
492
+ # The list of fields to be updated. Omitted fields will not be updated.
493
+ #
494
+ # @yield [response, operation] Access the result along with the RPC operation
495
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::Account]
496
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
497
+ #
498
+ # @return [::Google::Analytics::Admin::V1alpha::Account]
499
+ #
500
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
501
+ #
502
+ def update_account request, options = nil
503
+ raise ::ArgumentError, "request must be provided" if request.nil?
504
+
505
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest
506
+
507
+ # Converts hash and nil to an options object
508
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
509
+
510
+ # Customize the options with defaults
511
+ metadata = @config.rpcs.update_account.metadata.to_h
512
+
513
+ # Set x-goog-api-client and x-goog-user-project headers
514
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
515
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
516
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
517
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
518
+
519
+ header_params = {
520
+ "account.name" => request.account.name
521
+ }
522
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
523
+ metadata[:"x-goog-request-params"] ||= request_params_header
524
+
525
+ options.apply_defaults timeout: @config.rpcs.update_account.timeout,
526
+ metadata: metadata,
527
+ retry_policy: @config.rpcs.update_account.retry_policy
528
+ options.apply_defaults metadata: @config.metadata,
529
+ retry_policy: @config.retry_policy
530
+
531
+ @analytics_admin_service_stub.call_rpc :update_account, request, options: options do |response, operation|
532
+ yield response, operation if block_given?
533
+ return response
534
+ end
535
+ rescue ::GRPC::BadStatus => e
536
+ raise ::Google::Cloud::Error.from_error(e)
537
+ end
538
+
539
+ ##
540
+ # Requests a ticket for creating an account.
541
+ #
542
+ # @overload provision_account_ticket(request, options = nil)
543
+ # Pass arguments to `provision_account_ticket` via a request object, either of type
544
+ # {::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest} or an equivalent Hash.
545
+ #
546
+ # @param request [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Hash]
547
+ # A request object representing the call parameters. Required. To specify no
548
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
549
+ # @param options [::Gapic::CallOptions, ::Hash]
550
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
551
+ #
552
+ # @overload provision_account_ticket(account: nil, redirect_uri: nil)
553
+ # Pass arguments to `provision_account_ticket` via keyword arguments. Note that at
554
+ # least one keyword argument is required. To specify no parameters, or to keep all
555
+ # the default parameter values, pass an empty Hash as a request object (see above).
556
+ #
557
+ # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash]
558
+ # The account to create.
559
+ # @param redirect_uri [::String]
560
+ # Redirect URI where the user will be sent after accepting Terms of Service.
561
+ # Must be configured in Developers Console as a Redirect URI
562
+ #
563
+ # @yield [response, operation] Access the result along with the RPC operation
564
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse]
565
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
566
+ #
567
+ # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse]
568
+ #
569
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
570
+ #
571
+ def provision_account_ticket request, options = nil
572
+ raise ::ArgumentError, "request must be provided" if request.nil?
573
+
574
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest
575
+
576
+ # Converts hash and nil to an options object
577
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
578
+
579
+ # Customize the options with defaults
580
+ metadata = @config.rpcs.provision_account_ticket.metadata.to_h
581
+
582
+ # Set x-goog-api-client and x-goog-user-project headers
583
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
584
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
585
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
586
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
587
+
588
+ options.apply_defaults timeout: @config.rpcs.provision_account_ticket.timeout,
589
+ metadata: metadata,
590
+ retry_policy: @config.rpcs.provision_account_ticket.retry_policy
591
+ options.apply_defaults metadata: @config.metadata,
592
+ retry_policy: @config.retry_policy
593
+
594
+ @analytics_admin_service_stub.call_rpc :provision_account_ticket, request, options: options do |response, operation|
595
+ yield response, operation if block_given?
596
+ return response
597
+ end
598
+ rescue ::GRPC::BadStatus => e
599
+ raise ::Google::Cloud::Error.from_error(e)
600
+ end
601
+
602
+ ##
603
+ # Lookup for a single "App+Web" Property.
604
+ #
605
+ # Throws "Target not found" if no such property found, if property is not
606
+ # of the type "App+Web", or if caller does not have permissions to access it.
607
+ #
608
+ # @overload get_property(request, options = nil)
609
+ # Pass arguments to `get_property` via a request object, either of type
610
+ # {::Google::Analytics::Admin::V1alpha::GetPropertyRequest} or an equivalent Hash.
611
+ #
612
+ # @param request [::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Hash]
613
+ # A request object representing the call parameters. Required. To specify no
614
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
615
+ # @param options [::Gapic::CallOptions, ::Hash]
616
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
617
+ #
618
+ # @overload get_property(name: nil)
619
+ # Pass arguments to `get_property` via keyword arguments. Note that at
620
+ # least one keyword argument is required. To specify no parameters, or to keep all
621
+ # the default parameter values, pass an empty Hash as a request object (see above).
622
+ #
623
+ # @param name [::String]
624
+ # Required. The name of the property to lookup.
625
+ # Format: properties/\\{property_id}
626
+ # Example: "properties/1000"
627
+ #
628
+ # @yield [response, operation] Access the result along with the RPC operation
629
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property]
630
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
631
+ #
632
+ # @return [::Google::Analytics::Admin::V1alpha::Property]
633
+ #
634
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
635
+ #
636
+ def get_property request, options = nil
637
+ raise ::ArgumentError, "request must be provided" if request.nil?
638
+
639
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetPropertyRequest
640
+
641
+ # Converts hash and nil to an options object
642
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
643
+
644
+ # Customize the options with defaults
645
+ metadata = @config.rpcs.get_property.metadata.to_h
646
+
647
+ # Set x-goog-api-client and x-goog-user-project headers
648
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
649
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
650
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
651
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
652
+
653
+ header_params = {
654
+ "name" => request.name
655
+ }
656
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
657
+ metadata[:"x-goog-request-params"] ||= request_params_header
658
+
659
+ options.apply_defaults timeout: @config.rpcs.get_property.timeout,
660
+ metadata: metadata,
661
+ retry_policy: @config.rpcs.get_property.retry_policy
662
+ options.apply_defaults metadata: @config.metadata,
663
+ retry_policy: @config.retry_policy
664
+
665
+ @analytics_admin_service_stub.call_rpc :get_property, request, options: options do |response, operation|
666
+ yield response, operation if block_given?
667
+ return response
668
+ end
669
+ rescue ::GRPC::BadStatus => e
670
+ raise ::Google::Cloud::Error.from_error(e)
671
+ end
672
+
673
+ ##
674
+ # Returns child Properties under the specified parent Account.
675
+ #
676
+ # Only "App+Web" properties will be returned.
677
+ # Properties will be excluded if the caller does not have access.
678
+ # Soft-deleted (ie: "trashed") properties are excluded by default.
679
+ # Returns an empty list if no relevant properties are found.
680
+ #
681
+ # @overload list_properties(request, options = nil)
682
+ # Pass arguments to `list_properties` via a request object, either of type
683
+ # {::Google::Analytics::Admin::V1alpha::ListPropertiesRequest} or an equivalent Hash.
684
+ #
685
+ # @param request [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Hash]
686
+ # A request object representing the call parameters. Required. To specify no
687
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
688
+ # @param options [::Gapic::CallOptions, ::Hash]
689
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
690
+ #
691
+ # @overload list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil)
692
+ # Pass arguments to `list_properties` via keyword arguments. Note that at
693
+ # least one keyword argument is required. To specify no parameters, or to keep all
694
+ # the default parameter values, pass an empty Hash as a request object (see above).
695
+ #
696
+ # @param filter [::String]
697
+ # Required. An expression for filtering the results of the request.
698
+ # Fields eligible for filtering are:
699
+ # `parent:`(The resource name of the parent account) or
700
+ # `firebase_project:`(The id or number of the linked firebase project).
701
+ # Some examples of filters:
702
+ #
703
+ # | Filter | Description |
704
+ # |-----------------------------|-------------------------------------------|
705
+ # | parent:accounts/123 | The account with account id: 123. |
706
+ # | firebase_project:project-id | The firebase project with id: project-id. |
707
+ # | firebase_project:123 | The firebase project with number: 123. |
708
+ # @param page_size [::Integer]
709
+ # The maximum number of resources to return. The service may return
710
+ # fewer than this value, even if there are additional pages.
711
+ # If unspecified, at most 50 resources will be returned.
712
+ # The maximum value is 200; (higher values will be coerced to the maximum)
713
+ # @param page_token [::String]
714
+ # A page token, received from a previous `ListProperties` call.
715
+ # Provide this to retrieve the subsequent page.
716
+ # When paginating, all other parameters provided to `ListProperties` must
717
+ # match the call that provided the page token.
718
+ # @param show_deleted [::Boolean]
719
+ # Whether to include soft-deleted (ie: "trashed") Properties in the
720
+ # results. Properties can be inspected to determine whether they are deleted
721
+ # or not.
722
+ #
723
+ # @yield [response, operation] Access the result along with the RPC operation
724
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>]
725
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
726
+ #
727
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>]
728
+ #
729
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
730
+ #
731
+ def list_properties request, options = nil
732
+ raise ::ArgumentError, "request must be provided" if request.nil?
733
+
734
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest
735
+
736
+ # Converts hash and nil to an options object
737
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
738
+
739
+ # Customize the options with defaults
740
+ metadata = @config.rpcs.list_properties.metadata.to_h
741
+
742
+ # Set x-goog-api-client and x-goog-user-project headers
743
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
744
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
745
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
746
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
747
+
748
+ options.apply_defaults timeout: @config.rpcs.list_properties.timeout,
749
+ metadata: metadata,
750
+ retry_policy: @config.rpcs.list_properties.retry_policy
751
+ options.apply_defaults metadata: @config.metadata,
752
+ retry_policy: @config.retry_policy
753
+
754
+ @analytics_admin_service_stub.call_rpc :list_properties, request, options: options do |response, operation|
755
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, request, response, operation, options
756
+ yield response, operation if block_given?
757
+ return response
758
+ end
759
+ rescue ::GRPC::BadStatus => e
760
+ raise ::Google::Cloud::Error.from_error(e)
761
+ end
762
+
763
+ ##
764
+ # Creates an "App+Web" property with the specified location and attributes.
765
+ #
766
+ # @overload create_property(request, options = nil)
767
+ # Pass arguments to `create_property` via a request object, either of type
768
+ # {::Google::Analytics::Admin::V1alpha::CreatePropertyRequest} or an equivalent Hash.
769
+ #
770
+ # @param request [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Hash]
771
+ # A request object representing the call parameters. Required. To specify no
772
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
773
+ # @param options [::Gapic::CallOptions, ::Hash]
774
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
775
+ #
776
+ # @overload create_property(property: nil)
777
+ # Pass arguments to `create_property` via keyword arguments. Note that at
778
+ # least one keyword argument is required. To specify no parameters, or to keep all
779
+ # the default parameter values, pass an empty Hash as a request object (see above).
780
+ #
781
+ # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash]
782
+ # Required. The property to create.
783
+ # Note: the supplied property must specify its parent.
784
+ #
785
+ # @yield [response, operation] Access the result along with the RPC operation
786
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property]
787
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
788
+ #
789
+ # @return [::Google::Analytics::Admin::V1alpha::Property]
790
+ #
791
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
792
+ #
793
+ def create_property request, options = nil
794
+ raise ::ArgumentError, "request must be provided" if request.nil?
795
+
796
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest
797
+
798
+ # Converts hash and nil to an options object
799
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
800
+
801
+ # Customize the options with defaults
802
+ metadata = @config.rpcs.create_property.metadata.to_h
803
+
804
+ # Set x-goog-api-client and x-goog-user-project headers
805
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
807
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
808
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
809
+
810
+ options.apply_defaults timeout: @config.rpcs.create_property.timeout,
811
+ metadata: metadata,
812
+ retry_policy: @config.rpcs.create_property.retry_policy
813
+ options.apply_defaults metadata: @config.metadata,
814
+ retry_policy: @config.retry_policy
815
+
816
+ @analytics_admin_service_stub.call_rpc :create_property, request, options: options do |response, operation|
817
+ yield response, operation if block_given?
818
+ return response
819
+ end
820
+ rescue ::GRPC::BadStatus => e
821
+ raise ::Google::Cloud::Error.from_error(e)
822
+ end
823
+
824
+ ##
825
+ # Marks target Property as soft-deleted (ie: "trashed") and returns it.
826
+ #
827
+ # This API does not have a method to restore soft-deleted properties.
828
+ # However, they can be restored using the Trash Can UI.
829
+ #
830
+ # If the properties are not restored before the expiration time, the Property
831
+ # and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
832
+ # will be permanently purged.
833
+ # https://support.google.com/analytics/answer/6154772
834
+ #
835
+ # Returns an error if the target is not found, or is not an App+Web Property.
836
+ #
837
+ # @overload delete_property(request, options = nil)
838
+ # Pass arguments to `delete_property` via a request object, either of type
839
+ # {::Google::Analytics::Admin::V1alpha::DeletePropertyRequest} or an equivalent Hash.
840
+ #
841
+ # @param request [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Hash]
842
+ # A request object representing the call parameters. Required. To specify no
843
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
844
+ # @param options [::Gapic::CallOptions, ::Hash]
845
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
846
+ #
847
+ # @overload delete_property(name: nil)
848
+ # Pass arguments to `delete_property` via keyword arguments. Note that at
849
+ # least one keyword argument is required. To specify no parameters, or to keep all
850
+ # the default parameter values, pass an empty Hash as a request object (see above).
851
+ #
852
+ # @param name [::String]
853
+ # Required. The name of the Property to soft-delete.
854
+ # Format: properties/\\{property_id}
855
+ # Example: "properties/1000"
856
+ #
857
+ # @yield [response, operation] Access the result along with the RPC operation
858
+ # @yieldparam response [::Google::Protobuf::Empty]
859
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
860
+ #
861
+ # @return [::Google::Protobuf::Empty]
862
+ #
863
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
864
+ #
865
+ def delete_property request, options = nil
866
+ raise ::ArgumentError, "request must be provided" if request.nil?
867
+
868
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest
869
+
870
+ # Converts hash and nil to an options object
871
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
872
+
873
+ # Customize the options with defaults
874
+ metadata = @config.rpcs.delete_property.metadata.to_h
875
+
876
+ # Set x-goog-api-client and x-goog-user-project headers
877
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
878
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
879
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
880
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
881
+
882
+ header_params = {
883
+ "name" => request.name
884
+ }
885
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
886
+ metadata[:"x-goog-request-params"] ||= request_params_header
887
+
888
+ options.apply_defaults timeout: @config.rpcs.delete_property.timeout,
889
+ metadata: metadata,
890
+ retry_policy: @config.rpcs.delete_property.retry_policy
891
+ options.apply_defaults metadata: @config.metadata,
892
+ retry_policy: @config.retry_policy
893
+
894
+ @analytics_admin_service_stub.call_rpc :delete_property, request, options: options do |response, operation|
895
+ yield response, operation if block_given?
896
+ return response
897
+ end
898
+ rescue ::GRPC::BadStatus => e
899
+ raise ::Google::Cloud::Error.from_error(e)
900
+ end
901
+
902
+ ##
903
+ # Updates a property.
904
+ #
905
+ # @overload update_property(request, options = nil)
906
+ # Pass arguments to `update_property` via a request object, either of type
907
+ # {::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest} or an equivalent Hash.
908
+ #
909
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Hash]
910
+ # A request object representing the call parameters. Required. To specify no
911
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
912
+ # @param options [::Gapic::CallOptions, ::Hash]
913
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
914
+ #
915
+ # @overload update_property(property: nil, update_mask: nil)
916
+ # Pass arguments to `update_property` via keyword arguments. Note that at
917
+ # least one keyword argument is required. To specify no parameters, or to keep all
918
+ # the default parameter values, pass an empty Hash as a request object (see above).
919
+ #
920
+ # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash]
921
+ # Required. The property to update.
922
+ # The property's `name` field is used to identify the property to be
923
+ # updated.
924
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
925
+ # The list of fields to be updated. Omitted fields will not be updated.
926
+ #
927
+ # @yield [response, operation] Access the result along with the RPC operation
928
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property]
929
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
930
+ #
931
+ # @return [::Google::Analytics::Admin::V1alpha::Property]
932
+ #
933
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
934
+ #
935
+ def update_property request, options = nil
936
+ raise ::ArgumentError, "request must be provided" if request.nil?
937
+
938
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest
939
+
940
+ # Converts hash and nil to an options object
941
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
942
+
943
+ # Customize the options with defaults
944
+ metadata = @config.rpcs.update_property.metadata.to_h
945
+
946
+ # Set x-goog-api-client and x-goog-user-project headers
947
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
948
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
949
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
950
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
951
+
952
+ header_params = {
953
+ "property.name" => request.property.name
954
+ }
955
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
956
+ metadata[:"x-goog-request-params"] ||= request_params_header
957
+
958
+ options.apply_defaults timeout: @config.rpcs.update_property.timeout,
959
+ metadata: metadata,
960
+ retry_policy: @config.rpcs.update_property.retry_policy
961
+ options.apply_defaults metadata: @config.metadata,
962
+ retry_policy: @config.retry_policy
963
+
964
+ @analytics_admin_service_stub.call_rpc :update_property, request, options: options do |response, operation|
965
+ yield response, operation if block_given?
966
+ return response
967
+ end
968
+ rescue ::GRPC::BadStatus => e
969
+ raise ::Google::Cloud::Error.from_error(e)
970
+ end
971
+
972
+ ##
973
+ # Gets information about a user's link to an account or property.
974
+ #
975
+ # @overload get_user_link(request, options = nil)
976
+ # Pass arguments to `get_user_link` via a request object, either of type
977
+ # {::Google::Analytics::Admin::V1alpha::GetUserLinkRequest} or an equivalent Hash.
978
+ #
979
+ # @param request [::Google::Analytics::Admin::V1alpha::GetUserLinkRequest, ::Hash]
980
+ # A request object representing the call parameters. Required. To specify no
981
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
982
+ # @param options [::Gapic::CallOptions, ::Hash]
983
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
984
+ #
985
+ # @overload get_user_link(name: nil)
986
+ # Pass arguments to `get_user_link` via keyword arguments. Note that at
987
+ # least one keyword argument is required. To specify no parameters, or to keep all
988
+ # the default parameter values, pass an empty Hash as a request object (see above).
989
+ #
990
+ # @param name [::String]
991
+ # Required. Example format: accounts/1234/userLinks/5678
992
+ #
993
+ # @yield [response, operation] Access the result along with the RPC operation
994
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::UserLink]
995
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
996
+ #
997
+ # @return [::Google::Analytics::Admin::V1alpha::UserLink]
998
+ #
999
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1000
+ #
1001
+ def get_user_link request, options = nil
1002
+ raise ::ArgumentError, "request must be provided" if request.nil?
1003
+
1004
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetUserLinkRequest
1005
+
1006
+ # Converts hash and nil to an options object
1007
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1008
+
1009
+ # Customize the options with defaults
1010
+ metadata = @config.rpcs.get_user_link.metadata.to_h
1011
+
1012
+ # Set x-goog-api-client and x-goog-user-project headers
1013
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1014
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1015
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1016
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1017
+
1018
+ header_params = {
1019
+ "name" => request.name
1020
+ }
1021
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1022
+ metadata[:"x-goog-request-params"] ||= request_params_header
1023
+
1024
+ options.apply_defaults timeout: @config.rpcs.get_user_link.timeout,
1025
+ metadata: metadata,
1026
+ retry_policy: @config.rpcs.get_user_link.retry_policy
1027
+ options.apply_defaults metadata: @config.metadata,
1028
+ retry_policy: @config.retry_policy
1029
+
1030
+ @analytics_admin_service_stub.call_rpc :get_user_link, request, options: options do |response, operation|
1031
+ yield response, operation if block_given?
1032
+ return response
1033
+ end
1034
+ rescue ::GRPC::BadStatus => e
1035
+ raise ::Google::Cloud::Error.from_error(e)
1036
+ end
1037
+
1038
+ ##
1039
+ # Gets information about multiple users' links to an account or property.
1040
+ #
1041
+ # @overload batch_get_user_links(request, options = nil)
1042
+ # Pass arguments to `batch_get_user_links` via a request object, either of type
1043
+ # {::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest} or an equivalent Hash.
1044
+ #
1045
+ # @param request [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest, ::Hash]
1046
+ # A request object representing the call parameters. Required. To specify no
1047
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1048
+ # @param options [::Gapic::CallOptions, ::Hash]
1049
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1050
+ #
1051
+ # @overload batch_get_user_links(parent: nil, names: nil)
1052
+ # Pass arguments to `batch_get_user_links` via keyword arguments. Note that at
1053
+ # least one keyword argument is required. To specify no parameters, or to keep all
1054
+ # the default parameter values, pass an empty Hash as a request object (see above).
1055
+ #
1056
+ # @param parent [::String]
1057
+ # Required. The account or property that all user links in the request are
1058
+ # for. The parent of all provided values for the 'names' field must match
1059
+ # this field.
1060
+ # Example format: accounts/1234
1061
+ # @param names [::Array<::String>]
1062
+ # Required. The names of the user links to retrieve.
1063
+ # A maximum of 1000 user links can be retrieved in a batch.
1064
+ # Format: accounts/\\{accountId}/userLinks/\\{userLinkId}
1065
+ #
1066
+ # @yield [response, operation] Access the result along with the RPC operation
1067
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse]
1068
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1069
+ #
1070
+ # @return [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse]
1071
+ #
1072
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1073
+ #
1074
+ def batch_get_user_links request, options = nil
1075
+ raise ::ArgumentError, "request must be provided" if request.nil?
1076
+
1077
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest
1078
+
1079
+ # Converts hash and nil to an options object
1080
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1081
+
1082
+ # Customize the options with defaults
1083
+ metadata = @config.rpcs.batch_get_user_links.metadata.to_h
1084
+
1085
+ # Set x-goog-api-client and x-goog-user-project headers
1086
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1087
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1088
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1089
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
+
1091
+ header_params = {
1092
+ "parent" => request.parent
1093
+ }
1094
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1095
+ metadata[:"x-goog-request-params"] ||= request_params_header
1096
+
1097
+ options.apply_defaults timeout: @config.rpcs.batch_get_user_links.timeout,
1098
+ metadata: metadata,
1099
+ retry_policy: @config.rpcs.batch_get_user_links.retry_policy
1100
+ options.apply_defaults metadata: @config.metadata,
1101
+ retry_policy: @config.retry_policy
1102
+
1103
+ @analytics_admin_service_stub.call_rpc :batch_get_user_links, request, options: options do |response, operation|
1104
+ yield response, operation if block_given?
1105
+ return response
1106
+ end
1107
+ rescue ::GRPC::BadStatus => e
1108
+ raise ::Google::Cloud::Error.from_error(e)
1109
+ end
1110
+
1111
+ ##
1112
+ # Lists all user links on an account or property.
1113
+ #
1114
+ # @overload list_user_links(request, options = nil)
1115
+ # Pass arguments to `list_user_links` via a request object, either of type
1116
+ # {::Google::Analytics::Admin::V1alpha::ListUserLinksRequest} or an equivalent Hash.
1117
+ #
1118
+ # @param request [::Google::Analytics::Admin::V1alpha::ListUserLinksRequest, ::Hash]
1119
+ # A request object representing the call parameters. Required. To specify no
1120
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1121
+ # @param options [::Gapic::CallOptions, ::Hash]
1122
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1123
+ #
1124
+ # @overload list_user_links(parent: nil, page_size: nil, page_token: nil)
1125
+ # Pass arguments to `list_user_links` via keyword arguments. Note that at
1126
+ # least one keyword argument is required. To specify no parameters, or to keep all
1127
+ # the default parameter values, pass an empty Hash as a request object (see above).
1128
+ #
1129
+ # @param parent [::String]
1130
+ # Required. Example format: accounts/1234
1131
+ # @param page_size [::Integer]
1132
+ # The maximum number of user links to return.
1133
+ # The service may return fewer than this value.
1134
+ # If unspecified, at most 200 user links will be returned.
1135
+ # The maximum value is 500; values above 500 will be coerced to 500.
1136
+ # @param page_token [::String]
1137
+ # A page token, received from a previous `ListUserLinks` call.
1138
+ # Provide this to retrieve the subsequent page.
1139
+ # When paginating, all other parameters provided to `ListUserLinks` must
1140
+ # match the call that provided the page token.
1141
+ #
1142
+ # @yield [response, operation] Access the result along with the RPC operation
1143
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>]
1144
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1145
+ #
1146
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::UserLink>]
1147
+ #
1148
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1149
+ #
1150
+ def list_user_links request, options = nil
1151
+ raise ::ArgumentError, "request must be provided" if request.nil?
1152
+
1153
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListUserLinksRequest
1154
+
1155
+ # Converts hash and nil to an options object
1156
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1157
+
1158
+ # Customize the options with defaults
1159
+ metadata = @config.rpcs.list_user_links.metadata.to_h
1160
+
1161
+ # Set x-goog-api-client and x-goog-user-project headers
1162
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1163
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1164
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1165
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1166
+
1167
+ header_params = {
1168
+ "parent" => request.parent
1169
+ }
1170
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1171
+ metadata[:"x-goog-request-params"] ||= request_params_header
1172
+
1173
+ options.apply_defaults timeout: @config.rpcs.list_user_links.timeout,
1174
+ metadata: metadata,
1175
+ retry_policy: @config.rpcs.list_user_links.retry_policy
1176
+ options.apply_defaults metadata: @config.metadata,
1177
+ retry_policy: @config.retry_policy
1178
+
1179
+ @analytics_admin_service_stub.call_rpc :list_user_links, request, options: options do |response, operation|
1180
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_user_links, request, response, operation, options
1181
+ yield response, operation if block_given?
1182
+ return response
1183
+ end
1184
+ rescue ::GRPC::BadStatus => e
1185
+ raise ::Google::Cloud::Error.from_error(e)
1186
+ end
1187
+
1188
+ ##
1189
+ # Lists all user links on an account or property, including implicit ones
1190
+ # that come from effective permissions granted by groups or organization
1191
+ # admin roles.
1192
+ #
1193
+ # If a returned user link does not have direct permissions, they cannot
1194
+ # be removed from the account or property directly with the DeleteUserLink
1195
+ # command. They have to be removed from the group/etc that gives them
1196
+ # permissions, which is currently only usable/discoverable in the GA or GMP
1197
+ # UIs.
1198
+ #
1199
+ # @overload audit_user_links(request, options = nil)
1200
+ # Pass arguments to `audit_user_links` via a request object, either of type
1201
+ # {::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest} or an equivalent Hash.
1202
+ #
1203
+ # @param request [::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest, ::Hash]
1204
+ # A request object representing the call parameters. Required. To specify no
1205
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1206
+ # @param options [::Gapic::CallOptions, ::Hash]
1207
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1208
+ #
1209
+ # @overload audit_user_links(parent: nil, page_size: nil, page_token: nil)
1210
+ # Pass arguments to `audit_user_links` via keyword arguments. Note that at
1211
+ # least one keyword argument is required. To specify no parameters, or to keep all
1212
+ # the default parameter values, pass an empty Hash as a request object (see above).
1213
+ #
1214
+ # @param parent [::String]
1215
+ # Required. Example format: accounts/1234
1216
+ # @param page_size [::Integer]
1217
+ # The maximum number of user links to return.
1218
+ # The service may return fewer than this value.
1219
+ # If unspecified, at most 1000 user links will be returned.
1220
+ # The maximum value is 5000; values above 5000 will be coerced to 5000.
1221
+ # @param page_token [::String]
1222
+ # A page token, received from a previous `AuditUserLinks` call.
1223
+ # Provide this to retrieve the subsequent page.
1224
+ # When paginating, all other parameters provided to `AuditUserLinks` must
1225
+ # match the call that provided the page token.
1226
+ #
1227
+ # @yield [response, operation] Access the result along with the RPC operation
1228
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>]
1229
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1230
+ #
1231
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AuditUserLink>]
1232
+ #
1233
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1234
+ #
1235
+ def audit_user_links request, options = nil
1236
+ raise ::ArgumentError, "request must be provided" if request.nil?
1237
+
1238
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest
1239
+
1240
+ # Converts hash and nil to an options object
1241
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1242
+
1243
+ # Customize the options with defaults
1244
+ metadata = @config.rpcs.audit_user_links.metadata.to_h
1245
+
1246
+ # Set x-goog-api-client and x-goog-user-project headers
1247
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1248
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1249
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1250
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1251
+
1252
+ header_params = {
1253
+ "parent" => request.parent
1254
+ }
1255
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1256
+ metadata[:"x-goog-request-params"] ||= request_params_header
1257
+
1258
+ options.apply_defaults timeout: @config.rpcs.audit_user_links.timeout,
1259
+ metadata: metadata,
1260
+ retry_policy: @config.rpcs.audit_user_links.retry_policy
1261
+ options.apply_defaults metadata: @config.metadata,
1262
+ retry_policy: @config.retry_policy
1263
+
1264
+ @analytics_admin_service_stub.call_rpc :audit_user_links, request, options: options do |response, operation|
1265
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :audit_user_links, request, response, operation, options
1266
+ yield response, operation if block_given?
1267
+ return response
1268
+ end
1269
+ rescue ::GRPC::BadStatus => e
1270
+ raise ::Google::Cloud::Error.from_error(e)
1271
+ end
1272
+
1273
+ ##
1274
+ # Creates a user link on an account or property.
1275
+ #
1276
+ # If the user with the specified email already has permissions on the
1277
+ # account or property, then the user's existing permissions will be unioned
1278
+ # with the permissions specified in the new UserLink.
1279
+ #
1280
+ # @overload create_user_link(request, options = nil)
1281
+ # Pass arguments to `create_user_link` via a request object, either of type
1282
+ # {::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest} or an equivalent Hash.
1283
+ #
1284
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest, ::Hash]
1285
+ # A request object representing the call parameters. Required. To specify no
1286
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1287
+ # @param options [::Gapic::CallOptions, ::Hash]
1288
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1289
+ #
1290
+ # @overload create_user_link(parent: nil, notify_new_user: nil, user_link: nil)
1291
+ # Pass arguments to `create_user_link` via keyword arguments. Note that at
1292
+ # least one keyword argument is required. To specify no parameters, or to keep all
1293
+ # the default parameter values, pass an empty Hash as a request object (see above).
1294
+ #
1295
+ # @param parent [::String]
1296
+ # Required. Example format: accounts/1234
1297
+ # @param notify_new_user [::Boolean]
1298
+ # Optional. If notify_new_user is set, then email new user that they've been given
1299
+ # permissions on the resource.
1300
+ # @param user_link [::Google::Analytics::Admin::V1alpha::UserLink, ::Hash]
1301
+ # Required. The user link to create.
1302
+ #
1303
+ # @yield [response, operation] Access the result along with the RPC operation
1304
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::UserLink]
1305
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1306
+ #
1307
+ # @return [::Google::Analytics::Admin::V1alpha::UserLink]
1308
+ #
1309
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1310
+ #
1311
+ def create_user_link request, options = nil
1312
+ raise ::ArgumentError, "request must be provided" if request.nil?
1313
+
1314
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest
1315
+
1316
+ # Converts hash and nil to an options object
1317
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1318
+
1319
+ # Customize the options with defaults
1320
+ metadata = @config.rpcs.create_user_link.metadata.to_h
1321
+
1322
+ # Set x-goog-api-client and x-goog-user-project headers
1323
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1324
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1325
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1326
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1327
+
1328
+ header_params = {
1329
+ "parent" => request.parent
1330
+ }
1331
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1332
+ metadata[:"x-goog-request-params"] ||= request_params_header
1333
+
1334
+ options.apply_defaults timeout: @config.rpcs.create_user_link.timeout,
1335
+ metadata: metadata,
1336
+ retry_policy: @config.rpcs.create_user_link.retry_policy
1337
+ options.apply_defaults metadata: @config.metadata,
1338
+ retry_policy: @config.retry_policy
1339
+
1340
+ @analytics_admin_service_stub.call_rpc :create_user_link, request, options: options do |response, operation|
1341
+ yield response, operation if block_given?
1342
+ return response
1343
+ end
1344
+ rescue ::GRPC::BadStatus => e
1345
+ raise ::Google::Cloud::Error.from_error(e)
1346
+ end
1347
+
1348
+ ##
1349
+ # Creates information about multiple users' links to an account or property.
1350
+ #
1351
+ # This method is transactional. If any UserLink cannot be created, none of
1352
+ # the UserLinks will be created.
1353
+ #
1354
+ # @overload batch_create_user_links(request, options = nil)
1355
+ # Pass arguments to `batch_create_user_links` via a request object, either of type
1356
+ # {::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest} or an equivalent Hash.
1357
+ #
1358
+ # @param request [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest, ::Hash]
1359
+ # A request object representing the call parameters. Required. To specify no
1360
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1361
+ # @param options [::Gapic::CallOptions, ::Hash]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1363
+ #
1364
+ # @overload batch_create_user_links(parent: nil, notify_new_users: nil, requests: nil)
1365
+ # Pass arguments to `batch_create_user_links` via keyword arguments. Note that at
1366
+ # least one keyword argument is required. To specify no parameters, or to keep all
1367
+ # the default parameter values, pass an empty Hash as a request object (see above).
1368
+ #
1369
+ # @param parent [::String]
1370
+ # Required. The account or property that all user links in the request are for.
1371
+ # This field is required. The parent field in the CreateUserLinkRequest
1372
+ # messages must either be empty or match this field.
1373
+ # Example format: accounts/1234
1374
+ # @param notify_new_users [::Boolean]
1375
+ # Optional. If notify_new_users is set, then email new users that they've been given
1376
+ # permissions on the resource.
1377
+ # @param requests [::Array<::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest, ::Hash>]
1378
+ # The requests specifying the user links to create.
1379
+ # A maximum of 1000 user links can be created in a batch.
1380
+ #
1381
+ # @yield [response, operation] Access the result along with the RPC operation
1382
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse]
1383
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1384
+ #
1385
+ # @return [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse]
1386
+ #
1387
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1388
+ #
1389
+ def batch_create_user_links request, options = nil
1390
+ raise ::ArgumentError, "request must be provided" if request.nil?
1391
+
1392
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest
1393
+
1394
+ # Converts hash and nil to an options object
1395
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1396
+
1397
+ # Customize the options with defaults
1398
+ metadata = @config.rpcs.batch_create_user_links.metadata.to_h
1399
+
1400
+ # Set x-goog-api-client and x-goog-user-project headers
1401
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1402
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1403
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1404
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1405
+
1406
+ header_params = {
1407
+ "parent" => request.parent
1408
+ }
1409
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1410
+ metadata[:"x-goog-request-params"] ||= request_params_header
1411
+
1412
+ options.apply_defaults timeout: @config.rpcs.batch_create_user_links.timeout,
1413
+ metadata: metadata,
1414
+ retry_policy: @config.rpcs.batch_create_user_links.retry_policy
1415
+ options.apply_defaults metadata: @config.metadata,
1416
+ retry_policy: @config.retry_policy
1417
+
1418
+ @analytics_admin_service_stub.call_rpc :batch_create_user_links, request, options: options do |response, operation|
1419
+ yield response, operation if block_given?
1420
+ return response
1421
+ end
1422
+ rescue ::GRPC::BadStatus => e
1423
+ raise ::Google::Cloud::Error.from_error(e)
1424
+ end
1425
+
1426
+ ##
1427
+ # Updates a user link on an account or property.
1428
+ #
1429
+ # @overload update_user_link(request, options = nil)
1430
+ # Pass arguments to `update_user_link` via a request object, either of type
1431
+ # {::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest} or an equivalent Hash.
1432
+ #
1433
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest, ::Hash]
1434
+ # A request object representing the call parameters. Required. To specify no
1435
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1436
+ # @param options [::Gapic::CallOptions, ::Hash]
1437
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1438
+ #
1439
+ # @overload update_user_link(user_link: nil)
1440
+ # Pass arguments to `update_user_link` via keyword arguments. Note that at
1441
+ # least one keyword argument is required. To specify no parameters, or to keep all
1442
+ # the default parameter values, pass an empty Hash as a request object (see above).
1443
+ #
1444
+ # @param user_link [::Google::Analytics::Admin::V1alpha::UserLink, ::Hash]
1445
+ # Required. The user link to update.
1446
+ #
1447
+ # @yield [response, operation] Access the result along with the RPC operation
1448
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::UserLink]
1449
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1450
+ #
1451
+ # @return [::Google::Analytics::Admin::V1alpha::UserLink]
1452
+ #
1453
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1454
+ #
1455
+ def update_user_link request, options = nil
1456
+ raise ::ArgumentError, "request must be provided" if request.nil?
1457
+
1458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest
1459
+
1460
+ # Converts hash and nil to an options object
1461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1462
+
1463
+ # Customize the options with defaults
1464
+ metadata = @config.rpcs.update_user_link.metadata.to_h
1465
+
1466
+ # Set x-goog-api-client and x-goog-user-project headers
1467
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1468
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1469
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1470
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1471
+
1472
+ header_params = {
1473
+ "user_link.name" => request.user_link.name
1474
+ }
1475
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1476
+ metadata[:"x-goog-request-params"] ||= request_params_header
1477
+
1478
+ options.apply_defaults timeout: @config.rpcs.update_user_link.timeout,
1479
+ metadata: metadata,
1480
+ retry_policy: @config.rpcs.update_user_link.retry_policy
1481
+ options.apply_defaults metadata: @config.metadata,
1482
+ retry_policy: @config.retry_policy
1483
+
1484
+ @analytics_admin_service_stub.call_rpc :update_user_link, request, options: options do |response, operation|
1485
+ yield response, operation if block_given?
1486
+ return response
1487
+ end
1488
+ rescue ::GRPC::BadStatus => e
1489
+ raise ::Google::Cloud::Error.from_error(e)
1490
+ end
1491
+
1492
+ ##
1493
+ # Updates information about multiple users' links to an account or property.
1494
+ #
1495
+ # @overload batch_update_user_links(request, options = nil)
1496
+ # Pass arguments to `batch_update_user_links` via a request object, either of type
1497
+ # {::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest} or an equivalent Hash.
1498
+ #
1499
+ # @param request [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest, ::Hash]
1500
+ # A request object representing the call parameters. Required. To specify no
1501
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1502
+ # @param options [::Gapic::CallOptions, ::Hash]
1503
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1504
+ #
1505
+ # @overload batch_update_user_links(parent: nil, requests: nil)
1506
+ # Pass arguments to `batch_update_user_links` via keyword arguments. Note that at
1507
+ # least one keyword argument is required. To specify no parameters, or to keep all
1508
+ # the default parameter values, pass an empty Hash as a request object (see above).
1509
+ #
1510
+ # @param parent [::String]
1511
+ # Required. The account or property that all user links in the request are
1512
+ # for. The parent field in the UpdateUserLinkRequest messages must either be
1513
+ # empty or match this field.
1514
+ # Example format: accounts/1234
1515
+ # @param requests [::Array<::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest, ::Hash>]
1516
+ # The requests specifying the user links to update.
1517
+ # A maximum of 1000 user links can be updated in a batch.
1518
+ #
1519
+ # @yield [response, operation] Access the result along with the RPC operation
1520
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse]
1521
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1522
+ #
1523
+ # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse]
1524
+ #
1525
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1526
+ #
1527
+ def batch_update_user_links request, options = nil
1528
+ raise ::ArgumentError, "request must be provided" if request.nil?
1529
+
1530
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest
1531
+
1532
+ # Converts hash and nil to an options object
1533
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1534
+
1535
+ # Customize the options with defaults
1536
+ metadata = @config.rpcs.batch_update_user_links.metadata.to_h
1537
+
1538
+ # Set x-goog-api-client and x-goog-user-project headers
1539
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1540
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1541
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1542
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1543
+
1544
+ header_params = {
1545
+ "parent" => request.parent
1546
+ }
1547
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1548
+ metadata[:"x-goog-request-params"] ||= request_params_header
1549
+
1550
+ options.apply_defaults timeout: @config.rpcs.batch_update_user_links.timeout,
1551
+ metadata: metadata,
1552
+ retry_policy: @config.rpcs.batch_update_user_links.retry_policy
1553
+ options.apply_defaults metadata: @config.metadata,
1554
+ retry_policy: @config.retry_policy
1555
+
1556
+ @analytics_admin_service_stub.call_rpc :batch_update_user_links, request, options: options do |response, operation|
1557
+ yield response, operation if block_given?
1558
+ return response
1559
+ end
1560
+ rescue ::GRPC::BadStatus => e
1561
+ raise ::Google::Cloud::Error.from_error(e)
1562
+ end
1563
+
1564
+ ##
1565
+ # Deletes a user link on an account or property.
1566
+ #
1567
+ # @overload delete_user_link(request, options = nil)
1568
+ # Pass arguments to `delete_user_link` via a request object, either of type
1569
+ # {::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest} or an equivalent Hash.
1570
+ #
1571
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest, ::Hash]
1572
+ # A request object representing the call parameters. Required. To specify no
1573
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1574
+ # @param options [::Gapic::CallOptions, ::Hash]
1575
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1576
+ #
1577
+ # @overload delete_user_link(name: nil)
1578
+ # Pass arguments to `delete_user_link` via keyword arguments. Note that at
1579
+ # least one keyword argument is required. To specify no parameters, or to keep all
1580
+ # the default parameter values, pass an empty Hash as a request object (see above).
1581
+ #
1582
+ # @param name [::String]
1583
+ # Required. Example format: accounts/1234/userLinks/5678
1584
+ #
1585
+ # @yield [response, operation] Access the result along with the RPC operation
1586
+ # @yieldparam response [::Google::Protobuf::Empty]
1587
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1588
+ #
1589
+ # @return [::Google::Protobuf::Empty]
1590
+ #
1591
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1592
+ #
1593
+ def delete_user_link request, options = nil
1594
+ raise ::ArgumentError, "request must be provided" if request.nil?
1595
+
1596
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest
1597
+
1598
+ # Converts hash and nil to an options object
1599
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1600
+
1601
+ # Customize the options with defaults
1602
+ metadata = @config.rpcs.delete_user_link.metadata.to_h
1603
+
1604
+ # Set x-goog-api-client and x-goog-user-project headers
1605
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1606
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1607
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1608
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1609
+
1610
+ header_params = {
1611
+ "name" => request.name
1612
+ }
1613
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1614
+ metadata[:"x-goog-request-params"] ||= request_params_header
1615
+
1616
+ options.apply_defaults timeout: @config.rpcs.delete_user_link.timeout,
1617
+ metadata: metadata,
1618
+ retry_policy: @config.rpcs.delete_user_link.retry_policy
1619
+ options.apply_defaults metadata: @config.metadata,
1620
+ retry_policy: @config.retry_policy
1621
+
1622
+ @analytics_admin_service_stub.call_rpc :delete_user_link, request, options: options do |response, operation|
1623
+ yield response, operation if block_given?
1624
+ return response
1625
+ end
1626
+ rescue ::GRPC::BadStatus => e
1627
+ raise ::Google::Cloud::Error.from_error(e)
1628
+ end
1629
+
1630
+ ##
1631
+ # Deletes information about multiple users' links to an account or property.
1632
+ #
1633
+ # @overload batch_delete_user_links(request, options = nil)
1634
+ # Pass arguments to `batch_delete_user_links` via a request object, either of type
1635
+ # {::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest} or an equivalent Hash.
1636
+ #
1637
+ # @param request [::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest, ::Hash]
1638
+ # A request object representing the call parameters. Required. To specify no
1639
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1640
+ # @param options [::Gapic::CallOptions, ::Hash]
1641
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1642
+ #
1643
+ # @overload batch_delete_user_links(parent: nil, requests: nil)
1644
+ # Pass arguments to `batch_delete_user_links` via keyword arguments. Note that at
1645
+ # least one keyword argument is required. To specify no parameters, or to keep all
1646
+ # the default parameter values, pass an empty Hash as a request object (see above).
1647
+ #
1648
+ # @param parent [::String]
1649
+ # Required. The account or property that all user links in the request are
1650
+ # for. The parent of all values for user link names to delete must match this
1651
+ # field.
1652
+ # Example format: accounts/1234
1653
+ # @param requests [::Array<::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest, ::Hash>]
1654
+ # The requests specifying the user links to update.
1655
+ # A maximum of 1000 user links can be updated in a batch.
1656
+ #
1657
+ # @yield [response, operation] Access the result along with the RPC operation
1658
+ # @yieldparam response [::Google::Protobuf::Empty]
1659
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1660
+ #
1661
+ # @return [::Google::Protobuf::Empty]
1662
+ #
1663
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1664
+ #
1665
+ def batch_delete_user_links request, options = nil
1666
+ raise ::ArgumentError, "request must be provided" if request.nil?
1667
+
1668
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest
1669
+
1670
+ # Converts hash and nil to an options object
1671
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1672
+
1673
+ # Customize the options with defaults
1674
+ metadata = @config.rpcs.batch_delete_user_links.metadata.to_h
1675
+
1676
+ # Set x-goog-api-client and x-goog-user-project headers
1677
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1678
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1679
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1680
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1681
+
1682
+ header_params = {
1683
+ "parent" => request.parent
1684
+ }
1685
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1686
+ metadata[:"x-goog-request-params"] ||= request_params_header
1687
+
1688
+ options.apply_defaults timeout: @config.rpcs.batch_delete_user_links.timeout,
1689
+ metadata: metadata,
1690
+ retry_policy: @config.rpcs.batch_delete_user_links.retry_policy
1691
+ options.apply_defaults metadata: @config.metadata,
1692
+ retry_policy: @config.retry_policy
1693
+
1694
+ @analytics_admin_service_stub.call_rpc :batch_delete_user_links, request, options: options do |response, operation|
1695
+ yield response, operation if block_given?
1696
+ return response
1697
+ end
1698
+ rescue ::GRPC::BadStatus => e
1699
+ raise ::Google::Cloud::Error.from_error(e)
1700
+ end
1701
+
1702
+ ##
1703
+ # Lookup for a single WebDataStream
1704
+ #
1705
+ # Throws "Target not found" if no such web data stream found, or if the
1706
+ # caller does not have permissions to access it.
1707
+ #
1708
+ # @overload get_web_data_stream(request, options = nil)
1709
+ # Pass arguments to `get_web_data_stream` via a request object, either of type
1710
+ # {::Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest} or an equivalent Hash.
1711
+ #
1712
+ # @param request [::Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest, ::Hash]
1713
+ # A request object representing the call parameters. Required. To specify no
1714
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1715
+ # @param options [::Gapic::CallOptions, ::Hash]
1716
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1717
+ #
1718
+ # @overload get_web_data_stream(name: nil)
1719
+ # Pass arguments to `get_web_data_stream` via keyword arguments. Note that at
1720
+ # least one keyword argument is required. To specify no parameters, or to keep all
1721
+ # the default parameter values, pass an empty Hash as a request object (see above).
1722
+ #
1723
+ # @param name [::String]
1724
+ # Required. The name of the web data stream to lookup.
1725
+ # Format: properties/\\{property_id}/webDataStreams/\\{stream_id}
1726
+ # Example: "properties/123/webDataStreams/456"
1727
+ #
1728
+ # @yield [response, operation] Access the result along with the RPC operation
1729
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::WebDataStream]
1730
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1731
+ #
1732
+ # @return [::Google::Analytics::Admin::V1alpha::WebDataStream]
1733
+ #
1734
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1735
+ #
1736
+ def get_web_data_stream request, options = nil
1737
+ raise ::ArgumentError, "request must be provided" if request.nil?
1738
+
1739
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest
1740
+
1741
+ # Converts hash and nil to an options object
1742
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1743
+
1744
+ # Customize the options with defaults
1745
+ metadata = @config.rpcs.get_web_data_stream.metadata.to_h
1746
+
1747
+ # Set x-goog-api-client and x-goog-user-project headers
1748
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1749
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1750
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1751
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1752
+
1753
+ header_params = {
1754
+ "name" => request.name
1755
+ }
1756
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1757
+ metadata[:"x-goog-request-params"] ||= request_params_header
1758
+
1759
+ options.apply_defaults timeout: @config.rpcs.get_web_data_stream.timeout,
1760
+ metadata: metadata,
1761
+ retry_policy: @config.rpcs.get_web_data_stream.retry_policy
1762
+ options.apply_defaults metadata: @config.metadata,
1763
+ retry_policy: @config.retry_policy
1764
+
1765
+ @analytics_admin_service_stub.call_rpc :get_web_data_stream, request, options: options do |response, operation|
1766
+ yield response, operation if block_given?
1767
+ return response
1768
+ end
1769
+ rescue ::GRPC::BadStatus => e
1770
+ raise ::Google::Cloud::Error.from_error(e)
1771
+ end
1772
+
1773
+ ##
1774
+ # Deletes a web stream on a property.
1775
+ #
1776
+ # @overload delete_web_data_stream(request, options = nil)
1777
+ # Pass arguments to `delete_web_data_stream` via a request object, either of type
1778
+ # {::Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest} or an equivalent Hash.
1779
+ #
1780
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest, ::Hash]
1781
+ # A request object representing the call parameters. Required. To specify no
1782
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1783
+ # @param options [::Gapic::CallOptions, ::Hash]
1784
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1785
+ #
1786
+ # @overload delete_web_data_stream(name: nil)
1787
+ # Pass arguments to `delete_web_data_stream` via keyword arguments. Note that at
1788
+ # least one keyword argument is required. To specify no parameters, or to keep all
1789
+ # the default parameter values, pass an empty Hash as a request object (see above).
1790
+ #
1791
+ # @param name [::String]
1792
+ # Required. The name of the web data stream to delete.
1793
+ # Format: properties/\\{property_id}/webDataStreams/\\{stream_id}
1794
+ # Example: "properties/123/webDataStreams/456"
1795
+ #
1796
+ # @yield [response, operation] Access the result along with the RPC operation
1797
+ # @yieldparam response [::Google::Protobuf::Empty]
1798
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1799
+ #
1800
+ # @return [::Google::Protobuf::Empty]
1801
+ #
1802
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1803
+ #
1804
+ def delete_web_data_stream request, options = nil
1805
+ raise ::ArgumentError, "request must be provided" if request.nil?
1806
+
1807
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest
1808
+
1809
+ # Converts hash and nil to an options object
1810
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1811
+
1812
+ # Customize the options with defaults
1813
+ metadata = @config.rpcs.delete_web_data_stream.metadata.to_h
1814
+
1815
+ # Set x-goog-api-client and x-goog-user-project headers
1816
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1817
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1818
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1819
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1820
+
1821
+ header_params = {
1822
+ "name" => request.name
1823
+ }
1824
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1825
+ metadata[:"x-goog-request-params"] ||= request_params_header
1826
+
1827
+ options.apply_defaults timeout: @config.rpcs.delete_web_data_stream.timeout,
1828
+ metadata: metadata,
1829
+ retry_policy: @config.rpcs.delete_web_data_stream.retry_policy
1830
+ options.apply_defaults metadata: @config.metadata,
1831
+ retry_policy: @config.retry_policy
1832
+
1833
+ @analytics_admin_service_stub.call_rpc :delete_web_data_stream, request, options: options do |response, operation|
1834
+ yield response, operation if block_given?
1835
+ return response
1836
+ end
1837
+ rescue ::GRPC::BadStatus => e
1838
+ raise ::Google::Cloud::Error.from_error(e)
1839
+ end
1840
+
1841
+ ##
1842
+ # Updates a web stream on a property.
1843
+ #
1844
+ # @overload update_web_data_stream(request, options = nil)
1845
+ # Pass arguments to `update_web_data_stream` via a request object, either of type
1846
+ # {::Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest} or an equivalent Hash.
1847
+ #
1848
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest, ::Hash]
1849
+ # A request object representing the call parameters. Required. To specify no
1850
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1851
+ # @param options [::Gapic::CallOptions, ::Hash]
1852
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1853
+ #
1854
+ # @overload update_web_data_stream(web_data_stream: nil, update_mask: nil)
1855
+ # Pass arguments to `update_web_data_stream` via keyword arguments. Note that at
1856
+ # least one keyword argument is required. To specify no parameters, or to keep all
1857
+ # the default parameter values, pass an empty Hash as a request object (see above).
1858
+ #
1859
+ # @param web_data_stream [::Google::Analytics::Admin::V1alpha::WebDataStream, ::Hash]
1860
+ # Required. The web stream to update.
1861
+ # The `name` field is used to identify the web stream to be updated.
1862
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1863
+ # The list of fields to be updated. Omitted fields will not be updated.
1864
+ #
1865
+ # @yield [response, operation] Access the result along with the RPC operation
1866
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::WebDataStream]
1867
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1868
+ #
1869
+ # @return [::Google::Analytics::Admin::V1alpha::WebDataStream]
1870
+ #
1871
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1872
+ #
1873
+ def update_web_data_stream request, options = nil
1874
+ raise ::ArgumentError, "request must be provided" if request.nil?
1875
+
1876
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest
1877
+
1878
+ # Converts hash and nil to an options object
1879
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1880
+
1881
+ # Customize the options with defaults
1882
+ metadata = @config.rpcs.update_web_data_stream.metadata.to_h
1883
+
1884
+ # Set x-goog-api-client and x-goog-user-project headers
1885
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1886
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1887
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1888
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1889
+
1890
+ header_params = {
1891
+ "web_data_stream.name" => request.web_data_stream.name
1892
+ }
1893
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1894
+ metadata[:"x-goog-request-params"] ||= request_params_header
1895
+
1896
+ options.apply_defaults timeout: @config.rpcs.update_web_data_stream.timeout,
1897
+ metadata: metadata,
1898
+ retry_policy: @config.rpcs.update_web_data_stream.retry_policy
1899
+ options.apply_defaults metadata: @config.metadata,
1900
+ retry_policy: @config.retry_policy
1901
+
1902
+ @analytics_admin_service_stub.call_rpc :update_web_data_stream, request, options: options do |response, operation|
1903
+ yield response, operation if block_given?
1904
+ return response
1905
+ end
1906
+ rescue ::GRPC::BadStatus => e
1907
+ raise ::Google::Cloud::Error.from_error(e)
1908
+ end
1909
+
1910
+ ##
1911
+ # Creates a web stream with the specified location and attributes.
1912
+ #
1913
+ # @overload create_web_data_stream(request, options = nil)
1914
+ # Pass arguments to `create_web_data_stream` via a request object, either of type
1915
+ # {::Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest} or an equivalent Hash.
1916
+ #
1917
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest, ::Hash]
1918
+ # A request object representing the call parameters. Required. To specify no
1919
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1920
+ # @param options [::Gapic::CallOptions, ::Hash]
1921
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1922
+ #
1923
+ # @overload create_web_data_stream(web_data_stream: nil, parent: nil)
1924
+ # Pass arguments to `create_web_data_stream` via keyword arguments. Note that at
1925
+ # least one keyword argument is required. To specify no parameters, or to keep all
1926
+ # the default parameter values, pass an empty Hash as a request object (see above).
1927
+ #
1928
+ # @param web_data_stream [::Google::Analytics::Admin::V1alpha::WebDataStream, ::Hash]
1929
+ # Required. The web stream to create.
1930
+ # @param parent [::String]
1931
+ # Required. The parent resource where this web data stream will be created.
1932
+ # Format: properties/123
1933
+ #
1934
+ # @yield [response, operation] Access the result along with the RPC operation
1935
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::WebDataStream]
1936
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1937
+ #
1938
+ # @return [::Google::Analytics::Admin::V1alpha::WebDataStream]
1939
+ #
1940
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1941
+ #
1942
+ def create_web_data_stream request, options = nil
1943
+ raise ::ArgumentError, "request must be provided" if request.nil?
1944
+
1945
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest
1946
+
1947
+ # Converts hash and nil to an options object
1948
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1949
+
1950
+ # Customize the options with defaults
1951
+ metadata = @config.rpcs.create_web_data_stream.metadata.to_h
1952
+
1953
+ # Set x-goog-api-client and x-goog-user-project headers
1954
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1955
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1956
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1957
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1958
+
1959
+ header_params = {
1960
+ "parent" => request.parent
1961
+ }
1962
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1963
+ metadata[:"x-goog-request-params"] ||= request_params_header
1964
+
1965
+ options.apply_defaults timeout: @config.rpcs.create_web_data_stream.timeout,
1966
+ metadata: metadata,
1967
+ retry_policy: @config.rpcs.create_web_data_stream.retry_policy
1968
+ options.apply_defaults metadata: @config.metadata,
1969
+ retry_policy: @config.retry_policy
1970
+
1971
+ @analytics_admin_service_stub.call_rpc :create_web_data_stream, request, options: options do |response, operation|
1972
+ yield response, operation if block_given?
1973
+ return response
1974
+ end
1975
+ rescue ::GRPC::BadStatus => e
1976
+ raise ::Google::Cloud::Error.from_error(e)
1977
+ end
1978
+
1979
+ ##
1980
+ # Returns child web data streams under the specified parent property.
1981
+ #
1982
+ # Web data streams will be excluded if the caller does not have access.
1983
+ # Returns an empty list if no relevant web data streams are found.
1984
+ #
1985
+ # @overload list_web_data_streams(request, options = nil)
1986
+ # Pass arguments to `list_web_data_streams` via a request object, either of type
1987
+ # {::Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest} or an equivalent Hash.
1988
+ #
1989
+ # @param request [::Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest, ::Hash]
1990
+ # A request object representing the call parameters. Required. To specify no
1991
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1992
+ # @param options [::Gapic::CallOptions, ::Hash]
1993
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1994
+ #
1995
+ # @overload list_web_data_streams(parent: nil, page_size: nil, page_token: nil)
1996
+ # Pass arguments to `list_web_data_streams` via keyword arguments. Note that at
1997
+ # least one keyword argument is required. To specify no parameters, or to keep all
1998
+ # the default parameter values, pass an empty Hash as a request object (see above).
1999
+ #
2000
+ # @param parent [::String]
2001
+ # Required. The name of the parent property.
2002
+ # For example, to list results of web streams under the property with Id
2003
+ # 123: "properties/123"
2004
+ # @param page_size [::Integer]
2005
+ # The maximum number of resources to return.
2006
+ # If unspecified, at most 50 resources will be returned.
2007
+ # The maximum value is 200; (higher values will be coerced to the maximum)
2008
+ # @param page_token [::String]
2009
+ # A page token, received from a previous `ListWebDataStreams` call.
2010
+ # Provide this to retrieve the subsequent page.
2011
+ # When paginating, all other parameters provided to `ListWebDataStreams` must
2012
+ # match the call that provided the page token.
2013
+ #
2014
+ # @yield [response, operation] Access the result along with the RPC operation
2015
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::WebDataStream>]
2016
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2017
+ #
2018
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::WebDataStream>]
2019
+ #
2020
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2021
+ #
2022
+ def list_web_data_streams request, options = nil
2023
+ raise ::ArgumentError, "request must be provided" if request.nil?
2024
+
2025
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest
2026
+
2027
+ # Converts hash and nil to an options object
2028
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2029
+
2030
+ # Customize the options with defaults
2031
+ metadata = @config.rpcs.list_web_data_streams.metadata.to_h
2032
+
2033
+ # Set x-goog-api-client and x-goog-user-project headers
2034
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2035
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2036
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2037
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2038
+
2039
+ header_params = {
2040
+ "parent" => request.parent
2041
+ }
2042
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2043
+ metadata[:"x-goog-request-params"] ||= request_params_header
2044
+
2045
+ options.apply_defaults timeout: @config.rpcs.list_web_data_streams.timeout,
2046
+ metadata: metadata,
2047
+ retry_policy: @config.rpcs.list_web_data_streams.retry_policy
2048
+ options.apply_defaults metadata: @config.metadata,
2049
+ retry_policy: @config.retry_policy
2050
+
2051
+ @analytics_admin_service_stub.call_rpc :list_web_data_streams, request, options: options do |response, operation|
2052
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_web_data_streams, request, response, operation, options
2053
+ yield response, operation if block_given?
2054
+ return response
2055
+ end
2056
+ rescue ::GRPC::BadStatus => e
2057
+ raise ::Google::Cloud::Error.from_error(e)
2058
+ end
2059
+
2060
+ ##
2061
+ # Lookup for a single IosAppDataStream
2062
+ #
2063
+ # Throws "Target not found" if no such iOS app data stream found, or if the
2064
+ # caller does not have permissions to access it.
2065
+ #
2066
+ # @overload get_ios_app_data_stream(request, options = nil)
2067
+ # Pass arguments to `get_ios_app_data_stream` via a request object, either of type
2068
+ # {::Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest} or an equivalent Hash.
2069
+ #
2070
+ # @param request [::Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest, ::Hash]
2071
+ # A request object representing the call parameters. Required. To specify no
2072
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2073
+ # @param options [::Gapic::CallOptions, ::Hash]
2074
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2075
+ #
2076
+ # @overload get_ios_app_data_stream(name: nil)
2077
+ # Pass arguments to `get_ios_app_data_stream` via keyword arguments. Note that at
2078
+ # least one keyword argument is required. To specify no parameters, or to keep all
2079
+ # the default parameter values, pass an empty Hash as a request object (see above).
2080
+ #
2081
+ # @param name [::String]
2082
+ # Required. The name of the iOS app data stream to lookup.
2083
+ # Format: properties/\\{property_id}/iosAppDataStreams/\\{stream_id}
2084
+ # Example: "properties/123/iosAppDataStreams/456"
2085
+ #
2086
+ # @yield [response, operation] Access the result along with the RPC operation
2087
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
2088
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2089
+ #
2090
+ # @return [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
2091
+ #
2092
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2093
+ #
2094
+ def get_ios_app_data_stream request, options = nil
2095
+ raise ::ArgumentError, "request must be provided" if request.nil?
2096
+
2097
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest
2098
+
2099
+ # Converts hash and nil to an options object
2100
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2101
+
2102
+ # Customize the options with defaults
2103
+ metadata = @config.rpcs.get_ios_app_data_stream.metadata.to_h
2104
+
2105
+ # Set x-goog-api-client and x-goog-user-project headers
2106
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2107
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2108
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2109
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2110
+
2111
+ header_params = {
2112
+ "name" => request.name
2113
+ }
2114
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2115
+ metadata[:"x-goog-request-params"] ||= request_params_header
2116
+
2117
+ options.apply_defaults timeout: @config.rpcs.get_ios_app_data_stream.timeout,
2118
+ metadata: metadata,
2119
+ retry_policy: @config.rpcs.get_ios_app_data_stream.retry_policy
2120
+ options.apply_defaults metadata: @config.metadata,
2121
+ retry_policy: @config.retry_policy
2122
+
2123
+ @analytics_admin_service_stub.call_rpc :get_ios_app_data_stream, request, options: options do |response, operation|
2124
+ yield response, operation if block_given?
2125
+ return response
2126
+ end
2127
+ rescue ::GRPC::BadStatus => e
2128
+ raise ::Google::Cloud::Error.from_error(e)
2129
+ end
2130
+
2131
+ ##
2132
+ # Deletes an iOS app stream on a property.
2133
+ #
2134
+ # @overload delete_ios_app_data_stream(request, options = nil)
2135
+ # Pass arguments to `delete_ios_app_data_stream` via a request object, either of type
2136
+ # {::Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest} or an equivalent Hash.
2137
+ #
2138
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest, ::Hash]
2139
+ # A request object representing the call parameters. Required. To specify no
2140
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2141
+ # @param options [::Gapic::CallOptions, ::Hash]
2142
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2143
+ #
2144
+ # @overload delete_ios_app_data_stream(name: nil)
2145
+ # Pass arguments to `delete_ios_app_data_stream` via keyword arguments. Note that at
2146
+ # least one keyword argument is required. To specify no parameters, or to keep all
2147
+ # the default parameter values, pass an empty Hash as a request object (see above).
2148
+ #
2149
+ # @param name [::String]
2150
+ # Required. The name of the iOS app data stream to delete.
2151
+ # Format: properties/\\{property_id}/iosAppDataStreams/\\{stream_id}
2152
+ # Example: "properties/123/iosAppDataStreams/456"
2153
+ #
2154
+ # @yield [response, operation] Access the result along with the RPC operation
2155
+ # @yieldparam response [::Google::Protobuf::Empty]
2156
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2157
+ #
2158
+ # @return [::Google::Protobuf::Empty]
2159
+ #
2160
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2161
+ #
2162
+ def delete_ios_app_data_stream request, options = nil
2163
+ raise ::ArgumentError, "request must be provided" if request.nil?
2164
+
2165
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest
2166
+
2167
+ # Converts hash and nil to an options object
2168
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2169
+
2170
+ # Customize the options with defaults
2171
+ metadata = @config.rpcs.delete_ios_app_data_stream.metadata.to_h
2172
+
2173
+ # Set x-goog-api-client and x-goog-user-project headers
2174
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2175
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2176
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2177
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2178
+
2179
+ header_params = {
2180
+ "name" => request.name
2181
+ }
2182
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2183
+ metadata[:"x-goog-request-params"] ||= request_params_header
2184
+
2185
+ options.apply_defaults timeout: @config.rpcs.delete_ios_app_data_stream.timeout,
2186
+ metadata: metadata,
2187
+ retry_policy: @config.rpcs.delete_ios_app_data_stream.retry_policy
2188
+ options.apply_defaults metadata: @config.metadata,
2189
+ retry_policy: @config.retry_policy
2190
+
2191
+ @analytics_admin_service_stub.call_rpc :delete_ios_app_data_stream, request, options: options do |response, operation|
2192
+ yield response, operation if block_given?
2193
+ return response
2194
+ end
2195
+ rescue ::GRPC::BadStatus => e
2196
+ raise ::Google::Cloud::Error.from_error(e)
2197
+ end
2198
+
2199
+ ##
2200
+ # Updates an iOS app stream on a property.
2201
+ #
2202
+ # @overload update_ios_app_data_stream(request, options = nil)
2203
+ # Pass arguments to `update_ios_app_data_stream` via a request object, either of type
2204
+ # {::Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest} or an equivalent Hash.
2205
+ #
2206
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest, ::Hash]
2207
+ # A request object representing the call parameters. Required. To specify no
2208
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2209
+ # @param options [::Gapic::CallOptions, ::Hash]
2210
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2211
+ #
2212
+ # @overload update_ios_app_data_stream(ios_app_data_stream: nil, update_mask: nil)
2213
+ # Pass arguments to `update_ios_app_data_stream` via keyword arguments. Note that at
2214
+ # least one keyword argument is required. To specify no parameters, or to keep all
2215
+ # the default parameter values, pass an empty Hash as a request object (see above).
2216
+ #
2217
+ # @param ios_app_data_stream [::Google::Analytics::Admin::V1alpha::IosAppDataStream, ::Hash]
2218
+ # Required. The iOS app stream to update.
2219
+ # The `name` field is used to identify the iOS app stream to be updated.
2220
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2221
+ # The list of fields to be updated. Omitted fields will not be updated.
2222
+ #
2223
+ # @yield [response, operation] Access the result along with the RPC operation
2224
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
2225
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2226
+ #
2227
+ # @return [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
2228
+ #
2229
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2230
+ #
2231
+ def update_ios_app_data_stream request, options = nil
2232
+ raise ::ArgumentError, "request must be provided" if request.nil?
2233
+
2234
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest
2235
+
2236
+ # Converts hash and nil to an options object
2237
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2238
+
2239
+ # Customize the options with defaults
2240
+ metadata = @config.rpcs.update_ios_app_data_stream.metadata.to_h
2241
+
2242
+ # Set x-goog-api-client and x-goog-user-project headers
2243
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2244
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2245
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2246
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2247
+
2248
+ header_params = {
2249
+ "ios_app_data_stream.name" => request.ios_app_data_stream.name
2250
+ }
2251
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2252
+ metadata[:"x-goog-request-params"] ||= request_params_header
2253
+
2254
+ options.apply_defaults timeout: @config.rpcs.update_ios_app_data_stream.timeout,
2255
+ metadata: metadata,
2256
+ retry_policy: @config.rpcs.update_ios_app_data_stream.retry_policy
2257
+ options.apply_defaults metadata: @config.metadata,
2258
+ retry_policy: @config.retry_policy
2259
+
2260
+ @analytics_admin_service_stub.call_rpc :update_ios_app_data_stream, request, options: options do |response, operation|
2261
+ yield response, operation if block_given?
2262
+ return response
2263
+ end
2264
+ rescue ::GRPC::BadStatus => e
2265
+ raise ::Google::Cloud::Error.from_error(e)
2266
+ end
2267
+
2268
+ ##
2269
+ # Creates an iOS app data stream with the specified location and attributes.
2270
+ #
2271
+ # @overload create_ios_app_data_stream(request, options = nil)
2272
+ # Pass arguments to `create_ios_app_data_stream` via a request object, either of type
2273
+ # {::Google::Analytics::Admin::V1alpha::CreateIosAppDataStreamRequest} or an equivalent Hash.
2274
+ #
2275
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateIosAppDataStreamRequest, ::Hash]
2276
+ # A request object representing the call parameters. Required. To specify no
2277
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2278
+ # @param options [::Gapic::CallOptions, ::Hash]
2279
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2280
+ #
2281
+ # @overload create_ios_app_data_stream(ios_app_data_stream: nil, parent: nil)
2282
+ # Pass arguments to `create_ios_app_data_stream` via keyword arguments. Note that at
2283
+ # least one keyword argument is required. To specify no parameters, or to keep all
2284
+ # the default parameter values, pass an empty Hash as a request object (see above).
2285
+ #
2286
+ # @param ios_app_data_stream [::Google::Analytics::Admin::V1alpha::IosAppDataStream, ::Hash]
2287
+ # Required. The iOS app data stream to create.
2288
+ # @param parent [::String]
2289
+ # Required. The parent resource where this ios app data stream will be created.
2290
+ # Format: properties/123
2291
+ #
2292
+ # @yield [response, operation] Access the result along with the RPC operation
2293
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
2294
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2295
+ #
2296
+ # @return [::Google::Analytics::Admin::V1alpha::IosAppDataStream]
2297
+ #
2298
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2299
+ #
2300
+ def create_ios_app_data_stream request, options = nil
2301
+ raise ::ArgumentError, "request must be provided" if request.nil?
2302
+
2303
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateIosAppDataStreamRequest
2304
+
2305
+ # Converts hash and nil to an options object
2306
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2307
+
2308
+ # Customize the options with defaults
2309
+ metadata = @config.rpcs.create_ios_app_data_stream.metadata.to_h
2310
+
2311
+ # Set x-goog-api-client and x-goog-user-project headers
2312
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2313
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2314
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2315
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2316
+
2317
+ header_params = {
2318
+ "parent" => request.parent
2319
+ }
2320
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2321
+ metadata[:"x-goog-request-params"] ||= request_params_header
2322
+
2323
+ options.apply_defaults timeout: @config.rpcs.create_ios_app_data_stream.timeout,
2324
+ metadata: metadata,
2325
+ retry_policy: @config.rpcs.create_ios_app_data_stream.retry_policy
2326
+ options.apply_defaults metadata: @config.metadata,
2327
+ retry_policy: @config.retry_policy
2328
+
2329
+ @analytics_admin_service_stub.call_rpc :create_ios_app_data_stream, request, options: options do |response, operation|
2330
+ yield response, operation if block_given?
2331
+ return response
2332
+ end
2333
+ rescue ::GRPC::BadStatus => e
2334
+ raise ::Google::Cloud::Error.from_error(e)
2335
+ end
2336
+
2337
+ ##
2338
+ # Returns child iOS app data streams under the specified parent property.
2339
+ #
2340
+ # iOS app data streams will be excluded if the caller does not have access.
2341
+ # Returns an empty list if no relevant iOS app data streams are found.
2342
+ #
2343
+ # @overload list_ios_app_data_streams(request, options = nil)
2344
+ # Pass arguments to `list_ios_app_data_streams` via a request object, either of type
2345
+ # {::Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest} or an equivalent Hash.
2346
+ #
2347
+ # @param request [::Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest, ::Hash]
2348
+ # A request object representing the call parameters. Required. To specify no
2349
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2350
+ # @param options [::Gapic::CallOptions, ::Hash]
2351
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2352
+ #
2353
+ # @overload list_ios_app_data_streams(parent: nil, page_size: nil, page_token: nil)
2354
+ # Pass arguments to `list_ios_app_data_streams` via keyword arguments. Note that at
2355
+ # least one keyword argument is required. To specify no parameters, or to keep all
2356
+ # the default parameter values, pass an empty Hash as a request object (see above).
2357
+ #
2358
+ # @param parent [::String]
2359
+ # Required. The name of the parent property.
2360
+ # For example, to list results of app streams under the property with Id
2361
+ # 123: "properties/123"
2362
+ # @param page_size [::Integer]
2363
+ # The maximum number of resources to return.
2364
+ # If unspecified, at most 50 resources will be returned.
2365
+ # The maximum value is 200; (higher values will be coerced to the maximum)
2366
+ # @param page_token [::String]
2367
+ # A page token, received from a previous `ListIosAppDataStreams`
2368
+ # call. Provide this to retrieve the subsequent page.
2369
+ # When paginating, all other parameters provided to `ListIosAppDataStreams`
2370
+ # must match the call that provided the page token.
2371
+ #
2372
+ # @yield [response, operation] Access the result along with the RPC operation
2373
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::IosAppDataStream>]
2374
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2375
+ #
2376
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::IosAppDataStream>]
2377
+ #
2378
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2379
+ #
2380
+ def list_ios_app_data_streams request, options = nil
2381
+ raise ::ArgumentError, "request must be provided" if request.nil?
2382
+
2383
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest
2384
+
2385
+ # Converts hash and nil to an options object
2386
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2387
+
2388
+ # Customize the options with defaults
2389
+ metadata = @config.rpcs.list_ios_app_data_streams.metadata.to_h
2390
+
2391
+ # Set x-goog-api-client and x-goog-user-project headers
2392
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2393
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2394
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2395
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2396
+
2397
+ header_params = {
2398
+ "parent" => request.parent
2399
+ }
2400
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2401
+ metadata[:"x-goog-request-params"] ||= request_params_header
2402
+
2403
+ options.apply_defaults timeout: @config.rpcs.list_ios_app_data_streams.timeout,
2404
+ metadata: metadata,
2405
+ retry_policy: @config.rpcs.list_ios_app_data_streams.retry_policy
2406
+ options.apply_defaults metadata: @config.metadata,
2407
+ retry_policy: @config.retry_policy
2408
+
2409
+ @analytics_admin_service_stub.call_rpc :list_ios_app_data_streams, request, options: options do |response, operation|
2410
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_ios_app_data_streams, request, response, operation, options
2411
+ yield response, operation if block_given?
2412
+ return response
2413
+ end
2414
+ rescue ::GRPC::BadStatus => e
2415
+ raise ::Google::Cloud::Error.from_error(e)
2416
+ end
2417
+
2418
+ ##
2419
+ # Lookup for a single AndroidAppDataStream
2420
+ #
2421
+ # Throws "Target not found" if no such android app data stream found, or if
2422
+ # the caller does not have permissions to access it.
2423
+ #
2424
+ # @overload get_android_app_data_stream(request, options = nil)
2425
+ # Pass arguments to `get_android_app_data_stream` via a request object, either of type
2426
+ # {::Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest} or an equivalent Hash.
2427
+ #
2428
+ # @param request [::Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest, ::Hash]
2429
+ # A request object representing the call parameters. Required. To specify no
2430
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2431
+ # @param options [::Gapic::CallOptions, ::Hash]
2432
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2433
+ #
2434
+ # @overload get_android_app_data_stream(name: nil)
2435
+ # Pass arguments to `get_android_app_data_stream` via keyword arguments. Note that at
2436
+ # least one keyword argument is required. To specify no parameters, or to keep all
2437
+ # the default parameter values, pass an empty Hash as a request object (see above).
2438
+ #
2439
+ # @param name [::String]
2440
+ # Required. The name of the android app data stream to lookup.
2441
+ # Format: properties/\\{property_id}/androidAppDataStreams/\\{stream_id}
2442
+ # Example: "properties/123/androidAppDataStreams/456"
2443
+ #
2444
+ # @yield [response, operation] Access the result along with the RPC operation
2445
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
2446
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2447
+ #
2448
+ # @return [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
2449
+ #
2450
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2451
+ #
2452
+ def get_android_app_data_stream request, options = nil
2453
+ raise ::ArgumentError, "request must be provided" if request.nil?
2454
+
2455
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest
2456
+
2457
+ # Converts hash and nil to an options object
2458
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2459
+
2460
+ # Customize the options with defaults
2461
+ metadata = @config.rpcs.get_android_app_data_stream.metadata.to_h
2462
+
2463
+ # Set x-goog-api-client and x-goog-user-project headers
2464
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2465
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2466
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2467
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2468
+
2469
+ header_params = {
2470
+ "name" => request.name
2471
+ }
2472
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2473
+ metadata[:"x-goog-request-params"] ||= request_params_header
2474
+
2475
+ options.apply_defaults timeout: @config.rpcs.get_android_app_data_stream.timeout,
2476
+ metadata: metadata,
2477
+ retry_policy: @config.rpcs.get_android_app_data_stream.retry_policy
2478
+ options.apply_defaults metadata: @config.metadata,
2479
+ retry_policy: @config.retry_policy
2480
+
2481
+ @analytics_admin_service_stub.call_rpc :get_android_app_data_stream, request, options: options do |response, operation|
2482
+ yield response, operation if block_given?
2483
+ return response
2484
+ end
2485
+ rescue ::GRPC::BadStatus => e
2486
+ raise ::Google::Cloud::Error.from_error(e)
2487
+ end
2488
+
2489
+ ##
2490
+ # Deletes an android app stream on a property.
2491
+ #
2492
+ # @overload delete_android_app_data_stream(request, options = nil)
2493
+ # Pass arguments to `delete_android_app_data_stream` via a request object, either of type
2494
+ # {::Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest} or an equivalent Hash.
2495
+ #
2496
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest, ::Hash]
2497
+ # A request object representing the call parameters. Required. To specify no
2498
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2499
+ # @param options [::Gapic::CallOptions, ::Hash]
2500
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2501
+ #
2502
+ # @overload delete_android_app_data_stream(name: nil)
2503
+ # Pass arguments to `delete_android_app_data_stream` via keyword arguments. Note that at
2504
+ # least one keyword argument is required. To specify no parameters, or to keep all
2505
+ # the default parameter values, pass an empty Hash as a request object (see above).
2506
+ #
2507
+ # @param name [::String]
2508
+ # Required. The name of the android app data stream to delete.
2509
+ # Format: properties/\\{property_id}/androidAppDataStreams/\\{stream_id}
2510
+ # Example: "properties/123/androidAppDataStreams/456"
2511
+ #
2512
+ # @yield [response, operation] Access the result along with the RPC operation
2513
+ # @yieldparam response [::Google::Protobuf::Empty]
2514
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2515
+ #
2516
+ # @return [::Google::Protobuf::Empty]
2517
+ #
2518
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2519
+ #
2520
+ def delete_android_app_data_stream request, options = nil
2521
+ raise ::ArgumentError, "request must be provided" if request.nil?
2522
+
2523
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest
2524
+
2525
+ # Converts hash and nil to an options object
2526
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2527
+
2528
+ # Customize the options with defaults
2529
+ metadata = @config.rpcs.delete_android_app_data_stream.metadata.to_h
2530
+
2531
+ # Set x-goog-api-client and x-goog-user-project headers
2532
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2533
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2534
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2535
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2536
+
2537
+ header_params = {
2538
+ "name" => request.name
2539
+ }
2540
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2541
+ metadata[:"x-goog-request-params"] ||= request_params_header
2542
+
2543
+ options.apply_defaults timeout: @config.rpcs.delete_android_app_data_stream.timeout,
2544
+ metadata: metadata,
2545
+ retry_policy: @config.rpcs.delete_android_app_data_stream.retry_policy
2546
+ options.apply_defaults metadata: @config.metadata,
2547
+ retry_policy: @config.retry_policy
2548
+
2549
+ @analytics_admin_service_stub.call_rpc :delete_android_app_data_stream, request, options: options do |response, operation|
2550
+ yield response, operation if block_given?
2551
+ return response
2552
+ end
2553
+ rescue ::GRPC::BadStatus => e
2554
+ raise ::Google::Cloud::Error.from_error(e)
2555
+ end
2556
+
2557
+ ##
2558
+ # Updates an android app stream on a property.
2559
+ #
2560
+ # @overload update_android_app_data_stream(request, options = nil)
2561
+ # Pass arguments to `update_android_app_data_stream` via a request object, either of type
2562
+ # {::Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest} or an equivalent Hash.
2563
+ #
2564
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest, ::Hash]
2565
+ # A request object representing the call parameters. Required. To specify no
2566
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2567
+ # @param options [::Gapic::CallOptions, ::Hash]
2568
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2569
+ #
2570
+ # @overload update_android_app_data_stream(android_app_data_stream: nil, update_mask: nil)
2571
+ # Pass arguments to `update_android_app_data_stream` via keyword arguments. Note that at
2572
+ # least one keyword argument is required. To specify no parameters, or to keep all
2573
+ # the default parameter values, pass an empty Hash as a request object (see above).
2574
+ #
2575
+ # @param android_app_data_stream [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream, ::Hash]
2576
+ # Required. The android app stream to update.
2577
+ # The `name` field is used to identify the android app stream to be updated.
2578
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2579
+ # The list of fields to be updated. Omitted fields will not be updated.
2580
+ #
2581
+ # @yield [response, operation] Access the result along with the RPC operation
2582
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
2583
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2584
+ #
2585
+ # @return [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
2586
+ #
2587
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2588
+ #
2589
+ def update_android_app_data_stream request, options = nil
2590
+ raise ::ArgumentError, "request must be provided" if request.nil?
2591
+
2592
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest
2593
+
2594
+ # Converts hash and nil to an options object
2595
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2596
+
2597
+ # Customize the options with defaults
2598
+ metadata = @config.rpcs.update_android_app_data_stream.metadata.to_h
2599
+
2600
+ # Set x-goog-api-client and x-goog-user-project headers
2601
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2602
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2603
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2604
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2605
+
2606
+ header_params = {
2607
+ "android_app_data_stream.name" => request.android_app_data_stream.name
2608
+ }
2609
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2610
+ metadata[:"x-goog-request-params"] ||= request_params_header
2611
+
2612
+ options.apply_defaults timeout: @config.rpcs.update_android_app_data_stream.timeout,
2613
+ metadata: metadata,
2614
+ retry_policy: @config.rpcs.update_android_app_data_stream.retry_policy
2615
+ options.apply_defaults metadata: @config.metadata,
2616
+ retry_policy: @config.retry_policy
2617
+
2618
+ @analytics_admin_service_stub.call_rpc :update_android_app_data_stream, request, options: options do |response, operation|
2619
+ yield response, operation if block_given?
2620
+ return response
2621
+ end
2622
+ rescue ::GRPC::BadStatus => e
2623
+ raise ::Google::Cloud::Error.from_error(e)
2624
+ end
2625
+
2626
+ ##
2627
+ # Creates an android app stream with the specified location and attributes.
2628
+ #
2629
+ # @overload create_android_app_data_stream(request, options = nil)
2630
+ # Pass arguments to `create_android_app_data_stream` via a request object, either of type
2631
+ # {::Google::Analytics::Admin::V1alpha::CreateAndroidAppDataStreamRequest} or an equivalent Hash.
2632
+ #
2633
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateAndroidAppDataStreamRequest, ::Hash]
2634
+ # A request object representing the call parameters. Required. To specify no
2635
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2636
+ # @param options [::Gapic::CallOptions, ::Hash]
2637
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2638
+ #
2639
+ # @overload create_android_app_data_stream(android_app_data_stream: nil, parent: nil)
2640
+ # Pass arguments to `create_android_app_data_stream` via keyword arguments. Note that at
2641
+ # least one keyword argument is required. To specify no parameters, or to keep all
2642
+ # the default parameter values, pass an empty Hash as a request object (see above).
2643
+ #
2644
+ # @param android_app_data_stream [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream, ::Hash]
2645
+ # Required. The android app stream to create.
2646
+ # @param parent [::String]
2647
+ # Required. The parent resource where this android app data stream will be created.
2648
+ # Format: properties/123
2649
+ #
2650
+ # @yield [response, operation] Access the result along with the RPC operation
2651
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
2652
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2653
+ #
2654
+ # @return [::Google::Analytics::Admin::V1alpha::AndroidAppDataStream]
2655
+ #
2656
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2657
+ #
2658
+ def create_android_app_data_stream request, options = nil
2659
+ raise ::ArgumentError, "request must be provided" if request.nil?
2660
+
2661
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAndroidAppDataStreamRequest
2662
+
2663
+ # Converts hash and nil to an options object
2664
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2665
+
2666
+ # Customize the options with defaults
2667
+ metadata = @config.rpcs.create_android_app_data_stream.metadata.to_h
2668
+
2669
+ # Set x-goog-api-client and x-goog-user-project headers
2670
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2671
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2672
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2673
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2674
+
2675
+ header_params = {
2676
+ "parent" => request.parent
2677
+ }
2678
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2679
+ metadata[:"x-goog-request-params"] ||= request_params_header
2680
+
2681
+ options.apply_defaults timeout: @config.rpcs.create_android_app_data_stream.timeout,
2682
+ metadata: metadata,
2683
+ retry_policy: @config.rpcs.create_android_app_data_stream.retry_policy
2684
+ options.apply_defaults metadata: @config.metadata,
2685
+ retry_policy: @config.retry_policy
2686
+
2687
+ @analytics_admin_service_stub.call_rpc :create_android_app_data_stream, request, options: options do |response, operation|
2688
+ yield response, operation if block_given?
2689
+ return response
2690
+ end
2691
+ rescue ::GRPC::BadStatus => e
2692
+ raise ::Google::Cloud::Error.from_error(e)
2693
+ end
2694
+
2695
+ ##
2696
+ # Returns child android app streams under the specified parent property.
2697
+ #
2698
+ # Android app streams will be excluded if the caller does not have access.
2699
+ # Returns an empty list if no relevant android app streams are found.
2700
+ #
2701
+ # @overload list_android_app_data_streams(request, options = nil)
2702
+ # Pass arguments to `list_android_app_data_streams` via a request object, either of type
2703
+ # {::Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest} or an equivalent Hash.
2704
+ #
2705
+ # @param request [::Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest, ::Hash]
2706
+ # A request object representing the call parameters. Required. To specify no
2707
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2708
+ # @param options [::Gapic::CallOptions, ::Hash]
2709
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2710
+ #
2711
+ # @overload list_android_app_data_streams(parent: nil, page_size: nil, page_token: nil)
2712
+ # Pass arguments to `list_android_app_data_streams` via keyword arguments. Note that at
2713
+ # least one keyword argument is required. To specify no parameters, or to keep all
2714
+ # the default parameter values, pass an empty Hash as a request object (see above).
2715
+ #
2716
+ # @param parent [::String]
2717
+ # Required. The name of the parent property.
2718
+ # For example, to limit results to app streams under the property with Id
2719
+ # 123: "properties/123"
2720
+ # @param page_size [::Integer]
2721
+ # The maximum number of resources to return.
2722
+ #
2723
+ # If unspecified, at most 50 resources will be returned.
2724
+ # The maximum value is 200; (higher values will be coerced to the maximum)
2725
+ # @param page_token [::String]
2726
+ # A page token, received from a previous call. Provide this to
2727
+ # retrieve the subsequent page.
2728
+ # When paginating, all other parameters provided to
2729
+ # `ListAndroidAppDataStreams` must match the call that provided the page
2730
+ # token.
2731
+ #
2732
+ # @yield [response, operation] Access the result along with the RPC operation
2733
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AndroidAppDataStream>]
2734
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2735
+ #
2736
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AndroidAppDataStream>]
2737
+ #
2738
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2739
+ #
2740
+ def list_android_app_data_streams request, options = nil
2741
+ raise ::ArgumentError, "request must be provided" if request.nil?
2742
+
2743
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest
2744
+
2745
+ # Converts hash and nil to an options object
2746
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2747
+
2748
+ # Customize the options with defaults
2749
+ metadata = @config.rpcs.list_android_app_data_streams.metadata.to_h
2750
+
2751
+ # Set x-goog-api-client and x-goog-user-project headers
2752
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2753
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2754
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2755
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2756
+
2757
+ header_params = {
2758
+ "parent" => request.parent
2759
+ }
2760
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2761
+ metadata[:"x-goog-request-params"] ||= request_params_header
2762
+
2763
+ options.apply_defaults timeout: @config.rpcs.list_android_app_data_streams.timeout,
2764
+ metadata: metadata,
2765
+ retry_policy: @config.rpcs.list_android_app_data_streams.retry_policy
2766
+ options.apply_defaults metadata: @config.metadata,
2767
+ retry_policy: @config.retry_policy
2768
+
2769
+ @analytics_admin_service_stub.call_rpc :list_android_app_data_streams, request, options: options do |response, operation|
2770
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_android_app_data_streams, request, response, operation, options
2771
+ yield response, operation if block_given?
2772
+ return response
2773
+ end
2774
+ rescue ::GRPC::BadStatus => e
2775
+ raise ::Google::Cloud::Error.from_error(e)
2776
+ end
2777
+
2778
+ ##
2779
+ # Returns the singleton enhanced measurement settings for this web stream.
2780
+ # Note that the stream must enable enhanced measurement for these settings to
2781
+ # take effect.
2782
+ #
2783
+ # @overload get_enhanced_measurement_settings(request, options = nil)
2784
+ # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type
2785
+ # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash.
2786
+ #
2787
+ # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash]
2788
+ # A request object representing the call parameters. Required. To specify no
2789
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2790
+ # @param options [::Gapic::CallOptions, ::Hash]
2791
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2792
+ #
2793
+ # @overload get_enhanced_measurement_settings(name: nil)
2794
+ # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at
2795
+ # least one keyword argument is required. To specify no parameters, or to keep all
2796
+ # the default parameter values, pass an empty Hash as a request object (see above).
2797
+ #
2798
+ # @param name [::String]
2799
+ # Required. The name of the settings to lookup.
2800
+ # Format:
2801
+ # properties/\\{property_id}/webDataStreams/\\{stream_id}/enhancedMeasurementSettings
2802
+ # Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
2803
+ #
2804
+ # @yield [response, operation] Access the result along with the RPC operation
2805
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
2806
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2807
+ #
2808
+ # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
2809
+ #
2810
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2811
+ #
2812
+ def get_enhanced_measurement_settings request, options = nil
2813
+ raise ::ArgumentError, "request must be provided" if request.nil?
2814
+
2815
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest
2816
+
2817
+ # Converts hash and nil to an options object
2818
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2819
+
2820
+ # Customize the options with defaults
2821
+ metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h
2822
+
2823
+ # Set x-goog-api-client and x-goog-user-project headers
2824
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2825
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2826
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2827
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2828
+
2829
+ header_params = {
2830
+ "name" => request.name
2831
+ }
2832
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2833
+ metadata[:"x-goog-request-params"] ||= request_params_header
2834
+
2835
+ options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout,
2836
+ metadata: metadata,
2837
+ retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy
2838
+ options.apply_defaults metadata: @config.metadata,
2839
+ retry_policy: @config.retry_policy
2840
+
2841
+ @analytics_admin_service_stub.call_rpc :get_enhanced_measurement_settings, request, options: options do |response, operation|
2842
+ yield response, operation if block_given?
2843
+ return response
2844
+ end
2845
+ rescue ::GRPC::BadStatus => e
2846
+ raise ::Google::Cloud::Error.from_error(e)
2847
+ end
2848
+
2849
+ ##
2850
+ # Updates the singleton enhanced measurement settings for this web stream.
2851
+ # Note that the stream must enable enhanced measurement for these settings to
2852
+ # take effect.
2853
+ #
2854
+ # @overload update_enhanced_measurement_settings(request, options = nil)
2855
+ # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type
2856
+ # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash.
2857
+ #
2858
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash]
2859
+ # A request object representing the call parameters. Required. To specify no
2860
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2861
+ # @param options [::Gapic::CallOptions, ::Hash]
2862
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2863
+ #
2864
+ # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil)
2865
+ # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at
2866
+ # least one keyword argument is required. To specify no parameters, or to keep all
2867
+ # the default parameter values, pass an empty Hash as a request object (see above).
2868
+ #
2869
+ # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash]
2870
+ # Required. The settings to update.
2871
+ # The `name` field is used to identify the settings to be updated.
2872
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2873
+ # The list of fields to be updated. Omitted fields will not be updated.
2874
+ #
2875
+ # @yield [response, operation] Access the result along with the RPC operation
2876
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
2877
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2878
+ #
2879
+ # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
2880
+ #
2881
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2882
+ #
2883
+ def update_enhanced_measurement_settings request, options = nil
2884
+ raise ::ArgumentError, "request must be provided" if request.nil?
2885
+
2886
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest
2887
+
2888
+ # Converts hash and nil to an options object
2889
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2890
+
2891
+ # Customize the options with defaults
2892
+ metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h
2893
+
2894
+ # Set x-goog-api-client and x-goog-user-project headers
2895
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2896
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2897
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2898
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2899
+
2900
+ header_params = {
2901
+ "enhanced_measurement_settings.name" => request.enhanced_measurement_settings.name
2902
+ }
2903
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2904
+ metadata[:"x-goog-request-params"] ||= request_params_header
2905
+
2906
+ options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout,
2907
+ metadata: metadata,
2908
+ retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy
2909
+ options.apply_defaults metadata: @config.metadata,
2910
+ retry_policy: @config.retry_policy
2911
+
2912
+ @analytics_admin_service_stub.call_rpc :update_enhanced_measurement_settings, request, options: options do |response, operation|
2913
+ yield response, operation if block_given?
2914
+ return response
2915
+ end
2916
+ rescue ::GRPC::BadStatus => e
2917
+ raise ::Google::Cloud::Error.from_error(e)
2918
+ end
2919
+
2920
+ ##
2921
+ # Creates a FirebaseLink.
2922
+ #
2923
+ # Properties can have at most one FirebaseLink.
2924
+ #
2925
+ # @overload create_firebase_link(request, options = nil)
2926
+ # Pass arguments to `create_firebase_link` via a request object, either of type
2927
+ # {::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest} or an equivalent Hash.
2928
+ #
2929
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Hash]
2930
+ # A request object representing the call parameters. Required. To specify no
2931
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2932
+ # @param options [::Gapic::CallOptions, ::Hash]
2933
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2934
+ #
2935
+ # @overload create_firebase_link(parent: nil, firebase_link: nil)
2936
+ # Pass arguments to `create_firebase_link` via keyword arguments. Note that at
2937
+ # least one keyword argument is required. To specify no parameters, or to keep all
2938
+ # the default parameter values, pass an empty Hash as a request object (see above).
2939
+ #
2940
+ # @param parent [::String]
2941
+ # Required. Format: properties/\\{property_id}
2942
+ # Example: properties/1234
2943
+ # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash]
2944
+ # Required. The Firebase link to create.
2945
+ #
2946
+ # @yield [response, operation] Access the result along with the RPC operation
2947
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::FirebaseLink]
2948
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2949
+ #
2950
+ # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink]
2951
+ #
2952
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2953
+ #
2954
+ def create_firebase_link request, options = nil
2955
+ raise ::ArgumentError, "request must be provided" if request.nil?
2956
+
2957
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest
2958
+
2959
+ # Converts hash and nil to an options object
2960
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2961
+
2962
+ # Customize the options with defaults
2963
+ metadata = @config.rpcs.create_firebase_link.metadata.to_h
2964
+
2965
+ # Set x-goog-api-client and x-goog-user-project headers
2966
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2967
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2968
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2969
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2970
+
2971
+ header_params = {
2972
+ "parent" => request.parent
2973
+ }
2974
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2975
+ metadata[:"x-goog-request-params"] ||= request_params_header
2976
+
2977
+ options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout,
2978
+ metadata: metadata,
2979
+ retry_policy: @config.rpcs.create_firebase_link.retry_policy
2980
+ options.apply_defaults metadata: @config.metadata,
2981
+ retry_policy: @config.retry_policy
2982
+
2983
+ @analytics_admin_service_stub.call_rpc :create_firebase_link, request, options: options do |response, operation|
2984
+ yield response, operation if block_given?
2985
+ return response
2986
+ end
2987
+ rescue ::GRPC::BadStatus => e
2988
+ raise ::Google::Cloud::Error.from_error(e)
2989
+ end
2990
+
2991
+ ##
2992
+ # Updates a FirebaseLink on a property
2993
+ #
2994
+ # @overload update_firebase_link(request, options = nil)
2995
+ # Pass arguments to `update_firebase_link` via a request object, either of type
2996
+ # {::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest} or an equivalent Hash.
2997
+ #
2998
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest, ::Hash]
2999
+ # A request object representing the call parameters. Required. To specify no
3000
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3001
+ # @param options [::Gapic::CallOptions, ::Hash]
3002
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3003
+ #
3004
+ # @overload update_firebase_link(firebase_link: nil, update_mask: nil)
3005
+ # Pass arguments to `update_firebase_link` via keyword arguments. Note that at
3006
+ # least one keyword argument is required. To specify no parameters, or to keep all
3007
+ # the default parameter values, pass an empty Hash as a request object (see above).
3008
+ #
3009
+ # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash]
3010
+ # Required. The Firebase link to update.
3011
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3012
+ # The list of fields to be updated. Omitted fields will not be updated.
3013
+ #
3014
+ # @yield [response, operation] Access the result along with the RPC operation
3015
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::FirebaseLink]
3016
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3017
+ #
3018
+ # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink]
3019
+ #
3020
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3021
+ #
3022
+ def update_firebase_link request, options = nil
3023
+ raise ::ArgumentError, "request must be provided" if request.nil?
3024
+
3025
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest
3026
+
3027
+ # Converts hash and nil to an options object
3028
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3029
+
3030
+ # Customize the options with defaults
3031
+ metadata = @config.rpcs.update_firebase_link.metadata.to_h
3032
+
3033
+ # Set x-goog-api-client and x-goog-user-project headers
3034
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3035
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3036
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3037
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3038
+
3039
+ header_params = {
3040
+ "firebase_link.name" => request.firebase_link.name
3041
+ }
3042
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3043
+ metadata[:"x-goog-request-params"] ||= request_params_header
3044
+
3045
+ options.apply_defaults timeout: @config.rpcs.update_firebase_link.timeout,
3046
+ metadata: metadata,
3047
+ retry_policy: @config.rpcs.update_firebase_link.retry_policy
3048
+ options.apply_defaults metadata: @config.metadata,
3049
+ retry_policy: @config.retry_policy
3050
+
3051
+ @analytics_admin_service_stub.call_rpc :update_firebase_link, request, options: options do |response, operation|
3052
+ yield response, operation if block_given?
3053
+ return response
3054
+ end
3055
+ rescue ::GRPC::BadStatus => e
3056
+ raise ::Google::Cloud::Error.from_error(e)
3057
+ end
3058
+
3059
+ ##
3060
+ # Deletes a FirebaseLink on a property
3061
+ #
3062
+ # @overload delete_firebase_link(request, options = nil)
3063
+ # Pass arguments to `delete_firebase_link` via a request object, either of type
3064
+ # {::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest} or an equivalent Hash.
3065
+ #
3066
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Hash]
3067
+ # A request object representing the call parameters. Required. To specify no
3068
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3069
+ # @param options [::Gapic::CallOptions, ::Hash]
3070
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3071
+ #
3072
+ # @overload delete_firebase_link(name: nil)
3073
+ # Pass arguments to `delete_firebase_link` via keyword arguments. Note that at
3074
+ # least one keyword argument is required. To specify no parameters, or to keep all
3075
+ # the default parameter values, pass an empty Hash as a request object (see above).
3076
+ #
3077
+ # @param name [::String]
3078
+ # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id}
3079
+ # Example: properties/1234/firebaseLinks/5678
3080
+ #
3081
+ # @yield [response, operation] Access the result along with the RPC operation
3082
+ # @yieldparam response [::Google::Protobuf::Empty]
3083
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3084
+ #
3085
+ # @return [::Google::Protobuf::Empty]
3086
+ #
3087
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3088
+ #
3089
+ def delete_firebase_link request, options = nil
3090
+ raise ::ArgumentError, "request must be provided" if request.nil?
3091
+
3092
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest
3093
+
3094
+ # Converts hash and nil to an options object
3095
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3096
+
3097
+ # Customize the options with defaults
3098
+ metadata = @config.rpcs.delete_firebase_link.metadata.to_h
3099
+
3100
+ # Set x-goog-api-client and x-goog-user-project headers
3101
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3102
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3103
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3104
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3105
+
3106
+ header_params = {
3107
+ "name" => request.name
3108
+ }
3109
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3110
+ metadata[:"x-goog-request-params"] ||= request_params_header
3111
+
3112
+ options.apply_defaults timeout: @config.rpcs.delete_firebase_link.timeout,
3113
+ metadata: metadata,
3114
+ retry_policy: @config.rpcs.delete_firebase_link.retry_policy
3115
+ options.apply_defaults metadata: @config.metadata,
3116
+ retry_policy: @config.retry_policy
3117
+
3118
+ @analytics_admin_service_stub.call_rpc :delete_firebase_link, request, options: options do |response, operation|
3119
+ yield response, operation if block_given?
3120
+ return response
3121
+ end
3122
+ rescue ::GRPC::BadStatus => e
3123
+ raise ::Google::Cloud::Error.from_error(e)
3124
+ end
3125
+
3126
+ ##
3127
+ # Lists FirebaseLinks on a property.
3128
+ # Properties can have at most one FirebaseLink.
3129
+ #
3130
+ # @overload list_firebase_links(request, options = nil)
3131
+ # Pass arguments to `list_firebase_links` via a request object, either of type
3132
+ # {::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest} or an equivalent Hash.
3133
+ #
3134
+ # @param request [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Hash]
3135
+ # A request object representing the call parameters. Required. To specify no
3136
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3137
+ # @param options [::Gapic::CallOptions, ::Hash]
3138
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3139
+ #
3140
+ # @overload list_firebase_links(parent: nil)
3141
+ # Pass arguments to `list_firebase_links` via keyword arguments. Note that at
3142
+ # least one keyword argument is required. To specify no parameters, or to keep all
3143
+ # the default parameter values, pass an empty Hash as a request object (see above).
3144
+ #
3145
+ # @param parent [::String]
3146
+ # Required. Format: properties/\\{property_id}
3147
+ # Example: properties/1234
3148
+ #
3149
+ # @yield [response, operation] Access the result along with the RPC operation
3150
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse]
3151
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3152
+ #
3153
+ # @return [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse]
3154
+ #
3155
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3156
+ #
3157
+ def list_firebase_links request, options = nil
3158
+ raise ::ArgumentError, "request must be provided" if request.nil?
3159
+
3160
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest
3161
+
3162
+ # Converts hash and nil to an options object
3163
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3164
+
3165
+ # Customize the options with defaults
3166
+ metadata = @config.rpcs.list_firebase_links.metadata.to_h
3167
+
3168
+ # Set x-goog-api-client and x-goog-user-project headers
3169
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3170
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3171
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3172
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3173
+
3174
+ header_params = {
3175
+ "parent" => request.parent
3176
+ }
3177
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3178
+ metadata[:"x-goog-request-params"] ||= request_params_header
3179
+
3180
+ options.apply_defaults timeout: @config.rpcs.list_firebase_links.timeout,
3181
+ metadata: metadata,
3182
+ retry_policy: @config.rpcs.list_firebase_links.retry_policy
3183
+ options.apply_defaults metadata: @config.metadata,
3184
+ retry_policy: @config.retry_policy
3185
+
3186
+ @analytics_admin_service_stub.call_rpc :list_firebase_links, request, options: options do |response, operation|
3187
+ yield response, operation if block_given?
3188
+ return response
3189
+ end
3190
+ rescue ::GRPC::BadStatus => e
3191
+ raise ::Google::Cloud::Error.from_error(e)
3192
+ end
3193
+
3194
+ ##
3195
+ # Returns the Site Tag for the specified web stream.
3196
+ # Site Tags are immutable singletons.
3197
+ #
3198
+ # @overload get_global_site_tag(request, options = nil)
3199
+ # Pass arguments to `get_global_site_tag` via a request object, either of type
3200
+ # {::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest} or an equivalent Hash.
3201
+ #
3202
+ # @param request [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Hash]
3203
+ # A request object representing the call parameters. Required. To specify no
3204
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3205
+ # @param options [::Gapic::CallOptions, ::Hash]
3206
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3207
+ #
3208
+ # @overload get_global_site_tag(name: nil)
3209
+ # Pass arguments to `get_global_site_tag` via keyword arguments. Note that at
3210
+ # least one keyword argument is required. To specify no parameters, or to keep all
3211
+ # the default parameter values, pass an empty Hash as a request object (see above).
3212
+ #
3213
+ # @param name [::String]
3214
+ # Required. The name of the site tag to lookup.
3215
+ # Note that site tags are singletons and do not have unique IDs.
3216
+ # Format: properties/\\{property_id}/webDataStreams/\\{stream_id}/globalSiteTag
3217
+ # Example: "properties/123/webDataStreams/456/globalSiteTag"
3218
+ #
3219
+ # @yield [response, operation] Access the result along with the RPC operation
3220
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::GlobalSiteTag]
3221
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3222
+ #
3223
+ # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag]
3224
+ #
3225
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3226
+ #
3227
+ def get_global_site_tag request, options = nil
3228
+ raise ::ArgumentError, "request must be provided" if request.nil?
3229
+
3230
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest
3231
+
3232
+ # Converts hash and nil to an options object
3233
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3234
+
3235
+ # Customize the options with defaults
3236
+ metadata = @config.rpcs.get_global_site_tag.metadata.to_h
3237
+
3238
+ # Set x-goog-api-client and x-goog-user-project headers
3239
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3240
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3241
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3242
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3243
+
3244
+ header_params = {
3245
+ "name" => request.name
3246
+ }
3247
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3248
+ metadata[:"x-goog-request-params"] ||= request_params_header
3249
+
3250
+ options.apply_defaults timeout: @config.rpcs.get_global_site_tag.timeout,
3251
+ metadata: metadata,
3252
+ retry_policy: @config.rpcs.get_global_site_tag.retry_policy
3253
+ options.apply_defaults metadata: @config.metadata,
3254
+ retry_policy: @config.retry_policy
3255
+
3256
+ @analytics_admin_service_stub.call_rpc :get_global_site_tag, request, options: options do |response, operation|
3257
+ yield response, operation if block_given?
3258
+ return response
3259
+ end
3260
+ rescue ::GRPC::BadStatus => e
3261
+ raise ::Google::Cloud::Error.from_error(e)
3262
+ end
3263
+
3264
+ ##
3265
+ # Creates a GoogleAdsLink.
3266
+ #
3267
+ # @overload create_google_ads_link(request, options = nil)
3268
+ # Pass arguments to `create_google_ads_link` via a request object, either of type
3269
+ # {::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest} or an equivalent Hash.
3270
+ #
3271
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Hash]
3272
+ # A request object representing the call parameters. Required. To specify no
3273
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3274
+ # @param options [::Gapic::CallOptions, ::Hash]
3275
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3276
+ #
3277
+ # @overload create_google_ads_link(parent: nil, google_ads_link: nil)
3278
+ # Pass arguments to `create_google_ads_link` via keyword arguments. Note that at
3279
+ # least one keyword argument is required. To specify no parameters, or to keep all
3280
+ # the default parameter values, pass an empty Hash as a request object (see above).
3281
+ #
3282
+ # @param parent [::String]
3283
+ # Required. Example format: properties/1234
3284
+ # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash]
3285
+ # Required. The GoogleAdsLink to create.
3286
+ #
3287
+ # @yield [response, operation] Access the result along with the RPC operation
3288
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleAdsLink]
3289
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3290
+ #
3291
+ # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink]
3292
+ #
3293
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3294
+ #
3295
+ def create_google_ads_link request, options = nil
3296
+ raise ::ArgumentError, "request must be provided" if request.nil?
3297
+
3298
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest
3299
+
3300
+ # Converts hash and nil to an options object
3301
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3302
+
3303
+ # Customize the options with defaults
3304
+ metadata = @config.rpcs.create_google_ads_link.metadata.to_h
3305
+
3306
+ # Set x-goog-api-client and x-goog-user-project headers
3307
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3308
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3309
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3310
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3311
+
3312
+ header_params = {
3313
+ "parent" => request.parent
3314
+ }
3315
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3316
+ metadata[:"x-goog-request-params"] ||= request_params_header
3317
+
3318
+ options.apply_defaults timeout: @config.rpcs.create_google_ads_link.timeout,
3319
+ metadata: metadata,
3320
+ retry_policy: @config.rpcs.create_google_ads_link.retry_policy
3321
+ options.apply_defaults metadata: @config.metadata,
3322
+ retry_policy: @config.retry_policy
3323
+
3324
+ @analytics_admin_service_stub.call_rpc :create_google_ads_link, request, options: options do |response, operation|
3325
+ yield response, operation if block_given?
3326
+ return response
3327
+ end
3328
+ rescue ::GRPC::BadStatus => e
3329
+ raise ::Google::Cloud::Error.from_error(e)
3330
+ end
3331
+
3332
+ ##
3333
+ # Updates a GoogleAdsLink on a property
3334
+ #
3335
+ # @overload update_google_ads_link(request, options = nil)
3336
+ # Pass arguments to `update_google_ads_link` via a request object, either of type
3337
+ # {::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest} or an equivalent Hash.
3338
+ #
3339
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Hash]
3340
+ # A request object representing the call parameters. Required. To specify no
3341
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3342
+ # @param options [::Gapic::CallOptions, ::Hash]
3343
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3344
+ #
3345
+ # @overload update_google_ads_link(google_ads_link: nil, update_mask: nil)
3346
+ # Pass arguments to `update_google_ads_link` via keyword arguments. Note that at
3347
+ # least one keyword argument is required. To specify no parameters, or to keep all
3348
+ # the default parameter values, pass an empty Hash as a request object (see above).
3349
+ #
3350
+ # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash]
3351
+ # The GoogleAdsLink to update
3352
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3353
+ # The list of fields to be updated. Omitted fields will not be updated.
3354
+ #
3355
+ # @yield [response, operation] Access the result along with the RPC operation
3356
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleAdsLink]
3357
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3358
+ #
3359
+ # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink]
3360
+ #
3361
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3362
+ #
3363
+ def update_google_ads_link request, options = nil
3364
+ raise ::ArgumentError, "request must be provided" if request.nil?
3365
+
3366
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest
3367
+
3368
+ # Converts hash and nil to an options object
3369
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3370
+
3371
+ # Customize the options with defaults
3372
+ metadata = @config.rpcs.update_google_ads_link.metadata.to_h
3373
+
3374
+ # Set x-goog-api-client and x-goog-user-project headers
3375
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3376
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3377
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3378
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3379
+
3380
+ header_params = {
3381
+ "google_ads_link.name" => request.google_ads_link.name
3382
+ }
3383
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3384
+ metadata[:"x-goog-request-params"] ||= request_params_header
3385
+
3386
+ options.apply_defaults timeout: @config.rpcs.update_google_ads_link.timeout,
3387
+ metadata: metadata,
3388
+ retry_policy: @config.rpcs.update_google_ads_link.retry_policy
3389
+ options.apply_defaults metadata: @config.metadata,
3390
+ retry_policy: @config.retry_policy
3391
+
3392
+ @analytics_admin_service_stub.call_rpc :update_google_ads_link, request, options: options do |response, operation|
3393
+ yield response, operation if block_given?
3394
+ return response
3395
+ end
3396
+ rescue ::GRPC::BadStatus => e
3397
+ raise ::Google::Cloud::Error.from_error(e)
3398
+ end
3399
+
3400
+ ##
3401
+ # Deletes a GoogleAdsLink on a property
3402
+ #
3403
+ # @overload delete_google_ads_link(request, options = nil)
3404
+ # Pass arguments to `delete_google_ads_link` via a request object, either of type
3405
+ # {::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest} or an equivalent Hash.
3406
+ #
3407
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Hash]
3408
+ # A request object representing the call parameters. Required. To specify no
3409
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3410
+ # @param options [::Gapic::CallOptions, ::Hash]
3411
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3412
+ #
3413
+ # @overload delete_google_ads_link(name: nil)
3414
+ # Pass arguments to `delete_google_ads_link` via keyword arguments. Note that at
3415
+ # least one keyword argument is required. To specify no parameters, or to keep all
3416
+ # the default parameter values, pass an empty Hash as a request object (see above).
3417
+ #
3418
+ # @param name [::String]
3419
+ # Required. Example format: properties/1234/googleAdsLinks/5678
3420
+ #
3421
+ # @yield [response, operation] Access the result along with the RPC operation
3422
+ # @yieldparam response [::Google::Protobuf::Empty]
3423
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3424
+ #
3425
+ # @return [::Google::Protobuf::Empty]
3426
+ #
3427
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3428
+ #
3429
+ def delete_google_ads_link request, options = nil
3430
+ raise ::ArgumentError, "request must be provided" if request.nil?
3431
+
3432
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest
3433
+
3434
+ # Converts hash and nil to an options object
3435
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3436
+
3437
+ # Customize the options with defaults
3438
+ metadata = @config.rpcs.delete_google_ads_link.metadata.to_h
3439
+
3440
+ # Set x-goog-api-client and x-goog-user-project headers
3441
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3442
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3443
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3444
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3445
+
3446
+ header_params = {
3447
+ "name" => request.name
3448
+ }
3449
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3450
+ metadata[:"x-goog-request-params"] ||= request_params_header
3451
+
3452
+ options.apply_defaults timeout: @config.rpcs.delete_google_ads_link.timeout,
3453
+ metadata: metadata,
3454
+ retry_policy: @config.rpcs.delete_google_ads_link.retry_policy
3455
+ options.apply_defaults metadata: @config.metadata,
3456
+ retry_policy: @config.retry_policy
3457
+
3458
+ @analytics_admin_service_stub.call_rpc :delete_google_ads_link, request, options: options do |response, operation|
3459
+ yield response, operation if block_given?
3460
+ return response
3461
+ end
3462
+ rescue ::GRPC::BadStatus => e
3463
+ raise ::Google::Cloud::Error.from_error(e)
3464
+ end
3465
+
3466
+ ##
3467
+ # Lists GoogleAdsLinks on a property.
3468
+ #
3469
+ # @overload list_google_ads_links(request, options = nil)
3470
+ # Pass arguments to `list_google_ads_links` via a request object, either of type
3471
+ # {::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest} or an equivalent Hash.
3472
+ #
3473
+ # @param request [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Hash]
3474
+ # A request object representing the call parameters. Required. To specify no
3475
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3476
+ # @param options [::Gapic::CallOptions, ::Hash]
3477
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3478
+ #
3479
+ # @overload list_google_ads_links(parent: nil, page_size: nil, page_token: nil)
3480
+ # Pass arguments to `list_google_ads_links` via keyword arguments. Note that at
3481
+ # least one keyword argument is required. To specify no parameters, or to keep all
3482
+ # the default parameter values, pass an empty Hash as a request object (see above).
3483
+ #
3484
+ # @param parent [::String]
3485
+ # Required. Example format: properties/1234
3486
+ # @param page_size [::Integer]
3487
+ # The maximum number of resources to return.
3488
+ # If unspecified, at most 50 resources will be returned.
3489
+ # The maximum value is 200 (higher values will be coerced to the maximum).
3490
+ # @param page_token [::String]
3491
+ # A page token, received from a previous `ListGoogleAdsLinks` call.
3492
+ # Provide this to retrieve the subsequent page.
3493
+ #
3494
+ # When paginating, all other parameters provided to `ListGoogleAdsLinks` must
3495
+ # match the call that provided the page token.
3496
+ #
3497
+ # @yield [response, operation] Access the result along with the RPC operation
3498
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>]
3499
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3500
+ #
3501
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>]
3502
+ #
3503
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3504
+ #
3505
+ def list_google_ads_links request, options = nil
3506
+ raise ::ArgumentError, "request must be provided" if request.nil?
3507
+
3508
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest
3509
+
3510
+ # Converts hash and nil to an options object
3511
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3512
+
3513
+ # Customize the options with defaults
3514
+ metadata = @config.rpcs.list_google_ads_links.metadata.to_h
3515
+
3516
+ # Set x-goog-api-client and x-goog-user-project headers
3517
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3518
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3519
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3520
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3521
+
3522
+ header_params = {
3523
+ "parent" => request.parent
3524
+ }
3525
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3526
+ metadata[:"x-goog-request-params"] ||= request_params_header
3527
+
3528
+ options.apply_defaults timeout: @config.rpcs.list_google_ads_links.timeout,
3529
+ metadata: metadata,
3530
+ retry_policy: @config.rpcs.list_google_ads_links.retry_policy
3531
+ options.apply_defaults metadata: @config.metadata,
3532
+ retry_policy: @config.retry_policy
3533
+
3534
+ @analytics_admin_service_stub.call_rpc :list_google_ads_links, request, options: options do |response, operation|
3535
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, request, response, operation, options
3536
+ yield response, operation if block_given?
3537
+ return response
3538
+ end
3539
+ rescue ::GRPC::BadStatus => e
3540
+ raise ::Google::Cloud::Error.from_error(e)
3541
+ end
3542
+
3543
+ ##
3544
+ # Get data sharing settings on an account.
3545
+ # Data sharing settings are singletons.
3546
+ #
3547
+ # @overload get_data_sharing_settings(request, options = nil)
3548
+ # Pass arguments to `get_data_sharing_settings` via a request object, either of type
3549
+ # {::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest} or an equivalent Hash.
3550
+ #
3551
+ # @param request [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Hash]
3552
+ # A request object representing the call parameters. Required. To specify no
3553
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3554
+ # @param options [::Gapic::CallOptions, ::Hash]
3555
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3556
+ #
3557
+ # @overload get_data_sharing_settings(name: nil)
3558
+ # Pass arguments to `get_data_sharing_settings` via keyword arguments. Note that at
3559
+ # least one keyword argument is required. To specify no parameters, or to keep all
3560
+ # the default parameter values, pass an empty Hash as a request object (see above).
3561
+ #
3562
+ # @param name [::String]
3563
+ # Required. The name of the settings to lookup.
3564
+ # Format: accounts/\\{account}/dataSharingSettings
3565
+ # Example: "accounts/1000/dataSharingSettings"
3566
+ #
3567
+ # @yield [response, operation] Access the result along with the RPC operation
3568
+ # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataSharingSettings]
3569
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3570
+ #
3571
+ # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings]
3572
+ #
3573
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3574
+ #
3575
+ def get_data_sharing_settings request, options = nil
3576
+ raise ::ArgumentError, "request must be provided" if request.nil?
3577
+
3578
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest
3579
+
3580
+ # Converts hash and nil to an options object
3581
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3582
+
3583
+ # Customize the options with defaults
3584
+ metadata = @config.rpcs.get_data_sharing_settings.metadata.to_h
3585
+
3586
+ # Set x-goog-api-client and x-goog-user-project headers
3587
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3588
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3589
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3590
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3591
+
3592
+ header_params = {
3593
+ "name" => request.name
3594
+ }
3595
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3596
+ metadata[:"x-goog-request-params"] ||= request_params_header
3597
+
3598
+ options.apply_defaults timeout: @config.rpcs.get_data_sharing_settings.timeout,
3599
+ metadata: metadata,
3600
+ retry_policy: @config.rpcs.get_data_sharing_settings.retry_policy
3601
+ options.apply_defaults metadata: @config.metadata,
3602
+ retry_policy: @config.retry_policy
3603
+
3604
+ @analytics_admin_service_stub.call_rpc :get_data_sharing_settings, request, options: options do |response, operation|
3605
+ yield response, operation if block_given?
3606
+ return response
3607
+ end
3608
+ rescue ::GRPC::BadStatus => e
3609
+ raise ::Google::Cloud::Error.from_error(e)
3610
+ end
3611
+
3612
+ ##
3613
+ # Configuration class for the AnalyticsAdminService API.
3614
+ #
3615
+ # This class represents the configuration for AnalyticsAdminService,
3616
+ # providing control over timeouts, retry behavior, logging, transport
3617
+ # parameters, and other low-level controls. Certain parameters can also be
3618
+ # applied individually to specific RPCs. See
3619
+ # {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration::Rpcs}
3620
+ # for a list of RPCs that can be configured independently.
3621
+ #
3622
+ # Configuration can be applied globally to all clients, or to a single client
3623
+ # on construction.
3624
+ #
3625
+ # # Examples
3626
+ #
3627
+ # To modify the global config, setting the timeout for get_account
3628
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
3629
+ #
3630
+ # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config|
3631
+ # config.timeout = 10.0
3632
+ # config.rpcs.get_account.timeout = 20.0
3633
+ # end
3634
+ #
3635
+ # To apply the above configuration only to a new client:
3636
+ #
3637
+ # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
3638
+ # config.timeout = 10.0
3639
+ # config.rpcs.get_account.timeout = 20.0
3640
+ # end
3641
+ #
3642
+ # @!attribute [rw] endpoint
3643
+ # The hostname or hostname:port of the service endpoint.
3644
+ # Defaults to `"analyticsadmin.googleapis.com"`.
3645
+ # @return [::String]
3646
+ # @!attribute [rw] credentials
3647
+ # Credentials to send with calls. You may provide any of the following types:
3648
+ # * (`String`) The path to a service account key file in JSON format
3649
+ # * (`Hash`) A service account key as a Hash
3650
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
3651
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3652
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3653
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3654
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3655
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3656
+ # * (`nil`) indicating no credentials
3657
+ # @return [::Object]
3658
+ # @!attribute [rw] scope
3659
+ # The OAuth scopes
3660
+ # @return [::Array<::String>]
3661
+ # @!attribute [rw] lib_name
3662
+ # The library name as recorded in instrumentation and logging
3663
+ # @return [::String]
3664
+ # @!attribute [rw] lib_version
3665
+ # The library version as recorded in instrumentation and logging
3666
+ # @return [::String]
3667
+ # @!attribute [rw] channel_args
3668
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
3669
+ # `GRPC::Core::Channel` object is provided as the credential.
3670
+ # @return [::Hash]
3671
+ # @!attribute [rw] interceptors
3672
+ # An array of interceptors that are run before calls are executed.
3673
+ # @return [::Array<::GRPC::ClientInterceptor>]
3674
+ # @!attribute [rw] timeout
3675
+ # The call timeout in seconds.
3676
+ # @return [::Numeric]
3677
+ # @!attribute [rw] metadata
3678
+ # Additional gRPC headers to be sent with the call.
3679
+ # @return [::Hash{::Symbol=>::String}]
3680
+ # @!attribute [rw] retry_policy
3681
+ # The retry policy. The value is a hash with the following keys:
3682
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3683
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3684
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3685
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3686
+ # trigger a retry.
3687
+ # @return [::Hash]
3688
+ # @!attribute [rw] quota_project
3689
+ # A separate project against which to charge quota.
3690
+ # @return [::String]
3691
+ #
3692
+ class Configuration
3693
+ extend ::Gapic::Config
3694
+
3695
+ config_attr :endpoint, "analyticsadmin.googleapis.com", ::String
3696
+ config_attr :credentials, nil do |value|
3697
+ allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3698
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
3699
+ allowed.any? { |klass| klass === value }
3700
+ end
3701
+ config_attr :scope, nil, ::String, ::Array, nil
3702
+ config_attr :lib_name, nil, ::String, nil
3703
+ config_attr :lib_version, nil, ::String, nil
3704
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3705
+ config_attr :interceptors, nil, ::Array, nil
3706
+ config_attr :timeout, nil, ::Numeric, nil
3707
+ config_attr :metadata, nil, ::Hash, nil
3708
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3709
+ config_attr :quota_project, nil, ::String, nil
3710
+
3711
+ # @private
3712
+ def initialize parent_config = nil
3713
+ @parent_config = parent_config unless parent_config.nil?
3714
+
3715
+ yield self if block_given?
3716
+ end
3717
+
3718
+ ##
3719
+ # Configurations for individual RPCs
3720
+ # @return [Rpcs]
3721
+ #
3722
+ def rpcs
3723
+ @rpcs ||= begin
3724
+ parent_rpcs = nil
3725
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
3726
+ Rpcs.new parent_rpcs
3727
+ end
3728
+ end
3729
+
3730
+ ##
3731
+ # Configuration RPC class for the AnalyticsAdminService API.
3732
+ #
3733
+ # Includes fields providing the configuration for each RPC in this service.
3734
+ # Each configuration object is of type `Gapic::Config::Method` and includes
3735
+ # the following configuration fields:
3736
+ #
3737
+ # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
3738
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
3739
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
3740
+ # include the following keys:
3741
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3742
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3743
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3744
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3745
+ # trigger a retry.
3746
+ #
3747
+ class Rpcs
3748
+ ##
3749
+ # RPC-specific configuration for `get_account`
3750
+ # @return [::Gapic::Config::Method]
3751
+ #
3752
+ attr_reader :get_account
3753
+ ##
3754
+ # RPC-specific configuration for `list_accounts`
3755
+ # @return [::Gapic::Config::Method]
3756
+ #
3757
+ attr_reader :list_accounts
3758
+ ##
3759
+ # RPC-specific configuration for `delete_account`
3760
+ # @return [::Gapic::Config::Method]
3761
+ #
3762
+ attr_reader :delete_account
3763
+ ##
3764
+ # RPC-specific configuration for `update_account`
3765
+ # @return [::Gapic::Config::Method]
3766
+ #
3767
+ attr_reader :update_account
3768
+ ##
3769
+ # RPC-specific configuration for `provision_account_ticket`
3770
+ # @return [::Gapic::Config::Method]
3771
+ #
3772
+ attr_reader :provision_account_ticket
3773
+ ##
3774
+ # RPC-specific configuration for `get_property`
3775
+ # @return [::Gapic::Config::Method]
3776
+ #
3777
+ attr_reader :get_property
3778
+ ##
3779
+ # RPC-specific configuration for `list_properties`
3780
+ # @return [::Gapic::Config::Method]
3781
+ #
3782
+ attr_reader :list_properties
3783
+ ##
3784
+ # RPC-specific configuration for `create_property`
3785
+ # @return [::Gapic::Config::Method]
3786
+ #
3787
+ attr_reader :create_property
3788
+ ##
3789
+ # RPC-specific configuration for `delete_property`
3790
+ # @return [::Gapic::Config::Method]
3791
+ #
3792
+ attr_reader :delete_property
3793
+ ##
3794
+ # RPC-specific configuration for `update_property`
3795
+ # @return [::Gapic::Config::Method]
3796
+ #
3797
+ attr_reader :update_property
3798
+ ##
3799
+ # RPC-specific configuration for `get_user_link`
3800
+ # @return [::Gapic::Config::Method]
3801
+ #
3802
+ attr_reader :get_user_link
3803
+ ##
3804
+ # RPC-specific configuration for `batch_get_user_links`
3805
+ # @return [::Gapic::Config::Method]
3806
+ #
3807
+ attr_reader :batch_get_user_links
3808
+ ##
3809
+ # RPC-specific configuration for `list_user_links`
3810
+ # @return [::Gapic::Config::Method]
3811
+ #
3812
+ attr_reader :list_user_links
3813
+ ##
3814
+ # RPC-specific configuration for `audit_user_links`
3815
+ # @return [::Gapic::Config::Method]
3816
+ #
3817
+ attr_reader :audit_user_links
3818
+ ##
3819
+ # RPC-specific configuration for `create_user_link`
3820
+ # @return [::Gapic::Config::Method]
3821
+ #
3822
+ attr_reader :create_user_link
3823
+ ##
3824
+ # RPC-specific configuration for `batch_create_user_links`
3825
+ # @return [::Gapic::Config::Method]
3826
+ #
3827
+ attr_reader :batch_create_user_links
3828
+ ##
3829
+ # RPC-specific configuration for `update_user_link`
3830
+ # @return [::Gapic::Config::Method]
3831
+ #
3832
+ attr_reader :update_user_link
3833
+ ##
3834
+ # RPC-specific configuration for `batch_update_user_links`
3835
+ # @return [::Gapic::Config::Method]
3836
+ #
3837
+ attr_reader :batch_update_user_links
3838
+ ##
3839
+ # RPC-specific configuration for `delete_user_link`
3840
+ # @return [::Gapic::Config::Method]
3841
+ #
3842
+ attr_reader :delete_user_link
3843
+ ##
3844
+ # RPC-specific configuration for `batch_delete_user_links`
3845
+ # @return [::Gapic::Config::Method]
3846
+ #
3847
+ attr_reader :batch_delete_user_links
3848
+ ##
3849
+ # RPC-specific configuration for `get_web_data_stream`
3850
+ # @return [::Gapic::Config::Method]
3851
+ #
3852
+ attr_reader :get_web_data_stream
3853
+ ##
3854
+ # RPC-specific configuration for `delete_web_data_stream`
3855
+ # @return [::Gapic::Config::Method]
3856
+ #
3857
+ attr_reader :delete_web_data_stream
3858
+ ##
3859
+ # RPC-specific configuration for `update_web_data_stream`
3860
+ # @return [::Gapic::Config::Method]
3861
+ #
3862
+ attr_reader :update_web_data_stream
3863
+ ##
3864
+ # RPC-specific configuration for `create_web_data_stream`
3865
+ # @return [::Gapic::Config::Method]
3866
+ #
3867
+ attr_reader :create_web_data_stream
3868
+ ##
3869
+ # RPC-specific configuration for `list_web_data_streams`
3870
+ # @return [::Gapic::Config::Method]
3871
+ #
3872
+ attr_reader :list_web_data_streams
3873
+ ##
3874
+ # RPC-specific configuration for `get_ios_app_data_stream`
3875
+ # @return [::Gapic::Config::Method]
3876
+ #
3877
+ attr_reader :get_ios_app_data_stream
3878
+ ##
3879
+ # RPC-specific configuration for `delete_ios_app_data_stream`
3880
+ # @return [::Gapic::Config::Method]
3881
+ #
3882
+ attr_reader :delete_ios_app_data_stream
3883
+ ##
3884
+ # RPC-specific configuration for `update_ios_app_data_stream`
3885
+ # @return [::Gapic::Config::Method]
3886
+ #
3887
+ attr_reader :update_ios_app_data_stream
3888
+ ##
3889
+ # RPC-specific configuration for `create_ios_app_data_stream`
3890
+ # @return [::Gapic::Config::Method]
3891
+ #
3892
+ attr_reader :create_ios_app_data_stream
3893
+ ##
3894
+ # RPC-specific configuration for `list_ios_app_data_streams`
3895
+ # @return [::Gapic::Config::Method]
3896
+ #
3897
+ attr_reader :list_ios_app_data_streams
3898
+ ##
3899
+ # RPC-specific configuration for `get_android_app_data_stream`
3900
+ # @return [::Gapic::Config::Method]
3901
+ #
3902
+ attr_reader :get_android_app_data_stream
3903
+ ##
3904
+ # RPC-specific configuration for `delete_android_app_data_stream`
3905
+ # @return [::Gapic::Config::Method]
3906
+ #
3907
+ attr_reader :delete_android_app_data_stream
3908
+ ##
3909
+ # RPC-specific configuration for `update_android_app_data_stream`
3910
+ # @return [::Gapic::Config::Method]
3911
+ #
3912
+ attr_reader :update_android_app_data_stream
3913
+ ##
3914
+ # RPC-specific configuration for `create_android_app_data_stream`
3915
+ # @return [::Gapic::Config::Method]
3916
+ #
3917
+ attr_reader :create_android_app_data_stream
3918
+ ##
3919
+ # RPC-specific configuration for `list_android_app_data_streams`
3920
+ # @return [::Gapic::Config::Method]
3921
+ #
3922
+ attr_reader :list_android_app_data_streams
3923
+ ##
3924
+ # RPC-specific configuration for `get_enhanced_measurement_settings`
3925
+ # @return [::Gapic::Config::Method]
3926
+ #
3927
+ attr_reader :get_enhanced_measurement_settings
3928
+ ##
3929
+ # RPC-specific configuration for `update_enhanced_measurement_settings`
3930
+ # @return [::Gapic::Config::Method]
3931
+ #
3932
+ attr_reader :update_enhanced_measurement_settings
3933
+ ##
3934
+ # RPC-specific configuration for `create_firebase_link`
3935
+ # @return [::Gapic::Config::Method]
3936
+ #
3937
+ attr_reader :create_firebase_link
3938
+ ##
3939
+ # RPC-specific configuration for `update_firebase_link`
3940
+ # @return [::Gapic::Config::Method]
3941
+ #
3942
+ attr_reader :update_firebase_link
3943
+ ##
3944
+ # RPC-specific configuration for `delete_firebase_link`
3945
+ # @return [::Gapic::Config::Method]
3946
+ #
3947
+ attr_reader :delete_firebase_link
3948
+ ##
3949
+ # RPC-specific configuration for `list_firebase_links`
3950
+ # @return [::Gapic::Config::Method]
3951
+ #
3952
+ attr_reader :list_firebase_links
3953
+ ##
3954
+ # RPC-specific configuration for `get_global_site_tag`
3955
+ # @return [::Gapic::Config::Method]
3956
+ #
3957
+ attr_reader :get_global_site_tag
3958
+ ##
3959
+ # RPC-specific configuration for `create_google_ads_link`
3960
+ # @return [::Gapic::Config::Method]
3961
+ #
3962
+ attr_reader :create_google_ads_link
3963
+ ##
3964
+ # RPC-specific configuration for `update_google_ads_link`
3965
+ # @return [::Gapic::Config::Method]
3966
+ #
3967
+ attr_reader :update_google_ads_link
3968
+ ##
3969
+ # RPC-specific configuration for `delete_google_ads_link`
3970
+ # @return [::Gapic::Config::Method]
3971
+ #
3972
+ attr_reader :delete_google_ads_link
3973
+ ##
3974
+ # RPC-specific configuration for `list_google_ads_links`
3975
+ # @return [::Gapic::Config::Method]
3976
+ #
3977
+ attr_reader :list_google_ads_links
3978
+ ##
3979
+ # RPC-specific configuration for `get_data_sharing_settings`
3980
+ # @return [::Gapic::Config::Method]
3981
+ #
3982
+ attr_reader :get_data_sharing_settings
3983
+
3984
+ # @private
3985
+ def initialize parent_rpcs = nil
3986
+ get_account_config = parent_rpcs&.get_account if parent_rpcs&.respond_to? :get_account
3987
+ @get_account = ::Gapic::Config::Method.new get_account_config
3988
+ list_accounts_config = parent_rpcs&.list_accounts if parent_rpcs&.respond_to? :list_accounts
3989
+ @list_accounts = ::Gapic::Config::Method.new list_accounts_config
3990
+ delete_account_config = parent_rpcs&.delete_account if parent_rpcs&.respond_to? :delete_account
3991
+ @delete_account = ::Gapic::Config::Method.new delete_account_config
3992
+ update_account_config = parent_rpcs&.update_account if parent_rpcs&.respond_to? :update_account
3993
+ @update_account = ::Gapic::Config::Method.new update_account_config
3994
+ provision_account_ticket_config = parent_rpcs&.provision_account_ticket if parent_rpcs&.respond_to? :provision_account_ticket
3995
+ @provision_account_ticket = ::Gapic::Config::Method.new provision_account_ticket_config
3996
+ get_property_config = parent_rpcs&.get_property if parent_rpcs&.respond_to? :get_property
3997
+ @get_property = ::Gapic::Config::Method.new get_property_config
3998
+ list_properties_config = parent_rpcs&.list_properties if parent_rpcs&.respond_to? :list_properties
3999
+ @list_properties = ::Gapic::Config::Method.new list_properties_config
4000
+ create_property_config = parent_rpcs&.create_property if parent_rpcs&.respond_to? :create_property
4001
+ @create_property = ::Gapic::Config::Method.new create_property_config
4002
+ delete_property_config = parent_rpcs&.delete_property if parent_rpcs&.respond_to? :delete_property
4003
+ @delete_property = ::Gapic::Config::Method.new delete_property_config
4004
+ update_property_config = parent_rpcs&.update_property if parent_rpcs&.respond_to? :update_property
4005
+ @update_property = ::Gapic::Config::Method.new update_property_config
4006
+ get_user_link_config = parent_rpcs&.get_user_link if parent_rpcs&.respond_to? :get_user_link
4007
+ @get_user_link = ::Gapic::Config::Method.new get_user_link_config
4008
+ batch_get_user_links_config = parent_rpcs&.batch_get_user_links if parent_rpcs&.respond_to? :batch_get_user_links
4009
+ @batch_get_user_links = ::Gapic::Config::Method.new batch_get_user_links_config
4010
+ list_user_links_config = parent_rpcs&.list_user_links if parent_rpcs&.respond_to? :list_user_links
4011
+ @list_user_links = ::Gapic::Config::Method.new list_user_links_config
4012
+ audit_user_links_config = parent_rpcs&.audit_user_links if parent_rpcs&.respond_to? :audit_user_links
4013
+ @audit_user_links = ::Gapic::Config::Method.new audit_user_links_config
4014
+ create_user_link_config = parent_rpcs&.create_user_link if parent_rpcs&.respond_to? :create_user_link
4015
+ @create_user_link = ::Gapic::Config::Method.new create_user_link_config
4016
+ batch_create_user_links_config = parent_rpcs&.batch_create_user_links if parent_rpcs&.respond_to? :batch_create_user_links
4017
+ @batch_create_user_links = ::Gapic::Config::Method.new batch_create_user_links_config
4018
+ update_user_link_config = parent_rpcs&.update_user_link if parent_rpcs&.respond_to? :update_user_link
4019
+ @update_user_link = ::Gapic::Config::Method.new update_user_link_config
4020
+ batch_update_user_links_config = parent_rpcs&.batch_update_user_links if parent_rpcs&.respond_to? :batch_update_user_links
4021
+ @batch_update_user_links = ::Gapic::Config::Method.new batch_update_user_links_config
4022
+ delete_user_link_config = parent_rpcs&.delete_user_link if parent_rpcs&.respond_to? :delete_user_link
4023
+ @delete_user_link = ::Gapic::Config::Method.new delete_user_link_config
4024
+ batch_delete_user_links_config = parent_rpcs&.batch_delete_user_links if parent_rpcs&.respond_to? :batch_delete_user_links
4025
+ @batch_delete_user_links = ::Gapic::Config::Method.new batch_delete_user_links_config
4026
+ get_web_data_stream_config = parent_rpcs&.get_web_data_stream if parent_rpcs&.respond_to? :get_web_data_stream
4027
+ @get_web_data_stream = ::Gapic::Config::Method.new get_web_data_stream_config
4028
+ delete_web_data_stream_config = parent_rpcs&.delete_web_data_stream if parent_rpcs&.respond_to? :delete_web_data_stream
4029
+ @delete_web_data_stream = ::Gapic::Config::Method.new delete_web_data_stream_config
4030
+ update_web_data_stream_config = parent_rpcs&.update_web_data_stream if parent_rpcs&.respond_to? :update_web_data_stream
4031
+ @update_web_data_stream = ::Gapic::Config::Method.new update_web_data_stream_config
4032
+ create_web_data_stream_config = parent_rpcs&.create_web_data_stream if parent_rpcs&.respond_to? :create_web_data_stream
4033
+ @create_web_data_stream = ::Gapic::Config::Method.new create_web_data_stream_config
4034
+ list_web_data_streams_config = parent_rpcs&.list_web_data_streams if parent_rpcs&.respond_to? :list_web_data_streams
4035
+ @list_web_data_streams = ::Gapic::Config::Method.new list_web_data_streams_config
4036
+ get_ios_app_data_stream_config = parent_rpcs&.get_ios_app_data_stream if parent_rpcs&.respond_to? :get_ios_app_data_stream
4037
+ @get_ios_app_data_stream = ::Gapic::Config::Method.new get_ios_app_data_stream_config
4038
+ delete_ios_app_data_stream_config = parent_rpcs&.delete_ios_app_data_stream if parent_rpcs&.respond_to? :delete_ios_app_data_stream
4039
+ @delete_ios_app_data_stream = ::Gapic::Config::Method.new delete_ios_app_data_stream_config
4040
+ update_ios_app_data_stream_config = parent_rpcs&.update_ios_app_data_stream if parent_rpcs&.respond_to? :update_ios_app_data_stream
4041
+ @update_ios_app_data_stream = ::Gapic::Config::Method.new update_ios_app_data_stream_config
4042
+ create_ios_app_data_stream_config = parent_rpcs&.create_ios_app_data_stream if parent_rpcs&.respond_to? :create_ios_app_data_stream
4043
+ @create_ios_app_data_stream = ::Gapic::Config::Method.new create_ios_app_data_stream_config
4044
+ list_ios_app_data_streams_config = parent_rpcs&.list_ios_app_data_streams if parent_rpcs&.respond_to? :list_ios_app_data_streams
4045
+ @list_ios_app_data_streams = ::Gapic::Config::Method.new list_ios_app_data_streams_config
4046
+ get_android_app_data_stream_config = parent_rpcs&.get_android_app_data_stream if parent_rpcs&.respond_to? :get_android_app_data_stream
4047
+ @get_android_app_data_stream = ::Gapic::Config::Method.new get_android_app_data_stream_config
4048
+ delete_android_app_data_stream_config = parent_rpcs&.delete_android_app_data_stream if parent_rpcs&.respond_to? :delete_android_app_data_stream
4049
+ @delete_android_app_data_stream = ::Gapic::Config::Method.new delete_android_app_data_stream_config
4050
+ update_android_app_data_stream_config = parent_rpcs&.update_android_app_data_stream if parent_rpcs&.respond_to? :update_android_app_data_stream
4051
+ @update_android_app_data_stream = ::Gapic::Config::Method.new update_android_app_data_stream_config
4052
+ create_android_app_data_stream_config = parent_rpcs&.create_android_app_data_stream if parent_rpcs&.respond_to? :create_android_app_data_stream
4053
+ @create_android_app_data_stream = ::Gapic::Config::Method.new create_android_app_data_stream_config
4054
+ list_android_app_data_streams_config = parent_rpcs&.list_android_app_data_streams if parent_rpcs&.respond_to? :list_android_app_data_streams
4055
+ @list_android_app_data_streams = ::Gapic::Config::Method.new list_android_app_data_streams_config
4056
+ get_enhanced_measurement_settings_config = parent_rpcs&.get_enhanced_measurement_settings if parent_rpcs&.respond_to? :get_enhanced_measurement_settings
4057
+ @get_enhanced_measurement_settings = ::Gapic::Config::Method.new get_enhanced_measurement_settings_config
4058
+ update_enhanced_measurement_settings_config = parent_rpcs&.update_enhanced_measurement_settings if parent_rpcs&.respond_to? :update_enhanced_measurement_settings
4059
+ @update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config
4060
+ create_firebase_link_config = parent_rpcs&.create_firebase_link if parent_rpcs&.respond_to? :create_firebase_link
4061
+ @create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config
4062
+ update_firebase_link_config = parent_rpcs&.update_firebase_link if parent_rpcs&.respond_to? :update_firebase_link
4063
+ @update_firebase_link = ::Gapic::Config::Method.new update_firebase_link_config
4064
+ delete_firebase_link_config = parent_rpcs&.delete_firebase_link if parent_rpcs&.respond_to? :delete_firebase_link
4065
+ @delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config
4066
+ list_firebase_links_config = parent_rpcs&.list_firebase_links if parent_rpcs&.respond_to? :list_firebase_links
4067
+ @list_firebase_links = ::Gapic::Config::Method.new list_firebase_links_config
4068
+ get_global_site_tag_config = parent_rpcs&.get_global_site_tag if parent_rpcs&.respond_to? :get_global_site_tag
4069
+ @get_global_site_tag = ::Gapic::Config::Method.new get_global_site_tag_config
4070
+ create_google_ads_link_config = parent_rpcs&.create_google_ads_link if parent_rpcs&.respond_to? :create_google_ads_link
4071
+ @create_google_ads_link = ::Gapic::Config::Method.new create_google_ads_link_config
4072
+ update_google_ads_link_config = parent_rpcs&.update_google_ads_link if parent_rpcs&.respond_to? :update_google_ads_link
4073
+ @update_google_ads_link = ::Gapic::Config::Method.new update_google_ads_link_config
4074
+ delete_google_ads_link_config = parent_rpcs&.delete_google_ads_link if parent_rpcs&.respond_to? :delete_google_ads_link
4075
+ @delete_google_ads_link = ::Gapic::Config::Method.new delete_google_ads_link_config
4076
+ list_google_ads_links_config = parent_rpcs&.list_google_ads_links if parent_rpcs&.respond_to? :list_google_ads_links
4077
+ @list_google_ads_links = ::Gapic::Config::Method.new list_google_ads_links_config
4078
+ get_data_sharing_settings_config = parent_rpcs&.get_data_sharing_settings if parent_rpcs&.respond_to? :get_data_sharing_settings
4079
+ @get_data_sharing_settings = ::Gapic::Config::Method.new get_data_sharing_settings_config
4080
+
4081
+ yield self if block_given?
4082
+ end
4083
+ end
4084
+ end
4085
+ end
4086
+ end
4087
+ end
4088
+ end
4089
+ end
4090
+ end